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

@sap-ux/edmx-parser

Package Overview
Dependencies
Maintainers
0
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sap-ux/edmx-parser - npm Package Compare versions

Comparing version 0.8.2 to 0.9.0

6

CHANGELOG.md
# @sap-ux/edmx-parser
## 0.9.0
### Minor Changes
- d581d62: **BREAKING CHANGE**: parser and writeback no longer incorrectly convert string Collections entries as `string`. Now returned values correctly match the `StringExpression` type and function signatures.
## 0.8.2

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

5

dist/parser.js

@@ -486,3 +486,6 @@ "use strict";

else if (isExpressionOfType(collection, 'String')) {
const stringArray = (0, utils_1.ensureArray)(collection.String).map((stringValue) => stringValue._text);
const stringArray = (0, utils_1.ensureArray)(collection.String).map((stringValue) => ({
type: 'String',
String: stringValue._text
}));
stringArray.type = 'String';

@@ -489,0 +492,0 @@ return stringArray;

4

package.json
{
"name": "@sap-ux/edmx-parser",
"version": "0.8.2",
"version": "0.9.0",
"description": "SAP Fiori OData - EDMX File parser",

@@ -20,3 +20,3 @@ "repository": {

"devDependencies": {
"@sap-ux/vocabularies-types": "0.11.6"
"@sap-ux/vocabularies-types": "0.12.1"
},

@@ -23,0 +23,0 @@ "scripts": {

@@ -7,2 +7,3 @@ // eslint-disable-next-line @typescript-eslint/triple-slash-reference

AnnotationRecord,
ArrayWithType,
Expression,

@@ -709,5 +710,10 @@ FullyQualifiedName,

} else if (isExpressionOfType<EDMX.StringCollectionWrapper>(collection, 'String')) {
const stringArray = ensureArray(collection.String).map((stringValue) => stringValue._text);
(stringArray as any).type = 'String';
return stringArray as unknown as StringExpression[];
const stringArray: ArrayWithType<StringExpression, 'String'> = ensureArray(collection.String).map(
(stringValue): StringExpression => ({
type: 'String',
String: stringValue._text
})
);
stringArray.type = 'String';
return stringArray;
} else if (isExpressionOfType<EDMX.AnnotationPathCollectionWrapper>(collection, 'AnnotationPath')) {

@@ -714,0 +720,0 @@ const annotationPathArray = ensureArray(collection.AnnotationPath).map(

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