Socket
Socket
Sign inDemoInstall

@vitest/expect

Package Overview
Dependencies
Maintainers
3
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vitest/expect - npm Package Compare versions

Comparing version 0.33.0 to 0.34.0

12

./dist/index.js

@@ -373,6 +373,10 @@ import { getColors, stringify, isObject, assertTypes } from '@vitest/utils';

function arrayBufferEquality(a, b) {
if (!(a instanceof ArrayBuffer) || !(b instanceof ArrayBuffer))
return void 0;
const dataViewA = new DataView(a);
const dataViewB = new DataView(b);
let dataViewA = a;
let dataViewB = b;
if (!(a instanceof DataView && b instanceof DataView)) {
if (!(a instanceof ArrayBuffer) || !(b instanceof ArrayBuffer))
return void 0;
dataViewA = new DataView(a);
dataViewB = new DataView(b);
}
if (dataViewA.byteLength !== dataViewB.byteLength)

@@ -379,0 +383,0 @@ return false;

@@ -373,6 +373,10 @@ import { getColors, stringify, isObject, assertTypes } from '@vitest/utils';

function arrayBufferEquality(a, b) {
if (!(a instanceof ArrayBuffer) || !(b instanceof ArrayBuffer))
return void 0;
const dataViewA = new DataView(a);
const dataViewB = new DataView(b);
let dataViewA = a;
let dataViewB = b;
if (!(a instanceof DataView && b instanceof DataView)) {
if (!(a instanceof ArrayBuffer) || !(b instanceof ArrayBuffer))
return void 0;
dataViewA = new DataView(a);
dataViewB = new DataView(b);
}
if (dataViewA.byteLength !== dataViewB.byteLength)

@@ -379,0 +383,0 @@ return false;

{
"name": "@vitest/expect",
"type": "module",
"version": "0.33.0",
"version": "0.34.0",
"description": "Jest's expect matchers as a Chai plugin",

@@ -33,8 +33,8 @@ "license": "MIT",

"chai": "^4.3.7",
"@vitest/spy": "0.33.0",
"@vitest/utils": "0.33.0"
"@vitest/utils": "0.34.0",
"@vitest/spy": "0.34.0"
},
"devDependencies": {
"picocolors": "^1.0.0",
"@vitest/runner": "0.33.0"
"@vitest/runner": "0.34.0"
},

@@ -41,0 +41,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc