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

idb-keyval

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

idb-keyval - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

2

dist/idb-keyval.d.ts

@@ -8,5 +8,5 @@ export declare class Store {

export declare function get<Type>(key: IDBValidKey, store?: Store): Promise<Type>;
export declare function set<Type>(key: IDBValidKey, value: any, store?: Store): Promise<void>;
export declare function set(key: IDBValidKey, value: any, store?: Store): Promise<void>;
export declare function del(key: IDBValidKey, store?: Store): Promise<void>;
export declare function clear(store?: Store): Promise<void>;
export declare function keys(store?: Store): Promise<IDBValidKey[]>;

@@ -41,3 +41,3 @@ export class Store {

export function set<Type>(key: IDBValidKey, value: any, store = getDefaultStore()): Promise<void> {
export function set(key: IDBValidKey, value: any, store = getDefaultStore()): Promise<void> {
return store._withIDBStore('readwrite', store => {

@@ -44,0 +44,0 @@ store.put(value, key);

{
"name": "idb-keyval",
"version": "3.0.1",
"version": "3.0.2",
"description": "A super-simple-small keyval store built on top of IndexedDB",

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

@@ -8,3 +8,3 @@ # IDB-Keyval

[localForage](https://github.com/localForage/localForage) offers similar functionality, but supports older browsers with broken/absent IDB implementations. Because of that, it's 7.4k, whereas idb-keyval is ~550 bytes. Also, it's tree-shaking friendly, so you'll probably end up using few than 450 bytes. Pick whichever works best for you!
[localForage](https://github.com/localForage/localForage) offers similar functionality, but supports older browsers with broken/absent IDB implementations. Because of that, it's 7.4k, whereas idb-keyval is ~550 bytes. Also, it's tree-shaking friendly, so you'll probably end up using fewer than 450 bytes. Pick whichever works best for you!

@@ -11,0 +11,0 @@ This is only a keyval store. If you need to do more complex things like iteration & indexing, check out [IDB on NPM](https://www.npmjs.com/package/idb) (a little heavier at 1.7k). The first example in its README is how to recreate this library.

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