Socket
Socket
Sign inDemoInstall

node-localstorage

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-localstorage - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

10

LocalStorage.js

@@ -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) {

6

package.json
{
"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

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