mol_plot_all 1.2.454 → 1.2.456

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
@@ -6927,6 +6927,25 @@ var $;
6927
6927
  ;
6928
6928
  "use strict";
6929
6929
  var $;
6930
+ (function ($) {
6931
+ function $mol_promise() {
6932
+ let done;
6933
+ let fail;
6934
+ const promise = new Promise((d, f) => {
6935
+ done = d;
6936
+ fail = f;
6937
+ });
6938
+ return Object.assign(promise, {
6939
+ done,
6940
+ fail,
6941
+ });
6942
+ }
6943
+ $.$mol_promise = $mol_promise;
6944
+ })($ || ($ = {}));
6945
+ //mol/promise/promise.ts
6946
+ ;
6947
+ "use strict";
6948
+ var $;
6930
6949
  (function ($) {
6931
6950
  function $mol_wire_sync(obj) {
6932
6951
  return new Proxy(obj, {
@@ -6953,25 +6972,6 @@ var $;
6953
6972
  ;
6954
6973
  "use strict";
6955
6974
  var $;
6956
- (function ($) {
6957
- function $mol_promise() {
6958
- let done;
6959
- let fail;
6960
- const promise = new Promise((d, f) => {
6961
- done = d;
6962
- fail = f;
6963
- });
6964
- return Object.assign(promise, {
6965
- done,
6966
- fail,
6967
- });
6968
- }
6969
- $.$mol_promise = $mol_promise;
6970
- })($ || ($ = {}));
6971
- //mol/promise/promise.ts
6972
- ;
6973
- "use strict";
6974
- var $;
6975
6975
  (function ($) {
6976
6976
  function $mol_wait_timeout_async(timeout) {
6977
6977
  const promise = $mol_promise();
@@ -7158,21 +7158,17 @@ var $;
7158
7158
  'Flow: Auto'($) {
7159
7159
  class App extends $mol_object2 {
7160
7160
  static get $() { return $; }
7161
- static first(next = 1) { return next; }
7162
- static second(next = 2) { return next; }
7161
+ static source(next = 1) { return next; }
7163
7162
  static condition(next = true) { return next; }
7164
7163
  static counter = 0;
7165
7164
  static result() {
7166
- const res = this.condition() ? this.first() : this.second();
7165
+ const res = this.condition() ? this.source() : 0;
7167
7166
  return res + this.counter++;
7168
7167
  }
7169
7168
  }
7170
7169
  __decorate([
7171
7170
  $mol_wire_solo
7172
- ], App, "first", null);
7173
- __decorate([
7174
- $mol_wire_solo
7175
- ], App, "second", null);
7171
+ ], App, "source", null);
7176
7172
  __decorate([
7177
7173
  $mol_wire_solo
7178
7174
  ], App, "condition", null);
@@ -7181,12 +7177,20 @@ var $;
7181
7177
  ], App, "result", null);
7182
7178
  $mol_assert_equal(App.result(), 1);
7183
7179
  $mol_assert_equal(App.counter, 1);
7184
- App.condition(false);
7185
- $mol_assert_equal(App.result(), 3);
7186
- $mol_assert_equal(App.counter, 2);
7187
- App.first(10);
7188
- $mol_assert_equal(App.result(), 3);
7180
+ App.source(10);
7181
+ $mol_assert_equal(App.result(), 11);
7189
7182
  $mol_assert_equal(App.counter, 2);
7183
+ App.condition(false);
7184
+ $mol_assert_equal(App.result(), 2);
7185
+ $mol_assert_equal(App.counter, 3);
7186
+ $mol_wire_fiber.sync();
7187
+ $mol_assert_equal(App.source(), 1);
7188
+ App.source(20);
7189
+ $mol_assert_equal(App.result(), 2);
7190
+ $mol_assert_equal(App.counter, 3);
7191
+ App.condition(true);
7192
+ $mol_assert_equal(App.result(), 23);
7193
+ $mol_assert_equal(App.counter, 4);
7190
7194
  },
7191
7195
  'Dupes: Equality'($) {
7192
7196
  let counter = 0;