pouchdb-collections
Advanced tools
Comparing version 1.0.0 to 1.0.1
15
index.js
@@ -21,5 +21,4 @@ 'use strict'; | ||
return this.store[mangled]; | ||
} else { | ||
return void 0; | ||
} | ||
return void 0; | ||
}; | ||
@@ -44,9 +43,9 @@ LazyMap.prototype.set = function (key, value) { | ||
LazyMap.prototype.forEach = function (cb) { | ||
var self = this; | ||
var keys = Object.keys(self.store); | ||
keys.forEach(function (key) { | ||
var value = self.store[key]; | ||
key = self.unmangle(key); | ||
var keys = Object.keys(this.store); | ||
for (var i = 0, len = keys.length; i < len; i++) { | ||
var key = keys[i]; | ||
var value = this.store[key]; | ||
key = this.unmangle(key); | ||
cb(value, key); | ||
}); | ||
} | ||
}; | ||
@@ -53,0 +52,0 @@ |
{ | ||
"name": "pouchdb-collections", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Map and Set shims for PouchDB", | ||
@@ -5,0 +5,0 @@ "main": "index.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
2539
67