From 363723fc84f7b8477592e0105aeb331ec9a017af Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 14 Aug 2017 05:01:11 +0200 Subject: node_modules --- node_modules/configstore/index.js | 6 +++--- node_modules/configstore/package.json | 2 +- node_modules/configstore/readme.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'node_modules/configstore') 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`.
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 -- cgit v1.2.3