dns-prefetch-control
Advanced tools
Comparing version 0.1.0 to 0.2.0
{ | ||
"name": "dns-prefetch-control", | ||
"author": "Evan Hahn <me@evanhahn.com> (http://evanhahn.com)", | ||
"author": "Evan Hahn <me@evanhahn.com> (https://evanhahn.com)", | ||
"description": "Middleware to set X-DNS-Prefetch-Control header.", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"license": "MIT", | ||
@@ -16,2 +16,3 @@ "keywords": [ | ||
], | ||
"homepage": "https://helmetjs.github.io/docs/dns-prefetch-control", | ||
"repository": { | ||
@@ -21,19 +22,40 @@ "type": "git", | ||
}, | ||
"bugs": "https://github.com/helmetjs/dns-prefetch-control/issues", | ||
"bugs": { | ||
"url": "https://github.com/helmetjs/dns-prefetch-control/issues", | ||
"email": "me@evanhahn.com" | ||
}, | ||
"engines": { | ||
"node": ">=4.0.0" | ||
}, | ||
"files": [ | ||
"CHANGELOG.md", | ||
"LICENSE", | ||
"README.md", | ||
"dist/index.js", | ||
"dist/index.d.ts" | ||
], | ||
"scripts": { | ||
"test": "standard && mocha" | ||
"pretest": "npm run lint", | ||
"prepublishOnly": "npm run build", | ||
"lint": "eslint --fix '**/*.ts'", | ||
"test": "jest --config test/jest-config.json", | ||
"clean": "rm -rf dist", | ||
"build": "npm run clean && tsc" | ||
}, | ||
"main": "./dist/index.js", | ||
"typings": "./dist/index.d.ts", | ||
"devDependencies": { | ||
"connect": "^3.4.0", | ||
"mocha": "^2.3.4", | ||
"standard": "^5.4.1", | ||
"supertest": "^1.1.0" | ||
}, | ||
"standard": { | ||
"global": [ | ||
"beforeEach", | ||
"describe", | ||
"it" | ||
] | ||
"@types/connect": "^3.4.32", | ||
"@types/jest": "^24.0.12", | ||
"@types/supertest": "^2.0.7", | ||
"@typescript-eslint/eslint-plugin": "^1.8.0", | ||
"@typescript-eslint/parser": "^1.8.0", | ||
"connect": "^3.6.6", | ||
"eslint": "^5.16.0", | ||
"eslint-config-helmet": "^0.2.0", | ||
"jest": "^24.8.0", | ||
"supertest": "^4.0.2", | ||
"ts-jest": "^24.0.2", | ||
"typescript": "^3.4.5" | ||
} | ||
} |
DNS prefetch control header for Express | ||
======================================= | ||
[![Build Status](https://travis-ci.org/helmetjs/dns-prefetch-control.svg?branch=master)](https://travis-ci.org/helmetjs/dns-prefetch-control) | ||
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/) | ||
[_Looking for a changelog?_](https://github.com/helmetjs/helmet/blob/master/HISTORY.md) | ||
This middleware lets you set the `X-DNS-Prefetch-Control` to control browsers' DNS prefetching. Read more about it [on MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Controlling_DNS_prefetching) and [on Chromium's docs](https://dev.chromium.org/developers/design-documents/dns-prefetching). | ||
@@ -13,3 +10,3 @@ | ||
```js | ||
var dnsPrefetchControl = require('dns-prefetch-control') | ||
const dnsPrefetchControl = require('dns-prefetch-control') | ||
@@ -16,0 +13,0 @@ // Set X-DNS-Prefetch-Control: off |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1
4619
12
6
23
21