@sap-ux/annotation-converter
Advanced tools
Comparing version 0.5.5 to 0.5.6
# @sap-ux/annotation-converter | ||
## 0.5.6 | ||
### Patch Changes | ||
- 0dc370d: fix: annotation source definition in all cases | ||
## 0.5.5 | ||
@@ -4,0 +10,0 @@ |
@@ -1038,3 +1038,7 @@ "use strict"; | ||
if (!annotationListPerTarget[currentTargetName]) { | ||
annotationListPerTarget[currentTargetName] = annotationList; | ||
annotationListPerTarget[currentTargetName] = { | ||
annotations: annotationList.annotations.concat(), | ||
target: currentTargetName | ||
}; | ||
annotationListPerTarget[currentTargetName].__source = annotationSource; | ||
} | ||
@@ -1047,4 +1051,4 @@ else { | ||
}); | ||
annotation.__source = annotationSource; | ||
if (findIndex !== -1) { | ||
annotation.__source = annotationSource; | ||
annotationListPerTarget[currentTargetName].annotations.splice(findIndex, 1, annotation); | ||
@@ -1051,0 +1055,0 @@ } |
{ | ||
"name": "@sap-ux/annotation-converter", | ||
"version": "0.5.5", | ||
"version": "0.5.6", | ||
"description": "SAP Fiori OData - Annotation converter", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -1274,3 +1274,7 @@ import type { | ||
if (!annotationListPerTarget[currentTargetName]) { | ||
annotationListPerTarget[currentTargetName] = annotationList; | ||
annotationListPerTarget[currentTargetName] = { | ||
annotations: annotationList.annotations.concat(), | ||
target: currentTargetName | ||
}; | ||
(annotationListPerTarget[currentTargetName] as any).__source = annotationSource; | ||
} else { | ||
@@ -1286,4 +1290,4 @@ annotationList.annotations.forEach((annotation) => { | ||
); | ||
(annotation as any).__source = annotationSource; | ||
if (findIndex !== -1) { | ||
(annotation as any).__source = annotationSource; | ||
annotationListPerTarget[currentTargetName].annotations.splice(findIndex, 1, annotation); | ||
@@ -1290,0 +1294,0 @@ } else { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
270798
4064