mol_jsx_lib 0.0.675 → 0.0.677

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
@@ -619,7 +619,6 @@ var $;
619
619
  $.$mol_dev_format_element = $mol_dev_format_element;
620
620
  function $mol_dev_format_span(style, ...content) {
621
621
  return $mol_dev_format_element('span', {
622
- 'vertical-align': '8%',
623
622
  ...style,
624
623
  }, ...content);
625
624
  }
@@ -1196,6 +1195,8 @@ var $;
1196
1195
  return true;
1197
1196
  }
1198
1197
  function compare_buffer(left, right) {
1198
+ if (left instanceof DataView)
1199
+ return compare_buffer(new Uint8Array(left.buffer, left.byteOffset, left.byteLength), new Uint8Array(right.buffer, left.byteOffset, left.byteLength));
1199
1200
  const len = left.byteLength;
1200
1201
  if (len !== right.byteLength)
1201
1202
  return false;
@@ -2035,7 +2036,7 @@ var $;
2035
2036
  if (super.get(key) === value)
2036
2037
  return this;
2037
2038
  super.set(key, value);
2038
- this.pub.emit();
2039
+ this.pub?.emit();
2039
2040
  return this;
2040
2041
  }
2041
2042
  delete(key) {
package/web.test.js CHANGED
@@ -194,7 +194,7 @@ var $;
194
194
  if ('outerHTML' in val)
195
195
  return val.outerHTML;
196
196
  try {
197
- return JSON.stringify(val, null, '\t');
197
+ return JSON.stringify(val, (k, v) => typeof v === 'bigint' ? String(v) : v, '\t');
198
198
  }
199
199
  catch (error) {
200
200
  console.error(error);
@@ -1090,6 +1090,11 @@ var $;
1090
1090
  $mol_assert_ok($mol_compare_deep(new Uint8Array([0]), new Uint8Array([0])));
1091
1091
  $mol_assert_not($mol_compare_deep(new Uint8Array([0]), new Uint8Array([1])));
1092
1092
  },
1093
+ 'DataView'() {
1094
+ $mol_assert_ok($mol_compare_deep(new DataView(new Uint8Array().buffer), new DataView(new Uint8Array().buffer)));
1095
+ $mol_assert_ok($mol_compare_deep(new DataView(new Uint8Array([0]).buffer), new DataView(new Uint8Array([0]).buffer)));
1096
+ $mol_assert_not($mol_compare_deep(new DataView(new Uint8Array([0]).buffer), new DataView(new Uint8Array([1]).buffer)));
1097
+ },
1093
1098
  'Serializale'() {
1094
1099
  class User {
1095
1100
  name;