@sap-ux/adp-tooling 0.13.11 → 0.13.13
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.
|
@@ -33,6 +33,7 @@ export declare class AdpPreview {
|
|
|
33
33
|
private routesHandler;
|
|
34
34
|
private lrep;
|
|
35
35
|
private descriptorVariantId;
|
|
36
|
+
private isCloud;
|
|
36
37
|
/**
|
|
37
38
|
* @returns merged manifest.
|
|
38
39
|
*/
|
|
@@ -43,6 +44,10 @@ export declare class AdpPreview {
|
|
|
43
44
|
get resources(): {
|
|
44
45
|
[name: string]: string;
|
|
45
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
* @returns {boolean} true if the project is an ABAP cloud project, false otherwise.
|
|
49
|
+
*/
|
|
50
|
+
get isCloudProject(): boolean;
|
|
46
51
|
/**
|
|
47
52
|
* Constructor taking the config and a logger as input.
|
|
48
53
|
*
|
|
@@ -26,6 +26,7 @@ class AdpPreview {
|
|
|
26
26
|
routesHandler;
|
|
27
27
|
lrep;
|
|
28
28
|
descriptorVariantId;
|
|
29
|
+
isCloud;
|
|
29
30
|
/**
|
|
30
31
|
* @returns merged manifest.
|
|
31
32
|
*/
|
|
@@ -61,6 +62,17 @@ class AdpPreview {
|
|
|
61
62
|
throw new Error('Not initialized');
|
|
62
63
|
}
|
|
63
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* @returns {boolean} true if the project is an ABAP cloud project, false otherwise.
|
|
67
|
+
*/
|
|
68
|
+
get isCloudProject() {
|
|
69
|
+
if (this.isCloud !== undefined) {
|
|
70
|
+
return this.isCloud;
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
throw new Error('Not initialized');
|
|
74
|
+
}
|
|
75
|
+
}
|
|
64
76
|
/**
|
|
65
77
|
* Constructor taking the config and a logger as input.
|
|
66
78
|
*
|
|
@@ -88,6 +100,8 @@ class AdpPreview {
|
|
|
88
100
|
this.lrep = provider.getLayeredRepository();
|
|
89
101
|
// fetch a merged descriptor from the backend
|
|
90
102
|
await this.lrep.getCsrfToken();
|
|
103
|
+
// check if the project is an ABAP cloud project
|
|
104
|
+
this.isCloud = await provider.isAbapCloud();
|
|
91
105
|
await this.sync();
|
|
92
106
|
return descriptorVariant.layer;
|
|
93
107
|
}
|
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.13.
|
|
12
|
+
"version": "0.13.13",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"uuid": "10.0.0",
|
|
35
35
|
"@sap-ux/axios-extension": "1.19.0",
|
|
36
36
|
"@sap-ux/btp-utils": "1.0.1",
|
|
37
|
-
"@sap-ux/inquirer-common": "0.6.
|
|
37
|
+
"@sap-ux/inquirer-common": "0.6.28",
|
|
38
38
|
"@sap-ux/logger": "0.6.0",
|
|
39
|
-
"@sap-ux/project-access": "1.29.
|
|
39
|
+
"@sap-ux/project-access": "1.29.15",
|
|
40
40
|
"@sap-ux/project-input-validator": "0.3.4",
|
|
41
41
|
"@sap-ux/system-access": "0.5.32",
|
|
42
42
|
"@sap-ux/ui5-config": "0.26.3",
|
|
43
|
-
"@sap-ux/odata-service-writer": "0.26.
|
|
43
|
+
"@sap-ux/odata-service-writer": "0.26.10",
|
|
44
44
|
"@sap-ux/nodejs-utils": "0.1.7",
|
|
45
45
|
"@sap-ux/i18n": "0.2.3"
|
|
46
46
|
},
|