You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

sails-tingo

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sails-tingo - npm Package Compare versions

Comparing version

to
0.11.5-alpha3

2

lib/collection.js

@@ -222,3 +222,3 @@

// Required because options may not contain an ID
collection.find(query.criteria.where).toArray(function(err, records) {
collection.find(query.criteria.where, {_id: 1}).toArray(function(err, records) {
if(err) return cb(err);

@@ -225,0 +225,0 @@ if(!records) return cb(Errors.NotFound);

@@ -304,3 +304,3 @@

if(/^\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\.\d{3}Z$/.test(val) && self.schema[field].type == 'date' || self.schema[field].type == 'datetime') {
if(/^\d{4}-\d{2}-\d{2}[T ]\d{2}\:\d{2}\:\d{2}(\.\d{3})?Z?$/.test(val) && (self.schema[field].type == 'date' || self.schema[field].type == 'datetime')) {
return new Date(val);

@@ -307,0 +307,0 @@ }

{
"name": "sails-tingo",
"version": "0.11.5-alpha2",
"version": "0.11.5-alpha3",
"description": "TingoDB adapter for Sails.js",

@@ -5,0 +5,0 @@ "main": "./lib/adapter.js",