diff --git a/web/flow-typed/npm/localforage_v1.5.x.js b/web/flow-typed/npm/localforage_v1.5.x.js --- a/web/flow-typed/npm/localforage_v1.5.x.js +++ b/web/flow-typed/npm/localforage_v1.5.x.js @@ -36,6 +36,17 @@ keys( successCallback?: (keyNames: Array) => mixed, ): ?Promise>, + getMultipleItems( + keys: $ReadOnlyArray<$Keys>, + synchronizationKey: string + ): Promise<{+values: T, +synchronizationValue: ?string}>, + setMultipleItems( + input: T, + synchronizationKey: string, + expectedSynchronizationValue: ?string, + newSynchronizationValue: string, + forceWrite: boolean + ): Promise, ... }; @@ -65,6 +76,17 @@ keys( successCallback?: (keyNames: Array) => mixed, ): Promise>, + getMultipleItems( + keys: $ReadOnlyArray<$Keys>, + synchronizationKey: string + ): Promise<{+values: T, +synchronizationValue: ?string}>, + setMultipleItems( + input: T, + synchronizationKey: string, + expectedSynchronizationValue: ?string, + newSynchronizationValue: string, + forceWrite: boolean + ): Promise, iterate( iteratorCallback: (value: T, key: string, iterationNumber: number) => mixed, successCallback?: (result: void | [string, T]) => mixed, diff --git a/web/package.json b/web/package.json --- a/web/package.json +++ b/web/package.json @@ -71,7 +71,7 @@ "is-svg": "^4.3.0", "isomorphic-fetch": "^3.0.0", "lib": "0.0.1", - "localforage": "^1.10.0", + "localforage": "github:marcinwasowicz/localForage#2983b84d9cccf23e6c10a15250c1027df8b94a21", "lodash": "^4.17.21", "qrcode.react": "^3.1.0", "react": "18.1.0", diff --git a/yarn.lock b/yarn.lock --- a/yarn.lock +++ b/yarn.lock @@ -16508,10 +16508,9 @@ emojis-list "^3.0.0" json5 "^2.1.2" -localforage@^1.10.0: +localforage@^1.10.0, "localforage@github:marcinwasowicz/localForage#2983b84d9cccf23e6c10a15250c1027df8b94a21": version "1.10.0" - resolved "https://registry.yarnpkg.com/localforage/-/localforage-1.10.0.tgz#5c465dc5f62b2807c3a84c0c6a1b1b3212781dd4" - integrity sha512-14/H1aX7hzBBmmh7sGPd+AOMkkIrHM3Z1PAyGgZigA1H1p5O5ANnMyWzvpAETtG68/dC4pC0ncy3+PPGzXZHPg== + resolved "https://codeload.github.com/marcinwasowicz/localForage/tar.gz/2983b84d9cccf23e6c10a15250c1027df8b94a21" dependencies: lie "3.1.1"