Socket
Socket
Sign inDemoInstall

@octokit/action

Package Overview
Dependencies
28
Maintainers
4
Versions
134
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.10 to 5.0.0

13

dist-node/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc