Socket
Socket
Sign inDemoInstall

idb

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

idb - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

12

lib/idb.d.ts

@@ -102,3 +102,3 @@ /** This is your entry point to the API. It's exposed to the global scope unless you're using a module system such as browserify, in which case it's the exported object. */

* @returns A promise that resolves with the cursor once it has been opened. */
openCursor(range?: IDBKeyRange | IDBValidKey, direction?: 'next' | 'nextunique' | 'prev' | 'prevunique'): Promise<Cursor>;
openCursor(range?: IDBKeyRange | IDBValidKey | null, direction?: 'next' | 'nextunique' | 'prev' | 'prevunique'): Promise<Cursor>;

@@ -110,3 +110,3 @@ /** Returns a Promise of an IDBRequest object that (in a separate thread) resolves a new cursor object.

* @returns A promise that resolves with the cursor once it has been opened. */
openKeyCursor(range?: IDBKeyRange | IDBValidKey, direction?: 'next' | 'nextunique' | 'prev' | 'prevunique'): Promise<Cursor>;
openKeyCursor(range?: IDBKeyRange | IDBValidKey | null, direction?: 'next' | 'nextunique' | 'prev' | 'prevunique'): Promise<Cursor>;

@@ -116,4 +116,4 @@ /** Due to the microtask issues in some browsers, iterating over a cursor using promises doesn't always work.

iterateCursor(callback: (c: Cursor) => void): void;
iterateCursor(range: IDBKeyRange | IDBValidKey, callback: (c: Cursor) => void): void;
iterateCursor(range: IDBKeyRange | IDBValidKey, direction: 'next' | 'nextunique' | 'prev' | 'prevunique', callback: (c: Cursor) => void): void;
iterateCursor(range: IDBKeyRange | IDBValidKey | null, callback: (c: Cursor) => void): void;
iterateCursor(range: IDBKeyRange | IDBValidKey | null, direction: 'next' | 'nextunique' | 'prev' | 'prevunique', callback: (c: Cursor) => void): void;

@@ -123,4 +123,4 @@ /** Due to the microtask issues in some browsers, iterating over a cursor using promises doesn't always work.

iterateKeyCursor(callback: (c: Cursor) => void): void;
iterateKeyCursor(range: IDBKeyRange | IDBValidKey, callback: (c: Cursor) => void): void;
iterateKeyCursor(range: IDBKeyRange | IDBValidKey, direction: 'next' | 'nextunique' | 'prev' | 'prevunique', callback: (c: Cursor) => void): void;
iterateKeyCursor(range: IDBKeyRange | IDBValidKey | null, callback: (c: Cursor) => void): void;
iterateKeyCursor(range: IDBKeyRange | IDBValidKey | null, direction: 'next' | 'nextunique' | 'prev' | 'prevunique', callback: (c: Cursor) => void): void;
}

@@ -127,0 +127,0 @@

{
"name": "idb",
"version": "2.0.3",
"version": "2.0.4",
"description": "IndexedDB but with promises",

@@ -5,0 +5,0 @@ "main": "lib/node.js",

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