sails-disk
Advanced tools
Comparing version 0.10.3 to 0.10.4
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30673