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.3.0 to 0.3.1

6

LocalStorage.js

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

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