idb-keyval
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16232