@sap-ux/adp-tooling 0.8.8 → 0.8.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.
@@ -106,9 +106,11 @@ class AdpPreview {
106
106
  res.status(404).send();
107
107
  }
108
108
  else {
109
- const files = yield this.project.byGlob(req.path);
109
+ // check if the requested file exists in the file system (replace .js with .* for typescript)
110
+ const files = yield this.project.byGlob(req.path.replace('.js', '.*'));
110
111
  if (files.length === 1) {
111
- res.status(200).send(yield files[0].getString());
112
+ // redirect to the exposed path so that other middlewares can handle it
113
+ res.redirect(302, req.path);
112
114
  }
113
115
  else {
114
116
  next();
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "bugs": {
10
10
  "url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Aadp-tooling"
11
11
  },
12
- "version": "0.8.8",
12
+ "version": "0.8.10",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -29,10 +29,10 @@
29
29
  "mem-fs-editor": "9.4.0",
30
30
  "prompts": "2.4.2",
31
31
  "adm-zip": "0.5.10",
32
- "@sap-ux/axios-extension": "1.11.1",
33
- "@sap-ux/logger": "0.5.0",
34
- "@sap-ux/system-access": "0.3.14",
35
- "@sap-ux/ui5-config": "0.21.0"
32
+ "@sap-ux/axios-extension": "1.11.2",
33
+ "@sap-ux/logger": "0.5.1",
34
+ "@sap-ux/system-access": "0.3.15",
35
+ "@sap-ux/ui5-config": "0.21.1"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/ejs": "3.1.2",
@@ -46,14 +46,13 @@
46
46
  "nock": "13.4.0",
47
47
  "rimraf": "5.0.1",
48
48
  "supertest": "6.3.3",
49
- "@sap-ux/project-access": "1.17.2",
50
- "@sap-ux/store": "0.4.2"
49
+ "@sap-ux/project-access": "1.17.4",
50
+ "@sap-ux/store": "0.4.3"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "express": "4"
54
54
  },
55
55
  "engines": {
56
- "pnpm": ">=6.26.1 < 7.0.0 || >=7.1.0",
57
56
  "node": ">=18.x"
58
57
  },
59
58
  "scripts": {