node-localstorage
Advanced tools
Comparing version 1.1.2 to 1.2.0
// Generated by CoffeeScript 1.10.0 | ||
(function() { | ||
var JSONStorage, KEY_FOR_EMPTY_STRING, LocalStorage, MetaKey, QUOTA_EXCEEDED_ERR, StorageEvent, _emptyDirectory, _escapeKey, _rm, createMap, events, fs, path, | ||
var JSONStorage, KEY_FOR_EMPTY_STRING, LocalStorage, MetaKey, QUOTA_EXCEEDED_ERR, StorageEvent, _emptyDirectory, _escapeKey, _rm, createMap, events, fs, path, writeSync, | ||
extend = 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; }, | ||
@@ -13,2 +13,4 @@ hasProp = {}.hasOwnProperty; | ||
writeSync = require('write-file-atomic').sync; | ||
KEY_FOR_EMPTY_STRING = '---.EMPTY_STRING.---'; | ||
@@ -201,3 +203,3 @@ | ||
} | ||
fs.writeFileSync(filename, valueString, 'utf8'); | ||
writeSync(filename, valueString, 'utf8'); | ||
if (!existsBeforeSet) { | ||
@@ -204,0 +206,0 @@ metaKey = new MetaKey(encodedKey, (this._keys.push(key)) - 1); |
{ | ||
"name": "node-localstorage", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"main": "./LocalStorage", | ||
@@ -40,3 +40,5 @@ "description": "A drop-in substitute for the browser native localStorage API that runs on node.js.", | ||
], | ||
"dependencies": {} | ||
"dependencies": { | ||
"write-file-atomic": "^1.1.4" | ||
} | ||
} |
@@ -71,2 +71,3 @@ [![build status](https://secure.travis-ci.org/lmaccherone/node-localstorage.png)](http://travis-ci.org/lmaccherone/node-localstorage) | ||
* 1.2.0 - 2016-04-09 - Atomic writes (thanks, mvayngrib) | ||
* 1.1.2 - 2016-01-08 - Resolves issue #17 (thanks, evilaliv3) | ||
@@ -73,0 +74,0 @@ * 1.1.1 - 2016-01-04 - Smarter associative array and dot-property syntax support |
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
60465
286
111
1
+ Addedwrite-file-atomic@^1.1.4
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedimurmurhash@0.1.4(transitive)
+ Addedslide@1.1.6(transitive)
+ Addedwrite-file-atomic@1.3.4(transitive)