Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sap-ux/annotation-converter

Package Overview
Dependencies
Maintainers
3
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sap-ux/annotation-converter - npm Package Compare versions

Comparing version 0.5.11 to 0.5.12

6

CHANGELOG.md
# @sap-ux/annotation-converter
## 0.5.12
### Patch Changes
- 64a0fdf: Improve v2 services support
## 0.5.11

@@ -4,0 +10,0 @@

1

dist/converter.js

@@ -675,2 +675,3 @@ "use strict";

}
outNavProp.referentialConstraint = navProp.referentialConstraint || [];
}

@@ -677,0 +678,0 @@ function resolveV4NavigationProperty(navProp, objectMap, outNavProp) {

7

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc