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

sails-disk

Package Overview
Dependencies
Maintainers
4
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sails-disk - npm Package Compare versions

Comparing version 0.10.9 to 0.10.10

23

lib/database.js

@@ -501,3 +501,3 @@ /**

this.data[collectionName] = _.reject(this.data[collectionName], function (model, i) {
return _.contains(resultSet.indices, i);
return _.includes(resultSet.indices, i);
});

@@ -527,3 +527,3 @@

var attrDef = this.schema[collectionName][attrName];
// Only apply autoIncrement if we're supposed to!

@@ -534,20 +534,20 @@ if(!attrDef.autoIncrement) continue;

if(!this.counters[collectionName][attrName]) this.counters[collectionName][attrName] = 0;
// If peeps are manually setting the AI field, keep the counter ahead.
// Otherwise, increment the counter and set the field.
if(values[attrName]) {
if (values[attrName] > this.counters[collectionName][attrName]) {
this.counters[collectionName][attrName] = values[attrName];
}
} else {
// Increment AI counter
this.counters[collectionName][attrName]++;
// Set data to current auto-increment value
values[attrName] = this.counters[collectionName][attrName];
}
}

@@ -633,2 +633,7 @@

// Ignore uniqueness check on null values
// null should be ignored in unique constraint following SQL:2011 standard
// even so some DBMS (eg. Microsoft SQL Server) are not standard compliant
if (_.isNull(values[attrName])) continue;
// If `pkValueOfFirstRecordInResultSet` was provided, this must be an update,

@@ -639,3 +644,3 @@ // and we're updating the record with this pk value.

// uniqueness violation.
//
//
// (note that if I'm updating multiple records but providing only one value for

@@ -642,0 +647,0 @@ // a unique attribute, this will inevitably fail anyways-- this is why we only care

{
"name": "sails-disk",
"version": "0.10.9",
"version": "0.10.10",
"description": "Persistent local-disk adapter for Sails.js / Waterline",

@@ -31,12 +31,12 @@ "main": "lib/adapter.js",

"dependencies": {
"lodash": "2.4.1",
"waterline-criteria": "~1.0.0",
"waterline-errors": "~0.10.0",
"fs-extra": "0.8.1",
"lodash": "3.10.1",
"waterline-criteria": "~1.0.1",
"waterline-errors": "~0.10.1",
"fs-extra": "0.30.0",
"async": "~0.2.9",
"waterline-cursor": "~0.0.5"
"waterline-cursor": "~0.0.6"
},
"devDependencies": {
"mocha": "~1.13.0",
"waterline-adapter-tests": "~0.10.0",
"mocha": "~2.5.3",
"waterline-adapter-tests": "~0.12.0",
"captains-log": "~0.11.1"

@@ -43,0 +43,0 @@ },

Sorry, the diff of this file is not supported yet

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