Socket
Socket
Sign inDemoInstall

@zeit/fetch-cached-dns

Package Overview
Dependencies
12
Maintainers
13
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

test.js

2

index.js

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc