@sap-ux/annotation-converter
Advanced tools
Comparing version 0.5.8 to 0.5.9
# @sap-ux/annotation-converter | ||
## 0.5.9 | ||
### Patch Changes | ||
- 069270b: Initial open source release of the SAP UX FE Mockserver | ||
## 0.5.8 | ||
@@ -4,0 +10,0 @@ |
@@ -948,3 +948,4 @@ "use strict"; | ||
currentTarget.annotations._annotations[`${vocAlias}.${vocTermWithQualifier}`] = | ||
currentTarget.annotations[vocAlias][vocTermWithQualifier]; | ||
currentTarget.annotations._annotations[(0, utils_1.unalias)(utils_1.defaultReferences, `${vocAlias}.${vocTermWithQualifier}`)] = | ||
currentTarget.annotations[vocAlias][vocTermWithQualifier]; | ||
objectMap[annotationTarget] = currentTarget.annotations[vocAlias][vocTermWithQualifier]; | ||
@@ -951,0 +952,0 @@ }); |
@@ -243,9 +243,12 @@ "use strict"; | ||
} | ||
return Object.assign(Object.assign({}, baseAnnotation), { collection: annotation.map((anno) => revertCollectionItemToRawType(references, anno)) }); | ||
return { | ||
...baseAnnotation, | ||
collection: annotation.map((anno) => revertCollectionItemToRawType(references, anno)) | ||
}; | ||
} | ||
else if (annotation.hasOwnProperty('$Type')) { | ||
return Object.assign(Object.assign({}, baseAnnotation), { record: revertCollectionItemToRawType(references, annotation) }); | ||
return { ...baseAnnotation, record: revertCollectionItemToRawType(references, annotation) }; | ||
} | ||
else { | ||
return Object.assign(Object.assign({}, baseAnnotation), { value: revertValueToRawType(references, annotation) }); | ||
return { ...baseAnnotation, value: revertValueToRawType(references, annotation) }; | ||
} | ||
@@ -252,0 +255,0 @@ } |
{ | ||
"name": "@sap-ux/annotation-converter", | ||
"version": "0.5.8", | ||
"version": "0.5.9", | ||
"description": "SAP Fiori OData - Annotation converter", | ||
@@ -17,4 +17,4 @@ "repository": { | ||
"devDependencies": { | ||
"@sap-ux/vocabularies-types": "0.5.5", | ||
"@sap-ux/edmx-parser": "0.5.4" | ||
"@sap-ux/vocabularies-types": "0.5.6", | ||
"@sap-ux/edmx-parser": "0.5.5" | ||
}, | ||
@@ -21,0 +21,0 @@ "scripts": { |
@@ -1184,3 +1184,4 @@ import type { | ||
currentTarget.annotations._annotations[`${vocAlias}.${vocTermWithQualifier}`] = | ||
currentTarget.annotations[vocAlias][vocTermWithQualifier]; | ||
currentTarget.annotations._annotations[unalias(defaultReferences, `${vocAlias}.${vocTermWithQualifier}`)!] = | ||
currentTarget.annotations[vocAlias][vocTermWithQualifier]; | ||
objectMap[annotationTarget] = currentTarget.annotations[vocAlias][vocTermWithQualifier]; | ||
@@ -1187,0 +1188,0 @@ }); |
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
271763
4071