Comparing version 2.0.3 to 2.0.4
@@ -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", |
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
189992
8
619