@actions/github
Advanced tools
Comparing version 5.1.0 to 5.1.1
@@ -5,2 +5,3 @@ import * as Context from './context'; | ||
export declare const context: Context.Context; | ||
export declare const defaults: OctokitOptions; | ||
export declare const GitHub: typeof Octokit & import("@octokit/core/dist-types/types").Constructor<import("@octokit/plugin-rest-endpoint-methods/dist-types/types").Api & { | ||
@@ -7,0 +8,0 @@ paginate: import("@octokit/plugin-paginate-rest").PaginateInterface; |
@@ -22,3 +22,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getOctokitOptions = exports.GitHub = exports.context = void 0; | ||
exports.getOctokitOptions = exports.GitHub = exports.defaults = exports.context = void 0; | ||
const Context = __importStar(require("./context")); | ||
@@ -32,3 +32,3 @@ const Utils = __importStar(require("./internal/utils")); | ||
const baseUrl = Utils.getApiBaseUrl(); | ||
const defaults = { | ||
exports.defaults = { | ||
baseUrl, | ||
@@ -39,3 +39,3 @@ request: { | ||
}; | ||
exports.GitHub = core_1.Octokit.plugin(plugin_rest_endpoint_methods_1.restEndpointMethods, plugin_paginate_rest_1.paginateRest).defaults(defaults); | ||
exports.GitHub = core_1.Octokit.plugin(plugin_rest_endpoint_methods_1.restEndpointMethods, plugin_paginate_rest_1.paginateRest).defaults(exports.defaults); | ||
/** | ||
@@ -42,0 +42,0 @@ * Convience function to correctly format Octokit Options to pass into the constructor. |
{ | ||
"name": "@actions/github", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "Actions github lib", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20909
291