asma-helpers 0.8.14 → 0.8.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.vscode/settings.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function
|
|
1
|
+
export declare function initiateIDBListenersOnMstSnapshots<T extends Object, K extends keyof T>(store: T, omit?: K[]): {
|
|
2
2
|
idb_check_promise: Promise<void>;
|
|
3
3
|
unregisterAll: () => void;
|
|
4
4
|
};
|
|
@@ -25,7 +25,7 @@ async function checkForIDBData(main_store) {
|
|
|
25
25
|
await Promise.allSettled(promises);
|
|
26
26
|
}
|
|
27
27
|
/* @__PURE__ */
|
|
28
|
-
export function
|
|
28
|
+
export function initiateIDBListenersOnMstSnapshots(store, omit = []) {
|
|
29
29
|
const unregister_registry = setIDBListenersOnSnapshots(store, omit);
|
|
30
30
|
function unregisterAll() {
|
|
31
31
|
unregister_registry.forEach((unregister) => unregister());
|
package/package.json
CHANGED
|
@@ -40,7 +40,7 @@ async function checkForIDBData<T extends Object>(main_store: T) {
|
|
|
40
40
|
await Promise.allSettled(promises)
|
|
41
41
|
}
|
|
42
42
|
/* @__PURE__ */
|
|
43
|
-
export function
|
|
43
|
+
export function initiateIDBListenersOnMstSnapshots<T extends Object, K extends keyof T>(store: T, omit: K[] = []) {
|
|
44
44
|
const unregister_registry = setIDBListenersOnSnapshots(store, omit)
|
|
45
45
|
|
|
46
46
|
function unregisterAll() {
|