node-localstorage
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -98,4 +98,8 @@ // Generated by CoffeeScript 1.10.0 | ||
LocalStorage = (function(superClass) { | ||
var instanceMap; | ||
extend(LocalStorage, superClass); | ||
instanceMap = {}; | ||
function LocalStorage(_location, quota) { | ||
@@ -108,2 +112,6 @@ var handler; | ||
} | ||
this._location = path.resolve(this._location); | ||
if (instanceMap[this._location] != null) { | ||
return instanceMap[this._location]; | ||
} | ||
this.length = 0; | ||
@@ -137,4 +145,7 @@ this._bytesInUse = 0; | ||
}; | ||
return Proxy.create(handler, this); | ||
instanceMap[this._location] = Proxy.create(handler, this); | ||
return instanceMap[this._location]; | ||
} | ||
instanceMap[this._location] = this; | ||
return instanceMap[this._location]; | ||
} | ||
@@ -282,2 +293,3 @@ | ||
LocalStorage.prototype._deleteLocation = function() { | ||
delete instanceMap[this._location]; | ||
_rm(this._location); | ||
@@ -284,0 +296,0 @@ this._metaKeyMap = {}; |
{ | ||
"name": "node-localstorage", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"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,3 @@ [![build status](https://secure.travis-ci.org/lmaccherone/node-localstorage.png)](http://travis-ci.org/lmaccherone/node-localstorage) | ||
* 1.1.2 - 2016-01-08 - Resolves issue #17 (thanks, evilaliv3) | ||
* 1.1.1 - 2016-01-04 - Smarter associative array and dot-property syntax support | ||
@@ -73,0 +74,0 @@ * 1.1.0 - 2016-01-03 - **Backward breaking** if you used any of the non-standard methods. They are now all preceded with |
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
60317
285
110