mol_wire_lib 1.0.169 → 1.0.170
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/node.d.ts +2 -1
- package/node.deps.json +1 -1
- package/node.esm.js +24 -11
- package/node.esm.js.map +1 -1
- package/node.js +24 -11
- package/node.js.map +1 -1
- package/node.test.js +64 -11
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +2 -1
- package/web.deps.json +1 -1
- package/web.esm.js +24 -11
- package/web.esm.js.map +1 -1
- package/web.js +24 -11
- package/web.js.map +1 -1
- package/web.test.js +40 -0
- package/web.test.js.map +1 -1
package/node.js
CHANGED
|
@@ -1038,17 +1038,27 @@ var $;
|
|
|
1038
1038
|
};
|
|
1039
1039
|
}
|
|
1040
1040
|
}
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1041
|
+
resync(...args) {
|
|
1042
|
+
let res;
|
|
1043
|
+
try {
|
|
1044
|
+
res = this.recall(...args);
|
|
1045
|
+
}
|
|
1046
|
+
catch (error) {
|
|
1047
|
+
if (error instanceof Promise)
|
|
1048
|
+
$mol_fail_hidden(error);
|
|
1049
|
+
res = error;
|
|
1050
1050
|
}
|
|
1051
|
-
|
|
1051
|
+
try {
|
|
1052
|
+
this.once();
|
|
1053
|
+
}
|
|
1054
|
+
catch (error) {
|
|
1055
|
+
if (error instanceof Promise)
|
|
1056
|
+
$mol_fail_hidden(error);
|
|
1057
|
+
}
|
|
1058
|
+
return this.put(res);
|
|
1059
|
+
}
|
|
1060
|
+
recall(...args) {
|
|
1061
|
+
return this.task.call(this.host, ...args);
|
|
1052
1062
|
}
|
|
1053
1063
|
once() {
|
|
1054
1064
|
return this.sync();
|
|
@@ -1094,6 +1104,9 @@ var $;
|
|
|
1094
1104
|
return next;
|
|
1095
1105
|
}
|
|
1096
1106
|
}
|
|
1107
|
+
__decorate([
|
|
1108
|
+
$mol_wire_method
|
|
1109
|
+
], $mol_wire_atom.prototype, "resync", null);
|
|
1097
1110
|
__decorate([
|
|
1098
1111
|
$mol_wire_method
|
|
1099
1112
|
], $mol_wire_atom.prototype, "recall", null);
|
|
@@ -1213,7 +1226,7 @@ var $;
|
|
|
1213
1226
|
return atom.sync();
|
|
1214
1227
|
}
|
|
1215
1228
|
}
|
|
1216
|
-
return atom.
|
|
1229
|
+
return atom.resync(...args);
|
|
1217
1230
|
};
|
|
1218
1231
|
Object.defineProperty(wrapper, 'name', { value: func.name + ' ' });
|
|
1219
1232
|
Object.assign(wrapper, { orig: func });
|