@sap-ux/fiori-annotation-api 0.9.42 → 0.9.44
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/annotation-provider.d.ts +7 -15
- package/dist/annotation-provider.d.ts.map +1 -1
- package/dist/annotation-provider.js +74 -100
- package/dist/annotation-provider.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { ServiceInfo } from '@sap-ux/project-access';
|
|
2
1
|
import { ODataVersionType } from '@sap-ux/odata-annotation-core-types';
|
|
3
2
|
import type { ServiceArtifacts, TextFile } from './types';
|
|
4
3
|
/**
|
|
@@ -12,6 +11,13 @@ import type { ServiceArtifacts, TextFile } from './types';
|
|
|
12
11
|
* @returns Service artifacts.
|
|
13
12
|
*/
|
|
14
13
|
export declare function getXmlServiceArtifacts(odataVersion: ODataVersionType, path: string, metadataFile: TextFile, annotationFiles: TextFile[], fileCache: Map<string, string>): ServiceArtifacts;
|
|
14
|
+
/**
|
|
15
|
+
* Normalizes a URL by replacing backslashes with forward slashes and removing leading slashes.
|
|
16
|
+
*
|
|
17
|
+
* @param url - The URL to normalize.
|
|
18
|
+
* @returns The normalized URL.
|
|
19
|
+
*/
|
|
20
|
+
export declare function uniformUrl(url: string): string;
|
|
15
21
|
/**
|
|
16
22
|
*
|
|
17
23
|
*/
|
|
@@ -29,14 +35,6 @@ export declare class CdsAnnotationProvider {
|
|
|
29
35
|
* @returns Service artifacts or undefined.
|
|
30
36
|
*/
|
|
31
37
|
static getCdsServiceArtifacts(rootPath: string, servicePath: string, fileCache: Map<string, string>): ServiceArtifacts | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* Get CDS services.
|
|
34
|
-
*
|
|
35
|
-
* @param rootPath - Project root path.
|
|
36
|
-
* @param fileCache - File cache.
|
|
37
|
-
* @returns Service info array.
|
|
38
|
-
*/
|
|
39
|
-
static getServices(rootPath: string, fileCache: Map<string, string>): ServiceInfo[];
|
|
40
38
|
/**
|
|
41
39
|
* Reset CDS cache clearing compile model and service artifacts.
|
|
42
40
|
*
|
|
@@ -46,10 +44,4 @@ export declare class CdsAnnotationProvider {
|
|
|
46
44
|
static resetCache(rootPath: string, fileCache: Map<string, string>): void;
|
|
47
45
|
private static getFacade;
|
|
48
46
|
}
|
|
49
|
-
/**
|
|
50
|
-
* Normalizes a URL by replacing backslashes with forward slashes and removing leading slashes.
|
|
51
|
-
*
|
|
52
|
-
* @param url - The URL to normalize.
|
|
53
|
-
* @returns The normalized URL.
|
|
54
|
-
*/
|
|
55
47
|
//# sourceMappingURL=annotation-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotation-provider.d.ts","sourceRoot":"","sources":["../src/annotation-provider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"annotation-provider.d.ts","sourceRoot":"","sources":["../src/annotation-provider.ts"],"names":[],"mappings":"AAGA,OAAO,EAA8C,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAWnH,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAM1D;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAClC,YAAY,EAAE,gBAAgB,EAC9B,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,QAAQ,EACtB,eAAe,EAAE,QAAQ,EAAE,EAC3B,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B,gBAAgB,CAwBlB;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAK9C;AAED;;GAEG;AACH,qBAAa,qBAAqB;IAC9B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAoC;IAC5E,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,oBAAoB,CAAuD;IACnG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAwC;IACxE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,iBAAiB,CAA+B;IAExE;;;;;;;OAOG;WACW,sBAAsB,CAChC,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B,gBAAgB,GAAG,SAAS;IAqD/B;;;;;OAKG;WACW,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI;IAKhF,OAAO,CAAC,MAAM,CAAC,SAAS;CA2B3B"}
|
|
@@ -3,10 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.CdsAnnotationProvider = void 0;
|
|
5
5
|
exports.getXmlServiceArtifacts = getXmlServiceArtifacts;
|
|
6
|
+
exports.uniformUrl = uniformUrl;
|
|
7
|
+
const project_access_1 = require("@sap-ux/project-access");
|
|
6
8
|
const odata_vocabularies_1 = require("@sap-ux/odata-vocabularies");
|
|
9
|
+
const ux_cds_compiler_facade_1 = require("@sap/ux-cds-compiler-facade");
|
|
10
|
+
const odata_entity_model_1 = require("@sap-ux/odata-entity-model");
|
|
7
11
|
const xml_1 = require("./xml");
|
|
8
12
|
const odata_annotation_core_1 = require("@sap-ux/odata-annotation-core");
|
|
9
13
|
const vocabularies_1 = require("./vocabularies");
|
|
14
|
+
const node_url_1 = require("node:url");
|
|
15
|
+
const cds_odata_annotation_converter_1 = require("@sap-ux/cds-odata-annotation-converter");
|
|
10
16
|
/**
|
|
11
17
|
* Get XML service artifacts.
|
|
12
18
|
*
|
|
@@ -35,6 +41,18 @@ function getXmlServiceArtifacts(odataVersion, path, metadataFile, annotationFile
|
|
|
35
41
|
fileSequence: adapter.getAllFiles().map((file) => file.uri)
|
|
36
42
|
};
|
|
37
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* Normalizes a URL by replacing backslashes with forward slashes and removing leading slashes.
|
|
46
|
+
*
|
|
47
|
+
* @param url - The URL to normalize.
|
|
48
|
+
* @returns The normalized URL.
|
|
49
|
+
*/
|
|
50
|
+
function uniformUrl(url) {
|
|
51
|
+
return url
|
|
52
|
+
.replaceAll('\\', '/')
|
|
53
|
+
.replaceAll('//', '/')
|
|
54
|
+
.replaceAll(/(?:^\/)/g, '');
|
|
55
|
+
}
|
|
38
56
|
/**
|
|
39
57
|
*
|
|
40
58
|
*/
|
|
@@ -52,7 +70,6 @@ class CdsAnnotationProvider {
|
|
|
52
70
|
* @returns Service artifacts or undefined.
|
|
53
71
|
*/
|
|
54
72
|
static getCdsServiceArtifacts(rootPath, servicePath, fileCache) {
|
|
55
|
-
// eslint-disable-next-line prefer-const
|
|
56
73
|
let cachedArtifactsByRoot = this.serviceArtifactCache.get(rootPath);
|
|
57
74
|
if (cachedArtifactsByRoot) {
|
|
58
75
|
const cachedService = cachedArtifactsByRoot[servicePath];
|
|
@@ -60,60 +77,40 @@ class CdsAnnotationProvider {
|
|
|
60
77
|
return cachedService;
|
|
61
78
|
}
|
|
62
79
|
}
|
|
63
|
-
this.getFacade(rootPath, fileCache, false);
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
//
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
// metadataService,
|
|
98
|
-
// annotationFiles,
|
|
99
|
-
// aliasInfo: aliasInformation,
|
|
100
|
-
// fileSequence: facade.getFileSequence().map((path) => pathToFileURL(path).toString())
|
|
101
|
-
// };
|
|
102
|
-
// cachedArtifactsByRoot = {};
|
|
103
|
-
// cachedArtifactsByRoot[url] = artifacts;
|
|
104
|
-
// this.serviceArtifactCache.set(rootPath, cachedArtifactsByRoot);
|
|
105
|
-
// return artifacts;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Get CDS services.
|
|
109
|
-
*
|
|
110
|
-
* @param rootPath - Project root path.
|
|
111
|
-
* @param fileCache - File cache.
|
|
112
|
-
* @returns Service info array.
|
|
113
|
-
*/
|
|
114
|
-
static getServices(rootPath, fileCache) {
|
|
115
|
-
this.getFacade(rootPath, fileCache, false);
|
|
116
|
-
return this.serviceInfoCache.get(rootPath) ?? [];
|
|
80
|
+
const facade = this.getFacade(rootPath, fileCache, false);
|
|
81
|
+
const services = this.serviceInfoCache.get(rootPath) ?? [];
|
|
82
|
+
const serviceInfo = services.find((s) => uniformUrl(s.urlPath) === uniformUrl(servicePath));
|
|
83
|
+
if (!serviceInfo) {
|
|
84
|
+
return undefined;
|
|
85
|
+
}
|
|
86
|
+
const serviceName = serviceInfo.name;
|
|
87
|
+
const annotationFiles = {};
|
|
88
|
+
const metadataElementMap = facade.getMetadata(serviceName);
|
|
89
|
+
// We collect already full metadata from compile model, we don't need to build it based on paths.
|
|
90
|
+
const metadataCollector = (0, ux_cds_compiler_facade_1.createMetadataCollector)(new Map(), facade);
|
|
91
|
+
const { propagationMap } = facade.getPropagatedTargetMap(serviceName);
|
|
92
|
+
for (const path of facade.getAllSourceUris()) {
|
|
93
|
+
const uri = (0, node_url_1.pathToFileURL)(path).toString();
|
|
94
|
+
const cdsAnnotationFile = (0, cds_odata_annotation_converter_1.toTargetMap)(facade.blitzIndex.forUri(uri), uri, this.vocabularyService, facade);
|
|
95
|
+
const annotationFile = (0, cds_odata_annotation_converter_1.toAnnotationFile)(uri, this.vocabularyService, cdsAnnotationFile, metadataCollector, undefined, propagationMap, true).file;
|
|
96
|
+
annotationFiles[uri] = annotationFile;
|
|
97
|
+
}
|
|
98
|
+
const metadataElements = (0, ux_cds_compiler_facade_1.getMetadataElementsFromMap)(metadataElementMap);
|
|
99
|
+
const metadataService = new odata_entity_model_1.MetadataService({ uriMap: facade?.getUriMap() || new Map() });
|
|
100
|
+
metadataService.import(metadataElements, 'DummyMetadataFileUri');
|
|
101
|
+
const aliasInformation = getAliasInfo(metadataService, xml_1.XML_VOCABULARY_SERVICE, annotationFiles);
|
|
102
|
+
const url = uniformUrl(serviceInfo.urlPath);
|
|
103
|
+
const artifacts = {
|
|
104
|
+
path: url,
|
|
105
|
+
metadataService,
|
|
106
|
+
annotationFiles,
|
|
107
|
+
aliasInfo: aliasInformation,
|
|
108
|
+
fileSequence: facade.getFileSequence().map((path) => (0, node_url_1.pathToFileURL)(path).toString())
|
|
109
|
+
};
|
|
110
|
+
cachedArtifactsByRoot = {};
|
|
111
|
+
cachedArtifactsByRoot[url] = artifacts;
|
|
112
|
+
this.serviceArtifactCache.set(rootPath, cachedArtifactsByRoot);
|
|
113
|
+
return artifacts;
|
|
117
114
|
}
|
|
118
115
|
/**
|
|
119
116
|
* Reset CDS cache clearing compile model and service artifacts.
|
|
@@ -125,38 +122,28 @@ class CdsAnnotationProvider {
|
|
|
125
122
|
this.serviceArtifactCache.delete(rootPath);
|
|
126
123
|
this.getFacade(rootPath, fileCache, true);
|
|
127
124
|
}
|
|
128
|
-
static getFacade(rootPath, fileCache,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
// }
|
|
151
|
-
// );
|
|
152
|
-
// const facade = createCdsCompilerFacadeForRootSync(rootPath, [], cache);
|
|
153
|
-
// const services = processServices(facade.getServiceInfo());
|
|
154
|
-
// this.serviceInfoCache.set(rootPath, services);
|
|
155
|
-
// this.cdsCache.set(rootPath, facade);
|
|
156
|
-
// performance.mark('cds-compile-end');
|
|
157
|
-
// performance.measure('cds-compile', 'cds-compile-start', 'cds-compile-end');
|
|
158
|
-
// console.log('CDS compilation performance:', performance.getEntriesByName('cds-compile'));
|
|
159
|
-
// return facade;
|
|
125
|
+
static getFacade(rootPath, fileCache, ignoreCache = false) {
|
|
126
|
+
const cachedValue = this.cdsCache.get(rootPath);
|
|
127
|
+
if (cachedValue && ignoreCache === false) {
|
|
128
|
+
return cachedValue;
|
|
129
|
+
}
|
|
130
|
+
const cache = new Proxy({}, {
|
|
131
|
+
get(compilerCache, path) {
|
|
132
|
+
const cachedValue = compilerCache[path];
|
|
133
|
+
if (cachedValue !== undefined) {
|
|
134
|
+
return cachedValue;
|
|
135
|
+
}
|
|
136
|
+
const uri = (0, node_url_1.pathToFileURL)(path).toString();
|
|
137
|
+
const value = fileCache.get(uri);
|
|
138
|
+
compilerCache[path] = value;
|
|
139
|
+
return value;
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
const facade = (0, ux_cds_compiler_facade_1.createCdsCompilerFacadeForRootSync)(rootPath, [], cache);
|
|
143
|
+
const services = (0, project_access_1.processServices)(facade.getServiceInfo());
|
|
144
|
+
this.serviceInfoCache.set(rootPath, services);
|
|
145
|
+
this.cdsCache.set(rootPath, facade);
|
|
146
|
+
return facade;
|
|
160
147
|
}
|
|
161
148
|
}
|
|
162
149
|
exports.CdsAnnotationProvider = CdsAnnotationProvider;
|
|
@@ -170,17 +157,4 @@ function getAliasInfo(metadataService, vocabularyService, files) {
|
|
|
170
157
|
}
|
|
171
158
|
return aliasInformation;
|
|
172
159
|
}
|
|
173
|
-
/**
|
|
174
|
-
* Normalizes a URL by replacing backslashes with forward slashes and removing leading slashes.
|
|
175
|
-
*
|
|
176
|
-
* @param url - The URL to normalize.
|
|
177
|
-
* @returns The normalized URL.
|
|
178
|
-
*/
|
|
179
|
-
// NOSONAR: Commented code kept for future CDS implementation reference
|
|
180
|
-
// function uniformUrl(url: string): string {
|
|
181
|
-
// return url
|
|
182
|
-
// .replaceAll(/\\/g, '/')
|
|
183
|
-
// .replaceAll(/\/\//g, '/')
|
|
184
|
-
// .replaceAll(/(?:^\/)/g, '');
|
|
185
|
-
// }
|
|
186
160
|
//# sourceMappingURL=annotation-provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotation-provider.js","sourceRoot":"","sources":["../src/annotation-provider.ts"],"names":[],"mappings":";AAAA,+DAA+D;;;
|
|
1
|
+
{"version":3,"file":"annotation-provider.js","sourceRoot":"","sources":["../src/annotation-provider.ts"],"names":[],"mappings":";AAAA,+DAA+D;;;AA8B/D,wDA8BC;AAQD,gCAKC;AAvED,2DAA2E;AAE3E,mEAA+D;AAC/D,wEAKqC;AACrC,mEAA6D;AAE7D,+BAA4E;AAE5E,yEAAmG;AACnG,iDAAsE;AACtE,uCAAyC;AACzC,2FAAuF;AAEvF;;;;;;;;;GASG;AACH,SAAgB,sBAAsB,CAClC,YAA8B,EAC9B,IAAY,EACZ,YAAsB,EACtB,eAA2B,EAC3B,SAA8B;IAE9B,MAAM,OAAO,GAAG,IAAI,iCAA2B,CAC3C;QACI,IAAI,EAAE,YAAY;QAClB,YAAY,EAAE,YAAY;QAC1B,YAAY;QACZ,eAAe;KAClB,EACD,4BAAsB,EACtB,EAAE,IAAI,EAAE,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE,IAAI,EAAE,EAAE,EAAE,EAClD,EAAE,CACL,CAAC;IACF,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAExB,MAAM,SAAS,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IACzC,MAAM,gBAAgB,GAAG,YAAY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E,EACrD,QAAQ,CAAC,UAAU,CACtB,CAAC;QAEF,MAAM,SAAS,GAAG,IAAA,2CAAmB,EAAC,UAAU,EAAE,eAAe,CAAC,aAAa,EAAE,CAAC,CAAC;QACnF,MAAM,4BAA4B,GAAG,IAAA,mDAAoC,EACrE,SAAS,EACT,iBAAiB,CAAC,eAAe,EAAE,CACtC,CAAC;QACF,gBAAgB,CAAC,GAAG,CAAC,GAAG,4BAA4B,CAAC;IACzD,CAAC;IACD,OAAO,gBAAgB,CAAC;AAC5B,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,5 +4,5 @@ export * from './types/change';
|
|
|
4
4
|
export * from './external-services';
|
|
5
5
|
export { ServiceArtifacts } from './types/adapter';
|
|
6
6
|
export { findAnnotation, getAvtNodeFromPointer } from './avt';
|
|
7
|
-
export { getXmlServiceArtifacts, CdsAnnotationProvider } from './annotation-provider';
|
|
7
|
+
export { getXmlServiceArtifacts, CdsAnnotationProvider, uniformUrl } from './annotation-provider';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,6BAA6B,EAAE,MAAM,iBAAiB,CAAC;AACxF,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,6BAA6B,EAAE,MAAM,iBAAiB,CAAC;AACxF,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.CdsAnnotationProvider = exports.getXmlServiceArtifacts = exports.getAvtNodeFromPointer = exports.findAnnotation = exports.FioriAnnotationService = void 0;
|
|
17
|
+
exports.uniformUrl = exports.CdsAnnotationProvider = exports.getXmlServiceArtifacts = exports.getAvtNodeFromPointer = exports.findAnnotation = exports.FioriAnnotationService = void 0;
|
|
18
18
|
var fiori_service_1 = require("./fiori-service");
|
|
19
19
|
Object.defineProperty(exports, "FioriAnnotationService", { enumerable: true, get: function () { return fiori_service_1.FioriAnnotationService; } });
|
|
20
20
|
__exportStar(require("./protected"), exports);
|
|
@@ -26,4 +26,5 @@ Object.defineProperty(exports, "getAvtNodeFromPointer", { enumerable: true, get:
|
|
|
26
26
|
var annotation_provider_1 = require("./annotation-provider");
|
|
27
27
|
Object.defineProperty(exports, "getXmlServiceArtifacts", { enumerable: true, get: function () { return annotation_provider_1.getXmlServiceArtifacts; } });
|
|
28
28
|
Object.defineProperty(exports, "CdsAnnotationProvider", { enumerable: true, get: function () { return annotation_provider_1.CdsAnnotationProvider; } });
|
|
29
|
+
Object.defineProperty(exports, "uniformUrl", { enumerable: true, get: function () { return annotation_provider_1.uniformUrl; } });
|
|
29
30
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iDAAwF;AAA/E,uHAAA,sBAAsB,OAAA;AAC/B,8CAA4B;AAC5B,iDAA+B;AAC/B,sDAAoC;AAEpC,6BAA8D;AAArD,qGAAA,cAAc,OAAA;AAAE,4GAAA,qBAAqB,OAAA;AAC9C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iDAAwF;AAA/E,uHAAA,sBAAsB,OAAA;AAC/B,8CAA4B;AAC5B,iDAA+B;AAC/B,sDAAoC;AAEpC,6BAA8D;AAArD,qGAAA,cAAc,OAAA;AAAE,4GAAA,qBAAqB,OAAA;AAC9C,6DAAkG;AAAzF,6HAAA,sBAAsB,OAAA;AAAE,4HAAA,qBAAqB,OAAA;AAAE,iHAAA,UAAU,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/fiori-annotation-api",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.44",
|
|
4
4
|
"description": "Library that provides API for reading and writing annotations in SAP Fiori elements projects.",
|
|
5
5
|
"publisher": "SAPSE",
|
|
6
6
|
"author": "SAP SE",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@sap-ux/odata-entity-model": "0.3.7",
|
|
28
28
|
"@sap-ux/odata-vocabularies": "0.4.30",
|
|
29
29
|
"@sap-ux/logger": "0.8.5",
|
|
30
|
-
"@sap-ux/project-access": "1.35.
|
|
30
|
+
"@sap-ux/project-access": "1.35.21",
|
|
31
31
|
"@sap-ux/xml-odata-annotation-converter": "0.4.12"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|