mol_jsx_lib 0.0.676 → 0.0.678

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.mjs CHANGED
@@ -1140,19 +1140,6 @@ var $;
1140
1140
  ;
1141
1141
  "use strict";
1142
1142
  var $;
1143
- (function ($) {
1144
- function $mol_const(value) {
1145
- const getter = (() => value);
1146
- getter['()'] = value;
1147
- getter[Symbol.toStringTag] = value;
1148
- return getter;
1149
- }
1150
- $.$mol_const = $mol_const;
1151
- })($ || ($ = {}));
1152
- //mol/const/const.ts
1153
- ;
1154
- "use strict";
1155
- var $;
1156
1143
  (function ($) {
1157
1144
  $['devtoolsFormatters'] ||= [];
1158
1145
  function $mol_dev_format_register(config) {
@@ -1252,6 +1239,20 @@ var $;
1252
1239
  ;
1253
1240
  "use strict";
1254
1241
  var $;
1242
+ (function ($) {
1243
+ function $mol_const(value) {
1244
+ const getter = (() => value);
1245
+ getter['()'] = value;
1246
+ getter[Symbol.toStringTag] = value;
1247
+ getter[$mol_dev_format_head] = () => $mol_dev_format_span({}, '()=> ', $mol_dev_format_auto(value));
1248
+ return getter;
1249
+ }
1250
+ $.$mol_const = $mol_const;
1251
+ })($ || ($ = {}));
1252
+ //mol/const/const.ts
1253
+ ;
1254
+ "use strict";
1255
+ var $;
1255
1256
  (function ($) {
1256
1257
  class $mol_wire_pub_sub extends $mol_wire_pub {
1257
1258
  pub_from = 0;
@@ -1792,6 +1793,8 @@ var $;
1792
1793
  return true;
1793
1794
  }
1794
1795
  function compare_buffer(left, right) {
1796
+ if (left instanceof DataView)
1797
+ return compare_buffer(new Uint8Array(left.buffer, left.byteOffset, left.byteLength), new Uint8Array(right.buffer, left.byteOffset, left.byteLength));
1795
1798
  const len = left.byteLength;
1796
1799
  if (len !== right.byteLength)
1797
1800
  return false;
package/node.test.js CHANGED
@@ -1132,19 +1132,6 @@ var $;
1132
1132
  ;
1133
1133
  "use strict";
1134
1134
  var $;
1135
- (function ($) {
1136
- function $mol_const(value) {
1137
- const getter = (() => value);
1138
- getter['()'] = value;
1139
- getter[Symbol.toStringTag] = value;
1140
- return getter;
1141
- }
1142
- $.$mol_const = $mol_const;
1143
- })($ || ($ = {}));
1144
- //mol/const/const.ts
1145
- ;
1146
- "use strict";
1147
- var $;
1148
1135
  (function ($) {
1149
1136
  $['devtoolsFormatters'] ||= [];
1150
1137
  function $mol_dev_format_register(config) {
@@ -1244,6 +1231,20 @@ var $;
1244
1231
  ;
1245
1232
  "use strict";
1246
1233
  var $;
1234
+ (function ($) {
1235
+ function $mol_const(value) {
1236
+ const getter = (() => value);
1237
+ getter['()'] = value;
1238
+ getter[Symbol.toStringTag] = value;
1239
+ getter[$mol_dev_format_head] = () => $mol_dev_format_span({}, '()=> ', $mol_dev_format_auto(value));
1240
+ return getter;
1241
+ }
1242
+ $.$mol_const = $mol_const;
1243
+ })($ || ($ = {}));
1244
+ //mol/const/const.ts
1245
+ ;
1246
+ "use strict";
1247
+ var $;
1247
1248
  (function ($) {
1248
1249
  class $mol_wire_pub_sub extends $mol_wire_pub {
1249
1250
  pub_from = 0;
@@ -1784,6 +1785,8 @@ var $;
1784
1785
  return true;
1785
1786
  }
1786
1787
  function compare_buffer(left, right) {
1788
+ if (left instanceof DataView)
1789
+ return compare_buffer(new Uint8Array(left.buffer, left.byteOffset, left.byteLength), new Uint8Array(right.buffer, left.byteOffset, left.byteLength));
1787
1790
  const len = left.byteLength;
1788
1791
  if (len !== right.byteLength)
1789
1792
  return false;
@@ -4012,6 +4015,11 @@ var $;
4012
4015
  $mol_assert_ok($mol_compare_deep(new Uint8Array([0]), new Uint8Array([0])));
4013
4016
  $mol_assert_not($mol_compare_deep(new Uint8Array([0]), new Uint8Array([1])));
4014
4017
  },
4018
+ 'DataView'() {
4019
+ $mol_assert_ok($mol_compare_deep(new DataView(new Uint8Array().buffer), new DataView(new Uint8Array().buffer)));
4020
+ $mol_assert_ok($mol_compare_deep(new DataView(new Uint8Array([0]).buffer), new DataView(new Uint8Array([0]).buffer)));
4021
+ $mol_assert_not($mol_compare_deep(new DataView(new Uint8Array([0]).buffer), new DataView(new Uint8Array([1]).buffer)));
4022
+ },
4015
4023
  'Serializale'() {
4016
4024
  class User {
4017
4025
  name;