@adobe/aem-cli 16.7.29 → 16.7.31
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 +5 -5
- package/src/server/utils.js +14 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [16.7.31](https://github.com/adobe/helix-cli/compare/v16.7.30...v16.7.31) (2024-12-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* include proxy url in 401 responses ([#2464](https://github.com/adobe/helix-cli/issues/2464)) ([3cdb533](https://github.com/adobe/helix-cli/commit/3cdb533061472ca079b07aef5ad3cb41c345a3cc))
|
|
7
|
+
|
|
8
|
+
## [16.7.30](https://github.com/adobe/helix-cli/compare/v16.7.29...v16.7.30) (2024-12-07)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update external fixes ([#2463](https://github.com/adobe/helix-cli/issues/2463)) ([1ab2b55](https://github.com/adobe/helix-cli/commit/1ab2b55c28acdcbe747e7ecbe4ac3b13cd258754))
|
|
14
|
+
|
|
1
15
|
## [16.7.29](https://github.com/adobe/helix-cli/compare/v16.7.28...v16.7.29) (2024-12-07)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/aem-cli",
|
|
3
|
-
"version": "16.7.
|
|
3
|
+
"version": "16.7.31",
|
|
4
4
|
"description": "AEM CLI",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
"compression": "1.7.5",
|
|
50
50
|
"cookie": "1.0.2",
|
|
51
51
|
"cookie-parser": "1.4.7",
|
|
52
|
-
"dotenv": "16.4.
|
|
53
|
-
"express": "4.21.
|
|
52
|
+
"dotenv": "16.4.7",
|
|
53
|
+
"express": "4.21.2",
|
|
54
54
|
"faye-websocket": "0.11.4",
|
|
55
55
|
"fs-extra": "11.2.0",
|
|
56
56
|
"glob": "11.0.0",
|
|
57
57
|
"glob-to-regexp": "0.4.1",
|
|
58
58
|
"hast-util-select": "6.0.3",
|
|
59
59
|
"http-proxy-agent": "7.0.2",
|
|
60
|
-
"https-proxy-agent": "7.0.
|
|
60
|
+
"https-proxy-agent": "7.0.6",
|
|
61
61
|
"ignore": "6.0.2",
|
|
62
62
|
"ini": "5.0.0",
|
|
63
63
|
"isomorphic-git": "1.27.2",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"node-fetch": "3.3.2",
|
|
66
66
|
"open": "10.1.0",
|
|
67
67
|
"progress": "2.0.3",
|
|
68
|
-
"proxy-agent": "6.
|
|
68
|
+
"proxy-agent": "6.5.0",
|
|
69
69
|
"proxy-from-env": "1.1.0",
|
|
70
70
|
"rehype-parse": "9.0.1",
|
|
71
71
|
"semver": "7.6.3",
|
package/src/server/utils.js
CHANGED
|
@@ -348,6 +348,20 @@ window.LiveReloadOptions = {
|
|
|
348
348
|
.send(textBody);
|
|
349
349
|
return;
|
|
350
350
|
}
|
|
351
|
+
if (ret.status === 401) {
|
|
352
|
+
let textBody = await ret.text();
|
|
353
|
+
textBody = `<html>
|
|
354
|
+
<head><meta property="hlx:proxyUrl" content="${url}"></head>
|
|
355
|
+
<body><pre>${textBody}</pre></body>
|
|
356
|
+
</html>
|
|
357
|
+
`;
|
|
358
|
+
respHeaders['content-type'] = 'text/html';
|
|
359
|
+
res
|
|
360
|
+
.set(respHeaders)
|
|
361
|
+
.status(ret.status)
|
|
362
|
+
.send(textBody);
|
|
363
|
+
return;
|
|
364
|
+
}
|
|
351
365
|
|
|
352
366
|
if (ctx.log.level === 'silly') {
|
|
353
367
|
ctx.log.trace(`[${id}] <<<--------------------------`);
|