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

csp-header

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csp-header - npm Package Compare versions

Comparing version 2.1.2 to 2.2.0

9

dist/constants.d.ts

@@ -5,2 +5,3 @@ export declare const NONE = "'none'";

export declare const EVAL = "'unsafe-eval'";
export declare const HASHES = "'unsafe-hashes'";
export declare const DATA = "data:";

@@ -45,3 +46,7 @@ export declare const BLOB = "blob:";

'script-src': string;
'script-src-attr': string;
'script-src-elem': string;
'style-src': string;
'style-src-elem': string;
'style-src-attr': string;
'worker-src': string;

@@ -78,4 +83,8 @@ };

'script-src': string;
'script-src-attr': string;
'script-src-elem': string;
'style-src': string;
'style-src-elem': string;
'style-src-attr': string;
'worker-src': string;
};

@@ -8,2 +8,3 @@ "use strict";

exports.EVAL = "'unsafe-eval'";
exports.HASHES = "'unsafe-hashes'";
exports.DATA = 'data:';

@@ -51,3 +52,7 @@ exports.BLOB = 'blob:';

'script-src': 'script-src',
'script-src-attr': 'script-src-attr',
'script-src-elem': 'script-src-elem',
'style-src': 'style-src',
'style-src-elem': 'style-src-elem',
'style-src-attr': 'style-src-attr',
'worker-src': 'worker-src'

@@ -54,0 +59,0 @@ };

2

package.json
{
"name": "csp-header",
"version": "2.1.2",
"version": "2.2.0",
"description": "Content-Security-Policy header generator",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -6,2 +6,3 @@ // General values

export const EVAL = "'unsafe-eval'";
export const HASHES = "'unsafe-hashes'";
export const DATA = 'data:';

@@ -54,3 +55,7 @@ export const BLOB = 'blob:';

'script-src': 'script-src',
'script-src-attr': 'script-src-attr',
'script-src-elem': 'script-src-elem',
'style-src': 'style-src',
'style-src-elem': 'style-src-elem',
'style-src-attr': 'style-src-attr',
'worker-src': 'worker-src'

@@ -57,0 +62,0 @@ };

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