@localnerve/csp-hashes 7.0.0 → 7.0.2

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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/readme.md +18 -14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@localnerve/csp-hashes",
3
- "version": "7.0.0",
3
+ "version": "7.0.2",
4
4
  "description": "Flexible library to generate CSP hashes",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -15,9 +15,9 @@
15
15
  },
16
16
  "devDependencies": {
17
17
  "@eslint/js": "^10.0.1",
18
- "eslint": "^10.2.0",
19
- "eslint-plugin-n": "^17.24.0",
20
- "globals": "^17.5.0",
18
+ "eslint": "^10.4.1",
19
+ "eslint-plugin-n": "^18.0.1",
20
+ "globals": "^17.6.0",
21
21
  "vinyl": "^3.0.1"
22
22
  },
23
23
  "dependencies": {
package/readme.md CHANGED
@@ -7,17 +7,23 @@
7
7
  [![Coverage Status](https://coveralls.io/repos/github/localnerve/csp-hashes/badge.svg?branch=main)](https://coveralls.io/github/localnerve/csp-hashes?branch=main)
8
8
 
9
9
  ## Contents
10
- + [Overview](#overview)
11
- + [Breaking Changes](#breaking-changes)
12
- + [API](#API)
13
- + [Options](#options)
14
- + [Callback Function](#callback-function)
15
- + [Callback Hashes Object](#callback-hashes-object)
16
- + [Example Usage](#example-usage)
17
- + [CSP Headers](#build-step-to-maintain-csp-headers)
18
- + [Meta Tag](#build-step-to-maintain-csp-meta-tags)
19
- + [Non-Esm Usage](#non-esm-usage)
20
- + [MIT License](#license)
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