Socket
Socket
Sign inDemoInstall

@octokit/action

Package Overview
Dependencies
6
Maintainers
4
Versions
134
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.5 to 5.0.6

dist-web/index.js

67

dist-node/index.js

@@ -1,15 +0,40 @@

'use strict';
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
Object.defineProperty(exports, '__esModule', { value: true });
// pkg/dist-src/index.js
var dist_src_exports = {};
__export(dist_src_exports, {
Octokit: () => Octokit,
RestEndpointMethodTypes: () => import_plugin_rest_endpoint_methods2.RestEndpointMethodTypes
});
module.exports = __toCommonJS(dist_src_exports);
var import_core = require("@octokit/core");
var import_auth_action = require("@octokit/auth-action");
var import_plugin_paginate_rest = require("@octokit/plugin-paginate-rest");
var import_plugin_rest_endpoint_methods = require("@octokit/plugin-rest-endpoint-methods");
var import_plugin_rest_endpoint_methods2 = require("@octokit/plugin-rest-endpoint-methods");
var core = require('@octokit/core');
var authAction = require('@octokit/auth-action');
var pluginPaginateRest = require('@octokit/plugin-paginate-rest');
var pluginRestEndpointMethods = require('@octokit/plugin-rest-endpoint-methods');
var httpsProxyAgent = require('https-proxy-agent');
// pkg/dist-src/version.js
var VERSION = "5.0.6";
const VERSION = "5.0.5";
const DEFAULTS = {
authStrategy: authAction.createActionAuth,
// pkg/dist-src/index.js
var import_https_proxy_agent = require("https-proxy-agent");
var DEFAULTS = {
authStrategy: import_auth_action.createActionAuth,
baseUrl: getApiBaseUrl(),

@@ -21,11 +46,14 @@ userAgent: `octokit-action.js/${VERSION}`

if (httpProxy) {
return new httpsProxyAgent.HttpsProxyAgent(httpProxy);
return new import_https_proxy_agent.HttpsProxyAgent(httpProxy);
}
const httpsProxy = process.env["HTTPS_PROXY"] || process.env["https_proxy"];
if (httpsProxy) {
return new httpsProxyAgent.HttpsProxyAgent(httpsProxy);
return new import_https_proxy_agent.HttpsProxyAgent(httpsProxy);
}
return undefined;
return void 0;
}
const Octokit = core.Octokit.plugin(pluginPaginateRest.paginateRest, pluginRestEndpointMethods.legacyRestEndpointMethods).defaults(function buildDefaults(options) {
var Octokit = import_core.Octokit.plugin(
import_plugin_paginate_rest.paginateRest,
import_plugin_rest_endpoint_methods.legacyRestEndpointMethods
).defaults(function buildDefaults(options) {
return {

@@ -41,7 +69,8 @@ ...DEFAULTS,

function getApiBaseUrl() {
/* istanbul ignore next */
return process.env["GITHUB_API_URL"] || "https://api.github.com";
}
exports.Octokit = Octokit;
//# sourceMappingURL=index.js.map
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
Octokit,
RestEndpointMethodTypes
});

@@ -5,33 +5,40 @@ import { Octokit as Core } from "@octokit/core";

import { legacyRestEndpointMethods } from "@octokit/plugin-rest-endpoint-methods";
import { RestEndpointMethodTypes } from "@octokit/plugin-rest-endpoint-methods";
import { VERSION } from "./version";
import { HttpsProxyAgent } from "https-proxy-agent";
const DEFAULTS = {
authStrategy: createActionAuth,
baseUrl: getApiBaseUrl(),
userAgent: `octokit-action.js/${VERSION}`,
authStrategy: createActionAuth,
baseUrl: getApiBaseUrl(),
userAgent: `octokit-action.js/${VERSION}`
};
function getProxyAgent() {
const httpProxy = process.env["HTTP_PROXY"] || process.env["http_proxy"];
if (httpProxy) {
return new HttpsProxyAgent(httpProxy);
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 void 0;
}
const Octokit = Core.plugin(
paginateRest,
legacyRestEndpointMethods
).defaults(function buildDefaults(options) {
return {
...DEFAULTS,
...options,
request: {
agent: getProxyAgent(),
...options.request
}
const httpsProxy = process.env["HTTPS_PROXY"] || process.env["https_proxy"];
if (httpsProxy) {
return new HttpsProxyAgent(httpsProxy);
}
return undefined;
}
export const Octokit = Core.plugin(paginateRest, legacyRestEndpointMethods).defaults(function buildDefaults(options) {
return {
...DEFAULTS,
...options,
request: {
agent: getProxyAgent(),
...options.request,
},
};
};
});
function getApiBaseUrl() {
/* istanbul ignore next */
return process.env["GITHUB_API_URL"] || "https://api.github.com";
return process.env["GITHUB_API_URL"] || "https://api.github.com";
}
export {
Octokit,
RestEndpointMethodTypes
};

@@ -1,1 +0,4 @@

export const VERSION = "5.0.5";
const VERSION = "5.0.6";
export {
VERSION
};

@@ -1,1 +0,1 @@

export declare const VERSION = "5.0.5";
export declare const VERSION = "5.0.6";
{
"name": "@octokit/action",
"version": "5.0.6",
"publishConfig": {
"access": "public"
},
"description": "GitHub API client for GitHub Actions",
"version": "5.0.5",
"license": "MIT",
"files": [
"dist-*/**",
"bin/**"
],
"source": "dist-src/index.js",
"types": "dist-types/index.d.ts",
"main": "dist-node/index.js",
"pika": true,
"sideEffects": false,
"repository": "github:octokit/action.js",
"keywords": [

@@ -22,3 +16,4 @@ "github",

],
"repository": "github:octokit/action.js",
"author": "Gregor Martynus (https://twitter.com/gr2m)",
"license": "MIT",
"dependencies": {

@@ -33,8 +28,8 @@ "@octokit/auth-action": "^2.0.0",

"devDependencies": {
"@pika/pack": "^0.3.7",
"@pika/plugin-build-node": "^0.9.0",
"@pika/plugin-ts-standard-pkg": "^0.9.0",
"@octokit/tsconfig": "^1.0.2",
"@types/jest": "^29.0.0",
"@types/node": "^18.0.0",
"esbuild": "^0.17.19",
"fetch-mock": "^9.0.0",
"glob": "^10.2.6",
"jest": "^29.0.0",

@@ -47,7 +42,13 @@ "prettier": "2.8.8",

"engines": {
"node": ">= 14"
"node": ">= 18"
},
"publishConfig": {
"access": "public"
}
"files": [
"dist-*/**",
"bin/**"
],
"main": "dist-node/index.js",
"browser": "dist-web/index.js",
"types": "dist-types/index.d.ts",
"module": "dist-src/index.js",
"sideEffects": false
}

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