Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 1.2.0 to 1.3.0

25

LocalStorage.js

@@ -107,3 +107,2 @@ // Generated by CoffeeScript 1.10.0

function LocalStorage(_location, quota) {
var handler;
this._location = _location;

@@ -125,26 +124,2 @@ this.quota = quota != null ? quota : 5 * 1024 * 1024;

this._QUOTA_EXCEEDED_ERR = QUOTA_EXCEEDED_ERR;
if (typeof Proxy !== "undefined" && Proxy !== null) {
handler = {
set: (function(_this) {
return function(receiver, key, value) {
if (_this[key] != null) {
return _this[key] = value;
} else {
return _this.setItem(key, value);
}
};
})(this),
get: (function(_this) {
return function(receiver, key) {
if (_this[key] != null) {
return _this[key];
} else {
return _this.getItem(key);
}
};
})(this)
};
instanceMap[this._location] = Proxy.create(handler, this);
return instanceMap[this._location];
}
instanceMap[this._location] = this;

@@ -151,0 +126,0 @@ return instanceMap[this._location];

2

package.json
{
"name": "node-localstorage",
"version": "1.2.0",
"version": "1.3.0",
"main": "./LocalStorage",

@@ -5,0 +5,0 @@ "description": "A drop-in substitute for the browser native localStorage API that runs on node.js.",

@@ -71,2 +71,5 @@ [![build status](https://secure.travis-ci.org/lmaccherone/node-localstorage.png)](http://travis-ci.org/lmaccherone/node-localstorage)

* 1.3.0 - 2016-04-09 - **Possibly backward breaking if you were using experimental syntax** Reverted experimental
associative array and dot-property syntax. The API for Proxy changed with node.js v6.x which broke it. Then when
I switched to the new syntax, it broke the EventEmitter functionality. Will restore once I know how to fix that.
* 1.2.0 - 2016-04-09 - Atomic writes (thanks, mvayngrib)

@@ -73,0 +76,0 @@ * 1.1.2 - 2016-01-08 - Resolves issue #17 (thanks, evilaliv3)

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