Socket
Socket
Sign inDemoInstall

@octokit/plugin-throttling

Package Overview
Dependencies
Maintainers
4
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@octokit/plugin-throttling - npm Package Compare versions

Comparing version 8.2.0 to 9.0.0

dist-bundle/index.js

8

dist-src/index.js
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
}
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