electron-settings
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -8,2 +8,7 @@ Changelog | ||
2.1.1 - Aug. 3, 2016 | ||
-------------------- | ||
* Fixes syntax errors in README docs. | ||
* Updates outdated dependencies. | ||
2.1.0 - Aug. 2, 2016 | ||
@@ -10,0 +15,0 @@ -------------------- |
@@ -118,3 +118,3 @@ [Electron Settings] » **Methods** | ||
```js | ||
settings.observe('foo' evt => { | ||
settings.observe('foo', evt => { | ||
// => { | ||
@@ -131,3 +131,3 @@ // oldValue: 'bar', | ||
```js | ||
const observer = settings.observe('foo' evt => { | ||
const observer = settings.observe('foo', evt => { | ||
// => { | ||
@@ -519,3 +519,3 @@ // oldValue: 'bar', | ||
settings.applyDefaults().then(() => { | ||
settings.getSync().then(obj => { | ||
settings.get().then(obj => { | ||
// => { | ||
@@ -541,3 +541,3 @@ // user: { | ||
settings.applyDefaults({ overwrite: true }).then(() => { | ||
settings.getSync().then(obj => { | ||
settings.get().then(obj => { | ||
// => { | ||
@@ -544,0 +544,0 @@ // user: { |
{ | ||
"name": "electron-settings", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "A simple persistent user settings manager for Electron.", | ||
@@ -49,4 +49,4 @@ "main": "index.js", | ||
"deep-extend": "^0.4.1", | ||
"file-exists": "^1.0.0", | ||
"fs-extra": "^0.26.0", | ||
"file-exists": "^2.0.0", | ||
"fs-extra": "^0.30.0", | ||
"key-path-helpers": "^0.4.0" | ||
@@ -53,0 +53,0 @@ }, |
@@ -11,3 +11,3 @@ electron-settings | ||
[](http://badge.fury.io/js/electron-settings) | ||
[](https://david-dm.org/nathanbuchar/electron-settings.svg) | ||
[](https://david-dm.org/nathanbuchar/electron-settings) | ||
[](https://travis-ci.org/nathanbuchar/electron-settings) | ||
@@ -86,12 +86,2 @@ [](https://gitter.im/nathanbuchar/electron-settings?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
* **Where is the settings file saved?** | ||
The settings file is named `Settings` and is saved in your app's [user data directory](http://electron.atom.io/docs/api/app/#appgetpathname): | ||
* `~/Library/Application Support/YourApp` on MacOS. | ||
* `%APPDATA%/YourApp` on Windows. | ||
* `$XDG_CONFIG_HOME/YourApp` or `~/.config/YourApp` on Linux. | ||
You can use [`getSettingsFilePath()`][method_get-settings-file-path] to get the full path to the settings file. | ||
* **Can I use electron-settings in both the main and renderer processes?** | ||
@@ -109,4 +99,14 @@ | ||
* **Where is the settings file saved?** | ||
The settings file is named `Settings` and is saved in your app's [user data directory](http://electron.atom.io/docs/api/app/#appgetpathname): | ||
* `~/Library/Application Support/YourApp` on MacOS. | ||
* `%APPDATA%/YourApp` on Windows. | ||
* `$XDG_CONFIG_HOME/YourApp` or `~/.config/YourApp` on Linux. | ||
You can use [`getSettingsFilePath()`][method_get-settings-file-path] to get the full path to the settings file. | ||
*** | ||
@@ -113,0 +113,0 @@ |
56226
+ Addedfile-exists@2.0.0(transitive)
+ Addedfs-extra@0.30.0(transitive)
- Removedfile-exists@1.0.0(transitive)
- Removedfs-extra@0.26.7(transitive)
Updatedfile-exists@^2.0.0
Updatedfs-extra@^0.30.0