Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

data-store

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

data-store - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

9

index.js

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

const opts = { debounce: 0, indent: 2, home: os.homedir(), name, ...options };
const file = opts.name || (opts.path ? utils.stem(opts.path) : 'data-store');
this.path = opts.path || path.join(opts.home, `${file}.json`);
this.name = opts.name || (opts.path ? utils.stem(opts.path) : 'data-store')
this.path = opts.path || path.join(opts.home, `${this.name}.json`);
this.indent = opts.indent;

@@ -378,3 +378,6 @@ this.debounce = opts.debounce;

module.exports = (...args) => new Store(...args);
module.exports = function(...args) {
return new Store(...args);
};
module.exports.Store = Store;
{
"name": "data-store",
"description": "Easily persist and load config data. No dependencies.",
"version": "4.0.1",
"version": "4.0.2",
"homepage": "https://github.com/jonschlinkert/data-store",

@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

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