@sap-ux/annotation-converter
Advanced tools
Comparing version 0.5.11 to 0.5.12
# @sap-ux/annotation-converter | ||
## 0.5.12 | ||
### Patch Changes | ||
- 64a0fdf: Improve v2 services support | ||
## 0.5.11 | ||
@@ -4,0 +10,0 @@ |
@@ -675,2 +675,3 @@ "use strict"; | ||
} | ||
outNavProp.referentialConstraint = navProp.referentialConstraint || []; | ||
} | ||
@@ -677,0 +678,0 @@ function resolveV4NavigationProperty(navProp, objectMap, outNavProp) { |
{ | ||
"name": "@sap-ux/annotation-converter", | ||
"version": "0.5.11", | ||
"version": "0.5.12", | ||
"description": "SAP Fiori OData - Annotation converter", | ||
@@ -18,3 +18,3 @@ "repository": { | ||
"@sap-ux/vocabularies-types": "0.6.0", | ||
"@sap-ux/edmx-parser": "0.5.5" | ||
"@sap-ux/edmx-parser": "0.5.6" | ||
}, | ||
@@ -32,4 +32,3 @@ "scripts": { | ||
"test-u": "jest --ci --forceExit --detectOpenHandles --colors -u" | ||
}, | ||
"readme": "# @sap-ux/annotation-converter\n\nProvides a way to convert a raw metadata document object into a convenient structure where path are resolved already for you.\n\nThe goal of this module is to provide an object that is ready to use and should cover most of the needs one can have when it comes to manipulating an odata service and its annotation.\n\nAll the object defined by this will be compatible with the @sap-ux/vocabularies-types providing an easy way to evaluate annotations.\n\n## Installation\nnpm\n`npm install --save-dev @sap-ux/annotation-converter`\n\nyarn\n`yarn add @sap-ux/annotation-converter --dev`\n\npnpm\n`pnpm add @sap-ux/annotation-converter --dev`\n\n## Usage\n\nImport the `convert` method from the module\n\n`import { convert } from '@sap-ux/annotation-converter';`\n\nUse it on a raw metadata generated from `@sap-ux/edmx-parser` or complying to the same structure\n\n```typescript\nconst myRawMetadata = ... \n\nconst myConvertedMetadata = convert(myRawMetadata);\nconst isDraftEnabled = myConvertedMetadata.entityTypes[0].annotations.Common?.DraftRoot || myConvertedMetadata.entityTypes[0].annotations.Common?.DraftNode;\nconst myLabel = myConvertedMetadata.entityTypes[0].properties[0].annotations?.Common?.Text?.$target?.name // Property name of the text annotation if it exists\n```\n\n## Keywords\nAnnotation Converter\n\n\n" | ||
} | ||
} |
@@ -835,2 +835,3 @@ import type { | ||
} | ||
outNavProp.referentialConstraint = navProp.referentialConstraint || []; | ||
} | ||
@@ -837,0 +838,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4129
274629