Socket
Socket
Sign inDemoInstall

configstore

Package Overview
Dependencies
11
Maintainers
9
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0 to 3.1.0

6

index.js

@@ -5,3 +5,3 @@ 'use strict';

const fs = require('graceful-fs');
const mkdirp = require('mkdirp');
const makeDir = require('make-dir');
const xdgBasedir = require('xdg-basedir');

@@ -34,3 +34,3 @@ const writeFileAtomic = require('write-file-atomic');

if (err.code === 'ENOENT') {
mkdirp.sync(path.dirname(this.path), defaultPathMode);
makeDir.sync(path.dirname(this.path), defaultPathMode);
return {};

@@ -56,3 +56,3 @@ }

// Make sure the folder exists as it could have been deleted in the meantime
mkdirp.sync(path.dirname(this.path), defaultPathMode);
makeDir.sync(path.dirname(this.path), defaultPathMode);

@@ -59,0 +59,0 @@ writeFileAtomic.sync(this.path, JSON.stringify(val, null, '\t'), writeFileOptions);

{
"name": "configstore",
"version": "3.0.0",
"version": "3.1.0",
"description": "Easily load and save config without having to think about where and how",

@@ -38,5 +38,5 @@ "license": "BSD-2-Clause",

"graceful-fs": "^4.1.2",
"mkdirp": "^0.5.0",
"make-dir": "^1.0.0",
"unique-string": "^1.0.0",
"write-file-atomic": "^1.1.2",
"write-file-atomic": "^2.0.0",
"xdg-basedir": "^3.0.0"

@@ -43,0 +43,0 @@ },

@@ -8,3 +8,5 @@ # 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.*
## Usage

@@ -11,0 +13,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc