Socket
Socket
Sign inDemoInstall

@octokit/oauth-app

Package Overview
Dependencies
9
Maintainers
4
Versions
67
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.0-beta.4 to 5.0.0-beta.5

17

dist-node/index.js

@@ -45,3 +45,3 @@ "use strict";

// pkg/dist-src/version.js
var VERSION = "5.0.0-beta.4";
var VERSION = "5.0.0-beta.5";

@@ -408,3 +408,2 @@ // pkg/dist-src/add-event-handler.js

async function handleRequest(app, { pathPrefix = "/api/github/oauth" }, request) {
var _a, _b, _c, _d, _e, _f;
if (request.method === "OPTIONS") {

@@ -513,3 +512,3 @@ return {

if (route === routes.getToken) {
const token2 = (_a = headers.authorization) == null ? void 0 : _a.substr("token ".length);
const token2 = headers.authorization?.substr("token ".length);
if (!token2) {

@@ -534,3 +533,3 @@ throw new Error(

if (route === routes.patchToken) {
const token2 = (_b = headers.authorization) == null ? void 0 : _b.substr("token ".length);
const token2 = headers.authorization?.substr("token ".length);
if (!token2) {

@@ -553,3 +552,3 @@ throw new Error(

if (route === routes.patchRefreshToken) {
const token2 = (_c = headers.authorization) == null ? void 0 : _c.substr("token ".length);
const token2 = headers.authorization?.substr("token ".length);
if (!token2) {

@@ -578,3 +577,3 @@ throw new Error(

if (route === routes.scopeToken) {
const token2 = (_d = headers.authorization) == null ? void 0 : _d.substr("token ".length);
const token2 = headers.authorization?.substr("token ".length);
if (!token2) {

@@ -600,3 +599,3 @@ throw new Error(

if (route === routes.deleteToken) {
const token2 = (_e = headers.authorization) == null ? void 0 : _e.substr("token ".length);
const token2 = headers.authorization?.substr("token ".length);
if (!token2) {

@@ -615,3 +614,3 @@ throw new Error(

}
const token = (_f = headers.authorization) == null ? void 0 : _f.substr("token ".length);
const token = headers.authorization?.substr("token ".length);
if (!token) {

@@ -669,3 +668,3 @@ throw new Error(

} else {
next == null ? void 0 : next();
next?.();
return false;

@@ -672,0 +671,0 @@ }

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

const VERSION = "5.0.0-beta.4";
const VERSION = "5.0.0-beta.5";
export {
VERSION
};

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

export declare const VERSION = "5.0.0-beta.4";
export declare const VERSION = "5.0.0-beta.5";
{
"name": "@octokit/oauth-app",
"version": "5.0.0-beta.4",
"version": "5.0.0-beta.5",
"description": "GitHub OAuth toolset for Node.js",

@@ -46,3 +46,3 @@ "repository": "github:octokit/oauth-app.js",

"engines": {
"node": ">= 14"
"node": ">= 18"
},

@@ -49,0 +49,0 @@ "files": [

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc