Socket
Socket
Sign inDemoInstall

@octokit/oauth-app

Package Overview
Dependencies
10
Maintainers
2
Versions
67
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0 to 3.0.1

3

dist-node/index.js

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

const VERSION = "3.0.0";
const VERSION = "3.0.1";

@@ -499,2 +499,3 @@ function addEventHandler(state, eventName, eventHandler) {

const {
// @ts-expect-error scopes won't be set for GitHub Apps
authentication: {

@@ -501,0 +502,0 @@ token,

@@ -70,3 +70,5 @@ import { parseRequest } from "./parse-request";

}
const { authentication: { token, scopes }, } = await app.createToken({
const {
// @ts-expect-error scopes won't be set for GitHub Apps
authentication: { token, scopes }, } = await app.createToken({
state: oauthState,

@@ -73,0 +75,0 @@ code,

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

export const VERSION = "3.0.0";
export const VERSION = "3.0.1";
/// <reference types="node" />
import { OAuthApp } from "../../index";
import { MiddlewareOptions } from "./types";
export declare function createNodeMiddleware(app: OAuthApp, { pathPrefix, onUnhandledRequest, }?: MiddlewareOptions): (request: import("http").IncomingMessage, response: import("http").ServerResponse) => Promise<void>;
export declare function createNodeMiddleware(app: OAuthApp<"oauth-app"> | OAuthApp<"github-app">, { pathPrefix, onUnhandledRequest, }?: MiddlewareOptions): (request: import("http").IncomingMessage, response: import("http").ServerResponse) => Promise<void>;

@@ -5,2 +5,2 @@ /// <reference types="node" />

import { MiddlewareOptions } from "./types";
export declare function middleware(app: OAuthApp, options: Required<MiddlewareOptions>, request: IncomingMessage, response: ServerResponse): Promise<void>;
export declare function middleware(app: OAuthApp<"oauth-app"> | OAuthApp<"github-app">, options: Required<MiddlewareOptions>, request: IncomingMessage, response: ServerResponse): Promise<void>;

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

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

@@ -6,0 +6,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