@octokit/auth-app
Advanced tools
Comparing version 2.4.10 to 2.4.11
@@ -108,2 +108,7 @@ 'use strict'; | ||
const installationId = options.installationId || state.installationId; | ||
if (typeof installationId !== "number") { | ||
throw new Error("[@octokit/auth-app] installationId option is required for installation authentication."); | ||
} | ||
const optionsWithInstallationTokenFromState = Object.assign({ | ||
@@ -318,3 +323,3 @@ installationId | ||
const VERSION = "2.4.10"; | ||
const VERSION = "2.4.11"; | ||
@@ -321,0 +326,0 @@ const createAppAuth = function createAppAuth(options) { |
@@ -7,2 +7,5 @@ import { get, set } from "./cache"; | ||
state.installationId); | ||
if (typeof installationId !== "number") { | ||
throw new Error("[@octokit/auth-app] installationId option is required for installation authentication."); | ||
} | ||
const optionsWithInstallationTokenFromState = Object.assign({ installationId }, options); | ||
@@ -9,0 +12,0 @@ if (!options.refresh) { |
@@ -1,1 +0,1 @@ | ||
export const VERSION = "2.4.10"; | ||
export const VERSION = "2.4.11"; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "2.4.10"; | ||
export declare const VERSION = "2.4.11"; |
@@ -99,2 +99,5 @@ import { getUserAgent } from 'universal-user-agent'; | ||
state.installationId); | ||
if (typeof installationId !== "number") { | ||
throw new Error("[@octokit/auth-app] installationId option is required for installation authentication."); | ||
} | ||
const optionsWithInstallationTokenFromState = Object.assign({ installationId }, options); | ||
@@ -286,3 +289,3 @@ if (!options.refresh) { | ||
const VERSION = "2.4.10"; | ||
const VERSION = "2.4.11"; | ||
@@ -289,0 +292,0 @@ const createAppAuth = function createAppAuth(options) { |
{ | ||
"name": "@octokit/auth-app", | ||
"description": "GitHub App authentication for JavaScript", | ||
"version": "2.4.10", | ||
"version": "2.4.11", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "files": [ |
@@ -58,3 +58,3 @@ # auth-app.js | ||
⚠️ For usage in browsers: The private keys provide by GitHub are in `PKCS#1` format, but the WebCrypto API only supports `PKCS#8`. You need to convert it first: | ||
⚠️ For usage in browsers: The private keys provided by GitHub are in `PKCS#1` format, but the WebCrypto API only supports `PKCS#8`. You need to convert it first: | ||
@@ -61,0 +61,0 @@ ```shell |
Sorry, the diff of this file is not supported yet
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
103746
1013