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

crisper

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crisper - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

3

index.js

@@ -53,3 +53,4 @@ /**

var html = dom5.serialize(doc);
var js = contents.join(';');
// newline + semicolon should be enough to capture all cases of concat
var js = contents.join('\n;');

@@ -56,0 +57,0 @@ return {

{
"name": "crisper",
"version": "1.0.2",
"version": "1.0.3",
"description": "Make an HTML file with inline scripts CSP compliant",

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

@@ -75,4 +75,10 @@ /**

test('Newline Semicolon should be used for concating', function() {
var script = obj.js;
var expected = '//inline comment\n;var next_statement';
var actual = script.indexOf(expected);
assert(actual > -1);
});
});
});
});

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