node-localstorage
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -194,3 +194,3 @@ // Generated by CoffeeScript 1.9.0 | ||
LocalStorage.prototype.removeItem = function(key) { | ||
var evnt, filename, hasListeners, metaKey, oldValue; | ||
var evnt, filename, hasListeners, k, meta, metaKey, oldValue, v, _ref; | ||
key = key.toString(); | ||
@@ -209,2 +209,10 @@ metaKey = this.metaKeyMap[key]; | ||
this.keys.splice(metaKey.index, 1); | ||
_ref = this.metaKeyMap; | ||
for (k in _ref) { | ||
v = _ref[k]; | ||
meta = this.metaKeyMap[k]; | ||
if (meta.index > metaKey.index) { | ||
meta.index -= 1; | ||
} | ||
} | ||
_rm(filename); | ||
@@ -211,0 +219,0 @@ if (hasListeners) { |
{ | ||
"name": "node-localstorage", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"main": "./LocalStorage", | ||
@@ -26,5 +26,3 @@ "description": "A drop-in substitute for the browser native localStorage API that runs on node.js.", | ||
"coffee-script": "^1.9.0", | ||
"gulp-run": "^1.6.8", | ||
"nodeunit": "~0.9.0", | ||
"runsync": "~0.1.6" | ||
"nodeunit": "~0.9.0" | ||
}, | ||
@@ -31,0 +29,0 @@ "scripts": { |
@@ -68,2 +68,3 @@ [![build status](https://secure.travis-ci.org/lmaccherone/node-localstorage.png)](http://travis-ci.org/lmaccherone/node-localstorage) | ||
* 0.5.2 - 2015-08-01 - Fixed defect where keys were not being updated correctly by removeItem() (thank, ed69140) | ||
* 0.5.1 - 2015-06-01 - Added support for events | ||
@@ -70,0 +71,0 @@ * 0.5.0 - 2015-02-02 - Added JSONStorage class which allows you set and get native JSON |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
2
243
101
29164