@adobe/helix-html-pipeline 3.8.0 → 3.8.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [3.8.2](https://github.com/adobe/helix-html-pipeline/compare/v3.8.1...v3.8.2) (2023-01-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update dependency hast-util-raw to v8 ([#238](https://github.com/adobe/helix-html-pipeline/issues/238)) ([cfe2d43](https://github.com/adobe/helix-html-pipeline/commit/cfe2d437fca790a2ab053338e63b18881a2d0b53))
7
+
8
+ ## [3.8.1](https://github.com/adobe/helix-html-pipeline/compare/v3.8.0...v3.8.1) (2023-01-15)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * ignore 'null' as header value ([#236](https://github.com/adobe/helix-html-pipeline/issues/236)) ([9f212f2](https://github.com/adobe/helix-html-pipeline/commit/9f212f2e9bafc57a33ed8e1203d18ac16bd4e6d7))
14
+
1
15
  # [3.8.0](https://github.com/adobe/helix-html-pipeline/compare/v3.7.11...v3.8.0) (2023-01-13)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "3.8.0",
3
+ "version": "3.8.2",
4
4
  "description": "Helix HTML Pipeline",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -45,9 +45,9 @@
45
45
  "@adobe/remark-gridtables": "1.0.0",
46
46
  "cookie": "0.5.0",
47
47
  "github-slugger": "2.0.0",
48
- "hast-util-raw": "7.2.3",
48
+ "hast-util-raw": "8.0.0",
49
49
  "hast-util-select": "5.0.3",
50
- "hast-util-to-html": "8.0.3",
50
+ "hast-util-to-html": "8.0.4",
51
51
  "hast-util-to-string": "2.0.0",
52
52
  "hastscript": "7.2.0",
53
53
  "jose": "4.11.2",
@@ -81,12 +81,12 @@
81
81
  "@markedjs/html-differ": "4.0.2",
82
82
  "@semantic-release/changelog": "6.0.2",
83
83
  "@semantic-release/git": "10.0.1",
84
- "@semantic-release/npm": "9.0.1",
84
+ "@semantic-release/npm": "9.0.2",
85
85
  "c8": "7.12.0",
86
86
  "eslint": "8.31.0",
87
- "eslint-import-resolver-exports": "1.0.0-beta.3",
87
+ "eslint-import-resolver-exports": "1.0.0-beta.4",
88
88
  "eslint-plugin-header": "3.1.1",
89
- "eslint-plugin-import": "2.26.0",
89
+ "eslint-plugin-import": "2.27.4",
90
90
  "esmock": "2.1.0",
91
91
  "husky": "8.0.3",
92
92
  "js-yaml": "4.1.0",
@@ -45,5 +45,9 @@ export function updateLastModified(state, res, httpDate) {
45
45
  * @return {string} the last modified date
46
46
  */
47
47
  export function extractLastModified(headers) {
48
- return headers.get('x-amz-meta-x-source-last-modified') ?? headers.get('last-modified');
48
+ const lastModified = headers.get('x-amz-meta-x-source-last-modified');
49
+ if (lastModified && lastModified !== 'null') {
50
+ return lastModified;
51
+ }
52
+ return headers.get('last-modified');
49
53
  }