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

cacheable-lookup

Package Overview
Dependencies
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cacheable-lookup - npm Package Compare versions

Comparing version 4.2.2 to 4.2.3

2

package.json
{
"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 @@

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