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

content-security-policy-parser

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

content-security-policy-parser - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

CHANGELOG.md

46

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

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