configstore
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -5,3 +5,2 @@ 'use strict'; | ||
var osenv = require('osenv'); | ||
var userHome = require('user-home'); | ||
var assign = require('object-assign'); | ||
@@ -12,2 +11,3 @@ var mkdirp = require('mkdirp'); | ||
var osTmpdir = require('os-tmpdir'); | ||
var writeFileAtomic = require('write-file-atomic'); | ||
@@ -44,3 +44,3 @@ var user = (osenv.user() || uuid.v4()).replace(/\\/g, ''); | ||
if (err.name === 'SyntaxError') { | ||
fs.writeFileSync(this.path, '', writeFileOptions); | ||
writeFileAtomic.sync(this.path, '', writeFileOptions); | ||
return {}; | ||
@@ -58,3 +58,3 @@ } | ||
fs.writeFileSync(this.path, JSON.stringify(val, null, '\t'), writeFileOptions); | ||
writeFileAtomic.sync(this.path, JSON.stringify(val, null, '\t'), writeFileOptions); | ||
} catch (err) { | ||
@@ -61,0 +61,0 @@ // improve the message of permission errors |
{ | ||
"name": "configstore", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Easily load and save config without having to think about where and how", | ||
@@ -37,4 +37,4 @@ "keywords": [ | ||
"osenv": "^0.1.0", | ||
"user-home": "^2.0.0", | ||
"uuid": "^2.0.1", | ||
"write-file-atomic": "^1.1.2", | ||
"xdg-basedir": "^2.0.0" | ||
@@ -41,0 +41,0 @@ }, |
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
4673
+ Addedwrite-file-atomic@^1.1.2
+ Addedimurmurhash@0.1.4(transitive)
+ Addedslide@1.1.6(transitive)
+ Addedwrite-file-atomic@1.3.4(transitive)
- Removeduser-home@^2.0.0
- Removeduser-home@2.0.0(transitive)