configstore
Advanced tools
Comparing version 3.1.1 to 3.1.2
@@ -27,2 +27,3 @@ 'use strict'; | ||
} | ||
get all() { | ||
@@ -52,2 +53,3 @@ try { | ||
} | ||
set all(val) { | ||
@@ -68,8 +70,11 @@ try { | ||
} | ||
get size() { | ||
return Object.keys(this.all || {}).length; | ||
} | ||
get(key) { | ||
return dotProp.get(this.all, key); | ||
} | ||
set(key, val) { | ||
@@ -88,5 +93,7 @@ const config = this.all; | ||
} | ||
has(key) { | ||
return dotProp.has(this.all, key); | ||
} | ||
delete(key) { | ||
@@ -97,2 +104,3 @@ const config = this.all; | ||
} | ||
clear() { | ||
@@ -99,0 +107,0 @@ this.all = {}; |
{ | ||
"name": "configstore", | ||
"version": "3.1.1", | ||
"description": "Easily load and save config without having to think about where and how", | ||
"license": "BSD-2-Clause", | ||
"repository": "yeoman/configstore", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
}, | ||
"engines": { | ||
"node": ">=4" | ||
}, | ||
"scripts": { | ||
"test": "xo && ava" | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"keywords": [ | ||
"config", | ||
"store", | ||
"storage", | ||
"conf", | ||
"configuration", | ||
"settings", | ||
"preferences", | ||
"json", | ||
"data", | ||
"persist", | ||
"persistent", | ||
"save" | ||
], | ||
"dependencies": { | ||
"dot-prop": "^4.1.0", | ||
"graceful-fs": "^4.1.2", | ||
"make-dir": "^1.0.0", | ||
"unique-string": "^1.0.0", | ||
"write-file-atomic": "^2.0.0", | ||
"xdg-basedir": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "*", | ||
"xo": "*" | ||
} | ||
"name": "configstore", | ||
"version": "3.1.2", | ||
"description": "Easily load and save config without having to think about where and how", | ||
"license": "BSD-2-Clause", | ||
"repository": "yeoman/configstore", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
}, | ||
"engines": { | ||
"node": ">=4" | ||
}, | ||
"scripts": { | ||
"test": "xo && ava" | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"keywords": [ | ||
"config", | ||
"store", | ||
"storage", | ||
"conf", | ||
"configuration", | ||
"settings", | ||
"preferences", | ||
"json", | ||
"data", | ||
"persist", | ||
"persistent", | ||
"save" | ||
], | ||
"dependencies": { | ||
"dot-prop": "^4.1.0", | ||
"graceful-fs": "^4.1.2", | ||
"make-dir": "^1.0.0", | ||
"unique-string": "^1.0.0", | ||
"write-file-atomic": "^2.0.0", | ||
"xdg-basedir": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "*", | ||
"xo": "*" | ||
} | ||
} |
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
6857
4