mol_wire_lib 1.0.170 → 1.0.173

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.test.js CHANGED
@@ -1031,26 +1031,7 @@ var $;
1031
1031
  }
1032
1032
  }
1033
1033
  resync(...args) {
1034
- let res;
1035
- try {
1036
- res = this.recall(...args);
1037
- }
1038
- catch (error) {
1039
- if (error instanceof Promise)
1040
- $mol_fail_hidden(error);
1041
- res = error;
1042
- }
1043
- try {
1044
- this.once();
1045
- }
1046
- catch (error) {
1047
- if (error instanceof Promise)
1048
- $mol_fail_hidden(error);
1049
- }
1050
- return this.put(res);
1051
- }
1052
- recall(...args) {
1053
- return this.task.call(this.host, ...args);
1034
+ return this.put(this.task.call(this.host, ...args));
1054
1035
  }
1055
1036
  once() {
1056
1037
  return this.sync();
@@ -1099,9 +1080,6 @@ var $;
1099
1080
  __decorate([
1100
1081
  $mol_wire_method
1101
1082
  ], $mol_wire_atom.prototype, "resync", null);
1102
- __decorate([
1103
- $mol_wire_method
1104
- ], $mol_wire_atom.prototype, "recall", null);
1105
1083
  __decorate([
1106
1084
  $mol_wire_method
1107
1085
  ], $mol_wire_atom.prototype, "once", null);
@@ -3117,33 +3095,6 @@ var $;
3117
3095
  ], App, "test", null);
3118
3096
  App.test();
3119
3097
  },
3120
- 'Update deps on push'($) {
3121
- class App extends $mol_object2 {
3122
- static $ = $;
3123
- static left(next = false) {
3124
- return next;
3125
- }
3126
- static right(next = false) {
3127
- return next;
3128
- }
3129
- static res(next) {
3130
- return this.left(next) && this.right();
3131
- }
3132
- }
3133
- __decorate([
3134
- $mol_wire_mem(0)
3135
- ], App, "left", null);
3136
- __decorate([
3137
- $mol_wire_mem(0)
3138
- ], App, "right", null);
3139
- __decorate([
3140
- $mol_wire_mem(0)
3141
- ], App, "res", null);
3142
- $mol_assert_equal(App.res(), false);
3143
- $mol_assert_equal(App.res(true), false);
3144
- $mol_assert_equal(App.right(true), true);
3145
- $mol_assert_equal(App.res(), true);
3146
- },
3147
3098
  'Different order of pull and push'($) {
3148
3099
  class App extends $mol_object2 {
3149
3100
  static $ = $;
@@ -3154,6 +3105,8 @@ var $;
3154
3105
  return this.store(next);
3155
3106
  }
3156
3107
  static slow(next) {
3108
+ if (next !== undefined)
3109
+ this.slow();
3157
3110
  return this.store(next);
3158
3111
  }
3159
3112
  }