@octokit/plugin-throttling
Advanced tools
Comparing version 8.2.0 to 9.0.0
import BottleneckLight from "bottleneck/light"; | ||
import { Octokit } from "@octokit/core"; | ||
import { VERSION } from "./version"; | ||
import { wrapRequest } from "./wrap-request"; | ||
import triggersNotificationPaths from "./generated/triggers-notification-paths"; | ||
import { routeMatcher } from "./route-matcher"; | ||
import { VERSION } from "./version.js"; | ||
import { wrapRequest } from "./wrap-request.js"; | ||
import triggersNotificationPaths from "./generated/triggers-notification-paths.js"; | ||
import { routeMatcher } from "./route-matcher.js"; | ||
const regex = routeMatcher(triggersNotificationPaths); | ||
@@ -8,0 +8,0 @@ const triggersNotification = regex.test.bind(regex); |
@@ -1,4 +0,4 @@ | ||
const VERSION = "8.2.0"; | ||
const VERSION = "9.0.0"; | ||
export { | ||
VERSION | ||
}; |
import { Octokit } from "@octokit/core"; | ||
import type { OctokitOptions } from "@octokit/core/dist-types/types.d"; | ||
import type { ThrottlingOptions } from "./types"; | ||
import type { OctokitOptions } from "@octokit/core"; | ||
import type { ThrottlingOptions } from "./types.js"; | ||
export declare function throttling(octokit: Octokit, octokitOptions: OctokitOptions): {}; | ||
@@ -9,3 +9,3 @@ export declare namespace throttling { | ||
} | ||
declare module "@octokit/core/dist-types/types.d" { | ||
declare module "@octokit/core" { | ||
interface OctokitOptions { | ||
@@ -12,0 +12,0 @@ throttle?: ThrottlingOptions; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "8.2.0"; | ||
export declare const VERSION = "9.0.0"; |
import type { EndpointDefaults, OctokitResponse } from "@octokit/types"; | ||
import type { State } from "./types"; | ||
import type { State } from "./types.js"; | ||
export declare function wrapRequest(state: State, request: ((options: Required<EndpointDefaults>) => Promise<OctokitResponse<any>>) & { | ||
retryCount: number; | ||
}, options: Required<EndpointDefaults>): Promise<OctokitResponse<any, number>>; |
{ | ||
"name": "@octokit/plugin-throttling", | ||
"version": "8.2.0", | ||
"version": "9.0.0", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"type": "module", | ||
"description": "Octokit plugin for GitHub's recommended request throttling", | ||
@@ -12,12 +13,12 @@ "repository": "github:octokit/plugin-throttling.js", | ||
"dependencies": { | ||
"@octokit/types": "^12.2.0", | ||
"@octokit/types": "^12.6.0", | ||
"bottleneck": "^2.15.3" | ||
}, | ||
"peerDependencies": { | ||
"@octokit/core": "^5.0.0" | ||
"@octokit/core": "^6.0.0" | ||
}, | ||
"devDependencies": { | ||
"@octokit/core": "^5.0.0", | ||
"@octokit/request-error": "^5.0.0", | ||
"@octokit/tsconfig": "^2.0.0", | ||
"@octokit/core": "^6.0.0", | ||
"@octokit/request-error": "^6.0.1", | ||
"@octokit/tsconfig": "^3.0.0", | ||
"@types/fetch-mock": "^7.3.1", | ||
@@ -27,3 +28,3 @@ "@types/jest": "^29.0.0", | ||
"esbuild": "^0.20.0", | ||
"fetch-mock": "^9.0.0", | ||
"fetch-mock": "npm:@gr2m/fetch-mock@9.11.0-pull-request-644.1", | ||
"github-openapi-graphql-query": "^4.0.0", | ||
@@ -45,7 +46,9 @@ "glob": "^10.2.6", | ||
], | ||
"main": "dist-node/index.js", | ||
"browser": "dist-web/index.js", | ||
"types": "dist-types/index.d.ts", | ||
"module": "dist-src/index.js", | ||
"exports": { | ||
".": { | ||
"types": "./dist-types/index.d.ts", | ||
"import": "./dist-bundle/index.js" | ||
} | ||
}, | ||
"sideEffects": false | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Yes
38330
16
490
1
+ Added@octokit/auth-token@5.1.1(transitive)
+ Added@octokit/core@6.1.2(transitive)
+ Added@octokit/endpoint@10.1.1(transitive)
+ Added@octokit/graphql@8.1.1(transitive)
+ Added@octokit/request@9.1.3(transitive)
+ Added@octokit/request-error@6.1.4(transitive)
+ Addedbefore-after-hook@3.0.2(transitive)
+ Addeduniversal-user-agent@7.0.2(transitive)
- Removed@octokit/auth-token@4.0.0(transitive)
- Removed@octokit/core@5.2.0(transitive)
- Removed@octokit/endpoint@9.0.5(transitive)
- Removed@octokit/graphql@7.1.0(transitive)
- Removed@octokit/request@8.4.0(transitive)
- Removed@octokit/request-error@5.1.0(transitive)
- Removedbefore-after-hook@2.2.3(transitive)
- Removeddeprecation@2.3.1(transitive)
- Removedonce@1.4.0(transitive)
- Removeduniversal-user-agent@6.0.1(transitive)
- Removedwrappy@1.0.2(transitive)
Updated@octokit/types@^12.6.0