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.6.0 to 0.6.1

6

CHANGELOG.md
# @sap-ux/annotation-converter
## 0.6.1
### Patch Changes
- 946cf8f: Annotations on properties of a ComplexType are now resolved
## 0.6.0

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

7

dist/converter.js

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

function resolveTarget(converter, startElement, path, annotationsTerm) {
var _a;
// absolute paths always start at the entity container

@@ -60,4 +61,6 @@ if (path.startsWith('/')) {

else if (startElement._type === 'Property') {
// property: start at the entity type the property belongs to
startElement = converter.getConvertedEntityType((0, utils_1.substringBeforeFirst)(startElement.fullyQualifiedName, '/'));
// property: start at the entity type or complex type the property belongs to
const parentElementFQN = (0, utils_1.substringBeforeFirst)(startElement.fullyQualifiedName, '/');
startElement =
(_a = converter.getConvertedEntityType(parentElementFQN)) !== null && _a !== void 0 ? _a : converter.getConvertedComplexType(parentElementFQN);
}

@@ -64,0 +67,0 @@ const result = pathSegments.reduce((current, segment) => {

{
"name": "@sap-ux/annotation-converter",
"version": "0.6.0",
"version": "0.6.1",
"description": "SAP Fiori OData - Annotation converter",

@@ -5,0 +5,0 @@ "repository": {

@@ -116,4 +116,6 @@ import type {

} else if (startElement._type === 'Property') {
// property: start at the entity type the property belongs to
startElement = converter.getConvertedEntityType(substringBeforeFirst(startElement.fullyQualifiedName, '/'));
// property: start at the entity type or complex type the property belongs to
const parentElementFQN = substringBeforeFirst(startElement.fullyQualifiedName, '/');
startElement =
converter.getConvertedEntityType(parentElementFQN) ?? converter.getConvertedComplexType(parentElementFQN);
}

@@ -120,0 +122,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