node-localstorage
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -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]; |
{ | ||
"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) |
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
114
60018
261