@sap-ux/mockserver-config-writer 0.2.0 → 0.2.2
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/app-info.js +3 -3
- package/package.json +3 -3
package/dist/app-info.js
CHANGED
|
@@ -8,14 +8,14 @@ exports.getODataSources = exports.getMainServiceDataSource = void 0;
|
|
|
8
8
|
* @returns - data source entry from manifest.json, parsed
|
|
9
9
|
*/
|
|
10
10
|
function getMainServiceDataSource(manifest) {
|
|
11
|
-
var _a, _b;
|
|
11
|
+
var _a, _b, _c;
|
|
12
12
|
let dataSource;
|
|
13
13
|
const model = ((_a = manifest['sap.ovp']) === null || _a === void 0 ? void 0 : _a.globalFilterModel) || '';
|
|
14
|
-
const dataSourceName = manifest['sap.ui5'] && manifest['sap.ui5'].models
|
|
14
|
+
const dataSourceName = manifest['sap.ui5'] && ((_b = manifest['sap.ui5'].models) === null || _b === void 0 ? void 0 : _b[model])
|
|
15
15
|
? manifest['sap.ui5'].models[model].dataSource
|
|
16
16
|
: undefined;
|
|
17
17
|
if (dataSourceName) {
|
|
18
|
-
dataSource = (
|
|
18
|
+
dataSource = (_c = manifest['sap.app'].dataSources) === null || _c === void 0 ? void 0 : _c[dataSourceName];
|
|
19
19
|
}
|
|
20
20
|
return dataSource;
|
|
21
21
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/mockserver-config-writer",
|
|
3
3
|
"description": "Add or update configuration for SAP Fiori tools mockserver",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
"i18next": "20.6.1",
|
|
23
23
|
"mem-fs": "2.1.0",
|
|
24
24
|
"mem-fs-editor": "9.4.0",
|
|
25
|
-
"@sap-ux/ui5-config": "0.
|
|
25
|
+
"@sap-ux/ui5-config": "0.21.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/mem-fs": "1.1.2",
|
|
29
29
|
"@types/mem-fs-editor": "7.0.1",
|
|
30
30
|
"@types/prompts": "2.4.4",
|
|
31
31
|
"prompts": "2.4.2",
|
|
32
|
-
"@sap-ux/project-access": "1.
|
|
32
|
+
"@sap-ux/project-access": "1.17.0"
|
|
33
33
|
},
|
|
34
34
|
"engines": {
|
|
35
35
|
"pnpm": ">=6.26.1 < 7.0.0 || >=7.1.0",
|