@octokit/auth-app
Advanced tools
Comparing version 7.0.0 to 7.1.0
@@ -15,3 +15,3 @@ // pkg/dist-src/index.js | ||
const appAuthentication = await githubAppJwt({ | ||
id: +appId, | ||
id: appId, | ||
privateKey, | ||
@@ -388,3 +388,3 @@ now: timeDifference && Math.floor(Date.now() / 1e3) + timeDifference | ||
// pkg/dist-src/version.js | ||
var VERSION = "7.0.0"; | ||
var VERSION = "7.1.0"; | ||
@@ -397,7 +397,2 @@ // pkg/dist-src/index.js | ||
} | ||
if (!Number.isFinite(+options.appId)) { | ||
throw new Error( | ||
"[@octokit/auth-app] appId option must be a number or numeric string" | ||
); | ||
} | ||
if (!options.privateKey) { | ||
@@ -404,0 +399,0 @@ throw new Error("[@octokit/auth-app] privateKey option is required"); |
@@ -9,3 +9,3 @@ import githubAppJwt from "universal-github-app-jwt"; | ||
const appAuthentication = await githubAppJwt({ | ||
id: +appId, | ||
id: appId, | ||
privateKey, | ||
@@ -12,0 +12,0 @@ now: timeDifference && Math.floor(Date.now() / 1e3) + timeDifference |
@@ -13,7 +13,2 @@ import { getUserAgent } from "universal-user-agent"; | ||
} | ||
if (!Number.isFinite(+options.appId)) { | ||
throw new Error( | ||
"[@octokit/auth-app] appId option must be a number or numeric string" | ||
); | ||
} | ||
if (!options.privateKey) { | ||
@@ -20,0 +15,0 @@ throw new Error("[@octokit/auth-app] privateKey option is required"); |
@@ -1,4 +0,4 @@ | ||
const VERSION = "7.0.0"; | ||
const VERSION = "7.1.0"; | ||
export { | ||
VERSION | ||
}; |
@@ -93,3 +93,3 @@ import * as OctokitTypes from "@octokit/types"; | ||
token: JWT; | ||
appId: number; | ||
appId: number | string; | ||
expiresAt: string; | ||
@@ -96,0 +96,0 @@ }; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "7.0.0"; | ||
export declare const VERSION = "7.1.0"; |
@@ -8,3 +8,3 @@ { | ||
"type": "module", | ||
"version": "7.0.0", | ||
"version": "7.1.0", | ||
"description": "GitHub App authentication for JavaScript", | ||
@@ -27,3 +27,3 @@ "repository": "github:octokit/auth-app.js", | ||
"lru-cache": "^10.0.0", | ||
"universal-github-app-jwt": "^2.0.6", | ||
"universal-github-app-jwt": "^2.2.0", | ||
"universal-user-agent": "^7.0.0" | ||
@@ -36,3 +36,3 @@ }, | ||
"@types/node": "^20.0.0", | ||
"esbuild": "^0.20.0", | ||
"esbuild": "^0.21.0", | ||
"fetch-mock": "npm:@gr2m/fetch-mock@9.11.0-pull-request-644.1", | ||
@@ -39,0 +39,0 @@ "glob": "^10.2.5", |
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
97046
1053