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.js CHANGED
@@ -1038,17 +1038,27 @@ var $;
1038
1038
  };
1039
1039
  }
1040
1040
  }
1041
- recall(...args) {
1042
- if (this.cursor > $mol_wire_cursor.fresh) {
1043
- try {
1044
- this.once();
1045
- }
1046
- catch (error) {
1047
- if (error instanceof Promise)
1048
- $mol_fail_hidden(error);
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
- return this.put(this.task.call(this.host, ...args));
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.recall(...args);
1229
+ return atom.resync(...args);
1217
1230
  };
1218
1231
  Object.defineProperty(wrapper, 'name', { value: func.name + ' ' });
1219
1232
  Object.assign(wrapper, { orig: func });