idb-keyval
Advanced tools
Comparing version 5.0.2 to 5.0.3
@@ -66,3 +66,3 @@ export declare function promisifyRequest<T = undefined>(request: IDBRequest<T> | IDBTransaction): Promise<T>; | ||
*/ | ||
export declare function values(customStore?: UseStore): Promise<IDBValidKey[]>; | ||
export declare function values(customStore?: UseStore): Promise<any[]>; | ||
/** | ||
@@ -69,0 +69,0 @@ * Get all entries in the store. Each entry is an array of `[key, value]`. |
@@ -66,3 +66,3 @@ export declare function promisifyRequest<T = undefined>(request: IDBRequest<T> | IDBTransaction): Promise<T>; | ||
*/ | ||
export declare function values(customStore?: UseStore): Promise<IDBValidKey[]>; | ||
export declare function values(customStore?: UseStore): Promise<any[]>; | ||
/** | ||
@@ -69,0 +69,0 @@ * Get all entries in the store. Each entry is an array of `[key, value]`. |
@@ -66,3 +66,3 @@ export declare function promisifyRequest<T = undefined>(request: IDBRequest<T> | IDBTransaction): Promise<T>; | ||
*/ | ||
export declare function values(customStore?: UseStore): Promise<IDBValidKey[]>; | ||
export declare function values(customStore?: UseStore): Promise<any[]>; | ||
/** | ||
@@ -69,0 +69,0 @@ * Get all entries in the store. Each entry is an array of `[key, value]`. |
@@ -66,3 +66,3 @@ export declare function promisifyRequest<T = undefined>(request: IDBRequest<T> | IDBTransaction): Promise<T>; | ||
*/ | ||
export declare function values(customStore?: UseStore): Promise<IDBValidKey[]>; | ||
export declare function values(customStore?: UseStore): Promise<any[]>; | ||
/** | ||
@@ -69,0 +69,0 @@ * Get all entries in the store. Each entry is an array of `[key, value]`. |
{ | ||
"name": "idb-keyval", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"description": "A super-simple-small keyval store built on top of IndexedDB", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs-compat/index.js", |
@@ -193,5 +193,3 @@ export function promisifyRequest<T = undefined>( | ||
*/ | ||
export function values( | ||
customStore = defaultGetStore(), | ||
): Promise<IDBValidKey[]> { | ||
export function values(customStore = defaultGetStore()): Promise<any[]> { | ||
const items: any[] = []; | ||
@@ -198,0 +196,0 @@ |
@@ -237,3 +237,8 @@ import 'mocha/mocha'; | ||
await set(123, '456'); | ||
assert.deepEqual(await values(), ['456', 'bar'], `Got values`); | ||
await set(124, { foo: 'bar' }); | ||
assert.deepEqual( | ||
await values(), | ||
['456', { foo: 'bar' }, 'bar'], | ||
`Got values`, | ||
); | ||
}); | ||
@@ -240,0 +245,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
110134
1952