@sap-ux/odata-service-writer 0.28.0 → 0.29.1
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/data/defaults.js +1 -1
- package/dist/types.d.ts +4 -0
- package/package.json +5 -5
package/dist/data/defaults.js
CHANGED
|
@@ -147,7 +147,7 @@ function setDefaultAnnotationsName(service) {
|
|
|
147
147
|
async function setDefaultPreviewSettings(basePath, service, fs) {
|
|
148
148
|
service.previewSettings = service.previewSettings ?? {};
|
|
149
149
|
service.previewSettings.path =
|
|
150
|
-
service.previewSettings.path ?? `/${service.path?.split('/').
|
|
150
|
+
service.previewSettings.path ?? `/${service.path?.split('/').find((s) => s !== '') ?? ''}`;
|
|
151
151
|
service.previewSettings.url = service.previewSettings.url ?? service.url ?? 'http://localhost';
|
|
152
152
|
if (service.client && !service.previewSettings.client) {
|
|
153
153
|
service.previewSettings.client = service.client;
|
package/dist/types.d.ts
CHANGED
|
@@ -69,6 +69,10 @@ export interface OdataService {
|
|
|
69
69
|
model?: string;
|
|
70
70
|
metadata?: string;
|
|
71
71
|
externalServices?: ExternalService[];
|
|
72
|
+
valueListReferences?: Record<string, {
|
|
73
|
+
data?: string;
|
|
74
|
+
path: string;
|
|
75
|
+
}[]>;
|
|
72
76
|
/**
|
|
73
77
|
* Annotations can either be EDMX annotations or CDS annotations.
|
|
74
78
|
*/
|
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%3Aodata-service-writer"
|
|
11
11
|
},
|
|
12
|
-
"version": "0.
|
|
12
|
+
"version": "0.29.1",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"main": "dist/index.js",
|
|
15
15
|
"files": [
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"mem-fs-editor": "9.4.0",
|
|
30
30
|
"prettify-xml": "1.2.0",
|
|
31
31
|
"semver": "7.5.4",
|
|
32
|
-
"@sap-ux/mockserver-config-writer": "0.9.
|
|
33
|
-
"@sap-ux/project-access": "1.32.
|
|
34
|
-
"@sap-ux/ui5-config": "0.29.
|
|
32
|
+
"@sap-ux/mockserver-config-writer": "0.9.34",
|
|
33
|
+
"@sap-ux/project-access": "1.32.17",
|
|
34
|
+
"@sap-ux/ui5-config": "0.29.12"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@sap-ux/vocabularies-types": "0.13.2",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@types/semver": "7.5.2",
|
|
43
43
|
"fs-extra": "10.0.0",
|
|
44
44
|
"lodash": "4.17.21",
|
|
45
|
-
"@sap-ux/axios-extension": "1.25.
|
|
45
|
+
"@sap-ux/axios-extension": "1.25.1"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
48
|
"node": ">=20.x"
|