Socket
Socket
Sign inDemoInstall

@sap/cds-compiler

Package Overview
Dependencies
Maintainers
1
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.7.4 to 4.7.6

33

lib/transform/draft/odata.js

@@ -83,6 +83,21 @@ 'use strict';

// Nothing to do if already draft-enabled (composition traversal may have circles)
if (filterDict[artifactName])
if ((artifact['@Common.DraftRoot.PreparationAction'] || artifact['@Common.DraftNode.PreparationAction']) &&
artifact.actions && artifact.actions.draftPrepare)
return;
const draftPrepare = createAction('draftPrepare', artifactName, 'SideEffectsQualifier', 'cds.String');
assignAction(draftPrepare, artifact);
// Generate the actions into the draft-enabled artifact (only draft roots can be activated/edited)
// action draftPrepare (SideEffectsQualifier: String) return <artifact>;
if (artifact === rootArtifact) {
// action draftActivate() return <artifact>;
const draftActivate = createAction('draftActivate', artifactName);
assignAction(draftActivate, artifact);
// action draftEdit (PreserveChanges: Boolean) return <artifact>;
const draftEdit = createAction('draftEdit', artifactName, 'PreserveChanges', 'cds.Boolean');
assignAction(draftEdit, artifact);
}
// Generate the DraftAdministrativeData projection into the service, unless there is already one

@@ -199,18 +214,2 @@ // @ts-ignore

}
// Generate the actions into the draft-enabled artifact (only draft roots can be activated/edited)
// action draftPrepare (SideEffectsQualifier: String) return <artifact>;
const draftPrepare = createAction('draftPrepare', artifactName, 'SideEffectsQualifier', 'cds.String');
assignAction(draftPrepare, artifact);
if (artifact === rootArtifact) {
// action draftActivate() return <artifact>;
const draftActivate = createAction('draftActivate', artifactName);
assignAction(draftActivate, artifact);
// action draftEdit (PreserveChanges: Boolean) return <artifact>;
const draftEdit = createAction('draftEdit', artifactName, 'PreserveChanges', 'cds.Boolean');
assignAction(draftEdit, artifact);
}
}

@@ -217,0 +216,0 @@ }

{
"name": "@sap/cds-compiler",
"version": "4.7.4",
"version": "4.7.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

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