Socket
Socket
Sign inDemoInstall

configstore

Package Overview
Dependencies
Maintainers
6
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 1.2.0 to 1.2.1

6

index.js

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

var osenv = require('osenv');
var userHome = require('user-home');
var assign = require('object-assign');

@@ -12,2 +11,3 @@ var mkdirp = require('mkdirp');

var osTmpdir = require('os-tmpdir');
var writeFileAtomic = require('write-file-atomic');

@@ -44,3 +44,3 @@ var user = (osenv.user() || uuid.v4()).replace(/\\/g, '');

if (err.name === 'SyntaxError') {
fs.writeFileSync(this.path, '', writeFileOptions);
writeFileAtomic.sync(this.path, '', writeFileOptions);
return {};

@@ -58,3 +58,3 @@ }

fs.writeFileSync(this.path, JSON.stringify(val, null, '\t'), writeFileOptions);
writeFileAtomic.sync(this.path, JSON.stringify(val, null, '\t'), writeFileOptions);
} catch (err) {

@@ -61,0 +61,0 @@ // improve the message of permission errors

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

@@ -37,4 +37,4 @@ "keywords": [

"osenv": "^0.1.0",
"user-home": "^2.0.0",
"uuid": "^2.0.1",
"write-file-atomic": "^1.1.2",
"xdg-basedir": "^2.0.0"

@@ -41,0 +41,0 @@ },

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc