Socket
Socket
Sign inDemoInstall

typed-github-api

Package Overview
Dependencies
78
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.2 to 1.2.3

2

dist/api-fetch.js

@@ -23,3 +23,3 @@ "use strict";

// Check whether reached rate limit
if (response.headers.has("X-RateLimit-Remaining") && parseInt(response.headers.get("X-RateLimit-Remaining"), 10) <= 1) {
if (response.headers.has("X-RateLimit-Remaining") && parseInt(response.headers.get("X-RateLimit-Remaining"), 10) <= 0) {
const rateLimitReset = moment(parseInt(response.headers.get("X-RateLimit-Reset"), 10) * 1000);

@@ -26,0 +26,0 @@ logger.info(`GitHub rate limit reached, retrying at ${rateLimitReset.format("LTS")}`);

@@ -10,3 +10,3 @@ {

],
"version": "1.2.2",
"version": "1.2.3",
"author": "Nathan Phillips",

@@ -13,0 +13,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc