fortune-fs
Advanced tools
Comparing version 1.0.0 to 1.0.1
15
index.js
@@ -16,3 +16,3 @@ 'use strict' | ||
var DefaultAdapter = Adapter.DefaultAdapter | ||
var map, primaryKey, generateId | ||
var map, primaryKey | ||
@@ -30,3 +30,2 @@ function FileSystemAdapter (properties) { | ||
map = properties.common.map | ||
generateId = properties.common.generateId | ||
} | ||
@@ -115,8 +114,10 @@ | ||
var self = this | ||
var memoizedIds = ids || Object.keys(self.db[type]) | ||
return writeRecords( | ||
path.join(self.options.path, type), | ||
ids || Object.keys(self.db[type])) | ||
.then(function () { | ||
return DefaultAdapter.prototype.delete.call(self, type, ids) | ||
return DefaultAdapter.prototype.delete.call(self, type, ids) | ||
.then(function (count) { | ||
return writeRecords( | ||
path.join(self.options.path, type), | ||
memoizedIds) | ||
.then(function () { return count }) | ||
}) | ||
@@ -123,0 +124,0 @@ } |
{ | ||
"name": "fortune-fs", | ||
"description": "File system adapter for Fortune.", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "repository": { |
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
116
7094
7