data-store
Advanced tools
Comparing version 0.16.0 to 0.16.1
@@ -11,2 +11,3 @@ 'use strict'; | ||
var Base = base.namespace('cache'); | ||
var debug = require('debug')('data-store'); | ||
var proto = Base.prototype; | ||
@@ -72,2 +73,4 @@ var utils = require('./utils'); | ||
this.path = path.resolve(this.cwd, this.name + '.json'); | ||
debug('Initializing store <%s>', this.path); | ||
this.data = readFile(this.path); | ||
@@ -231,3 +234,2 @@ this.define('cache', utils.clone(this.data)); | ||
} | ||
this.emit('hasOwn', key, val); | ||
return val; | ||
@@ -310,7 +312,6 @@ }; | ||
keys = Object.keys(this.cache); | ||
this.clear(); | ||
// if no keys are passed, delete the entire store | ||
utils.del.sync(this.path, options); | ||
this.clear(); | ||
keys.forEach(function(key) { | ||
@@ -317,0 +318,0 @@ this.emit('del', key); |
{ | ||
"name": "data-store", | ||
"description": "Easily get, set and persist config data.", | ||
"version": "0.16.0", | ||
"version": "0.16.1", | ||
"homepage": "https://github.com/jonschlinkert/data-store", | ||
@@ -14,2 +14,4 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"index.js", | ||
"LICENSE", | ||
"README.md", | ||
"utils.js" | ||
@@ -25,4 +27,5 @@ ], | ||
"dependencies": { | ||
"cache-base": "^0.8.3", | ||
"cache-base": "^0.8.4", | ||
"clone-deep": "^0.2.4", | ||
"debug": "^2.2.0", | ||
"define-property": "^0.2.5", | ||
@@ -36,13 +39,12 @@ "extend-shallow": "^2.0.1", | ||
"resolve-dir": "^0.1.0", | ||
"rimraf": "^2.5.2", | ||
"rimraf": "^2.5.3", | ||
"union-value": "^0.2.3" | ||
}, | ||
"devDependencies": { | ||
"gulp": "^3.9.0", | ||
"gulp-eslint": "^1.0.0", | ||
"gulp-format-md": "^0.1.7", | ||
"gulp-istanbul": "^0.10.2", | ||
"gulp-mocha": "^2.1.3", | ||
"mocha": "*", | ||
"verb-readme-generator": "^0.1.3" | ||
"gulp": "^3.9.1", | ||
"gulp-eslint": "^3.0.1", | ||
"gulp-format-md": "^0.1.9", | ||
"gulp-istanbul": "^1.0.0", | ||
"gulp-mocha": "^2.2.0", | ||
"verb-generate-readme": "^0.1.21" | ||
}, | ||
@@ -55,2 +57,3 @@ "keywords": [ | ||
"configstore", | ||
"data", | ||
"defaults", | ||
@@ -86,4 +89,4 @@ "get", | ||
"list": [ | ||
"base-store", | ||
"cache-base", | ||
"base-store", | ||
"get-value", | ||
@@ -94,3 +97,4 @@ "set-value" | ||
"reflinks": [ | ||
"verb" | ||
"verb", | ||
"verb-readme-generator" | ||
], | ||
@@ -97,0 +101,0 @@ "lint": { |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
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
6
404
12929
13
4
1
0
+ Addeddebug@^2.2.0
+ Addeddebug@2.6.9(transitive)
+ Addedms@2.0.0(transitive)
Updatedcache-base@^0.8.4
Updatedrimraf@^2.5.3