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

@octokit/auth-app

Package Overview
Dependencies
Maintainers
2
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.14 to 2.4.15

8

dist-node/index.js

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

const SIXTY_SECONDS_IN_MS = 60 * 1000;
const FIVE_SECONDS_IN_MS = 5 * 1000;
async function hook(state, request, route, parameters) {

@@ -311,3 +311,3 @@ let endpoint = request.endpoint.merge(route, parameters);

if (timeSinceTokenCreationInMs >= SIXTY_SECONDS_IN_MS) {
if (timeSinceTokenCreationInMs >= FIVE_SECONDS_IN_MS) {
throw error;

@@ -317,3 +317,3 @@ }

++retries;
const awaitTime = retries * retries * 1000;
const awaitTime = retries * 1000;
console.warn(`[@octokit/auth-app] Retrying after 401 response to account for token replication delay (retry: ${retries}, wait: ${awaitTime}ms)`);

@@ -325,3 +325,3 @@ await new Promise(resolve => setTimeout(resolve, awaitTime));

const VERSION = "2.4.14";
const VERSION = "2.4.15";

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

import { getAppAuthentication } from "./get-app-authentication";
import { getInstallationAuthentication } from "./get-installation-authentication";
import { requiresAppAuth } from "./requires-app-auth";
const SIXTY_SECONDS_IN_MS = 60 * 1000;
const FIVE_SECONDS_IN_MS = 5 * 1000;
export async function hook(state, request, route, parameters) {

@@ -32,7 +32,7 @@ let endpoint = request.endpoint.merge(route, parameters);

}
if (timeSinceTokenCreationInMs >= SIXTY_SECONDS_IN_MS) {
if (timeSinceTokenCreationInMs >= FIVE_SECONDS_IN_MS) {
throw error;
}
++retries;
const awaitTime = retries * retries * 1000;
const awaitTime = retries * 1000;
console.warn(`[@octokit/auth-app] Retrying after 401 response to account for token replication delay (retry: ${retries}, wait: ${awaitTime}ms)`);

@@ -39,0 +39,0 @@ await new Promise((resolve) => setTimeout(resolve, awaitTime));

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

export const VERSION = "2.4.14";
export const VERSION = "2.4.15";

@@ -9,3 +9,7 @@ import * as OctokitTypes from "@octokit/types";

export declare type RequestInterface = OctokitTypes.RequestInterface;
export declare type StrategyInterface = OctokitTypes.StrategyInterface<[StrategyOptions], [AuthOptions], Authentication>;
export declare type StrategyInterface = OctokitTypes.StrategyInterface<[
StrategyOptions
], [
AuthOptions
], Authentication>;
export declare type Cache = LRUCache<string, string> | {

@@ -12,0 +16,0 @@ get: (key: string) => string;

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

export declare const VERSION = "2.4.14";
export declare const VERSION = "2.4.15";

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

const SIXTY_SECONDS_IN_MS = 60 * 1000;
const FIVE_SECONDS_IN_MS = 5 * 1000;
async function hook(state, request, route, parameters) {

@@ -278,7 +278,7 @@ let endpoint = request.endpoint.merge(route, parameters);

}
if (timeSinceTokenCreationInMs >= SIXTY_SECONDS_IN_MS) {
if (timeSinceTokenCreationInMs >= FIVE_SECONDS_IN_MS) {
throw error;
}
++retries;
const awaitTime = retries * retries * 1000;
const awaitTime = retries * 1000;
console.warn(`[@octokit/auth-app] Retrying after 401 response to account for token replication delay (retry: ${retries}, wait: ${awaitTime}ms)`);

@@ -290,3 +290,3 @@ await new Promise((resolve) => setTimeout(resolve, awaitTime));

const VERSION = "2.4.14";
const VERSION = "2.4.15";

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

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

@@ -47,3 +47,3 @@ "files": [

"ts-jest": "^26.0.0",
"typescript": "^3.5.1"
"typescript": "^4.0.2"
},

@@ -50,0 +50,0 @@ "publishConfig": {

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