@octokit/auth-app
Advanced tools
Comparing version 3.3.0 to 3.4.0
@@ -459,5 +459,17 @@ 'use strict'; | ||
const VERSION = "3.3.0"; | ||
const VERSION = "3.4.0"; | ||
const createAppAuth = function createAppAuth(options) { | ||
if (!options.appId) { | ||
throw new Error("[@octokit/auth-app] appId option is required"); | ||
} | ||
if (!options.privateKey) { | ||
throw new Error("[@octokit/auth-app] privateKey option is required"); | ||
} | ||
if ("installationId" in options && !options.installationId) { | ||
throw new Error("[@octokit/auth-app] installationId is set to a falsy value"); | ||
} | ||
const log = Object.assign({ | ||
@@ -464,0 +476,0 @@ warn: console.warn.bind(console) |
@@ -10,2 +10,11 @@ import { getUserAgent } from "universal-user-agent"; | ||
export const createAppAuth = function createAppAuth(options) { | ||
if (!options.appId) { | ||
throw new Error("[@octokit/auth-app] appId option is required"); | ||
} | ||
if (!options.privateKey) { | ||
throw new Error("[@octokit/auth-app] privateKey option is required"); | ||
} | ||
if ("installationId" in options && !options.installationId) { | ||
throw new Error("[@octokit/auth-app] installationId is set to a falsy value"); | ||
} | ||
const log = Object.assign({ | ||
@@ -12,0 +21,0 @@ warn: console.warn.bind(console), |
@@ -1,1 +0,1 @@ | ||
export const VERSION = "3.3.0"; | ||
export const VERSION = "3.4.0"; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "3.3.0"; | ||
export declare const VERSION = "3.4.0"; |
@@ -329,5 +329,14 @@ import { getUserAgent } from 'universal-user-agent'; | ||
const VERSION = "3.3.0"; | ||
const VERSION = "3.4.0"; | ||
const createAppAuth = function createAppAuth(options) { | ||
if (!options.appId) { | ||
throw new Error("[@octokit/auth-app] appId option is required"); | ||
} | ||
if (!options.privateKey) { | ||
throw new Error("[@octokit/auth-app] privateKey option is required"); | ||
} | ||
if ("installationId" in options && !options.installationId) { | ||
throw new Error("[@octokit/auth-app] installationId is set to a falsy value"); | ||
} | ||
const log = Object.assign({ | ||
@@ -334,0 +343,0 @@ warn: console.warn.bind(console), |
{ | ||
"name": "@octokit/auth-app", | ||
"description": "GitHub App authentication for JavaScript", | ||
"version": "3.3.0", | ||
"version": "3.4.0", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "files": [ |
@@ -559,6 +559,6 @@ # auth-app.js | ||
<th> | ||
<code>array of string</code> | ||
<code>array of numbers</code> | ||
</th> | ||
<td> | ||
The `id`s of the repositories that the installation token can access. | ||
The <code>id</code> of the repositories that the installation token can access. Also known as a <code>databaseID</code> when querying the repository object in GitHub's GraphQL API. | ||
</td> | ||
@@ -779,3 +779,2 @@ </tr> | ||
console.log("Enter code: %s", verification.user_code); | ||
await prompt("press enter when you are ready to continue") | ||
@@ -782,0 +781,0 @@ }, |
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
143855
1297
1386