node-localstorage
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -87,3 +87,3 @@ // Generated by CoffeeScript 1.4.0 | ||
LocalStorage.prototype.setItem = function(key, value) { | ||
var e, existsBeforeSet, filename, oldLength, valueString, valueStringLength; | ||
var existsBeforeSet, filename, oldLength, valueString, valueStringLength; | ||
key = key.toString(); | ||
@@ -100,5 +100,3 @@ filename = path.join(this.location, key); | ||
if (this.bytesInUse - oldLength + valueStringLength > this.quota) { | ||
e = new Error('Quota exceeded.'); | ||
e.name = 'QUOTA_EXCEEDED_ERR'; | ||
throw e; | ||
throw new QuotaExceededError(); | ||
} | ||
@@ -105,0 +103,0 @@ fs.writeFileSync(filename, valueString, 'utf8'); |
{ | ||
"name": "node-localstorage", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"main": "./LocalStorage", | ||
@@ -5,0 +5,0 @@ "description": "A drop-in substitute for the browser native localStorage API that runs on node.js.", |
@@ -62,2 +62,3 @@ [![build status](https://secure.travis-ci.org/lmaccherone/node-localstorage.png)](http://travis-ci.org/lmaccherone/node-localstorage) | ||
* 0.3.1 - 2013-01-19 - Fixed bug where it threw plain old Error instead of new QuotaExceededError | ||
* 0.3.0 - 2013-01-19 - Added QuotaExceededError support | ||
@@ -64,0 +65,0 @@ * 0.2.0 - 2013-01-03 - Added quota support |
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
84
16691
141