Comparing version
@@ -23,2 +23,3 @@ /** | ||
), | ||
pred.hasAttrValue('type', 'text/ecmascript-6'), | ||
pred.hasAttrValue('type', 'application/javascript'), | ||
@@ -25,0 +26,0 @@ pred.hasAttrValue('type', 'text/javascript') |
{ | ||
"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
19177
2.55%252
1.2%86
2.38%