content-security-policy-builder
Advanced tools
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() | ||
} |
{ | ||
"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
0
3572
4
29
- Removeddashify@^0.2.0
- Removeddashify@0.2.2(transitive)