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 2.0.5 to 2.1.0

9

dist-node/index.js

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

const VERSION = "2.0.5";
const VERSION = "2.1.0";

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

function getNodeMiddleware(app, {
function createNodeMiddleware(app, {
pathPrefix = "/api/github/oauth",

@@ -667,2 +667,6 @@ onUnhandledRequest = onUnhandledRequestDefault

function getNodeMiddleware(app, options) {
console.warn(`[@octokit/oauth-app] getNodeMiddleWare() is deprecated. Use createNodeMiddleware() instead`);
return createNodeMiddleware(app, options);
}
class OAuthApp {

@@ -704,2 +708,3 @@ constructor(options) {

exports.checkToken = checkToken;
exports.createNodeMiddleware = createNodeMiddleware;
exports.createToken = createToken;

@@ -706,0 +711,0 @@ exports.deleteAuthorization = deleteAuthorization;

@@ -11,2 +11,3 @@ import { createOAuthAppAuth } from "@octokit/auth-oauth-app";

import { deleteAuthorizationWithState, } from "./methods/delete-authorization";
import { createNodeMiddleware } from "./middleware/node/index";
export { getAuthorizationUrl } from "./methods/get-authorization-url";

@@ -18,3 +19,7 @@ export { createToken } from "./methods/create-token";

export { deleteAuthorization } from "./methods/delete-authorization";
export { getNodeMiddleware } from "./middleware/node/index";
export { createNodeMiddleware } from "./middleware/node/index";
export function getNodeMiddleware(app, options) {
console.warn(`[@octokit/oauth-app] getNodeMiddleWare() is deprecated. Use createNodeMiddleware() instead`);
return createNodeMiddleware(app, options);
}
export class OAuthApp {

@@ -21,0 +26,0 @@ constructor(options) {

import { middleware } from "./middleware";
import { onUnhandledRequestDefault } from "./on-unhandled-request-default";
export function getNodeMiddleware(app, { pathPrefix = "/api/github/oauth", onUnhandledRequest = onUnhandledRequestDefault, } = {}) {
export function createNodeMiddleware(app, { pathPrefix = "/api/github/oauth", onUnhandledRequest = onUnhandledRequestDefault, } = {}) {
return middleware.bind(null, app, {

@@ -5,0 +5,0 @@ pathPrefix,

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

export const VERSION = "2.0.5";
export const VERSION = "2.1.0";

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

/// <reference types="node" />
import { AppGetAuthorizationUrl } from "./methods/get-authorization-url";

@@ -8,2 +9,3 @@ import { AppCreateToken } from "./methods/create-token";

import { ConstructorOptions, OctokitInstance, AddEventHandler } from "./types";
import { MiddlewareOptions } from "./middleware/node/types";
export { getAuthorizationUrl } from "./methods/get-authorization-url";

@@ -15,3 +17,4 @@ export { createToken } from "./methods/create-token";

export { deleteAuthorization } from "./methods/delete-authorization";
export { getNodeMiddleware } from "./middleware/node/index";
export { createNodeMiddleware } from "./middleware/node/index";
export declare function getNodeMiddleware(app: OAuthApp, options?: MiddlewareOptions): (request: import("http").IncomingMessage, response: import("http").ServerResponse) => Promise<void>;
export declare class OAuthApp {

@@ -18,0 +21,0 @@ static VERSION: string;

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

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

export declare const VERSION = "2.0.5";
export declare const VERSION = "2.1.0";
{
"name": "@octokit/oauth-app",
"description": "GitHub OAuth toolset for Node.js",
"version": "2.0.5",
"version": "2.1.0",
"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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc