mol_tree2 1.0.654 → 1.0.656

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
@@ -2209,6 +2209,12 @@ var $node = new Proxy({ require }, {
2209
2209
  return target.require(name);
2210
2210
  }
2211
2211
  catch (error) {
2212
+ if (error.code === 'ERR_REQUIRE_ESM') {
2213
+ const module = cache.get(name);
2214
+ if (module)
2215
+ return module;
2216
+ throw import(name).then(module => cache.set(name, module));
2217
+ }
2212
2218
  $.$mol_fail_log(error);
2213
2219
  return null;
2214
2220
  }
@@ -2218,6 +2224,7 @@ var $node = new Proxy({ require }, {
2218
2224
  return true;
2219
2225
  },
2220
2226
  });
2227
+ const cache = new Map();
2221
2228
  require = (req => Object.assign(function require(name) {
2222
2229
  return $node[name];
2223
2230
  }, req))(require);
@@ -4658,7 +4665,7 @@ var $;
4658
4665
  destructor: result['destructor'] ?? (() => { })
4659
4666
  });
4660
4667
  handled.add(result);
4661
- const error = new Error();
4668
+ const error = new Error(`Promise in ${this}`);
4662
4669
  Object.defineProperty(result, 'stack', { get: () => error.stack });
4663
4670
  }
4664
4671
  if (!$mol_promise_like(result)) {
@@ -8201,7 +8208,7 @@ var $;
8201
8208
  "use strict";
8202
8209
  var $;
8203
8210
  (function ($) {
8204
- $mol_style_attach("mol/button/button.view.css", "[mol_button] {\n\tborder: none;\n\tfont: inherit;\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\ttext-decoration: inherit;\n\tcursor: inherit;\n\tposition: relative;\n\tbox-sizing: border-box;\n\tword-break: normal;\n\tcursor: default;\n\tuser-select: none;\n\tborder-radius: var(--mol_gap_round);\n}\n\n[mol_button]:where(:not(:disabled)):hover {\n\tz-index: var(--mol_layer_hover);\n}\n\n[mol_button]:focus-visible {\n\toutline: none;\n\tz-index: var(--mol_layer_focus);\n}\n");
8211
+ $mol_style_attach("mol/button/button.view.css", "[mol_button] {\n\tborder: none;\n\tfont: inherit;\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\ttext-decoration: inherit;\n\tcursor: inherit;\n\tposition: relative;\n\tbox-sizing: border-box;\n\tword-break: normal;\n\tcursor: default;\n\tuser-select: none;\n\tborder-radius: var(--mol_gap_round);\n\tbackground: transparent;\n\tcolor: inherit;\n}\n\n[mol_button]:where(:not(:disabled)):hover {\n\tz-index: var(--mol_layer_hover);\n}\n\n[mol_button]:focus-visible {\n\toutline: none;\n\tz-index: var(--mol_layer_focus);\n}\n");
8205
8212
  })($ || ($ = {}));
8206
8213
 
8207
8214
  ;