Socket
Socket
Sign inDemoInstall

content-security-policy-builder

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 2.0.0

10

index.js

@@ -1,3 +0,1 @@

var dashify = require('dashify')
module.exports = function (options) {

@@ -21,2 +19,4 @@ var directives = options.directives

value = ''
} else if (value === false) {
return result
}

@@ -31,1 +31,7 @@

}
function dashify (str) {
return str
.replace(/([a-z])([A-Z])/g, '$1-$2')
.toLowerCase()
}

13

package.json
{
"name": "content-security-policy-builder",
"author": "Evan Hahn <me@evanhahn.com> (http://evanhahn.com)",
"author": "Evan Hahn <me@evanhahn.com> (https://evanhahn.com)",
"description": "Build Content Security Policy directives.",
"version": "1.1.0",
"version": "2.0.0",
"license": "MIT",

@@ -21,12 +21,9 @@ "keywords": [

"scripts": {
"pretest": "standard",
"pretest": "standard --fix",
"test": "mocha"
},
"devDependencies": {
"mocha": "^2.5.3",
"standard": "^7.1.2"
"mocha": "^5.0.0",
"standard": "^10.0.3"
},
"dependencies": {
"dashify": "^0.2.0"
},
"standard": {

@@ -33,0 +30,0 @@ "globals": [

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc