Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@octokit/core

Package Overview
Dependencies
Maintainers
4
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@octokit/core - npm Package Compare versions

Comparing version 5.0.1 to 5.0.2

28

dist-node/index.js

@@ -33,5 +33,10 @@ "use strict";

// pkg/dist-src/version.js
var VERSION = "5.0.1";
var VERSION = "5.0.2";
// pkg/dist-src/index.js
var noop = () => {
};
var consoleWarn = console.warn.bind(console);
var consoleError = console.error.bind(console);
var userAgentTrail = `octokit-core.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`;
var Octokit = class {

@@ -97,6 +102,3 @@ static {

};
requestDefaults.headers["user-agent"] = [
options.userAgent,
`octokit-core.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`
].filter(Boolean).join(" ");
requestDefaults.headers["user-agent"] = options.userAgent ? `${options.userAgent} ${userAgentTrail}` : userAgentTrail;
if (options.baseUrl) {

@@ -115,8 +117,6 @@ requestDefaults.baseUrl = options.baseUrl;

{
debug: () => {
},
info: () => {
},
warn: console.warn.bind(console),
error: console.error.bind(console)
debug: noop,
info: noop,
warn: consoleWarn,
error: consoleError
},

@@ -158,5 +158,5 @@ options.log

const classConstructor = this.constructor;
classConstructor.plugins.forEach((plugin) => {
Object.assign(this, plugin(this, options));
});
for (let i = 0; i < classConstructor.plugins.length; ++i) {
Object.assign(this, classConstructor.plugins[i](this, options));
}
}

@@ -163,0 +163,0 @@ };

@@ -7,2 +7,7 @@ import { getUserAgent } from "universal-user-agent";

import { VERSION } from "./version";
const noop = () => {
};
const consoleWarn = console.warn.bind(console);
const consoleError = console.error.bind(console);
const userAgentTrail = `octokit-core.js/${VERSION} ${getUserAgent()}`;
class Octokit {

@@ -68,6 +73,3 @@ static {

};
requestDefaults.headers["user-agent"] = [
options.userAgent,
`octokit-core.js/${VERSION} ${getUserAgent()}`
].filter(Boolean).join(" ");
requestDefaults.headers["user-agent"] = options.userAgent ? `${options.userAgent} ${userAgentTrail}` : userAgentTrail;
if (options.baseUrl) {

@@ -86,8 +88,6 @@ requestDefaults.baseUrl = options.baseUrl;

{
debug: () => {
},
info: () => {
},
warn: console.warn.bind(console),
error: console.error.bind(console)
debug: noop,
info: noop,
warn: consoleWarn,
error: consoleError
},

@@ -129,5 +129,5 @@ options.log

const classConstructor = this.constructor;
classConstructor.plugins.forEach((plugin) => {
Object.assign(this, plugin(this, options));
});
for (let i = 0; i < classConstructor.plugins.length; ++i) {
Object.assign(this, classConstructor.plugins[i](this, options));
}
}

@@ -134,0 +134,0 @@ }

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

const VERSION = "5.0.1";
const VERSION = "5.0.2";
export {
VERSION
};

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

export declare const VERSION = "5.0.1";
export declare const VERSION = "5.0.2";

@@ -9,5 +9,10 @@ // pkg/dist-src/index.js

// pkg/dist-src/version.js
var VERSION = "5.0.1";
var VERSION = "5.0.2";
// pkg/dist-src/index.js
var noop = () => {
};
var consoleWarn = console.warn.bind(console);
var consoleError = console.error.bind(console);
var userAgentTrail = `octokit-core.js/${VERSION} ${getUserAgent()}`;
var Octokit = class {

@@ -73,6 +78,3 @@ static {

};
requestDefaults.headers["user-agent"] = [
options.userAgent,
`octokit-core.js/${VERSION} ${getUserAgent()}`
].filter(Boolean).join(" ");
requestDefaults.headers["user-agent"] = options.userAgent ? `${options.userAgent} ${userAgentTrail}` : userAgentTrail;
if (options.baseUrl) {

@@ -91,8 +93,6 @@ requestDefaults.baseUrl = options.baseUrl;

{
debug: () => {
},
info: () => {
},
warn: console.warn.bind(console),
error: console.error.bind(console)
debug: noop,
info: noop,
warn: consoleWarn,
error: consoleError
},

@@ -134,5 +134,5 @@ options.log

const classConstructor = this.constructor;
classConstructor.plugins.forEach((plugin) => {
Object.assign(this, plugin(this, options));
});
for (let i = 0; i < classConstructor.plugins.length; ++i) {
Object.assign(this, classConstructor.plugins[i](this, options));
}
}

@@ -139,0 +139,0 @@ };

{
"name": "@octokit/core",
"version": "5.0.1",
"version": "5.0.2",
"publishConfig": {

@@ -32,6 +32,8 @@ "access": "public"

"@octokit/tsconfig": "^2.0.0",
"@sinonjs/fake-timers": "^11.2.2",
"@types/fetch-mock": "^7.3.1",
"@types/jest": "^29.0.0",
"@types/lolex": "^5.1.0",
"@types/node": "^18.0.0",
"@types/node": "^20.0.0",
"@types/sinonjs__fake-timers": "^8.1.5",
"esbuild": "^0.19.0",

@@ -42,4 +44,3 @@ "fetch-mock": "npm:@gr2m/fetch-mock@9.11.0-pull-request-644.1",

"jest": "^29.0.0",
"lolex": "^6.0.0",
"prettier": "3.0.3",
"prettier": "3.1.0",
"proxy": "^2.0.0",

@@ -50,3 +51,3 @@ "semantic-release": "^22.0.0",

"typescript": "^5.0.0",
"undici": "5.25.2"
"undici": "^5.25.4"
},

@@ -53,0 +54,0 @@ "engines": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc