@sap/cds-compiler
Advanced tools
Comparing version 4.9.4 to 4.9.6
@@ -19,2 +19,3 @@ 'use strict'; | ||
const { cloneCsnNonDict } = require('../../model/cloneCsn'); | ||
const { EdmTypeFacetNames } = require('../../edm/EdmPrimitiveTypeDefinitions'); | ||
@@ -832,7 +833,7 @@ /** | ||
setProp(newFk, '$extensionPath', extensionPath); | ||
for (const prop of [ 'type', 'length', 'scale', 'precision', 'srid', 'default', '@odata.Type' ]) { | ||
[ 'type', 'length', 'scale', 'precision', 'srid', 'default', '@odata.Type', ...EdmTypeFacetNames.map(f => `@odata.${f}`) ].forEach((prop) => { | ||
// copy props from original element to preserve derived types! | ||
if (element[prop] !== undefined) | ||
newFk[prop] = element[prop]; | ||
} | ||
}); | ||
return [ [ prefix, newFk ] ]; | ||
@@ -839,0 +840,0 @@ } |
@@ -14,3 +14,2 @@ 'use strict'; | ||
const associations = require('./associations'); | ||
const generateDrafts = require('../draft/db'); | ||
const handleExists = require('../db/transformExists'); | ||
@@ -81,3 +80,2 @@ const misc = require('./misc'); | ||
associations.transformBacklinks(csn, options, csnUtils, messageFunctions); | ||
generateDrafts(csn, options, '_', messageFunctions); | ||
const transformers = mergeTransformers([ misc.attachPersistenceName(csn, options, csnUtils), options.remapOdataAnnotations ? annotations.remapODataAnnotations(csn) : {}, misc.removeDefinitionsAndProperties(csn, options) ], null); | ||
@@ -84,0 +82,0 @@ applyTransformations(csn, transformers, [], { skipIgnore: false }); |
{ | ||
"name": "@sap/cds-compiler", | ||
"version": "4.9.4", | ||
"version": "4.9.6", | ||
"description": "CDS (Core Data Services) compiler and backends", | ||
@@ -5,0 +5,0 @@ "homepage": "https://cap.cloud.sap/", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
4928278
101153