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

octokit

Package Overview
Dependencies
Maintainers
2
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

octokit - npm Package Compare versions

Comparing version 2.0.4 to 2.0.5

8

dist-node/index.js

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

const VERSION = "2.0.4";
const VERSION = "2.0.5";

@@ -20,3 +20,3 @@ const Octokit = core.Octokit.plugin(pluginRestEndpointMethods.restEndpointMethods, pluginPaginateRest.paginateRest, pluginRetry.retry, pluginThrottling.throttling).defaults({

onRateLimit,
onAbuseLimit
onSecondaryRateLimit
}

@@ -36,4 +36,4 @@ }); // istanbul ignore next no need to test internals of the throttle plugin

function onAbuseLimit(retryAfter, options, octokit) {
octokit.log.warn(`Abuse detected for request ${options.method} ${options.url}`);
function onSecondaryRateLimit(retryAfter, options, octokit) {
octokit.log.warn(`SecondaryRateLimit detected for request ${options.method} ${options.url}`);

@@ -40,0 +40,0 @@ if (options.request.retryCount === 0) {

@@ -11,3 +11,3 @@ import { Octokit as OctokitCore } from "@octokit/core";

onRateLimit,
onAbuseLimit,
onSecondaryRateLimit,
},

@@ -25,4 +25,4 @@ });

// istanbul ignore next no need to test internals of the throttle plugin
function onAbuseLimit(retryAfter, options, octokit) {
octokit.log.warn(`Abuse detected for request ${options.method} ${options.url}`);
function onSecondaryRateLimit(retryAfter, options, octokit) {
octokit.log.warn(`SecondaryRateLimit detected for request ${options.method} ${options.url}`);
if (options.request.retryCount === 0) {

@@ -29,0 +29,0 @@ // only retries once

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

export const VERSION = "2.0.4";
export const VERSION = "2.0.5";

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

export declare const VERSION = "2.0.4";
export declare const VERSION = "2.0.5";

@@ -10,3 +10,3 @@ import { Octokit as Octokit$1 } from '@octokit/core';

const VERSION = "2.0.4";
const VERSION = "2.0.5";

@@ -17,3 +17,3 @@ const Octokit = Octokit$1.plugin(restEndpointMethods, paginateRest, retry, throttling).defaults({

onRateLimit,
onAbuseLimit,
onSecondaryRateLimit,
},

@@ -31,4 +31,4 @@ });

// istanbul ignore next no need to test internals of the throttle plugin
function onAbuseLimit(retryAfter, options, octokit) {
octokit.log.warn(`Abuse detected for request ${options.method} ${options.url}`);
function onSecondaryRateLimit(retryAfter, options, octokit) {
octokit.log.warn(`SecondaryRateLimit detected for request ${options.method} ${options.url}`);
if (options.request.retryCount === 0) {

@@ -35,0 +35,0 @@ // only retries once

{
"name": "octokit",
"description": "The all-batteries-included GitHub SDK for Browsers, Node.js, and Deno",
"version": "2.0.4",
"version": "2.0.5",
"license": "MIT",

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

@@ -278,3 +278,3 @@ # octokit.js

By default, requests are retried once and warnings are logged in case hitting a rate or abuse limit
By default, requests are retried once and warnings are logged in case of hitting a rate or secondary rate limit

@@ -294,5 +294,5 @@ ```js

},
onAbuseLimit: (retryAfter, options, octokit) => {
onSecondaryRateLimit: (retryAfter, options, octokit) => {
octokit.log.warn(
`Abuse detected for request ${options.method} ${options.url}`
`SecondaryRateLimit detected for request ${options.method} ${options.url}`
);

@@ -647,3 +647,3 @@

Exmaple: create a comment on new issues
Example: create a comment on new issues

@@ -650,0 +650,0 @@ ```js

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