Socket
Socket
Sign inDemoInstall

@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.2.1 to 2.0.0

39

dist-node/index.js

@@ -13,5 +13,6 @@ 'use strict';

var btoa = _interopDefault(require('btoa-lite'));
var authUnauthenticated = require('@octokit/auth-unauthenticated');
var fromEntries = _interopDefault(require('fromentries'));
const VERSION = "1.2.1";
const VERSION = "2.0.0";

@@ -306,3 +307,13 @@ function addEventHandler(state, eventName, eventHandler) {

action: "deleted",
token: options.token
token: options.token,
get octokit() {
return new state.Octokit({
authStrategy: authUnauthenticated.createUnauthenticatedAuth,
auth: {
reason: `Handling "token.deleted" event. The access for the token has been revoked.`
}
});
}
});

@@ -365,3 +376,13 @@ return result;

action: "deleted",
token: options.token
token: options.token,
get octokit() {
return new state.Octokit({
authStrategy: authUnauthenticated.createUnauthenticatedAuth,
auth: {
reason: `Handling "token.deleted" event. The access for the token has been revoked.`
}
});
}
});

@@ -371,3 +392,13 @@ await emitEvent(state, {

action: "deleted",
token: options.token
token: options.token,
get octokit() {
return new state.Octokit({
authStrategy: authUnauthenticated.createUnauthenticatedAuth,
auth: {
reason: `Handling "authorization.deleted" event. The access for the app has been revoked.`
}
});
}
});

@@ -374,0 +405,0 @@ return result;

import { createOAuthAppAuth } from "@octokit/auth-oauth-app";
import { createUnauthenticatedAuth } from "@octokit/auth-unauthenticated";
import { request as defaultRequest } from "@octokit/request";

@@ -47,2 +48,10 @@ import { emitEvent } from "../emit-event";

token: options.token,
get octokit() {
return new state.Octokit({
authStrategy: createUnauthenticatedAuth,
auth: {
reason: `Handling "token.deleted" event. The access for the token has been revoked.`,
},
});
},
});

@@ -53,4 +62,12 @@ await emitEvent(state, {

token: options.token,
get octokit() {
return new state.Octokit({
authStrategy: createUnauthenticatedAuth,
auth: {
reason: `Handling "authorization.deleted" event. The access for the app has been revoked.`,
},
});
},
});
return result;
}
import { request as defaultRequest } from "@octokit/request";
import { createUnauthenticatedAuth } from "@octokit/auth-unauthenticated";
import btoa from "btoa-lite";

@@ -36,4 +37,12 @@ import { emitEvent } from "../emit-event";

token: options.token,
get octokit() {
return new state.Octokit({
authStrategy: createUnauthenticatedAuth,
auth: {
reason: `Handling "token.deleted" event. The access for the token has been revoked.`,
},
});
},
});
return result;
}

2

dist-src/version.js

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

export const VERSION = "1.2.1";
export const VERSION = "2.0.0";

@@ -37,3 +37,3 @@ import { OAuthAppOctokit } from "./oauth-app-octokit";

scopes?: Scope[];
octokit?: InstanceType<typeof OAuthAppOctokit>;
octokit: InstanceType<typeof OAuthAppOctokit>;
};

@@ -40,0 +40,0 @@ export declare type EventHandler = (context: EventHandlerContext) => void;

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

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

@@ -21,2 +21,3 @@ "files": [

"@octokit/auth-oauth-app": "^3.0.0",
"@octokit/auth-unauthenticated": "^2.0.0",
"@octokit/core": "^3.0.0",

@@ -23,0 +24,0 @@ "@octokit/oauth-authorization-url": "^4.1.0",

@@ -59,3 +59,3 @@ # oauth-app.js

Install with `npm install @octokit/core @octokit/oauth-app`
Install with `npm install @octokit/oauth-app`

@@ -275,3 +275,3 @@ ```js

Not set for `"token.deleted"` and `"authorization.deleted"` events.
For `"token.deleted"` and `"authorization.deleted"` events the `octokit` instance is unauthenticated.

@@ -281,3 +281,3 @@ </td></tr>

<th>
<code>scopes</code>
<code>context.scopes</code>
</th>

@@ -1165,5 +1165,5 @@ <th>

A middle ware is a method or set of methods to handle requests for common environments.
A middleware is a method or set of methods to handle requests for common environments.
By default, all middlewares exposes the following routes
By default, all middlewares expose the following routes

@@ -1236,3 +1236,4 @@ | Route | Route Description |

</td></tr>
</td>
</tr>
<tr>

@@ -1266,4 +1267,2 @@ <th>

####
## Contributing

@@ -1270,0 +1269,0 @@

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