@adobe/helix-html-pipeline 5.1.1 → 5.1.3
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/CHANGELOG.md +14 -0
- package/package.json +6 -6
- package/src/options-pipe.js +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [5.1.3](https://github.com/adobe/helix-html-pipeline/compare/v5.1.2...v5.1.3) (2023-11-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update external fixes ([c57b9bd](https://github.com/adobe/helix-html-pipeline/commit/c57b9bdbe241d758a668a9ae170013fc232ca68d))
|
|
7
|
+
|
|
8
|
+
## [5.1.2](https://github.com/adobe/helix-html-pipeline/compare/v5.1.1...v5.1.2) (2023-11-09)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* use crypto abstraction ([#453](https://github.com/adobe/helix-html-pipeline/issues/453)) ([618460d](https://github.com/adobe/helix-html-pipeline/commit/618460d3a32d753c947d5b91093c8955b689b89a))
|
|
14
|
+
|
|
1
15
|
## [5.1.1](https://github.com/adobe/helix-html-pipeline/compare/v5.1.0...v5.1.1) (2023-11-09)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-html-pipeline",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.3",
|
|
4
4
|
"description": "Helix HTML Pipeline",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"@adobe/helix-shared-utils": "3.0.0",
|
|
47
47
|
"@adobe/mdast-util-gridtables": "3.0.2",
|
|
48
48
|
"@adobe/remark-gridtables": "2.0.2",
|
|
49
|
-
"cookie": "0.
|
|
49
|
+
"cookie": "0.6.0",
|
|
50
50
|
"github-slugger": "2.0.0",
|
|
51
51
|
"hast-util-raw": "9.0.1",
|
|
52
|
-
"hast-util-select": "6.0.
|
|
52
|
+
"hast-util-select": "6.0.2",
|
|
53
53
|
"hast-util-to-html": "9.0.0",
|
|
54
54
|
"hast-util-to-string": "3.0.0",
|
|
55
55
|
"hastscript": "8.0.0",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"unist-util-map": "4.0.0",
|
|
66
66
|
"unist-util-remove": "4.0.0",
|
|
67
67
|
"unist-util-remove-position": "5.0.0",
|
|
68
|
-
"unist-util-select": "5.
|
|
68
|
+
"unist-util-select": "5.1.0",
|
|
69
69
|
"unist-util-visit": "5.0.0",
|
|
70
70
|
"unist-util-visit-parents": "6.0.1"
|
|
71
71
|
},
|
|
@@ -80,12 +80,12 @@
|
|
|
80
80
|
"eslint-import-resolver-exports": "1.0.0-beta.5",
|
|
81
81
|
"eslint-plugin-header": "3.1.1",
|
|
82
82
|
"eslint-plugin-import": "2.29.0",
|
|
83
|
-
"esmock": "2.
|
|
83
|
+
"esmock": "2.6.0",
|
|
84
84
|
"husky": "8.0.3",
|
|
85
85
|
"js-yaml": "4.1.0",
|
|
86
86
|
"jsdom": "22.1.0",
|
|
87
87
|
"junit-report-builder": "3.1.0",
|
|
88
|
-
"lint-staged": "15.0
|
|
88
|
+
"lint-staged": "15.1.0",
|
|
89
89
|
"mocha": "10.2.0",
|
|
90
90
|
"mocha-multi-reporters": "1.5.1",
|
|
91
91
|
"mocha-suppress-logs": "0.4.1",
|
package/src/options-pipe.js
CHANGED
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
import { cleanupHeaderValue } from '@adobe/helix-shared-utils';
|
|
13
|
-
|
|
13
|
+
// eslint-disable-next-line import/no-unresolved
|
|
14
|
+
import cryptoImpl from '#crypto';
|
|
14
15
|
import { PipelineResponse } from './PipelineResponse.js';
|
|
15
16
|
import fetchConfigAll from './steps/fetch-config-all.js';
|
|
16
17
|
import setCustomResponseHeaders from './steps/set-custom-response-headers.js';
|
|
@@ -26,7 +27,7 @@ import { getOriginalHost } from './steps/utils.js';
|
|
|
26
27
|
*/
|
|
27
28
|
function hashMe(domain, domainkeys) {
|
|
28
29
|
return (Array.isArray(domainkeys) ? domainkeys : [domainkeys]).map((dk) => {
|
|
29
|
-
const hash = createHash('sha256');
|
|
30
|
+
const hash = cryptoImpl.createHash('sha256');
|
|
30
31
|
hash.update(domain);
|
|
31
32
|
hash.update(dk);
|
|
32
33
|
return hash.digest('hex');
|