@sap-ux/fiori-annotation-api
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -450,3 +450,3 @@ "use strict"; | ||
// use internal representation (without alias) to represent Apply value | ||
const clone = JSON.parse(JSON.stringify(element)); | ||
const clone = structuredClone(element); | ||
replaceAliasInElement(namespaceMap, currentNamespace, clone); | ||
@@ -453,0 +453,0 @@ const functionName = (0, odata_annotation_core_1.getElementAttributeValue)(element, "Function" /* Edm.Function */); |
@@ -229,3 +229,3 @@ "use strict"; | ||
// Apply value is regular internal representation (without alias) | ||
const clone = JSON.parse(JSON.stringify(expression)); | ||
const clone = structuredClone(expression); | ||
return replaceAliasInElement(clone, aliasInfo, true); | ||
@@ -232,0 +232,0 @@ } |
@@ -77,3 +77,3 @@ "use strict"; | ||
} | ||
const newChange = JSON.parse(JSON.stringify(change)); | ||
const newChange = structuredClone(change); | ||
newChange.index = 0; | ||
@@ -80,0 +80,0 @@ this.commands.set(i, { |
@@ -12,3 +12,3 @@ "use strict"; | ||
function addAllVocabulariesToAliasInformation(aliasInfo, vocabularies) { | ||
const aliasInfoWithDefaults = JSON.parse(JSON.stringify(aliasInfo)); | ||
const aliasInfoWithDefaults = structuredClone(aliasInfo); | ||
for (const [namespace, vocabulary] of vocabularies) { | ||
@@ -15,0 +15,0 @@ if (!aliasInfo.aliasMapVocabulary[namespace]) { |
{ | ||
"name": "@sap-ux/fiori-annotation-api", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "Library that provides API for reading and writing annotations in SAP Fiori elements projects.", | ||
@@ -20,4 +20,4 @@ "publisher": "SAPSE", | ||
"@sap-ux/cds-odata-annotation-converter": "0.4.0", | ||
"@sap-ux/odata-annotation-core-types": "0.4.2", | ||
"@sap-ux/odata-annotation-core": "0.2.2", | ||
"@sap-ux/odata-annotation-core-types": "0.4.2", | ||
"@sap-ux/odata-entity-model": "0.3.1", | ||
@@ -24,0 +24,0 @@ "@sap-ux/odata-vocabularies": "0.4.5", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
952362