@adobe/aem-cli 16.10.13 → 16.10.14

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
+ ## [16.10.14](https://github.com/adobe/helix-cli/compare/v16.10.13...v16.10.14) (2025-04-03)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update dependency express to v5 ([#2510](https://github.com/adobe/helix-cli/issues/2510)) ([6eeb467](https://github.com/adobe/helix-cli/commit/6eeb4671615c0676d777047f58391012b1ff5ab7))
7
+
1
8
  ## [16.10.13](https://github.com/adobe/helix-cli/compare/v16.10.12...v16.10.13) (2025-03-31)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/aem-cli",
3
- "version": "16.10.13",
3
+ "version": "16.10.14",
4
4
  "description": "AEM CLI",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -50,7 +50,7 @@
50
50
  "cookie": "1.0.2",
51
51
  "cookie-parser": "1.4.7",
52
52
  "dotenv": "16.4.7",
53
- "express": "4.21.2",
53
+ "express": "5.1.0",
54
54
  "faye-websocket": "0.11.4",
55
55
  "fs-extra": "11.3.0",
56
56
  "glob": "11.0.1",
@@ -142,6 +142,7 @@ export class BaseServer extends EventEmitter {
142
142
  const listenCb = (err) => {
143
143
  if (err) {
144
144
  reject(new Error(`Error while starting ${this._scheme} server: ${err}`));
145
+ return;
145
146
  }
146
147
  this._port = this._server.address().port;
147
148
  this._addr = this._server.address().address;
@@ -200,13 +200,13 @@ export class HelixImportServer extends BaseServer {
200
200
 
201
201
  async setupApp() {
202
202
  await super.setupApp();
203
- const localFiles = ['/tools/*', '/component-definition.json', '/component-filters.json', '/component-models.json'];
203
+ const localFiles = [/\/tools\/.*/, '/component-definition.json', '/component-filters.json', '/component-models.json'];
204
204
  localFiles.forEach((file) => {
205
205
  this.app.get(file, asyncHandler(this.handleToolsRequest.bind(this)));
206
206
  });
207
207
  const handler = asyncHandler(this.handleProxyModeRequest.bind(this));
208
- this.app.get('*', handler);
209
- this.app.post('*', handler);
208
+ this.app.get(/.*/, handler);
209
+ this.app.post(/.*/, handler);
210
210
  }
211
211
 
212
212
  async doStop() {
@@ -227,8 +227,8 @@ export class HelixServer extends BaseServer {
227
227
  this.app.options(LOGIN_ACK_ROUTE, asyncHandler(this.handleLoginAck.bind(this)));
228
228
 
229
229
  const handler = asyncHandler(this.handleProxyModeRequest.bind(this));
230
- this.app.get('*', handler);
231
- this.app.post('*', handler);
230
+ this.app.get(/.*/, handler);
231
+ this.app.post(/.*/, handler);
232
232
  }
233
233
 
234
234
  async doStop() {
@@ -35,14 +35,14 @@ export default class RequestContext {
35
35
  this._queryString = purl.search || '';
36
36
  this._selector = '';
37
37
  this._extension = '';
38
- this._headers = req.headers || {};
39
- this._method = req.method || 'GET';
40
- this._params = req.query || {};
38
+ this._headers = request.headers || {};
39
+ this._method = request.method || 'GET';
40
+ this._params = request.query || {};
41
41
  this._requestId = utils.randomChars(32);
42
42
  this._logger = cfg.log;
43
43
 
44
- if (req.body && Object.entries(req.body).length > 0) {
45
- this._body = req.body;
44
+ if (request.body && Object.entries(request.body).length > 0) {
45
+ this._body = request.body;
46
46
  }
47
47
  const lastSlash = this._path.lastIndexOf('/');
48
48
  if (lastSlash === this._path.length - 1) {