New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@platformatic/sql-mapper

Package Overview
Dependencies
Maintainers
6
Versions
332
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@platformatic/sql-mapper - npm Package Compare versions

Comparing version 0.20.1 to 0.21.0

test/or.test.js

9

lib/entity.js

@@ -209,2 +209,11 @@ 'use strict'

for (const key of Object.keys(where)) {
if (key === 'or') {
const orCriteria = []
for (const orPart of where[key]) {
const cret = computeCriteria({ where: orPart })
orCriteria.push(sql`(${sql.join(cret, sql` AND `)})`)
}
criteria.push(sql`(${sql.join(orCriteria, sql` OR `)})`)
continue
}
const value = where[key]

@@ -211,0 +220,0 @@ const field = inputToFieldMap[key]

2

package.json
{
"name": "@platformatic/sql-mapper",
"version": "0.20.1",
"version": "0.21.0",
"description": "A data mapper utility for SQL databases",

@@ -5,0 +5,0 @@ "main": "mapper.js",

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