🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@vitest/utils

Package Overview
Dependencies
Maintainers
5
Versions
199
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vitest/utils - npm Package Compare versions

Comparing version
5.0.0-beta.5
to
5.0.0-beta.6
+1
-3
dist/helpers.js

@@ -128,5 +128,3 @@ import { VALID_ID_PREFIX, NULL_BYTE_PLACEHOLDER } from './constants.js';

function toArray(array) {
if (array === null || array === undefined) {
array = [];
}
array ??= [];
if (Array.isArray(array)) {

@@ -133,0 +131,0 @@ return array;

@@ -404,3 +404,3 @@ import { isPrimitive, notNullish } from './helpers.js';

let file = source || stack.file;
if (file.match(/\/\w:\//)) {
if (/\/\w:\//.test(file)) {
file = file.slice(1);

@@ -407,0 +407,0 @@ }

{
"name": "@vitest/utils",
"type": "module",
"version": "5.0.0-beta.5",
"version": "5.0.0-beta.6",
"description": "Shared Vitest utility functions",

@@ -89,3 +89,3 @@ "license": "MIT",

"tinyrainbow": "^3.1.0",
"@vitest/pretty-format": "5.0.0-beta.5"
"@vitest/pretty-format": "5.0.0-beta.6"
},

@@ -92,0 +92,0 @@ "devDependencies": {