data-store
Advanced tools
Comparing version 4.0.1 to 4.0.2
@@ -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)", |
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
34241
459