Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@octokit/auth-app

Package Overview
Dependencies
Maintainers
3
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@octokit/auth-app - npm Package Compare versions

Comparing version 2.4.1 to 2.4.2

4

dist-node/index.js

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

if (requiresAppAuth(endpoint.url)) {
if (requiresAppAuth(endpoint.url.replace(request.endpoint.DEFAULTS.baseUrl, ""))) {
const {

@@ -273,3 +273,3 @@ token

const VERSION = '2.4.1';
const VERSION = "2.4.2";

@@ -276,0 +276,0 @@ const createAppAuth = function createAppAuth(options) {

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

import { RequestError } from '@octokit/request-error';
import { RequestError } from "@octokit/request-error";
export async function getOAuthAuthentication(state, options, customRequest) {

@@ -3,0 +3,0 @@ const request = customRequest || state.request;

@@ -6,3 +6,3 @@ import { getAppAuthentication } from "./get-app-authentication";

let endpoint = request.endpoint.merge(route, parameters);
if (requiresAppAuth(endpoint.url)) {
if (requiresAppAuth(endpoint.url.replace(request.endpoint.DEFAULTS.baseUrl, ""))) {
const { token } = await getAppAuthentication(state.id, state.privateKey);

@@ -9,0 +9,0 @@ endpoint.headers.authorization = `bearer ${token}`;

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

export const VERSION = '2.4.1';
export const VERSION = "2.4.2";

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

export declare const VERSION = "2.4.1";
export declare const VERSION = "2.4.2";

@@ -235,3 +235,3 @@ import { getUserAgent } from 'universal-user-agent';

let endpoint = request.endpoint.merge(route, parameters);
if (requiresAppAuth(endpoint.url)) {
if (requiresAppAuth(endpoint.url.replace(request.endpoint.DEFAULTS.baseUrl, ""))) {
const { token } = await getAppAuthentication(state.id, state.privateKey);

@@ -246,3 +246,3 @@ endpoint.headers.authorization = `bearer ${token}`;

const VERSION = '2.4.1';
const VERSION = "2.4.2";

@@ -249,0 +249,0 @@ const createAppAuth = function createAppAuth(options) {

{
"name": "@octokit/auth-app",
"description": "GitHub App authentication for JavaScript",
"version": "2.4.1",
"version": "2.4.2",
"license": "MIT",

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

"lolex": "^5.0.0",
"prettier": "^1.18.2",
"semantic-release": "^15.13.24",

@@ -45,0 +46,0 @@ "semantic-release-plugin-update-version-in-files": "^1.0.0",

Sorry, the diff of this file is not supported yet

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