@adobe/helix-html-pipeline 3.1.6 → 3.1.7

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,10 @@
1
+ ## [3.1.7](https://github.com/adobe/helix-html-pipeline/compare/v3.1.6...v3.1.7) (2022-08-09)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * auth on non-node runtime ([899d308](https://github.com/adobe/helix-html-pipeline/commit/899d3089b27cab075e19335913f4dc4fdc8041d7))
7
+
1
8
  ## [3.1.6](https://github.com/adobe/helix-html-pipeline/compare/v3.1.5...v3.1.6) (2022-08-05)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "3.1.6",
3
+ "version": "3.1.7",
4
4
  "description": "Helix HTML Pipeline",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -47,7 +47,7 @@
47
47
  "mdast-util-gfm-strikethrough": "1.0.1",
48
48
  "mdast-util-gfm-table": "1.0.4",
49
49
  "mdast-util-gfm-task-list-item": "1.0.1",
50
- "mdast-util-to-hast": "12.1.2",
50
+ "mdast-util-to-hast": "12.2.0",
51
51
  "mdast-util-to-string": "3.1.0",
52
52
  "micromark-extension-gfm-footnote": "1.0.4",
53
53
  "micromark-extension-gfm-strikethrough": "1.0.4",
@@ -75,10 +75,10 @@
75
75
  "@semantic-release/git": "10.0.1",
76
76
  "@semantic-release/npm": "9.0.1",
77
77
  "c8": "7.12.0",
78
- "eslint": "8.20.0",
78
+ "eslint": "8.21.0",
79
79
  "eslint-plugin-header": "3.1.1",
80
80
  "eslint-plugin-import": "2.26.0",
81
- "esmock": "1.8.9",
81
+ "esmock": "1.9.2",
82
82
  "husky": "8.0.1",
83
83
  "js-yaml": "4.1.0",
84
84
  "jsdoc-to-markdown": "7.1.1",
package/src/utils/auth.js CHANGED
@@ -69,7 +69,7 @@ export async function decodeIdToken(state, idp, idToken, lenient = false) {
69
69
  /* c8 ignore next 3 */
70
70
  if (typeof Buffer === 'undefined') {
71
71
  // non-node runtime
72
- payload.pem = btoa(String.fromCharCode(...new Uint8Array(payload.pem)));
72
+ payload.pem = btoa(payload.pem);
73
73
  } else {
74
74
  // node runtime
75
75
  payload.pem = Buffer.from(payload.pem, 'utf-8').toString('base64url');