cacheable-lookup
Advanced tools
Comparing version 4.2.2 to 4.2.3
{ | ||
"name": "cacheable-lookup", | ||
"version": "4.2.2", | ||
"version": "4.2.3", | ||
"description": "A cacheable dns.lookup(…) that respects the TTL", | ||
@@ -5,0 +5,0 @@ "engines": { |
@@ -21,3 +21,3 @@ # cacheable-lookup | ||
http.get('https://example.com', {lookup: cacheable.lookup}, response => { | ||
http.get('http://example.com', {lookup: cacheable.lookup}, response => { | ||
// Handle the response here | ||
@@ -36,3 +36,3 @@ }); | ||
http.get('https://example.com', response => { | ||
http.get('http://example.com', response => { | ||
// Handle the response here | ||
@@ -39,0 +39,0 @@ }); |
@@ -288,5 +288,10 @@ 'use strict'; | ||
setTimeout(() => { | ||
const timeout = setTimeout(() => { | ||
this._tickLocked = false; | ||
}, this._lockTime).unref(); | ||
}, this._lockTime); | ||
// There is no `timeout.unref()` when running inside an Electron renderer | ||
if (timeout.unref) { | ||
timeout.unref(); | ||
} | ||
} | ||
@@ -293,0 +298,0 @@ |
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
24765
504