mol_wire_lib 1.0.808 → 1.0.809
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.deps.json +1 -1
- package/node.js +2 -0
- package/node.js.map +1 -1
- package/node.mjs +2 -0
- package/node.test.js +7 -0
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.js +2 -0
- package/web.js.map +1 -1
- package/web.mjs +2 -0
- package/web.test.js +5 -0
- package/web.test.js.map +1 -1
package/node.mjs
CHANGED
|
@@ -879,6 +879,8 @@ var $;
|
|
|
879
879
|
return true;
|
|
880
880
|
}
|
|
881
881
|
function compare_buffer(left, right) {
|
|
882
|
+
if (left instanceof DataView)
|
|
883
|
+
return compare_buffer(new Uint8Array(left.buffer, left.byteOffset, left.byteLength), new Uint8Array(right.buffer, left.byteOffset, left.byteLength));
|
|
882
884
|
const len = left.byteLength;
|
|
883
885
|
if (len !== right.byteLength)
|
|
884
886
|
return false;
|
package/node.test.js
CHANGED
|
@@ -871,6 +871,8 @@ var $;
|
|
|
871
871
|
return true;
|
|
872
872
|
}
|
|
873
873
|
function compare_buffer(left, right) {
|
|
874
|
+
if (left instanceof DataView)
|
|
875
|
+
return compare_buffer(new Uint8Array(left.buffer, left.byteOffset, left.byteLength), new Uint8Array(right.buffer, left.byteOffset, left.byteLength));
|
|
874
876
|
const len = left.byteLength;
|
|
875
877
|
if (len !== right.byteLength)
|
|
876
878
|
return false;
|
|
@@ -3249,6 +3251,11 @@ var $;
|
|
|
3249
3251
|
$mol_assert_ok($mol_compare_deep(new Uint8Array([0]), new Uint8Array([0])));
|
|
3250
3252
|
$mol_assert_not($mol_compare_deep(new Uint8Array([0]), new Uint8Array([1])));
|
|
3251
3253
|
},
|
|
3254
|
+
'DataView'() {
|
|
3255
|
+
$mol_assert_ok($mol_compare_deep(new DataView(new Uint8Array().buffer), new DataView(new Uint8Array().buffer)));
|
|
3256
|
+
$mol_assert_ok($mol_compare_deep(new DataView(new Uint8Array([0]).buffer), new DataView(new Uint8Array([0]).buffer)));
|
|
3257
|
+
$mol_assert_not($mol_compare_deep(new DataView(new Uint8Array([0]).buffer), new DataView(new Uint8Array([1]).buffer)));
|
|
3258
|
+
},
|
|
3252
3259
|
'Serializale'() {
|
|
3253
3260
|
class User {
|
|
3254
3261
|
name;
|