@octokit/plugin-rest-endpoint-methods
Advanced tools
Comparing version 3.17.0 to 4.0.0
@@ -23,2 +23,3 @@ export function endpointsToMethods(octokit, endpointsMap) { | ||
const requestWithDefaults = octokit.request.defaults(defaults); | ||
/* istanbul ignore next */ | ||
function withDecorations(...args) { | ||
@@ -35,4 +36,2 @@ // @ts-ignore https://github.com/microsoft/TypeScript/issues/25488 | ||
} | ||
// NOTE: there are currently no deprecations. But we keep the code | ||
// below for future reference | ||
if (decorations.renamed) { | ||
@@ -49,5 +48,2 @@ const [newScope, newMethodName] = decorations.renamed; | ||
for (const [name, alias] of Object.entries(decorations.renamedParameters)) { | ||
// There is currently no deprecated parameter that is optional, | ||
// so we never hit the else branch below at this point. | ||
/* istanbul ignore else */ | ||
if (name in options) { | ||
@@ -54,0 +50,0 @@ octokit.log.warn(`"${name}" parameter is deprecated for "octokit.${scope}.${methodName}()". Use "${alias}" instead`); |
@@ -1,1 +0,1 @@ | ||
export const VERSION = "3.17.0"; | ||
export const VERSION = "4.0.0"; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "3.17.0"; | ||
export declare const VERSION = "4.0.0"; |
{ | ||
"name": "@octokit/plugin-rest-endpoint-methods", | ||
"description": "Octokit plugin adding one method for all of api.github.com REST API endpoints", | ||
"version": "3.17.0", | ||
"version": "4.0.0", | ||
"license": "MIT", | ||
@@ -20,3 +20,3 @@ "files": [ | ||
"dependencies": { | ||
"@octokit/types": "^4.1.6", | ||
"@octokit/types": "^5.0.0", | ||
"deprecation": "^2.3.1" | ||
@@ -33,3 +33,3 @@ }, | ||
"@types/fetch-mock": "^7.3.1", | ||
"@types/jest": "^25.1.0", | ||
"@types/jest": "^26.0.0", | ||
"@types/node": "^14.0.4", | ||
@@ -36,0 +36,0 @@ "fetch-mock": "^9.0.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
960650
12471
+ Added@octokit/types@5.5.0(transitive)
- Removed@octokit/types@4.1.10(transitive)
Updated@octokit/types@^5.0.0