Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@octokit/oauth-app

Package Overview
Dependencies
Maintainers
2
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@octokit/oauth-app - npm Package Compare versions

Comparing version 1.1.2 to 1.2.0

76

dist-node/index.js

@@ -15,3 +15,3 @@ 'use strict';

const VERSION = "1.1.2";
const VERSION = "1.2.0";

@@ -38,18 +38,51 @@ function addEventHandler(state, eventName, eventHandler) {

function getAuthorizationUrl(options) {
const {
url
} = oauthAuthorizationUrl.oauthAuthorizationUrl(options);
return url;
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 getAuthorizationUrlWithState(state, options) {
return getAuthorizationUrl(Object.assign({
clientId: state.clientId,
allowSignup: state.allowSignup,
baseUrl: state.baseUrl,
log: state.log,
scopes: state.defaultScopes
}, options));
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
if (enumerableOnly) symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
});
keys.push.apply(keys, symbols);
}
return keys;
}
function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
if (i % 2) {
ownKeys(Object(source), true).forEach(function (key) {
_defineProperty(target, key, source[key]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
} else {
ownKeys(Object(source)).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}
}
return target;
}
function _objectWithoutPropertiesLoose(source, excluded) {

@@ -91,2 +124,17 @@ if (source == null) return {};

function getAuthorizationUrl(options) {
const {
url
} = oauthAuthorizationUrl.oauthAuthorizationUrl(options);
return url;
}
function getAuthorizationUrlWithState(state, options) {
return getAuthorizationUrl(_objectSpread2({}, options, {
clientId: options.clientId || state.clientId,
allowSignup: options.allowSignup || state.allowSignup,
baseUrl: options.baseUrl || state.baseUrl,
scopes: options.scopes || state.defaultScopes
}));
}
async function emitEvent(state, context) {

@@ -93,0 +141,0 @@ const {

14

dist-src/methods/get-authorization-url.js

@@ -7,9 +7,9 @@ import { oauthAuthorizationUrl } from "@octokit/oauth-authorization-url";

export function getAuthorizationUrlWithState(state, options) {
return getAuthorizationUrl(Object.assign({
clientId: state.clientId,
allowSignup: state.allowSignup,
baseUrl: state.baseUrl,
log: state.log,
scopes: state.defaultScopes,
}, options));
return getAuthorizationUrl({
...options,
clientId: options.clientId || state.clientId,
allowSignup: options.allowSignup || state.allowSignup,
baseUrl: options.baseUrl || state.baseUrl,
scopes: options.scopes || state.defaultScopes,
});
}

@@ -1,1 +0,1 @@

export const VERSION = "1.1.2";
export const VERSION = "1.2.0";

@@ -1,1 +0,1 @@

export declare const VERSION = "1.1.2";
export declare const VERSION = "1.2.0";
{
"name": "@octokit/oauth-app",
"description": "GitHub OAuth toolset for Node.js",
"version": "1.1.2",
"version": "1.2.0",
"license": "MIT",

@@ -22,3 +22,3 @@ "files": [

"@octokit/core": "^3.0.0",
"@octokit/oauth-authorization-url": "^4.0.0",
"@octokit/oauth-authorization-url": "^4.1.0",
"@types/btoa-lite": "^1.0.0",

@@ -37,3 +37,3 @@ "btoa-lite": "^1.0.0",

"fetch-mock": "^9.0.0",
"jest": "^25.1.0",
"jest": "^26.1.0",
"nock": "^13.0.0",

@@ -44,4 +44,4 @@ "node-fetch": "^2.6.0",

"semantic-release-plugin-update-version-in-files": "^1.0.0",
"ts-jest": "^25.3.0",
"typescript": "^3.7.5"
"ts-jest": "^26.1.3",
"typescript": "^4.0.2"
},

@@ -48,0 +48,0 @@ "publishConfig": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc