aboutsummaryrefslogtreecommitdiff
path: root/node_modules/configstore
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-08-14 05:01:11 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-08-14 05:02:09 +0200
commit363723fc84f7b8477592e0105aeb331ec9a017af (patch)
tree29f92724f34131bac64d6a318dd7e30612e631c7 /node_modules/configstore
parent5634e77ad96bfe1818f6b6ee70b7379652e5487f (diff)
node_modules
Diffstat (limited to 'node_modules/configstore')
-rw-r--r--node_modules/configstore/index.js6
-rw-r--r--node_modules/configstore/package.json2
-rw-r--r--node_modules/configstore/readme.md2
3 files changed, 5 insertions, 5 deletions
diff --git a/node_modules/configstore/index.js b/node_modules/configstore/index.js
index 166de5349..4883613ca 100644
--- a/node_modules/configstore/index.js
+++ b/node_modules/configstore/index.js
@@ -10,7 +10,7 @@ const uniqueString = require('unique-string');
const configDir = xdgBasedir.config || path.join(os.tmpdir(), uniqueString());
const permissionError = 'You don\'t have access to this file.';
-const defaultPathMode = 0o0700;
+const makeDirOptions = {mode: 0o0700};
const writeFileOptions = {mode: 0o0600};
class Configstore {
@@ -30,7 +30,7 @@ class Configstore {
} catch (err) {
// Create dir if it doesn't exist
if (err.code === 'ENOENT') {
- makeDir.sync(path.dirname(this.path), defaultPathMode);
+ makeDir.sync(path.dirname(this.path), makeDirOptions);
return {};
}
@@ -51,7 +51,7 @@ class Configstore {
set all(val) {
try {
// Make sure the folder exists as it could have been deleted in the meantime
- makeDir.sync(path.dirname(this.path), defaultPathMode);
+ makeDir.sync(path.dirname(this.path), makeDirOptions);
writeFileAtomic.sync(this.path, JSON.stringify(val, null, '\t'), writeFileOptions);
} catch (err) {
diff --git a/node_modules/configstore/package.json b/node_modules/configstore/package.json
index 259f66b76..c39039759 100644
--- a/node_modules/configstore/package.json
+++ b/node_modules/configstore/package.json
@@ -1,6 +1,6 @@
{
"name": "configstore",
- "version": "3.1.0",
+ "version": "3.1.1",
"description": "Easily load and save config without having to think about where and how",
"license": "BSD-2-Clause",
"repository": "yeoman/configstore",
diff --git a/node_modules/configstore/readme.md b/node_modules/configstore/readme.md
index 1613e5a83..6af37719b 100644
--- a/node_modules/configstore/readme.md
+++ b/node_modules/configstore/readme.md
@@ -5,7 +5,7 @@
Config is stored in a JSON file located in `$XDG_CONFIG_HOME` or `~/.config`.<br>
Example: `~/.config/configstore/some-id.json`
-*If you need this for Electron, check out [`electron-config`](https://github.com/sindresorhus/electron-config) instead.*
+*If you need this for Electron, check out [`electron-store`](https://github.com/sindresorhus/electron-store) instead.*
## Usage