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

feature-policy

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feature-policy - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

CHANGELOG.md

52

package.json

@@ -5,3 +5,3 @@ {

"description": "Middleware to set the Feature-Policy HTTP header",
"version": "0.2.0",
"version": "0.3.0",
"license": "MIT",

@@ -15,2 +15,3 @@ "keywords": [

],
"homepage": "https://helmetjs.github.io/docs/feature-policy/",
"repository": {

@@ -20,22 +21,43 @@ "type": "git",

},
"bugs": "https://github.com/helmetjs/feature-policy/issues",
"bugs": {
"url": "https://github.com/helmetjs/feature-policy/issues",
"email": "me@evanhahn.com"
},
"scripts": {
"pretest": "standard --fix",
"test": "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"
},
"engines": {
"node": ">=4.0.0"
},
"main": "./dist/index.js",
"typings": "./dist/index.d.ts",
"files": [
"CHANGELOG.md",
"LICENSE",
"README.md",
"dist/index.js",
"dist/index.d.ts"
],
"dependencies": {},
"devDependencies": {
"@types/connect": "^3.4.32",
"@types/dashify": "^1.0.0",
"@types/jest": "^24.0.12",
"@types/supertest": "^2.0.7",
"@typescript-eslint/eslint-plugin": "^1.7.0",
"@typescript-eslint/parser": "^1.7.0",
"connect": "^3.6.6",
"dasherize": "^2.0.0",
"mocha": "^5.2.0",
"standard": "^12.0.1",
"supertest": "^3.3.0"
},
"standard": {
"globals": [
"describe",
"beforeEach",
"it"
]
"dashify": "^2.0.0",
"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"
}
}

@@ -5,4 +5,2 @@ Feature Policy

[_Looking for a changelog?_](https://github.com/helmetjs/helmet/blob/master/HISTORY.md)
This is Express middleware to set the `Feature-Policy` header. You can read more about it [here](https://scotthelme.co.uk/a-new-security-header-feature-policy/) and [here](https://developers.google.com/web/updates/2018/06/feature-policy).

@@ -29,18 +27,35 @@

* `accelerometer`
* `ambientLightSensor`
* `autoplay`
* `camera`
* `documentDomain`
* `documentWrite`
* `encryptedMedia`
* `fontDisplayLateSwap`
* `fullscreen`
* `geolocation`
* `gyroscope`
* `layoutAnimations`
* `legacyImageFormats`
* `loadingFrameDefaultEager`
* `magnetometer`
* `microphone`
* `midi`
* `notifications`
* `push`
* `oversizedImages`
* `payment`
* `pictureInPicture`
* `serial`
* `speaker`
* `syncScript`
* `syncXhr`
* `microphone`
* `camera`
* `magnetometer`
* `gyroscope`
* `speaker`
* `unoptimizedImages`
* `unoptimizedLosslessImages`
* `unoptimizedLossyImages`
* `unsizedMedia`
* `usb`
* `verticalScroll`
* `vibrate`
* `fullscreen`
* `payment`
* `accelerometer`
* `usb`
* `vr`
* `autoplay`
* `wakeLock`
* `xr`

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