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

sails-mongo

Package Overview
Dependencies
Maintainers
4
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sails-mongo - npm Package Compare versions

Comparing version 0.10.1 to 0.10.2

2

lib/adapter.js

@@ -22,3 +22,3 @@ /*---------------------------------------------------------------

// to track schema internally
syncable: false,
syncable: true,

@@ -25,0 +25,0 @@ // Expose all the connection options with default settings

@@ -315,12 +315,19 @@

if (val === "false") {
return false;
}
// If we can verify that the field is NOT a string type, translate
// certain values into booleans or null. Otherwise they'll be left
// as strings.
if (hop(self.schema, field) && self.schema[field].type != 'string') {
if (val === "false") {
return false;
}
if (val === "true") {
return true;
}
if (val === "true") {
return true;
}
if (val === "null") {
return null;
if (val === "null") {
return null;
}
}

@@ -327,0 +334,0 @@

{
"name": "sails-mongo",
"version": "0.10.1",
"version": "0.10.2",
"description": "Mongo DB adapter for Sails.js",

@@ -44,3 +44,3 @@ "main": "./lib/adapter.js",

"waterline-errors": "~0.10.0",
"waterline-cursor": "~0.0.3"
"waterline-cursor": "~0.0.4"
},

@@ -47,0 +47,0 @@ "devDependencies": {

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