@octokit/plugin-throttling
Advanced tools
Comparing version 9.3.1 to 9.3.2
@@ -116,3 +116,6 @@ // pkg/dist-src/index.js | ||
} | ||
const common = { connection, timeout }; | ||
const common = { timeout }; | ||
if (typeof connection !== "undefined") { | ||
common.connection = connection; | ||
} | ||
if (groups.global == null) { | ||
@@ -158,3 +161,3 @@ createGroups(Bottleneck, common); | ||
const shouldRetryGraphQL = pathname.startsWith("/graphql") && error.status !== 401; | ||
if (!(shouldRetryGraphQL || error.status === 403)) { | ||
if (!(shouldRetryGraphQL || error.status === 403 || error.status === 429)) { | ||
return; | ||
@@ -161,0 +164,0 @@ } |
@@ -46,3 +46,6 @@ import BottleneckLight from "bottleneck/light.js"; | ||
} | ||
const common = { connection, timeout }; | ||
const common = { timeout }; | ||
if (typeof connection !== "undefined") { | ||
common.connection = connection; | ||
} | ||
if (groups.global == null) { | ||
@@ -88,3 +91,3 @@ createGroups(Bottleneck, common); | ||
const shouldRetryGraphQL = pathname.startsWith("/graphql") && error.status !== 401; | ||
if (!(shouldRetryGraphQL || error.status === 403)) { | ||
if (!(shouldRetryGraphQL || error.status === 403 || error.status === 429)) { | ||
return; | ||
@@ -91,0 +94,0 @@ } |
@@ -1,4 +0,4 @@ | ||
const VERSION = "9.3.1"; | ||
const VERSION = "9.3.2"; | ||
export { | ||
VERSION | ||
}; |
@@ -42,2 +42,6 @@ import type { Octokit } from "@octokit/core"; | ||
} & Required<Groups> & ThrottlingOptions; | ||
export type CreateGroupsCommon = { | ||
connection?: Bottleneck.RedisConnection | Bottleneck.IORedisConnection; | ||
timeout: number; | ||
}; | ||
export {}; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "9.3.1"; | ||
export declare const VERSION = "9.3.2"; |
{ | ||
"name": "@octokit/plugin-throttling", | ||
"version": "9.3.1", | ||
"version": "9.3.2", | ||
"publishConfig": { | ||
@@ -23,9 +23,9 @@ "access": "public", | ||
"@octokit/request-error": "^6.0.1", | ||
"@octokit/tsconfig": "^3.0.0", | ||
"@octokit/tsconfig": "^4.0.0", | ||
"@types/node": "^20.0.0", | ||
"@vitest/coverage-v8": "^2.0.2", | ||
"esbuild": "^0.23.0", | ||
"fetch-mock": "^10.0.0", | ||
"esbuild": "^0.24.0", | ||
"fetch-mock": "^11.0.0", | ||
"github-openapi-graphql-query": "^4.0.0", | ||
"glob": "^10.2.6", | ||
"glob": "^11.0.0", | ||
"npm-run-all2": "^6.0.0", | ||
@@ -32,0 +32,0 @@ "prettier": "3.3.3", |
@@ -34,4 +34,2 @@ # plugin-throttling.js | ||
**Note**: If you use it with `@octokit/rest` v16, install `@octokit/core` as a devDependency. This is only temporary and will no longer be necessary with `@octokit/rest` v17. | ||
```js | ||
@@ -38,0 +36,0 @@ import { Octokit } from "@octokit/core"; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39014
497
238