Socket
Socket
Sign inDemoInstall

cacheable-lookup

Package Overview
Dependencies
0
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.0.3 to 6.0.4

2

package.json
{
"name": "cacheable-lookup",
"version": "6.0.3",
"version": "6.0.4",
"description": "A cacheable dns.lookup(…) that respects TTL",

@@ -5,0 +5,0 @@ "engines": {

@@ -68,3 +68,7 @@ 'use strict';

return dnsPromise.catch(error => {
if (error.code === 'ENODATA' || error.code === 'ENOTFOUND') {
if (
error.code === 'ENODATA' ||
error.code === 'ENOTFOUND' ||
error.code === 'ENOENT' // Windows: name exists, but not this record type
) {
return [];

@@ -71,0 +75,0 @@ }

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