Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vitest/utils

Package Overview
Dependencies
Maintainers
3
Versions
100
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 0.34.1 to 0.34.2

10

dist/error.js
import { diff } from './diff.js';
import { f as format, s as stringify } from './chunk-display.js';
import { getOwnProperties, getType } from './helpers.js';
import { deepClone, getOwnProperties, getType } from './helpers.js';
import 'pretty-format';

@@ -82,4 +82,8 @@ import 'diff-sequences';

err.nameStr = String(err.name);
if (err.showDiff || err.showDiff === void 0 && err.expected !== void 0 && err.actual !== void 0)
err.diff = diff(err.expected, err.actual);
if (err.showDiff || err.showDiff === void 0 && err.expected !== void 0 && err.actual !== void 0) {
const clonedActual = deepClone(err.actual, { forceWritable: true });
const clonedExpected = deepClone(err.expected, { forceWritable: true });
const { replacedActual, replacedExpected } = replaceAsymmetricMatcher(clonedActual, clonedExpected);
err.diff = diff(replacedExpected, replacedActual);
}
if (typeof err.expected !== "string")

@@ -86,0 +90,0 @@ err.expected = stringify(err.expected, 10);

@@ -35,2 +35,2 @@ import { Nullable, Arrayable } from './types.js';

export { assertTypes, clone, createDefer, deepClone, getCallLastIndex, getOwnProperties, getType, isObject, isPrimitive, noop, notNullish, objectAttr, parseRegexp, slash, toArray };
export { DeferPromise, assertTypes, clone, createDefer, deepClone, getCallLastIndex, getOwnProperties, getType, isObject, isPrimitive, noop, notNullish, objectAttr, parseRegexp, slash, toArray };

@@ -1,2 +0,2 @@

export { assertTypes, clone, createDefer, deepClone, getCallLastIndex, getOwnProperties, getType, isObject, isPrimitive, noop, notNullish, objectAttr, parseRegexp, slash, toArray } from './helpers.js';
export { DeferPromise, assertTypes, clone, createDefer, deepClone, getCallLastIndex, getOwnProperties, getType, isObject, isPrimitive, noop, notNullish, objectAttr, parseRegexp, slash, toArray } from './helpers.js';
export { ArgumentsType, Arrayable, Awaitable, Constructable, DeepMerge, ErrorWithDiff, MergeInsertions, MutableArray, Nullable, ParsedStack } from './types.js';

@@ -3,0 +3,0 @@ import { PrettyFormatOptions } from 'pretty-format';

@@ -833,2 +833,4 @@ import { notNullish, isPrimitive } from './helpers.js';

file = resolve$2(file);
if (method)
method = method.replace(/__vite_ssr_import_\d+__\./g, "");
return {

@@ -835,0 +837,0 @@ method,

{
"name": "@vitest/utils",
"type": "module",
"version": "0.34.1",
"version": "0.34.2",
"description": "Shared Vitest utility functions",

@@ -6,0 +6,0 @@ "license": "MIT",

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