dev-approuter 0.1.8 → 0.1.10

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
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.1.10](https://github.com/ui5-community/ui5-ecosystem-showcase/compare/dev-approuter@0.1.9...dev-approuter@0.1.10) (2023-09-08)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **cds-plugin-ui5:** allow relative config files in package.json ([#838](https://github.com/ui5-community/ui5-ecosystem-showcase/issues/838)) ([735b24d](https://github.com/ui5-community/ui5-ecosystem-showcase/commit/735b24d34cebee5463c97c3bb5a3d58e07dace24))
12
+
13
+
14
+
15
+
16
+
17
+ ## [0.1.9](https://github.com/ui5-community/ui5-ecosystem-showcase/compare/dev-approuter@0.1.8...dev-approuter@0.1.9) (2023-09-08)
18
+
19
+ **Note:** Version bump only for package dev-approuter
20
+
21
+
22
+
23
+
24
+
6
25
  ## [0.1.8](https://github.com/ui5-community/ui5-ecosystem-showcase/compare/dev-approuter@0.1.7...dev-approuter@0.1.8) (2023-09-08)
7
26
 
8
27
  **Note:** Version bump only for package dev-approuter
@@ -70,8 +70,8 @@ class DevApprouter {
70
70
 
71
71
  // apply the UI5 middlewares to the router
72
72
  await applyUI5Middleware(router, {
73
+ cwd,
73
74
  basePath: modulePath,
74
- configPath: modulePath,
75
75
  });
76
76
 
77
77
  // mounting the router for the UI5 application to the CAP server
package/lib/helpers.js CHANGED
@@ -100,7 +100,7 @@ const configureCAPRoute = (moduleId, servicesPaths, route) => {
100
100
  if (!route.source) {
101
101
  route.source = servicesPaths
102
102
  .map((path) => {
103
- return `${path}(.*)`;
103
+ return `${path}(/.*)`;
104
104
  })
105
105
  .join("|");
106
106
  }
@@ -122,7 +122,7 @@ const configureUI5Route = (moduleId, sourcePath, route) => {
122
122
  // special regex to avoid endless loop
123
123
  route.source = `^(?!.*(/_${sourcePath}))`;
124
124
  } else {
125
- route.source = `^${sourcePath}(.*)$`;
125
+ route.source = `^${sourcePath}(/.*)$`;
126
126
  route.target = "$1";
127
127
  }
128
128
  route.destination = moduleId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dev-approuter",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "A dev time wrapper for the SAP Application Router that can serve UI5 and CAP modules added as dependencies.",
5
5
  "author": "Nico Schoenteich <nicolai.schoenteich@sap.com> (https://github.com/nicoschoenteich)",
6
6
  "license": "Apache-2.0",
@@ -12,9 +12,9 @@
12
12
  "dependencies": {
13
13
  "@sap/approuter": ">=14.3.1",
14
14
  "@sap/xsenv": "4.0.0",
15
- "cds-plugin-ui5": "^0.6.0",
15
+ "cds-plugin-ui5": "^0.6.2",
16
16
  "express": "^4.18.2",
17
17
  "ui5-middleware-cap": "^3.1.2"
18
18
  },
19
- "gitHead": "de3226373e571bb9bb9d9e71640815b96858b371"
19
+ "gitHead": "1f8272a1e1faa0559fd9e57b03da2ada256d23df"
20
20
  }