valdres 0.2.0-pre.17 → 0.2.0-pre.18
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/dist/index.js +4 -4
- package/dist/types/lib/transaction.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -920,7 +920,7 @@ class Transaction {
|
|
|
920
920
|
}
|
|
921
921
|
return value;
|
|
922
922
|
};
|
|
923
|
-
batchSetFamilyAtoms(family, pairs) {
|
|
923
|
+
batchSetFamilyAtoms = (family, pairs) => {
|
|
924
924
|
if (!this.atomMap.has(family)) {
|
|
925
925
|
this.cloneFamilyIntoTxn(family);
|
|
926
926
|
}
|
|
@@ -937,7 +937,7 @@ class Transaction {
|
|
|
937
937
|
index.rendered = null;
|
|
938
938
|
index.renderedArray = null;
|
|
939
939
|
this.recursivlyUpdateAtomFamilyIndexes(family);
|
|
940
|
-
}
|
|
940
|
+
};
|
|
941
941
|
del = (atom) => {
|
|
942
942
|
if (!this.atomMap.has(atom.family)) {
|
|
943
943
|
this.cloneFamilyIntoTxn(atom.family);
|
|
@@ -1470,9 +1470,9 @@ var isFamilySelector = (state) => isFamilyState(state) && isSelector(state);
|
|
|
1470
1470
|
|
|
1471
1471
|
// src/index.ts
|
|
1472
1472
|
if (globalThis.__valdres__) {
|
|
1473
|
-
throw new Error(`Error! An instance of valdres is already loaded. Loaded: ${globalThis.__valdres__}. Attempted to load: ${"0.2.0-pre.
|
|
1473
|
+
throw new Error(`Error! An instance of valdres is already loaded. Loaded: ${globalThis.__valdres__}. Attempted to load: ${"0.2.0-pre.18"}`);
|
|
1474
1474
|
} else {
|
|
1475
|
-
globalThis.__valdres__ = "0.2.0-pre.
|
|
1475
|
+
globalThis.__valdres__ = "0.2.0-pre.18";
|
|
1476
1476
|
}
|
|
1477
1477
|
export {
|
|
1478
1478
|
store,
|
|
@@ -17,7 +17,7 @@ export declare class Transaction {
|
|
|
17
17
|
private valueFromTxnOrData;
|
|
18
18
|
get: GetValue;
|
|
19
19
|
set: <V>(atom: Atom<V>, value: V | ((currentValue: V) => V)) => V;
|
|
20
|
-
batchSetFamilyAtoms(family: any, pairs: any)
|
|
20
|
+
batchSetFamilyAtoms: (family: any, pairs: any) => void;
|
|
21
21
|
del: (atom: AtomFamilyAtom<any, any>) => void;
|
|
22
22
|
scope: (scopeId: string, callback: (txn: Transaction) => any) => any;
|
|
23
23
|
parentScope: (callback: (txn: Transaction) => any) => any;
|