@octokit/plugin-enterprise-rest
Advanced tools
Comparing version 3.3.0 to 3.4.0
{ | ||
"name": "@octokit/plugin-enterprise-rest", | ||
"version": "3.3.0", | ||
"version": "3.4.0", | ||
"publishConfig": { | ||
@@ -38,3 +38,3 @@ "access": "public", | ||
"devDependencies": { | ||
"@octokit/routes": "20.3.0", | ||
"@octokit/routes": "20.4.0", | ||
"coveralls": "^3.0.2", | ||
@@ -41,0 +41,0 @@ "lodash.camelcase": "^4.3.0", |
@@ -112,3 +112,7 @@ const { writeFileSync } = require('fs') | ||
if (endpoint.deprecated) { | ||
newRoutes[scope][idName].deprecated = `octokit.${scope}.${camelCase(endpoint.deprecated.before.idName)}() has been renamed to octokit.${scope}.${camelCase(endpoint.deprecated.after.idName)}() (${endpoint.deprecated.date})` | ||
if (endpoint.deprecated.after) { | ||
newRoutes[scope][idName].deprecated = `octokit.${scope}.${camelCase(endpoint.deprecated.before.idName)}() has been renamed to octokit.${scope}.${camelCase(endpoint.deprecated.after.idName)}() (${endpoint.deprecated.date})` | ||
} else { | ||
newRoutes[scope][idName].deprecated = endpoint.deprecated.message | ||
} | ||
} | ||
@@ -115,0 +119,0 @@ }) |
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
1140175
45777