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

electron-conf

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-conf - npm Package Compare versions

Comparing version 1.0.0-alpha.0 to 1.0.0

3

dist/renderer.d.ts

@@ -31,2 +31,3 @@ type ConfOptions = {

get<K extends string, V = unknown>(key: Exclude<K, keyof T>, defaultValue?: V): Promise<V>;
get(key: string, defaultValue?: unknown): Promise<unknown>;
/**

@@ -52,2 +53,3 @@ * Set an item or multiple items at once.

set(object: Partial<T>): Promise<void>;
set<K extends keyof T>(key: Partial<T> | K | string, value?: T[K] | unknown): Promise<void>;
/**

@@ -68,2 +70,3 @@ * Check if an item exists.

delete<Key extends keyof T>(key: Key): Promise<void>;
delete(key: string): Promise<void>;
/**

@@ -70,0 +73,0 @@ * Delete all items. This resets known items to their default values, if

2

package.json
{
"name": "electron-conf",
"version": "1.0.0-alpha.0",
"version": "1.0.0",
"description": "Simple data persistence for your Electron app - save and load user settings, app state, cache, etc",

@@ -5,0 +5,0 @@ "main": "./dist/main.cjs",

@@ -99,3 +99,4 @@ # electron-conf

> [!NOTE] > `Conf` for the renderer process, only supports the `name` option.
> [!NOTE]
> `Conf` for the renderer process, only supports the `name` option.

@@ -263,3 +264,3 @@ #### `dir`

```js
conf.set({ foo: 1, a: 'b' })
conf.set({ foo: 'boo', bar: { baz: 1 } })
```

@@ -266,0 +267,0 @@

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