mol_plot_all 1.2.960 → 1.2.962

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
@@ -789,16 +789,13 @@ var $;
789
789
  result = this.task.call(this.host, ...this.args);
790
790
  break;
791
791
  }
792
- if ($mol_promise_like(result)) {
792
+ if ($mol_promise_like(result) && !handled.has(result)) {
793
793
  const put = (res) => {
794
794
  if (this.cache === result)
795
795
  this.put(res);
796
796
  return res;
797
797
  };
798
- result = Object.assign(result.then(put, put), {
799
- destructor: result['destructor'] ?? (() => { })
800
- });
801
- handled.add(result);
798
+ result = result.then(put, put);
802
799
  }
803
800
  }
804
801
  catch (error) {
@@ -809,15 +806,20 @@ var $;
809
806
  result = new Error(String(error), { cause: error });
810
807
  }
811
808
  if ($mol_promise_like(result) && !handled.has(result)) {
812
- result = Object.assign(result.finally(() => {
809
+ result = result.finally(() => {
813
810
  if (this.cache === result)
814
811
  this.absorb();
815
- }), {
816
- destructor: result['destructor'] ?? (() => { })
817
812
  });
818
- handled.add(result);
819
813
  }
820
814
  }
815
+ if ($mol_promise_like(result) && !handled.has(result)) {
816
+ result = Object.assign(result, {
817
+ destructor: result['destructor'] ?? (() => { })
818
+ });
819
+ handled.add(result);
820
+ const error = new Error();
821
+ Object.defineProperty(result, 'stack', { get: () => error.stack });
822
+ }
821
823
  if (!$mol_promise_like(result)) {
822
824
  this.track_cut();
823
825
  }
@@ -2587,10 +2589,10 @@ var $;
2587
2589
  "use strict";
2588
2590
  var $;
2589
2591
  (function ($) {
2590
- function $mol_style_prop(prefix, postfixes) {
2591
- const record = postfixes.reduce((record_obj, postfix) => {
2592
- record_obj[postfix] = $mol_style_func.vary(`--${prefix}_${postfix}`);
2593
- return record_obj;
2592
+ function $mol_style_prop(prefix, keys) {
2593
+ const record = keys.reduce((rec, key) => {
2594
+ rec[key] = $mol_style_func.vary(`--${prefix}_${key}`);
2595
+ return rec;
2594
2596
  }, {});
2595
2597
  return record;
2596
2598
  }