Socket
Socket
Sign inDemoInstall

@cap-js/db-service

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cap-js/db-service - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

6

CHANGELOG.md

@@ -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 @@

12

lib/cql-functions.js

@@ -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",

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