Skip to content

Commit 18f7a3a

Browse files
bernardobelchiorcburgmer
authored andcommitted
Upgrade inlineresources. Add nonce to options.
1 parent 23a861f commit 18f7a3a

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

package-lock.json

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"url": "git://github.com/cburgmer/rasterizeHTML.js.git"
2626
},
2727
"dependencies": {
28-
"inlineresources": "^1.0.1",
28+
"inlineresources": "^1.1.0",
2929
"sane-domparser-error": "~0.2.0",
3030
"url": "~0.11.0",
3131
"xmlserializer": "~0.6.0"

src/typings.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ export interface Options {
8686
* than none. Should be initialized with {}.
8787
*/
8888
cacheBucket?: {};
89+
90+
/**
91+
* A nonce value to be set on created script and style elements.
92+
* This is useful when a Content Security Policy is in place that requires a nonce on such elements.
93+
*/
94+
nonce?: string;
8995
}
9096

9197
/** Describes a resource that failed to load during drawing. */

0 commit comments

Comments
 (0)