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.1 to 0.3.2

16

LocalStorage.js
// Generated by CoffeeScript 1.4.0
(function() {
var LocalStorage, QuotaExceededError, fs, path, _emptyDirectory, _rm,
var LocalStorage, QUOTA_EXCEEDED_ERR, fs, path, _emptyDirectory, _rm,
__hasProp = {}.hasOwnProperty,

@@ -31,7 +31,7 @@ __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };

QuotaExceededError = (function(_super) {
QUOTA_EXCEEDED_ERR = (function(_super) {
__extends(QuotaExceededError, _super);
__extends(QUOTA_EXCEEDED_ERR, _super);
function QuotaExceededError(message) {
function QUOTA_EXCEEDED_ERR(message) {
this.message = message != null ? message : 'Unknown error.';

@@ -44,3 +44,3 @@ if (Error.captureStackTrace != null) {

return QuotaExceededError;
return QUOTA_EXCEEDED_ERR;

@@ -58,3 +58,3 @@ })(Error);

this._init();
this.QuotaExceededError = QuotaExceededError;
this.QUOTA_EXCEEDED_ERR = QUOTA_EXCEEDED_ERR;
}

@@ -102,3 +102,3 @@

if (this.bytesInUse - oldLength + valueStringLength > this.quota) {
throw new QuotaExceededError();
throw new QUOTA_EXCEEDED_ERR();
}

@@ -168,4 +168,4 @@ fs.writeFileSync(filename, valueString, 'utf8');

exports.QuotaExceededError = QuotaExceededError;
exports.QUOTA_EXCEEDED_ERR = QUOTA_EXCEEDED_ERR;
}).call(this);
{
"name": "node-localstorage",
"version": "0.3.1",
"version": "0.3.2",
"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.2 - 2013-01-19 - Renamed QuotaExceededError to QUOTA_EXCEEDED_ERR to match most browsers
* 0.3.1 - 2013-01-19 - Fixed bug where it threw plain old Error instead of new QuotaExceededError

@@ -64,0 +65,0 @@ * 0.3.0 - 2013-01-19 - Added QuotaExceededError 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