@octokit/auth-oauth-device
Advanced tools
Comparing version 3.1.1 to 3.1.2
@@ -9,17 +9,2 @@ 'use strict'; | ||
function _defineProperty(obj, key, value) { | ||
if (key in obj) { | ||
Object.defineProperty(obj, key, { | ||
value: value, | ||
enumerable: true, | ||
configurable: true, | ||
writable: true | ||
}); | ||
} else { | ||
obj[key] = value; | ||
} | ||
return obj; | ||
} | ||
function ownKeys(object, enumerableOnly) { | ||
@@ -30,5 +15,9 @@ var keys = Object.keys(object); | ||
var symbols = Object.getOwnPropertySymbols(object); | ||
if (enumerableOnly) symbols = symbols.filter(function (sym) { | ||
return Object.getOwnPropertyDescriptor(object, sym).enumerable; | ||
}); | ||
if (enumerableOnly) { | ||
symbols = symbols.filter(function (sym) { | ||
return Object.getOwnPropertyDescriptor(object, sym).enumerable; | ||
}); | ||
} | ||
keys.push.apply(keys, symbols); | ||
@@ -60,2 +49,17 @@ } | ||
function _defineProperty(obj, key, value) { | ||
if (key in obj) { | ||
Object.defineProperty(obj, key, { | ||
value: value, | ||
enumerable: true, | ||
configurable: true, | ||
writable: true | ||
}); | ||
} else { | ||
obj[key] = value; | ||
} | ||
return obj; | ||
} | ||
function _objectWithoutPropertiesLoose(source, excluded) { | ||
@@ -202,3 +206,3 @@ if (source == null) return {}; | ||
const VERSION = "3.1.1"; | ||
const VERSION = "3.1.2"; | ||
@@ -205,0 +209,0 @@ function createOAuthDeviceAuth(options) { |
@@ -1,1 +0,1 @@ | ||
export const VERSION = "3.1.1"; | ||
export const VERSION = "3.1.2"; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "3.1.1"; | ||
export declare const VERSION = "3.1.2"; |
@@ -103,3 +103,3 @@ import { getUserAgent } from 'universal-user-agent'; | ||
const VERSION = "3.1.1"; | ||
const VERSION = "3.1.2"; | ||
@@ -106,0 +106,0 @@ function createOAuthDeviceAuth(options) { |
{ | ||
"name": "@octokit/auth-oauth-device", | ||
"description": "GitHub OAuth Device authentication strategy for JavaScript", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "files": [ |
@@ -70,2 +70,3 @@ # auth-oauth-device.js | ||
clientId: "1234567890abcdef1234", | ||
scopes: ["public_repo"], | ||
onVerification(verification) { | ||
@@ -196,3 +197,3 @@ // verification example | ||
await prompt("press enter when you are ready to continue") | ||
await prompt("press enter when you are ready to continue"); | ||
}, | ||
@@ -199,0 +200,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
61131
546
657