@octokit/action
Advanced tools
Comparing version 4.0.10 to 5.0.0
@@ -10,6 +10,5 @@ 'use strict'; | ||
const VERSION = "4.0.10"; | ||
const VERSION = "5.0.0"; | ||
const HttpsProxyAgent = require("https-proxy-agent"); | ||
const DEFAULTS = { | ||
@@ -20,21 +19,16 @@ authStrategy: authAction.createActionAuth, | ||
}; | ||
function getProxyAgent() { | ||
const httpProxy = process.env["HTTP_PROXY"] || process.env["http_proxy"]; | ||
if (httpProxy) { | ||
return new HttpsProxyAgent(httpProxy); | ||
} | ||
const httpsProxy = process.env["HTTPS_PROXY"] || process.env["https_proxy"]; | ||
if (httpsProxy) { | ||
return new HttpsProxyAgent(httpsProxy); | ||
} | ||
return undefined; | ||
} | ||
const Octokit = core.Octokit.plugin(pluginPaginateRest.paginateRest, pluginRestEndpointMethods.legacyRestEndpointMethods).defaults(function buildDefaults(options) { | ||
return { ...DEFAULTS, | ||
return { | ||
...DEFAULTS, | ||
...options, | ||
@@ -47,3 +41,2 @@ request: { | ||
}); | ||
function getApiBaseUrl() { | ||
@@ -50,0 +43,0 @@ /* istanbul ignore next */ |
@@ -1,1 +0,1 @@ | ||
export const VERSION = "4.0.10"; | ||
export const VERSION = "5.0.0"; |
@@ -6,2 +6,2 @@ import { Octokit as Core } from "@octokit/core"; | ||
} & import("@octokit/plugin-rest-endpoint-methods/dist-types/generated/method-types").RestEndpointMethods & import("@octokit/plugin-rest-endpoint-methods/dist-types/types").Api>; | ||
export declare type Octokit = InstanceType<typeof Octokit>; | ||
export type Octokit = InstanceType<typeof Octokit>; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "4.0.10"; | ||
export declare const VERSION = "5.0.0"; |
{ | ||
"name": "@octokit/action", | ||
"description": "GitHub API client for GitHub Actions", | ||
"version": "4.0.10", | ||
"version": "5.0.0", | ||
"license": "MIT", | ||
@@ -27,3 +27,3 @@ "files": [ | ||
"@octokit/plugin-paginate-rest": "^5.0.0", | ||
"@octokit/plugin-rest-endpoint-methods": "^6.0.0", | ||
"@octokit/plugin-rest-endpoint-methods": "^7.0.0", | ||
"@octokit/types": "^8.0.0", | ||
@@ -37,6 +37,6 @@ "https-proxy-agent": "^5.0.1" | ||
"@types/jest": "^29.0.0", | ||
"@types/node": "^16.0.0", | ||
"@types/node": "^18.0.0", | ||
"fetch-mock": "^9.0.0", | ||
"jest": "^29.0.0", | ||
"prettier": "2.7.1", | ||
"prettier": "2.8.3", | ||
"semantic-release-plugin-update-version-in-files": "^1.0.0", | ||
@@ -43,0 +43,0 @@ "ts-jest": "^29.0.0", |
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
84
11
12817
+ Added@octokit/plugin-rest-endpoint-methods@7.2.3(transitive)
+ Added@octokit/types@10.0.0(transitive)
- Removed@octokit/plugin-rest-endpoint-methods@6.8.1(transitive)