mol_dump_lib 0.0.181 → 0.0.183

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.mjs CHANGED
@@ -1692,7 +1692,9 @@ var $;
1692
1692
  var $;
1693
1693
  (function ($) {
1694
1694
  function $mol_wire_solid() {
1695
- const current = $mol_wire_auto();
1695
+ let current = $mol_wire_auto();
1696
+ if (current.temp)
1697
+ current = current.host;
1696
1698
  if (current.reap !== nothing) {
1697
1699
  current?.sub_on(sub, sub.data.length);
1698
1700
  }
@@ -3236,6 +3238,13 @@ var $;
3236
3238
  rules.push(`${key} ${query} {\n`);
3237
3239
  }
3238
3240
  }
3241
+ else if (key[0] === '[' && key[key.length - 1] === ']') {
3242
+ const attr = key.slice(1, -1);
3243
+ const vals = config[key];
3244
+ for (let val in vals) {
3245
+ make_class(selector(prefix, path) + ':where([' + attr + '=' + JSON.stringify(val) + '])', [], vals[val]);
3246
+ }
3247
+ }
3239
3248
  else {
3240
3249
  make_class(selector(prefix, path) + key, [], config[key]);
3241
3250
  }
@@ -4691,7 +4700,7 @@ var $;
4691
4700
  native.persist().then(actual => {
4692
4701
  setTimeout(() => this.persisted(actual, 'cache'), 5000);
4693
4702
  if (actual)
4694
- this.$.$mol_log3_rise({ place: `$mol_storage`, message: `Persist: Yes` });
4703
+ this.$.$mol_log3_done({ place: `$mol_storage`, message: `Persist: Yes` });
4695
4704
  else
4696
4705
  this.$.$mol_log3_fail({ place: `$mol_storage`, message: `Persist: No` });
4697
4706
  });
package/web.test.js CHANGED
@@ -767,7 +767,7 @@ var $;
767
767
  for (let i = 1; i < args.length; ++i) {
768
768
  if ($mol_compare_deep(args[0], args[i]))
769
769
  continue;
770
- if (args[0] instanceof Element && args[i] instanceof Element && args[0].outerHTML === args[i].outerHTML)
770
+ if (args[0] instanceof $mol_dom_context.Element && args[i] instanceof $mol_dom_context.Element && args[0].outerHTML === args[i].outerHTML)
771
771
  continue;
772
772
  return $mol_fail(new Error(`args[0] ≠ args[${i}]\n${print(args[0])}\n---\n${print(args[i])}`));
773
773
  }