Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/domPublic

Commit3e9965a

Browse files
committed
FixedIndexedDBTransaction.prototype.keys incorrectly excluding non-string keys (fixes#30)
1 parent54e5edc commit3e9965a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/IndexedDB.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class IndexedDBTransaction extends Transaction<IndexedDBStore> {
3838
}
3939

4040
publicasynckeys():Promise<Iterable<number>>{
41-
return(awaitwrap(this._idb.getAllKeys())).filter(k=>typeofk=='string').map(k=>Number(k));
41+
return(awaitwrap(this._idb.getAllKeys())).map(Number);
4242
}
4343

4444
publicasyncget(id:number):Promise<Uint8Array|undefined>{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp