@vitest/expect 0.34.2 → 0.34.4
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/dist/index.js +6 -2
- package/package.json +4 -4
package/dist/index.js
CHANGED
@@ -375,8 +375,12 @@ function arrayBufferEquality(a, b) {
|
|
375
375
|
if (!(a instanceof DataView && b instanceof DataView)) {
|
376
376
|
if (!(a instanceof ArrayBuffer) || !(b instanceof ArrayBuffer))
|
377
377
|
return void 0;
|
378
|
-
|
379
|
-
|
378
|
+
try {
|
379
|
+
dataViewA = new DataView(a);
|
380
|
+
dataViewB = new DataView(b);
|
381
|
+
} catch {
|
382
|
+
return void 0;
|
383
|
+
}
|
380
384
|
}
|
381
385
|
if (dataViewA.byteLength !== dataViewB.byteLength)
|
382
386
|
return false;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vitest/expect",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.34.
|
4
|
+
"version": "0.34.4",
|
5
5
|
"description": "Jest's expect matchers as a Chai plugin",
|
6
6
|
"license": "MIT",
|
7
7
|
"funding": "https://opencollective.com/vitest",
|
@@ -30,12 +30,12 @@
|
|
30
30
|
],
|
31
31
|
"dependencies": {
|
32
32
|
"chai": "^4.3.7",
|
33
|
-
"@vitest/utils": "0.34.
|
34
|
-
"@vitest/spy": "0.34.
|
33
|
+
"@vitest/utils": "0.34.4",
|
34
|
+
"@vitest/spy": "0.34.4"
|
35
35
|
},
|
36
36
|
"devDependencies": {
|
37
37
|
"picocolors": "^1.0.0",
|
38
|
-
"@vitest/runner": "0.34.
|
38
|
+
"@vitest/runner": "0.34.4"
|
39
39
|
},
|
40
40
|
"scripts": {
|
41
41
|
"build": "rimraf dist && rollup -c",
|