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 5.0.2 to 5.0.3

2

dist/cjs-compat/index.d.ts

@@ -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

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