@octokit/auth-oauth-user
Advanced tools
Comparing version 1.2.4 to 1.3.0
@@ -13,17 +13,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) { | ||
@@ -34,5 +19,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); | ||
@@ -64,2 +53,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) { | ||
@@ -101,3 +105,3 @@ if (source == null) return {}; | ||
const VERSION = "1.2.4"; | ||
const VERSION = "1.3.0"; | ||
@@ -296,2 +300,3 @@ async function getAuthentication(state) { | ||
const _excluded = ["clientId", "clientSecret", "clientType", "request"]; | ||
function createOAuthUserAuth(_ref) { | ||
@@ -308,3 +313,3 @@ let { | ||
} = _ref, | ||
strategyOptions = _objectWithoutProperties(_ref, ["clientId", "clientSecret", "clientType", "request"]); | ||
strategyOptions = _objectWithoutProperties(_ref, _excluded); | ||
@@ -311,0 +316,0 @@ const state = Object.assign({ |
@@ -1,1 +0,1 @@ | ||
export const VERSION = "1.2.4"; | ||
export const VERSION = "1.3.0"; |
@@ -105,7 +105,7 @@ import * as OctokitTypes from "@octokit/types"; | ||
export declare type OAuthAppAuthOptions = { | ||
type?: "check" | "reset" | "delete" | "deleteAuthorization"; | ||
type?: "get" | "check" | "reset" | "delete" | "deleteAuthorization"; | ||
}; | ||
export declare type GitHubAppAuthOptions = { | ||
type?: "check" | "reset" | "refresh" | "delete" | "deleteAuthorization"; | ||
type?: "get" | "check" | "reset" | "refresh" | "delete" | "deleteAuthorization"; | ||
}; | ||
export {}; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "1.2.4"; | ||
export declare const VERSION = "1.3.0"; |
@@ -7,3 +7,3 @@ import { getUserAgent } from 'universal-user-agent'; | ||
const VERSION = "1.2.4"; | ||
const VERSION = "1.3.0"; | ||
@@ -10,0 +10,0 @@ // @ts-nocheck there is only place for one of us in this file. And it's not you, TS |
{ | ||
"name": "@octokit/auth-oauth-user", | ||
"description": "Octokit authentication strategy for OAuth clients", | ||
"version": "1.2.4", | ||
"version": "1.3.0", | ||
"license": "MIT", | ||
@@ -39,8 +39,8 @@ "files": [ | ||
"fetch-mock": "^9.11.0", | ||
"jest": "^26.6.3", | ||
"jest": "^27.0.0", | ||
"mockdate": "^3.0.4", | ||
"prettier": "^2.2.1", | ||
"prettier": "2.3.1", | ||
"semantic-release": "^17.4.1", | ||
"semantic-release-plugin-update-version-in-files": "^1.1.0", | ||
"ts-jest": "^26.5.3", | ||
"ts-jest": "^27.0.0-next.12", | ||
"typescript": "^4.2.3" | ||
@@ -47,0 +47,0 @@ }, |
@@ -386,3 +386,3 @@ # auth-oauth-user.js | ||
await prompt("press enter when you are ready to continue") | ||
await prompt("press enter when you are ready to continue"); | ||
}, | ||
@@ -413,3 +413,3 @@ }); | ||
await prompt("press enter when you are ready to continue") | ||
await prompt("press enter when you are ready to continue"); | ||
}, | ||
@@ -595,2 +595,3 @@ request: request.defaults({ | ||
- `"get"`: returns the token from internal state and creates it if none was created yet | ||
- `"check"`: sends request to verify the validity of the current token | ||
@@ -597,0 +598,0 @@ - `"reset"`: invalidates current token and replaces it with a new one |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
95510
820
1011