@cap-js/db-service
Advanced tools
+14
-0
@@ -7,2 +7,16 @@ # Changelog | ||
| ## [2.6.0](https://github.com/cap-js/cds-dbs/compare/db-service-v2.5.1...db-service-v2.6.0) (2025-10-23) | ||
| ### Added | ||
| * **`flattening`:** allow flattening of `n`-ary structures in `list` ([#1337](https://github.com/cap-js/cds-dbs/issues/1337)) ([7ec18f2](https://github.com/cap-js/cds-dbs/commit/7ec18f24dba80ba31ad4e46f816c17fa64cba91a)) | ||
| * **`flattening`:** allow flattening of structures with exactly one leaf ([7ec18f2](https://github.com/cap-js/cds-dbs/commit/7ec18f24dba80ba31ad4e46f816c17fa64cba91a)) | ||
| ### Fixed | ||
| * **`@cds.search`:** properly exclude an association from being searched ([#1385](https://github.com/cap-js/cds-dbs/issues/1385)) ([9ed4245](https://github.com/cap-js/cds-dbs/commit/9ed42458417c15dc33409befd0ef40889f04a69f)) | ||
| * tree table with expand ([#1363](https://github.com/cap-js/cds-dbs/issues/1363)) ([bdad412](https://github.com/cap-js/cds-dbs/commit/bdad412f0362165b532ce35261773e5ecc7c696a)) | ||
| ## [2.5.1](https://github.com/cap-js/cds-dbs/compare/db-service-v2.5.0...db-service-v2.5.1) (2025-09-30) | ||
@@ -9,0 +23,0 @@ |
+7
-1
@@ -353,3 +353,9 @@ const cds = require('@sap/cds') | ||
| columnsIn.push(ref) | ||
| if (from.args || columnsFiltered.find(c => this.column_name(c) === name)) { | ||
| const foreignkey4 = element._foreignKey4 | ||
| if ( | ||
| from.args || | ||
| columnsFiltered.find(c => this.column_name(c) === name) || | ||
| // foreignkey needs to be included when the association is expanded | ||
| (foreignkey4 && q.SELECT.columns.some(c => c.element?.isAssociation && c.element.name === foreignkey4)) | ||
| ) { | ||
| columnsOut.push(ref.as ? { ref: [ref.as], as: name } : ref) | ||
@@ -356,0 +362,0 @@ } |
+1
-14
@@ -6,16 +6,3 @@ const cds = require('@sap/cds') | ||
| // REVISIT: remove old path with cds^8 | ||
| let _compareJson | ||
| const compareJson = (...args) => { | ||
| if (!_compareJson) { | ||
| try { | ||
| // new path | ||
| _compareJson = require('@sap/cds/libx/_runtime/common/utils/compareJson').compareJson | ||
| } catch { | ||
| // old path | ||
| _compareJson = require('@sap/cds/libx/_runtime/cds-services/services/utils/compareJson').compareJson | ||
| } | ||
| } | ||
| return _compareJson(...args) | ||
| } | ||
| const compareJson = require('@sap/cds/libx/_runtime/common/utils/compareJson').compareJson | ||
@@ -22,0 +9,0 @@ const handledDeep = Symbol('handledDeep') |
+3
-0
@@ -82,2 +82,5 @@ 'use strict' | ||
| if (column?.isAssociation || columnName.includes('.')) { | ||
| if(!annotationValue) | ||
| continue | ||
| const ref = columnName.split('.') | ||
@@ -84,0 +87,0 @@ if(ref.length > 1) skipDefaultSearchableElements = true |
+1
-1
| { | ||
| "name": "@cap-js/db-service", | ||
| "version": "2.5.1", | ||
| "version": "2.6.0", | ||
| "description": "CDS base database service", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/cap-js/cds-dbs/tree/main/db-service#cds-base-database-service", |
Sorry, the diff of this file is too big to display
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
361600
0.58%7160
0.15%70
-1.41%