diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/idb-bridge/package.json | 4 | ||||
-rw-r--r-- | packages/idb-bridge/src/MemoryBackend.ts | 2 | ||||
-rw-r--r-- | packages/idb-bridge/src/tree/b+tree.ts | 4 | ||||
-rw-r--r-- | packages/idb-bridge/yarn.lock | 8 |
4 files changed, 9 insertions, 9 deletions
diff --git a/packages/idb-bridge/package.json b/packages/idb-bridge/package.json index f0072a6be..7ac39726b 100644 --- a/packages/idb-bridge/package.json +++ b/packages/idb-bridge/package.json @@ -1,6 +1,6 @@ { "name": "idb-bridge", - "version": "0.0.10", + "version": "0.0.11", "description": "IndexedDB implementation that uses SQLite3 as storage", "main": "./build/index.js", "types": "./build/index.d.ts", @@ -13,6 +13,6 @@ }, "devDependencies": { "ava": "2.3.0", - "typescript": "^3.4.5" + "typescript": "^3.7.0" } } diff --git a/packages/idb-bridge/src/MemoryBackend.ts b/packages/idb-bridge/src/MemoryBackend.ts index 99582a1b6..bb13a0223 100644 --- a/packages/idb-bridge/src/MemoryBackend.ts +++ b/packages/idb-bridge/src/MemoryBackend.ts @@ -1445,7 +1445,7 @@ export class MemoryBackend implements Backend { objectStore.modifiedKeyGenerator = undefined; objectStore.modifiedIndexes = {}; - for (const indexName in Object.keys( + for (const indexName of Object.keys( db.committedSchema.objectStores[objectStoreName].indexes, )) { const index = objectStore.committedIndexes[indexName]; diff --git a/packages/idb-bridge/src/tree/b+tree.ts b/packages/idb-bridge/src/tree/b+tree.ts index 01187cdc2..783c6b049 100644 --- a/packages/idb-bridge/src/tree/b+tree.ts +++ b/packages/idb-bridge/src/tree/b+tree.ts @@ -823,7 +823,7 @@ if (Symbol && Symbol.iterator) // iterator is equivalent to entries() (BTree as any).prototype.setRange = BTree.prototype.setPairs; (BTree as any).prototype.add = BTree.prototype.set; -function iterator<T>(next: () => {done:boolean,value?:T} = (() => ({ done:true, value:undefined }))): IterableIterator<T> { +function iterator<T>(next: () => {done?:boolean,value?:T} = (() => ({ done:true, value:undefined }))): IterableIterator<T> { var result: any = { next }; if (Symbol && Symbol.iterator) result[Symbol.iterator] = function() { return this; }; @@ -1348,4 +1348,4 @@ function check(fact: boolean, ...args: any[]) { } /** A BTree frozen in the empty state. */ -export const EmptyBTree = (() => { let t = new BTree(); t.freeze(); return t; })();
\ No newline at end of file +export const EmptyBTree = (() => { let t = new BTree(); t.freeze(); return t; })(); diff --git a/packages/idb-bridge/yarn.lock b/packages/idb-bridge/yarn.lock index 8e59a7f87..9a5daad32 100644 --- a/packages/idb-bridge/yarn.lock +++ b/packages/idb-bridge/yarn.lock @@ -2534,10 +2534,10 @@ typedarray-to-buffer@^3.1.5: dependencies: is-typedarray "^1.0.0" -typescript@^3.4.5: - version "3.5.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.5.3.tgz#c830f657f93f1ea846819e929092f5fe5983e977" - integrity sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g== +typescript@^3.7.0: + version "3.7.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.2.tgz#27e489b95fa5909445e9fef5ee48d81697ad18fb" + integrity sha512-ml7V7JfiN2Xwvcer+XAf2csGO1bPBdRbFCkYBczNZggrBZ9c7G3riSUeJmqEU5uOtXNPMhE3n+R4FA/3YOAWOQ== uid2@0.0.3: version "0.0.3" |