Socket
Socket
Sign inDemoInstall

runtime-node-dns

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.3 to 1.1.4

7

lib/dns.js

@@ -12,4 +12,3 @@ 'use strict';

const self = this;
const data = self._cache.get(hostname);
const data = this._cache.get(hostname);

@@ -23,3 +22,3 @@ if (data && data.expires > Date.now()) {

dns.resolve(hostname, {}, function (err, data) {
dns.resolve(hostname, {}, (err, data) => {
if (err) {

@@ -35,3 +34,3 @@ return cb(err);

self._cache.set(hostname, {
this._cache.set(hostname, {
address: address,

@@ -38,0 +37,0 @@ expires: Date.now() + record.ttl

{
"name": "runtime-node-dns",
"version": "1.1.3",
"version": "1.1.4",
"description": "Wrapper around runtime-dns with node.js compatible api",

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

"is-ip": "^1.0.0",
"runtime-tools": "^0.5.0",
"runtimeify": "^0.3.1",
"runtimejs": "^0.1.13",
"runtime-tools": "^1.0.0",
"runtimeify": "^1.0.0",
"runtimejs": "^0.1.18",
"split": "^1.0.0",

@@ -23,0 +23,0 @@ "tap-finished": "0.0.1",

Sorry, the diff of this file is not supported yet

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