@localnerve/csp-hashes 7.0.0 → 7.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/readme.md +18 -14
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -7,17 +7,23 @@
|
|
|
7
7
|
[](https://coveralls.io/github/localnerve/csp-hashes?branch=main)
|
|
8
8
|
|
|
9
9
|
## Contents
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
10
|
+
- [csp-hashes](#csp-hashes)
|
|
11
|
+
- [Contents](#contents)
|
|
12
|
+
- [Overview](#overview)
|
|
13
|
+
- [Breaking Changes](#breaking-changes)
|
|
14
|
+
- [API](#api)
|
|
15
|
+
- [hashstream (also the default export)](#hashstream-also-the-default-export)
|
|
16
|
+
- [createCspHash](#createcsphash)
|
|
17
|
+
- [removeCspMeta](#removecspmeta)
|
|
18
|
+
- [Hashstream Options](#hashstream-options)
|
|
19
|
+
- [Callback Function](#callback-function)
|
|
20
|
+
- [Callback Hashes Object](#callback-hashes-object)
|
|
21
|
+
- [Example Usage](#example-usage)
|
|
22
|
+
- [Build Step to Maintain CSP Headers](#build-step-to-maintain-csp-headers)
|
|
23
|
+
- [Build Step to Maintain CSP Meta Tags](#build-step-to-maintain-csp-meta-tags)
|
|
24
|
+
- [Build Step to Remove CSP Meta Tag Content](#build-step-to-remove-csp-meta-tag-content)
|
|
25
|
+
- [Non-ESM usage](#non-esm-usage)
|
|
26
|
+
- [LICENSE](#license)
|
|
21
27
|
|
|
22
28
|
## Overview
|
|
23
29
|
This Nodejs library generates script and style inline element and attribute hashes. It is for use in the generation of HTTP content security policy (CSP) headers or to replace/update Meta tags as a website build step. Ready for use with [Gulp](https://github.com/gulpjs/gulp).
|
|
@@ -25,9 +31,7 @@ This Nodejs library generates script and style inline element and attribute hash
|
|
|
25
31
|
## Breaking Changes
|
|
26
32
|
+ As of Version 2+, this is an ES Module. See [Non-Esm Usage](#non-esm-usage) for how to use outside of ESM.
|
|
27
33
|
+ As of Version 6+, requires Node 20+
|
|
28
|
-
|
|
29
|
-
## Prerequisites
|
|
30
|
-
+ NodeJS 20+
|
|
34
|
+
+ As of Version 7+, requires Node 22+
|
|
31
35
|
|
|
32
36
|
## API
|
|
33
37
|
|