@zeit/fetch-cached-dns
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -21,3 +21,3 @@ const { isIP } = require('net'); | ||
} | ||
parsed.host = await resolve(parsed.hostname); | ||
parsed.hostname = await resolve(parsed.hostname); | ||
url = format(parsed); | ||
@@ -24,0 +24,0 @@ } |
{ | ||
"name": "@zeit/fetch-cached-dns", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A decorator on top of `fetch` that caches the DNS query of the `hostname` of the passed URL", | ||
"scripts": { | ||
"test": "jest test", | ||
"lint": "eslint .", | ||
"lint:staged": "lint-staged" | ||
}, | ||
"main": "index.js", | ||
@@ -11,2 +16,31 @@ "repository": { | ||
"author": "Nathan Rajlich <nate@zeit.co>", | ||
"pre-commit": "lint:staged", | ||
"lint-staged": { | ||
"*.js": [ | ||
"eslint", | ||
"prettier --write --single-quote --no-semi", | ||
"git add" | ||
] | ||
}, | ||
"eslintConfig": { | ||
"parserOptions": { | ||
"ecmaVersion": 8, | ||
"sourceType": "script" | ||
}, | ||
"extends": [ | ||
"eslint:recommended" | ||
], | ||
"env": { | ||
"es6": true, | ||
"node": true | ||
}, | ||
"rules": { | ||
"func-names": [ | ||
"error", | ||
"as-needed" | ||
], | ||
"no-shadow": "error", | ||
"no-extra-semi": 0 | ||
} | ||
}, | ||
"bugs": { | ||
@@ -21,3 +55,11 @@ "url": "https://github.com/zeit/fetch-cached-dns/issues" | ||
"@zeit/dns-cached-resolve": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"eslint": "4.10.0", | ||
"jest": "21.2.1", | ||
"lint-staged": "4.3.0", | ||
"node-fetch": "^1.7.3", | ||
"pre-commit": "1.2.2", | ||
"prettier": "1.7.4" | ||
} | ||
} |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
111940
6
50
6
7