content-security-policy-parser
Advanced tools
Comparing version 0.1.1 to 0.2.0
{ | ||
"name": "content-security-policy-parser", | ||
"author": "Evan Hahn <me@evanhahn.com> (http://evanhahn.com)", | ||
"author": "Evan Hahn <me@evanhahn.com> (https://evanhahn.com)", | ||
"description": "Parse Content Security Policy directives.", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"license": "MIT", | ||
@@ -15,2 +15,3 @@ "keywords": [ | ||
], | ||
"homepage": "https://github.com/helmetjs/content-security-policy-parser", | ||
"repository": { | ||
@@ -20,17 +21,36 @@ "type": "git", | ||
}, | ||
"bugs": "https://github.com/helmetjs/content-security-policy-parser/issues", | ||
"bugs": { | ||
"url": "https://github.com/helmetjs/content-security-policy-parser/issues", | ||
"email": "me@evanhahn.com" | ||
}, | ||
"engines": { | ||
"node": ">=4.0.0" | ||
}, | ||
"main": "./dist/index.js", | ||
"typings": "./dist/index.d.ts", | ||
"files": [ | ||
"LICENSE", | ||
"README.md", | ||
"CHANGELOG.md", | ||
"dist/index.js", | ||
"dist/index.d.ts" | ||
], | ||
"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" | ||
}, | ||
"devDependencies": { | ||
"mocha": "^3.5.0", | ||
"standard": "^10.0.3" | ||
}, | ||
"standard": { | ||
"globals": [ | ||
"describe", | ||
"it" | ||
] | ||
"@types/jest": "^24.0.14", | ||
"@typescript-eslint/eslint-plugin": "^1.10.2", | ||
"@typescript-eslint/parser": "^1.10.2", | ||
"eslint": "^5.16.0", | ||
"eslint-config-helmet": "^0.2.0", | ||
"jest": "^24.8.0", | ||
"ts-jest": "^24.0.2", | ||
"typescript": "^3.5.2" | ||
} | ||
} |
Content Security Policy parser | ||
============================== | ||
[![Build Status](https://travis-ci.org/helmetjs/content-security-policy-parser.svg?branch=master)](https://travis-ci.org/helmetjs/content-security-policy-parser) | ||
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/) | ||
@@ -11,3 +10,3 @@ Take a Content Security Policy string and parse it. | ||
```javascript | ||
var parse = require('content-security-policy-parser') | ||
const parse = require('content-security-policy-parser') | ||
@@ -14,0 +13,0 @@ parse("default-src 'self'; script-src 'unsafe-eval' scripts.com; object-src; style-src styles.biz") |
Sorry, the diff of this file is not supported yet
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
3912
6
20
0
1
8
22