@sap-ux/preview-middleware 1.0.27 → 1.0.29
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/dist/base/flp.js +2 -2
- package/package.json +7 -7
package/dist/base/flp.js
CHANGED
|
@@ -7,7 +7,7 @@ import { fileURLToPath } from 'node:url';
|
|
|
7
7
|
import { createRequire } from 'node:module';
|
|
8
8
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
9
9
|
const require = createRequire(import.meta.url);
|
|
10
|
-
import { getWebappPath, getProjectType, findProjectRoot, FileName, createApplicationAccess } from '@sap-ux/project-access';
|
|
10
|
+
import { getWebappPath, getProjectType, findProjectRoot, findCapProjectRoot, FileName, createApplicationAccess } from '@sap-ux/project-access';
|
|
11
11
|
import { AdpPreview, loadAppVariant, readManifestFromBuildPath } from '@sap-ux/adp-tooling';
|
|
12
12
|
import { isAppStudio, exposePort } from '@sap-ux/btp-utils';
|
|
13
13
|
import { FeatureToggleAccess } from '@sap-ux/feature-toggle';
|
|
@@ -75,7 +75,7 @@ export class FlpSandbox {
|
|
|
75
75
|
* @param adp optional reference to the ADP tooling
|
|
76
76
|
*/
|
|
77
77
|
async init(manifest, componentId, resources = {}, adp) {
|
|
78
|
-
const projectRoot = await findProjectRoot(process.cwd(), false, true);
|
|
78
|
+
const projectRoot = (await findCapProjectRoot(process.cwd(), false)) ?? (await findProjectRoot(process.cwd(), false, true));
|
|
79
79
|
this.projectType = await getProjectType(projectRoot);
|
|
80
80
|
this.createFlexHandler();
|
|
81
81
|
this.flpConfig.libs ??= await this.hasLocateReuseLibsScript();
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"bugs": {
|
|
11
11
|
"url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Apreview-middleware"
|
|
12
12
|
},
|
|
13
|
-
"version": "1.0.
|
|
13
|
+
"version": "1.0.29",
|
|
14
14
|
"license": "Apache-2.0",
|
|
15
15
|
"author": "@SAP/ux-tools-team",
|
|
16
16
|
"main": "dist/index.js",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"mem-fs-editor": "9.4.0",
|
|
29
29
|
"qrcode": "1.5.4",
|
|
30
30
|
"@sap/bas-sdk": "3.13.7",
|
|
31
|
-
"@sap-ux/adp-tooling": "1.0.19",
|
|
32
31
|
"@sap-ux/btp-utils": "2.0.2",
|
|
32
|
+
"@sap-ux/adp-tooling": "1.0.20",
|
|
33
33
|
"@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@1.0.5",
|
|
34
34
|
"@sap-ux/feature-toggle": "1.0.2",
|
|
35
|
-
"@sap-ux/
|
|
36
|
-
"@sap-ux/project-access": "2.1.2",
|
|
35
|
+
"@sap-ux/project-access": "2.1.3",
|
|
37
36
|
"@sap-ux/system-access": "1.0.3",
|
|
37
|
+
"@sap-ux/logger": "1.0.1",
|
|
38
38
|
"@sap-ux/i18n": "1.0.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
"nock": "14.0.11",
|
|
55
55
|
"npm-run-all2": "8.0.4",
|
|
56
56
|
"supertest": "7.2.2",
|
|
57
|
-
"@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@1.0.
|
|
57
|
+
"@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@1.0.29",
|
|
58
58
|
"@sap-ux-private/playwright": "1.0.2",
|
|
59
59
|
"@sap-ux/axios-extension": "2.0.3",
|
|
60
|
-
"@sap-ux/
|
|
61
|
-
"@sap-ux/
|
|
60
|
+
"@sap-ux/ui5-info": "1.0.1",
|
|
61
|
+
"@sap-ux/store": "2.0.1"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"express": "4"
|