Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

electron-store

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-store - npm Package Compare versions

Comparing version 3.3.0 to 4.0.0

10

package.json
{
"name": "electron-store",
"version": "3.3.0",
"version": "4.0.0",
"description": "Simple data persistence for your Electron app or module - Save and load user preferences, app state, cache, etc",

@@ -36,8 +36,8 @@ "license": "MIT",

"dependencies": {
"conf": "^4.1.0",
"type-fest": "^0.3.1"
"conf": "^5.0.0",
"type-fest": "^0.5.2"
},
"devDependencies": {
"ava": "^1.4.1",
"electron": "^4.1.4",
"ava": "^2.1.0",
"electron": "^5.0.5",
"execa": "^1.0.0",

@@ -44,0 +44,0 @@ "tsd": "^0.7.2",

@@ -16,3 +16,3 @@ # electron-store [![Build Status](https://travis-ci.org/sindresorhus/electron-store.svg?branch=master)](https://travis-ci.org/sindresorhus/electron-store)

*Requires Electron 4 or later.*
*Requires Electron 5 or later.*

@@ -45,3 +45,3 @@

### Store([options])
### Store(options?)

@@ -52,7 +52,7 @@ Returns a new instance.

Type: `Object`
Type: `object`
#### defaults
Type: `Object`
Type: `object`

@@ -65,3 +65,3 @@ Default values for the store items.

type: `Object`
type: `object`

@@ -123,8 +123,8 @@ [JSON Schema](https://json-schema.org) to validate your config data.

Type: `string` `Buffer` `TypedArray` `DataView`<br>
Type: `string | Buffer | TypedArray | DataView`<br>
Default: `undefined`
Note that this is **not intended for security purposes**, since the encryption key would be easily found inside a plain-text Electron app.
This can be used to secure sensitive data **if** the encryption key is stored in a secure manner (not plain-text) in the Node.js app. For example, by using [`node-keytar`](https://github.com/atom/node-keytar) to store the encryption key securely, or asking the encryption key from the user (a password) and then storing it in a variable.
Its main use is for obscurity. If a user looks through the config directory and finds the config file, since it's just a JSON file, they may be tempted to modify it. By providing an encryption key, the file will be obfuscated, which should hopefully deter any users from doing so.
In addition to security, this could be used for obscurity. If a user looks through the config directory and finds the config file, since it's just a JSON file, they may be tempted to modify it. By providing an encryption key, the file will be obfuscated, which should hopefully deter any users from doing so.

@@ -131,0 +131,0 @@ It also has the added bonus of ensuring the config file's integrity. If the file is changed in any way, the decryption will not work, in which case the store will just reset back to its default state.

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