@sap-ux/adp-tooling 0.9.8 → 0.9.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.
|
@@ -40,6 +40,7 @@ const os = __importStar(require("os"));
|
|
|
40
40
|
const path = __importStar(require("path"));
|
|
41
41
|
const ejs_1 = require("ejs");
|
|
42
42
|
const sanitize_filename_1 = __importDefault(require("sanitize-filename"));
|
|
43
|
+
const btp_utils_1 = require("@sap-ux/btp-utils");
|
|
43
44
|
const project_access_1 = require("@sap-ux/project-access");
|
|
44
45
|
/**
|
|
45
46
|
* @description Handles API Routes
|
|
@@ -181,10 +182,12 @@ class RoutesHandler {
|
|
|
181
182
|
res.status(404 /* HttpStatusCodes.NOT_FOUND */).send({ message: errorMsg });
|
|
182
183
|
return;
|
|
183
184
|
}
|
|
185
|
+
const isRunningInBAS = (0, btp_utils_1.isAppStudio)();
|
|
184
186
|
this.sendFilesResponse(res, {
|
|
185
187
|
controllerExists,
|
|
186
188
|
controllerPath: os.platform() === 'win32' ? `/${controllerPath}` : controllerPath,
|
|
187
|
-
controllerPathFromRoot
|
|
189
|
+
controllerPathFromRoot,
|
|
190
|
+
isRunningInBAS
|
|
188
191
|
});
|
|
189
192
|
this.logger.debug(controllerExists
|
|
190
193
|
? `Controller exists at '${controllerPath}'`
|
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.9.
|
|
12
|
+
"version": "0.9.10",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -29,11 +29,12 @@
|
|
|
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.
|
|
32
|
+
"@sap-ux/axios-extension": "1.11.5",
|
|
33
33
|
"@sap-ux/project-access": "1.19.6",
|
|
34
34
|
"@sap-ux/logger": "0.5.1",
|
|
35
|
-
"@sap-ux/system-access": "0.3.
|
|
36
|
-
"@sap-ux/ui5-config": "0.22.1"
|
|
35
|
+
"@sap-ux/system-access": "0.3.19",
|
|
36
|
+
"@sap-ux/ui5-config": "0.22.1",
|
|
37
|
+
"@sap-ux/btp-utils": "0.14.3"
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
|
39
40
|
"@types/ejs": "3.1.2",
|