@octokit/core
Advanced tools
Comparing version 5.0.0-beta.4 to 5.0.0-beta.5
@@ -33,6 +33,9 @@ "use strict"; | ||
// pkg/dist-src/version.js | ||
var VERSION = "5.0.0-beta.4"; | ||
var VERSION = "5.0.0-beta.5"; | ||
// pkg/dist-src/index.js | ||
var Octokit = class { | ||
static { | ||
this.VERSION = VERSION; | ||
} | ||
static defaults(defaults) { | ||
@@ -60,2 +63,5 @@ const OctokitWithDefaults = class extends this { | ||
} | ||
static { | ||
this.plugins = []; | ||
} | ||
/** | ||
@@ -68,8 +74,10 @@ * Attach a plugin (or many) to your Octokit instance. | ||
static plugin(...newPlugins) { | ||
var _a; | ||
const currentPlugins = this.plugins; | ||
const NewOctokit = (_a = class extends this { | ||
}, _a.plugins = currentPlugins.concat( | ||
newPlugins.filter((plugin) => !currentPlugins.includes(plugin)) | ||
), _a); | ||
const NewOctokit = class extends this { | ||
static { | ||
this.plugins = currentPlugins.concat( | ||
newPlugins.filter((plugin) => !currentPlugins.includes(plugin)) | ||
); | ||
} | ||
}; | ||
return NewOctokit; | ||
@@ -155,4 +163,2 @@ } | ||
}; | ||
Octokit.VERSION = VERSION; | ||
Octokit.plugins = []; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
@@ -159,0 +165,0 @@ 0 && (module.exports = { |
@@ -8,2 +8,5 @@ import { getUserAgent } from "universal-user-agent"; | ||
class Octokit { | ||
static { | ||
this.VERSION = VERSION; | ||
} | ||
static defaults(defaults) { | ||
@@ -31,2 +34,5 @@ const OctokitWithDefaults = class extends this { | ||
} | ||
static { | ||
this.plugins = []; | ||
} | ||
/** | ||
@@ -39,8 +45,10 @@ * Attach a plugin (or many) to your Octokit instance. | ||
static plugin(...newPlugins) { | ||
var _a; | ||
const currentPlugins = this.plugins; | ||
const NewOctokit = (_a = class extends this { | ||
}, _a.plugins = currentPlugins.concat( | ||
newPlugins.filter((plugin) => !currentPlugins.includes(plugin)) | ||
), _a); | ||
const NewOctokit = class extends this { | ||
static { | ||
this.plugins = currentPlugins.concat( | ||
newPlugins.filter((plugin) => !currentPlugins.includes(plugin)) | ||
); | ||
} | ||
}; | ||
return NewOctokit; | ||
@@ -126,6 +134,4 @@ } | ||
} | ||
Octokit.VERSION = VERSION; | ||
Octokit.plugins = []; | ||
export { | ||
Octokit | ||
}; |
@@ -1,4 +0,4 @@ | ||
const VERSION = "5.0.0-beta.4"; | ||
const VERSION = "5.0.0-beta.5"; | ||
export { | ||
VERSION | ||
}; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "5.0.0-beta.4"; | ||
export declare const VERSION = "5.0.0-beta.5"; |
@@ -9,6 +9,9 @@ // pkg/dist-src/index.js | ||
// pkg/dist-src/version.js | ||
var VERSION = "5.0.0-beta.4"; | ||
var VERSION = "5.0.0-beta.5"; | ||
// pkg/dist-src/index.js | ||
var Octokit = class { | ||
static { | ||
this.VERSION = VERSION; | ||
} | ||
static defaults(defaults) { | ||
@@ -36,2 +39,5 @@ const OctokitWithDefaults = class extends this { | ||
} | ||
static { | ||
this.plugins = []; | ||
} | ||
/** | ||
@@ -44,8 +50,10 @@ * Attach a plugin (or many) to your Octokit instance. | ||
static plugin(...newPlugins) { | ||
var _a; | ||
const currentPlugins = this.plugins; | ||
const NewOctokit = (_a = class extends this { | ||
}, _a.plugins = currentPlugins.concat( | ||
newPlugins.filter((plugin) => !currentPlugins.includes(plugin)) | ||
), _a); | ||
const NewOctokit = class extends this { | ||
static { | ||
this.plugins = currentPlugins.concat( | ||
newPlugins.filter((plugin) => !currentPlugins.includes(plugin)) | ||
); | ||
} | ||
}; | ||
return NewOctokit; | ||
@@ -131,6 +139,4 @@ } | ||
}; | ||
Octokit.VERSION = VERSION; | ||
Octokit.plugins = []; | ||
export { | ||
Octokit | ||
}; |
{ | ||
"name": "@octokit/core", | ||
"version": "5.0.0-beta.4", | ||
"version": "5.0.0-beta.5", | ||
"publishConfig": { | ||
@@ -20,6 +20,6 @@ "access": "public" | ||
"@octokit/auth-token": "^4.0.0", | ||
"@octokit/graphql": "^6.0.0", | ||
"@octokit/request": "^7.0.0", | ||
"@octokit/request-error": "^4.0.1", | ||
"@octokit/types": "^10.0.0", | ||
"@octokit/graphql": "^7.0.0", | ||
"@octokit/request": "^8.0.2", | ||
"@octokit/request-error": "^5.0.0", | ||
"@octokit/types": "^11.0.0", | ||
"before-after-hook": "^2.2.0", | ||
@@ -29,3 +29,5 @@ "universal-user-agent": "^6.0.0" | ||
"devDependencies": { | ||
"@octokit/auth": "^3.0.1", | ||
"@octokit/auth-action": "^3.0.2", | ||
"@octokit/auth-app": "^5.0.5", | ||
"@octokit/auth-oauth-app": "^6.0.1", | ||
"@octokit/tsconfig": "^2.0.0", | ||
@@ -37,3 +39,3 @@ "@types/fetch-mock": "^7.3.1", | ||
"esbuild": "^0.18.0", | ||
"fetch-mock": "^9.0.0", | ||
"fetch-mock": "npm:@gr2m/fetch-mock@9.11.0-pull-request-644.1", | ||
"glob": "^10.2.5", | ||
@@ -43,3 +45,3 @@ "http-proxy-agent": "^7.0.0", | ||
"lolex": "^6.0.0", | ||
"prettier": "2.8.8", | ||
"prettier": "3.0.0", | ||
"proxy": "^2.0.0", | ||
@@ -46,0 +48,0 @@ "semantic-release": "^21.0.0", |
@@ -86,3 +86,3 @@ # core.js | ||
}`, | ||
{ login: "octokit" } | ||
{ login: "octokit" }, | ||
); | ||
@@ -429,3 +429,3 @@ ``` | ||
require("@octokit/plugin-throttling").throttling, | ||
require("@octokit/plugin-retry").retry | ||
require("@octokit/plugin-retry").retry, | ||
).defaults({ | ||
@@ -432,0 +432,0 @@ throttle: { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44279
508
20
+ Added@octokit/endpoint@9.0.5(transitive)
+ Added@octokit/graphql@7.1.0(transitive)
+ Added@octokit/openapi-types@22.2.0(transitive)
+ Added@octokit/request@8.4.0(transitive)
+ Added@octokit/request-error@5.1.0(transitive)
+ Added@octokit/types@11.1.013.6.1(transitive)
- Removed@octokit/endpoint@8.0.1(transitive)
- Removed@octokit/graphql@6.0.1(transitive)
- Removed@octokit/request@7.0.1(transitive)
- Removed@octokit/request-error@4.0.2(transitive)
- Removed@octokit/types@10.0.0(transitive)
- Removedis-plain-object@5.0.0(transitive)
Updated@octokit/graphql@^7.0.0
Updated@octokit/request@^8.0.2
Updated@octokit/types@^11.0.0