Socket
Socket
Sign inDemoInstall

@sap/cds-compiler

Package Overview
Dependencies
Maintainers
0
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sap/cds-compiler - npm Package Compare versions

Comparing version 4.9.6 to 4.9.8

4

lib/compiler/define.js

@@ -1206,3 +1206,5 @@ // Compiler phase 1 = "define": transform dictionary of AST-like XSNs into XSN

if (path?.length === 1 && path[0]?.id === '$self') { // TODO: no where: ?
const { $self } = main.$tableAliases;
const $self = main.$tableAliases?.$self ||
main.kind === 'extend' && { name: { id: '$self' } };
// remark: an extend has no "table alias" `$self` (relevant for parse-cdl)
setLink( type, '_artifact', $self );

@@ -1209,0 +1211,0 @@ setLink( path[0], '_artifact', $self );

@@ -885,2 +885,6 @@ 'use strict';

super(version, {}, csn);
// CSDL 12.8: If the return type is a collection of entity types,
// the Nullable attribute has no meaning and MUST NOT be specified.
if (csn.$NoNullableProperty)
delete this._edmAttributes.Nullable;
}

@@ -892,2 +896,6 @@

this.toJSONattributes(json);
// CSDL 12.8: If the return type is a collection of entity types,
// the Nullable attribute has no meaning and MUST NOT be specified.
if (this._csn.$NoNullableProperty)
delete json.$Nullable;
return json;

@@ -894,0 +902,0 @@ }

{
"name": "@sap/cds-compiler",
"version": "4.9.6",
"version": "4.9.8",
"description": "CDS (Core Data Services) compiler and backends",

@@ -31,3 +31,3 @@ "homepage": "https://cap.cloud.sap/",

"coverage:piper": "cross-env nyc mocha --reporter test/TestMochaReporter.js --reporter-options mochaFile=./coverage/TEST-results.xml --reporter-option maxDiffSize=0 --timeout 10000 test/ test3/ && nyc report --reporter=cobertura && nyc report --reporter=lcov",
"lint": "eslint bin/ benchmark/ lib/ test/ test3/ scripts/ types/ && node scripts/linter/lintGrammar.js && node scripts/linter/lintTests.js test3/ && node scripts/linter/lintMessages.js && node scripts/linter/lintMessageIdCoverage.js lib/ && markdownlint README.md CHANGELOG.md doc/ internalDoc/ && cd share/messages && markdownlint . && cd ../../ && node scripts/check-changelog.js",
"lint": "eslint bin/ benchmark/ lib/ test/ test3/ scripts/ && node scripts/linter/lintGrammar.js && node scripts/linter/lintTests.js test3/ && node scripts/linter/lintMessages.js && node scripts/linter/lintMessageIdCoverage.js lib/ && markdownlint README.md CHANGELOG.md doc/ internalDoc/ && cd share/messages && markdownlint . && cd ../../ && node scripts/check-changelog.js",
"tslint": "tsc --pretty -p .",

@@ -34,0 +34,0 @@ "updateVocs": "node scripts/odataAnnotations/generateDictMain.js && npm run generateAllRefs",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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