@octokit/oauth-app
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
128842
1428
0