Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dns-prefetch-control

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dns-prefetch-control - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

CHANGELOG.md

52

package.json
{
"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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc