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

retry-request

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

retry-request - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

13

index.js

@@ -41,2 +41,11 @@ 'use strict';

var activeRequest;
var retryRequest = {
abort: function() {
if (activeRequest && activeRequest.abort) {
activeRequest.abort();
}
}
};
if (streamMode) {

@@ -51,2 +60,4 @@ retryStream = through();

return retryStream;
} else {
return retryRequest;
}

@@ -76,3 +87,3 @@

} else {
opts.request(requestOpts, onResponse);
activeRequest = opts.request(requestOpts, onResponse);
}

@@ -79,0 +90,0 @@ }

2

package.json
{
"name": "retry-request",
"version": "1.2.2",
"version": "1.2.3",
"description": "Retry a request.",

@@ -5,0 +5,0 @@ "main": "index.js",

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