New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

crisper

Package Overview
Dependencies
Maintainers
3
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

to
2.0.2

1

index.js

@@ -23,2 +23,3 @@ /**

),
pred.hasAttrValue('type', 'text/ecmascript-6'),
pred.hasAttrValue('type', 'application/javascript'),

@@ -25,0 +26,0 @@ pred.hasAttrValue('type', 'text/javascript')

2

package.json
{
"name": "crisper",
"version": "2.0.1",
"version": "2.0.2",
"description": "Make an HTML file with inline scripts CSP compliant",

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

@@ -19,10 +19,12 @@ # Crisper

- `--script-in-head=false`
- in the output HTML file, place the script at the end of `<body>`
- In the output HTML file, place the script at the end of `<body>`
- **Note**: Only use this if you need `document.write` support.
- `--only-split`
- Do not write include a `<script>` tag in the output HTML
file
file.
- `--always-write-script`
- Always create a .js file, even without any `<script>`
elements.
- `-v` | `--version`
- Prints version number.

@@ -29,0 +31,0 @@ Library usage:

@@ -160,4 +160,6 @@ /**

var threeIndex = script.indexOf('three');
var fourIndex = script.indexOf('four');
assert.ok(oneIndex < twoIndex);
assert.ok(twoIndex < threeIndex);
assert.ok(threeIndex < fourIndex);
});

@@ -164,0 +166,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet