Socket
Socket
Sign inDemoInstall

configstore

Package Overview
Dependencies
Maintainers
9
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

configstore - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

6

index.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc