configstore
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -13,3 +13,3 @@ 'use strict'; | ||
const permissionError = 'You don\'t have access to this file.'; | ||
const defaultPathMode = 0o0700; | ||
const makeDirOptions = {mode: 0o0700}; | ||
const writeFileOptions = {mode: 0o0600}; | ||
@@ -34,3 +34,3 @@ | ||
if (err.code === 'ENOENT') { | ||
makeDir.sync(path.dirname(this.path), defaultPathMode); | ||
makeDir.sync(path.dirname(this.path), makeDirOptions); | ||
return {}; | ||
@@ -56,3 +56,3 @@ } | ||
// 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); | ||
@@ -59,0 +59,0 @@ writeFileAtomic.sync(this.path, JSON.stringify(val, null, '\t'), writeFileOptions); |
{ | ||
"name": "configstore", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "Easily load and save config without having to think about where and how", | ||
@@ -5,0 +5,0 @@ "license": "BSD-2-Clause", |
@@ -8,3 +8,3 @@ # configstore [![Build Status](https://travis-ci.org/yeoman/configstore.svg?branch=master)](https://travis-ci.org/yeoman/configstore) | ||
*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.* | ||
@@ -11,0 +11,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
5615