@cap-js/db-service
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -7,2 +7,8 @@ # Change Log | ||
## Version 1.3.1 - 2023-10-10 | ||
### Fixed | ||
- Error message for `search` with multiple arguments. #265 | ||
## Version 1.3.0 - 2023-10-06 | ||
@@ -9,0 +15,0 @@ |
@@ -24,3 +24,3 @@ const StandardFunctions = { | ||
search: function (ref, arg) { | ||
if (!('val' in arg)) throw `SQLite only supports single value arguments for $search` | ||
if (!('val' in arg)) throw `Only single value arguments are allowed for $search` | ||
const refs = ref.list || [ref], | ||
@@ -35,3 +35,3 @@ { toString } = ref | ||
*/ | ||
concat: (...args) => args.map(a => a.xpr ? `(${a})` : a).join(' || '), | ||
concat: (...args) => args.map(a => (a.xpr ? `(${a})` : a)).join(' || '), | ||
@@ -146,5 +146,5 @@ /** | ||
current_date: p => p ? `current_date(${p})`: 'current_date', | ||
current_time: p => p ? `current_time(${p})`: 'current_time', | ||
current_timestamp: p => p ? `current_timestamp(${p})`: 'current_timestamp', | ||
current_date: p => (p ? `current_date(${p})` : 'current_date'), | ||
current_time: p => (p ? `current_time(${p})` : 'current_time'), | ||
current_timestamp: p => (p ? `current_timestamp(${p})` : 'current_timestamp'), | ||
@@ -347,3 +347,3 @@ /** | ||
return `floor(${this.months_between(x, y)} / 12)` | ||
} | ||
}, | ||
} | ||
@@ -350,0 +350,0 @@ |
{ | ||
"name": "@cap-js/db-service", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"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", |
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
244452