Comparing version 2.0.0 to 2.1.0
@@ -52,2 +52,3 @@ 'use strict' | ||
this.hasReturned = true | ||
return cb(err) | ||
@@ -63,2 +64,3 @@ }) | ||
if (opts.followRedirects === 0) { | ||
this.hasReturned = true | ||
return cb(null) | ||
@@ -75,2 +77,3 @@ } | ||
// Hostname not included; get host from requested URL (url.parse()) and prepend to location. | ||
this.hasReturned = true | ||
return cb(err) | ||
@@ -80,2 +83,3 @@ } | ||
} else { | ||
this.hasReturned = true | ||
return cb(null) | ||
@@ -86,2 +90,11 @@ } | ||
this._req.on('error', (err) => { | ||
if (this.hasReturned) { | ||
return | ||
} | ||
this.hasReturned = true | ||
return cb(err) | ||
}) | ||
this.startTime = Date.now() | ||
@@ -88,0 +101,0 @@ this._req.end() |
{ | ||
"name": "probe", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Ping and probe stuff.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
13375
15
496
4