Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

orm

Package Overview
Dependencies
Maintainers
2
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

orm - npm Package Compare versions

Comparing version 2.1.21 to 2.1.22

3

Changelog.md

@@ -0,1 +1,4 @@

### v2.1.22
- Fix ignorecase unique scope for hasOne property (#603)
### v2.1.21

@@ -2,0 +5,0 @@ - Fix mixed case uniqueness constraint on postgres (#597)

2

lib/Validators.js

@@ -78,3 +78,3 @@ var enforce = require("enforce");

if (opts.ignoreCase === true && ctx.model.properties[prop].type === 'text') {
if (opts.ignoreCase === true && ctx.model.properties[prop] && ctx.model.properties[prop].type === 'text') {
query = util.format('LOWER(%s.%s) LIKE LOWER(?)',

@@ -81,0 +81,0 @@ ctx.driver.query.escapeId(ctx.model.table), ctx.driver.query.escapeId(prop)

@@ -15,3 +15,3 @@ {

],
"version" : "2.1.21",
"version" : "2.1.22",
"license" : "MIT",

@@ -18,0 +18,0 @@ "homepage" : "http://dresende.github.io/node-orm2",

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