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.15 to 2.5.0

10

dist-node/index.js

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

* In case of a 401 response, we retry with an exponential delay until more
* than one minute passes since the creation of the token.
* than five seconds pass since the creation of the token.
*

@@ -312,2 +312,6 @@ * @see https://github.com/octokit/auth-app.js/issues/65

if (timeSinceTokenCreationInMs >= FIVE_SECONDS_IN_MS) {
if (retries > 0) {
error.message = `After ${retries} retries within ${timeSinceTokenCreationInMs / 1000}s of creating the installation access token, the response remains 401. At this point, the cause may be an authentication problem or a system outage. Please check https://www.githubstatus.com for status information`;
}
throw error;

@@ -318,3 +322,3 @@ }

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

@@ -325,3 +329,3 @@ return sendRequestWithRetries(request, options, createdAt, retries);

const VERSION = "2.4.15";
const VERSION = "2.5.0";

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

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

* In case of a 401 response, we retry with an exponential delay until more
* than one minute passes since the creation of the token.
* than five seconds pass since the creation of the token.
*

@@ -34,2 +34,5 @@ * @see https://github.com/octokit/auth-app.js/issues/65

if (timeSinceTokenCreationInMs >= FIVE_SECONDS_IN_MS) {
if (retries > 0) {
error.message = `After ${retries} retries within ${timeSinceTokenCreationInMs / 1000}s of creating the installation access token, the response remains 401. At this point, the cause may be an authentication problem or a system outage. Please check https://www.githubstatus.com for status information`;
}
throw error;

@@ -39,3 +42,3 @@ }

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

@@ -42,0 +45,0 @@ return sendRequestWithRetries(request, options, createdAt, retries);

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

export const VERSION = "2.4.15";
export const VERSION = "2.5.0";

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

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

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

* In case of a 401 response, we retry with an exponential delay until more
* than one minute passes since the creation of the token.
* than five seconds pass since the creation of the token.
*

@@ -279,2 +279,5 @@ * @see https://github.com/octokit/auth-app.js/issues/65

if (timeSinceTokenCreationInMs >= FIVE_SECONDS_IN_MS) {
if (retries > 0) {
error.message = `After ${retries} retries within ${timeSinceTokenCreationInMs / 1000}s of creating the installation access token, the response remains 401. At this point, the cause may be an authentication problem or a system outage. Please check https://www.githubstatus.com for status information`;
}
throw error;

@@ -284,3 +287,3 @@ }

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

@@ -291,3 +294,3 @@ return sendRequestWithRetries(request, options, createdAt, retries);

const VERSION = "2.4.15";
const VERSION = "2.5.0";

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

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

@@ -6,0 +6,0 @@ "files": [

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