mol_dump_lib 0.0.2 → 0.0.4

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/web.js CHANGED
@@ -4932,7 +4932,7 @@ var $;
4932
4932
  static relative(path) {
4933
4933
  return this.absolute(new URL(path, this.base).toString());
4934
4934
  }
4935
- static base = $mol_dom_context.document
4935
+ static base = $mol_dom_context.document?.currentScript
4936
4936
  ? new URL('.', $mol_dom_context.document.currentScript['src']).toString()
4937
4937
  : '';
4938
4938
  buffer(next) {
@@ -5733,10 +5733,14 @@ var $;
5733
5733
  var $;
5734
5734
  (function ($) {
5735
5735
  class $mol_dump_value extends $mol_view {
5736
- value() {
5736
+ value(next) {
5737
+ if (next !== undefined)
5738
+ return next;
5737
5739
  return null;
5738
5740
  }
5739
- preview_show() {
5741
+ preview_show(next) {
5742
+ if (next !== undefined)
5743
+ return next;
5740
5744
  return true;
5741
5745
  }
5742
5746
  sub() {
@@ -5832,6 +5836,12 @@ var $;
5832
5836
  return obj;
5833
5837
  }
5834
5838
  }
5839
+ __decorate([
5840
+ $mol_mem
5841
+ ], $mol_dump_value.prototype, "value", null);
5842
+ __decorate([
5843
+ $mol_mem
5844
+ ], $mol_dump_value.prototype, "preview_show", null);
5835
5845
  __decorate([
5836
5846
  $mol_mem
5837
5847
  ], $mol_dump_value.prototype, "Simple", null);