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.1.0 to 6.0.0-beta.1

39

dist-node/index.js
"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;

@@ -18,2 +20,10 @@ var __export = (target, all) => {

};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

@@ -28,3 +38,3 @@

var import_universal_user_agent = require("universal-user-agent");
var import_before_after_hook = require("before-after-hook");
var import_before_after_hook = __toESM(require("before-after-hook"), 1);
var import_request = require("@octokit/request");

@@ -35,3 +45,3 @@ var import_graphql = require("@octokit/graphql");

// pkg/dist-src/version.js
var VERSION = "5.1.0";
var VERSION = "6.0.0-beta.1";

@@ -45,5 +55,3 @@ // pkg/dist-src/index.js

var Octokit = class {
static {
this.VERSION = VERSION;
}
static VERSION = VERSION;
static defaults(defaults) {

@@ -71,5 +79,3 @@ const OctokitWithDefaults = class extends this {

}
static {
this.plugins = [];
}
static plugins = [];
/**

@@ -84,7 +90,5 @@ * Attach a plugin (or many) to your Octokit instance.

const NewOctokit = class extends this {
static {
this.plugins = currentPlugins.concat(
newPlugins.filter((plugin) => !currentPlugins.includes(plugin))
);
}
static plugins = currentPlugins.concat(
newPlugins.filter((plugin) => !currentPlugins.includes(plugin))
);
};

@@ -94,3 +98,3 @@ return NewOctokit;

constructor(options = {}) {
const hook = new import_before_after_hook.Collection();
const hook = new import_before_after_hook.default.Collection();
const requestDefaults = {

@@ -166,2 +170,9 @@ baseUrl: import_request.request.endpoint.DEFAULTS.baseUrl,

}
// assigned during constructor
request;
graphql;
log;
hook;
// TODO: type `octokit.auth` based on passed options.authStrategy
auth;
};

@@ -168,0 +179,0 @@ // Annotate the CommonJS export names for ESM import in node:

import { getUserAgent } from "universal-user-agent";
import { Collection } from "before-after-hook";
import Hook from "before-after-hook";
import { request } from "@octokit/request";

@@ -13,5 +13,3 @@ import { graphql, withCustomRequest } from "@octokit/graphql";

class Octokit {
static {
this.VERSION = VERSION;
}
static VERSION = VERSION;
static defaults(defaults) {

@@ -39,5 +37,3 @@ const OctokitWithDefaults = class extends this {

}
static {
this.plugins = [];
}
static plugins = [];
/**

@@ -52,7 +48,5 @@ * Attach a plugin (or many) to your Octokit instance.

const NewOctokit = class extends this {
static {
this.plugins = currentPlugins.concat(
newPlugins.filter((plugin) => !currentPlugins.includes(plugin))
);
}
static plugins = currentPlugins.concat(
newPlugins.filter((plugin) => !currentPlugins.includes(plugin))
);
};

@@ -62,3 +56,3 @@ return NewOctokit;

constructor(options = {}) {
const hook = new Collection();
const hook = new Hook.Collection();
const requestDefaults = {

@@ -134,2 +128,9 @@ baseUrl: request.endpoint.DEFAULTS.baseUrl,

}
// assigned during constructor
request;
graphql;
log;
hook;
// TODO: type `octokit.auth` based on passed options.authStrategy
auth;
}

@@ -136,0 +137,0 @@ export {

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

const VERSION = "5.1.0";
const VERSION = "6.0.0-beta.1";
export {
VERSION
};

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

export declare const VERSION = "5.1.0";
export declare const VERSION = "6.0.0-beta.1";
// pkg/dist-src/index.js
import { getUserAgent } from "universal-user-agent";
import { Collection } from "before-after-hook";
import Hook from "before-after-hook";
import { request } from "@octokit/request";

@@ -9,3 +9,3 @@ import { graphql, withCustomRequest } from "@octokit/graphql";

// pkg/dist-src/version.js
var VERSION = "5.1.0";
var VERSION = "6.0.0-beta.1";

@@ -19,5 +19,3 @@ // pkg/dist-src/index.js

var Octokit = class {
static {
this.VERSION = VERSION;
}
static VERSION = VERSION;
static defaults(defaults) {

@@ -45,5 +43,3 @@ const OctokitWithDefaults = class extends this {

}
static {
this.plugins = [];
}
static plugins = [];
/**

@@ -58,7 +54,5 @@ * Attach a plugin (or many) to your Octokit instance.

const NewOctokit = class extends this {
static {
this.plugins = currentPlugins.concat(
newPlugins.filter((plugin) => !currentPlugins.includes(plugin))
);
}
static plugins = currentPlugins.concat(
newPlugins.filter((plugin) => !currentPlugins.includes(plugin))
);
};

@@ -68,3 +62,3 @@ return NewOctokit;

constructor(options = {}) {
const hook = new Collection();
const hook = new Hook.Collection();
const requestDefaults = {

@@ -140,2 +134,9 @@ baseUrl: request.endpoint.DEFAULTS.baseUrl,

}
// assigned during constructor
request;
graphql;
log;
hook;
// TODO: type `octokit.auth` based on passed options.authStrategy
auth;
};

@@ -142,0 +143,0 @@ export {

{
"name": "@octokit/core",
"version": "5.1.0",
"version": "6.0.0-beta.1",
"publishConfig": {
"access": "public"
},
"type": "module",
"description": "Extendable client for GitHub's REST & GraphQL APIs",

@@ -19,9 +20,9 @@ "repository": "github:octokit/core.js",

"dependencies": {
"@octokit/auth-token": "^4.0.0",
"@octokit/graphql": "^7.0.0",
"@octokit/request": "^8.0.2",
"@octokit/request-error": "^5.0.0",
"@octokit/auth-token": "^5.0.0-beta.1",
"@octokit/graphql": "^8.0.0-beta.1",
"@octokit/request": "^9.0.0",
"@octokit/request-error": "^6.0.1",
"@octokit/types": "^12.0.0",
"before-after-hook": "^2.2.0",
"universal-user-agent": "^6.0.0"
"before-after-hook": "^3.0.2",
"universal-user-agent": "^7.0.0"
},

@@ -32,5 +33,5 @@ "devDependencies": {

"@octokit/auth-oauth-app": "^7.0.0",
"@octokit/tsconfig": "^2.0.0",
"@octokit/tsconfig": "^3.0.0",
"@sinonjs/fake-timers": "^11.2.2",
"@types/fetch-mock": "^7.3.1",
"@types/fetch-mock": "^7.3.8",
"@types/jest": "^29.0.0",

@@ -40,3 +41,3 @@ "@types/lolex": "^5.1.0",

"@types/sinonjs__fake-timers": "^8.1.5",
"esbuild": "^0.19.0",
"esbuild": "^0.20.0",
"fetch-mock": "npm:@gr2m/fetch-mock@9.11.0-pull-request-644.1",

@@ -46,3 +47,3 @@ "glob": "^10.2.5",

"jest": "^29.0.0",
"prettier": "3.2.4",
"prettier": "3.2.5",
"proxy": "^2.0.0",

@@ -49,0 +50,0 @@ "semantic-release": "^23.0.0",

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