runtime-node-dns
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -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
2945
7
79