@octokit/openapi-types
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "Generated TypeScript definitions based on GitHub's OpenAPI spec", | ||
@@ -27,4 +27,4 @@ "main": "generated/types.ts", | ||
"octokit": { | ||
"openapi-version": "2.4.1" | ||
"openapi-version": "2.4.2" | ||
} | ||
} |
const { get } = require("https"); | ||
const fs = require("fs"); | ||
if (!process.env.VERSION) { | ||
throw new Error("VERSION is not set"); | ||
if (!process.env.OCTOKIT_OPENAPI_VERSION) { | ||
throw new Error("OCTOKIT_OPENAPI_VERSION is not set"); | ||
} | ||
download(process.env.VERSION.replace(/^v/, "")).then( | ||
download(process.env.OCTOKIT_OPENAPI_VERSION.replace(/^v/, "")).then( | ||
() => console.log("done"), | ||
@@ -10,0 +10,0 @@ console.error |
const { writeFileSync } = require("fs"); | ||
if (!process.env.VERSION) { | ||
throw new Error("VERSION is not set"); | ||
if (!process.env.OCTOKIT_OPENAPI_VERSION) { | ||
throw new Error("OCTOKIT_OPENAPI_VERSION is not set"); | ||
} | ||
@@ -13,4 +13,7 @@ | ||
pkg.octokit["openapi-version"] = process.env.VERSION.replace(/^v/, ""); | ||
pkg.octokit["openapi-version"] = process.env.OCTOKIT_OPENAPI_VERSION.replace( | ||
/^v/, | ||
"" | ||
); | ||
writeFileSync("package.json", JSON.stringify(pkg, null, 2) + "\n"); |
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
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
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
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
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
4091909
96759