@persistr/clif-plugin-settings
Advanced tools
+4
-5
@@ -8,8 +8,7 @@ const Settings = require('@persistr/settings') | ||
| const isBrowser = typeof window !== 'undefined' && ({}).toString.call(window) === '[object Window]' | ||
| if (isBrowser) { | ||
| toolbox.settings = Settings.localStorage(`${name}`) | ||
| return { | ||
| toolbox: { | ||
| settings: isBrowser ? Settings.localStorage(`${name}`) : Settings.file(`${os.homedir}/${name}`) | ||
| } | ||
| } | ||
| else { | ||
| toolbox.settings = Settings.file(`${os.homedir}/${name}`) | ||
| } | ||
| } | ||
@@ -16,0 +15,0 @@ } |
+1
-1
| { | ||
| "name": "@persistr/clif-plugin-settings", | ||
| "version": "2.2.0", | ||
| "version": "2.3.0", | ||
| "description": "Persistent settings plugin for @persistr/clif", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
1371
-1.3%18
-5.26%