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 0.16.0 to 0.16.1

7

index.js

@@ -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": {

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