@octokit/plugin-enterprise-rest
Advanced tools
Comparing version 5.0.0 to 6.0.0
{ | ||
"name": "@octokit/plugin-enterprise-rest", | ||
"version": "5.0.0", | ||
"version": "6.0.0", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public", |
@@ -9,3 +9,3 @@ const { writeFileSync } = require("fs"); | ||
const GHE_VERSIONS = ["2.15", "2.16", "2.17", "2.18"]; | ||
const GHE_VERSIONS = ["2.16", "2.17", "2.18", "2.19"]; | ||
const newRoutes = {}; | ||
@@ -87,3 +87,3 @@ | ||
idName | ||
].deprecated = `octokit.${scope}.${endpoint.renamed.before}() has been renamed to octokit.${scope}.${endpoint.renamed.after}() (${endpoint.renamed.date})`; | ||
].deprecated = `octokit.${endpoint.renamed.before.scope}.${endpoint.renamed.before.id}() has been renamed to octokit.${endpoint.renamed.after.scope}.${endpoint.renamed.after.id}() (${endpoint.renamed.date})`; | ||
} | ||
@@ -90,0 +90,0 @@ |
@@ -7,2 +7,6 @@ const { writeFileSync } = require("fs"); | ||
if (!process.env.VERSION) { | ||
throw new Error(`VERSION environment variable must be set`); | ||
} | ||
const QUERY = ` | ||
@@ -46,4 +50,10 @@ fragment endpointFields on Endpoint { | ||
renamed { | ||
before(format: CAMELCASE) | ||
after(format: CAMELCASE) | ||
before { | ||
scope(format: CAMELCASE) | ||
id(format: CAMELCASE) | ||
} | ||
after { | ||
scope(format: CAMELCASE) | ||
id(format: CAMELCASE) | ||
} | ||
date | ||
@@ -54,13 +64,13 @@ note | ||
{ | ||
ghe218: endpoints(ghe: GHE_218, filter: { isLegacy: false, isGithubCloudOnly: false }) { | ||
query ($version: String) { | ||
ghe219: endpoints(version: $version, ghe: GHE_219, filter: { isLegacy: false, isGithubCloudOnly: false }) { | ||
...endpointFields | ||
} | ||
ghe217: endpoints(ghe: GHE_217, filter: { isLegacy: false, isGithubCloudOnly: false }) { | ||
ghe218: endpoints(version: $version, ghe: GHE_218, filter: { isLegacy: false, isGithubCloudOnly: false }) { | ||
...endpointFields | ||
} | ||
ghe216: endpoints(ghe: GHE_216, filter: { isLegacy: false, isGithubCloudOnly: false }) { | ||
ghe217: endpoints(version: $version, ghe: GHE_217, filter: { isLegacy: false, isGithubCloudOnly: false }) { | ||
...endpointFields | ||
} | ||
ghe215: endpoints(ghe: GHE_215, filter: { isLegacy: false, isGithubCloudOnly: false }) { | ||
ghe216: endpoints(version: $version, ghe: GHE_216, filter: { isLegacy: false, isGithubCloudOnly: false }) { | ||
...endpointFields | ||
@@ -75,3 +85,4 @@ } | ||
const results = await graphql(QUERY, { | ||
url: "https://octokit-routes-graphql-server.now.sh/" | ||
url: "https://octokit-routes-graphql-server.now.sh/", | ||
version: process.env.VERSION | ||
}); | ||
@@ -78,0 +89,0 @@ |
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 too big to display
Sorry, the diff of this file is too big to display
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
8989424
189057
0
5