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

sails-disk

Package Overview
Dependencies
Maintainers
3
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.3 to 0.10.4

22

lib/database.js

@@ -30,3 +30,3 @@ /**

// Build a filePath
this.filePath = this.config.filePath + this.config.identity + '.db';
this.filePath = this.config.filePath + (this.config.fileName || (this.config.identity + '.db'));

@@ -410,3 +410,3 @@ // Hold Collections

// var records = _.reject(self.data[collectionName], result);
// // Build an array of uniqueness errors

@@ -420,3 +420,3 @@ // var uniquenessErrors = [];

// if (!!~_.pluck(records, uniqueAttrName).indexOf(values[uniqueAttrName])) {
// uniquenessErrors.push({

@@ -566,3 +566,3 @@ // attribute: uniqueAttrName,

* enforceUniqueness
*
*
* Enforces uniqueness constraint.

@@ -636,3 +636,3 @@ *

* given the schema.
*
*
* @param {Object} schema

@@ -654,3 +654,3 @@ * @return {String}

* error definition.
*
*
* @param {Array} errors

@@ -668,3 +668,3 @@ * @constructor

// But if constraints were violated, we need to build a validation error.
//
//

@@ -679,7 +679,7 @@ // First, group errors into an object of single-item arrays of objects:

// }
//
//
errors = _.groupBy(errors, 'attribute');
//
// Then remove the `attribute` key.
//
//
errors = _.mapValues(errors, function (err) {

@@ -689,3 +689,3 @@ delete err[0].attribute;

});
// Finally, build a validation error:

@@ -699,3 +699,3 @@ var validationError = {

return validationError;
}
{
"name": "sails-disk",
"version": "0.10.3",
"version": "0.10.4",
"description": "Persistent local-disk adapter for Sails.js / Waterline",

@@ -5,0 +5,0 @@ "main": "lib/adapter.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