Socket
Socket
Sign inDemoInstall

@vitest/utils

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/utils - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

34

dist/source-map.d.ts
import { ParsedStack, ErrorWithDiff } from './types.js';
declare type GeneratedColumn = number;
declare type SourcesIndex = number;
declare type SourceLine = number;
declare type SourceColumn = number;
declare type NamesIndex = number;
declare type SourceMapSegment = [GeneratedColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex];
type GeneratedColumn = number;
type SourcesIndex = number;
type SourceLine = number;
type SourceColumn = number;
type NamesIndex = number;
type SourceMapSegment = [GeneratedColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex];

@@ -24,3 +24,3 @@ interface SourceMapV3 {

}
declare type OriginalMapping = {
type OriginalMapping = {
source: string | null;

@@ -31,3 +31,3 @@ line: number;

};
declare type InvalidOriginalMapping = {
type InvalidOriginalMapping = {
source: null;

@@ -38,13 +38,13 @@ line: null;

};
declare type GeneratedMapping = {
type GeneratedMapping = {
line: number;
column: number;
};
declare type InvalidGeneratedMapping = {
type InvalidGeneratedMapping = {
line: null;
column: null;
};
declare type Bias = typeof GREATEST_LOWER_BOUND | typeof LEAST_UPPER_BOUND;
declare type SourceMapInput = string | Ro<EncodedSourceMap> | Ro<DecodedSourceMap> | TraceMap;
declare type Needle = {
type Bias = typeof GREATEST_LOWER_BOUND | typeof LEAST_UPPER_BOUND;
type SourceMapInput = string | Ro<EncodedSourceMap> | Ro<DecodedSourceMap> | TraceMap;
type Needle = {
line: number;

@@ -54,3 +54,3 @@ column: number;

};
declare type SourceNeedle = {
type SourceNeedle = {
source: string;

@@ -70,5 +70,5 @@ line: number;

}
declare type Ro<T> = T extends Array<infer V> ? V[] | Readonly<V[]> | RoArray<V> | Readonly<RoArray<V>> : T extends object ? T | Readonly<T> | RoObject<T> | Readonly<RoObject<T>> : T;
declare type RoArray<T> = Ro<T>[];
declare type RoObject<T> = {
type Ro<T> = T extends Array<infer V> ? V[] | Readonly<V[]> | RoArray<V> | Readonly<RoArray<V>> : T extends object ? T | Readonly<T> | RoObject<T> | Readonly<RoObject<T>> : T;
type RoArray<T> = Ro<T>[];
type RoObject<T> = {
[K in keyof T]: T[K] | Ro<T[K]>;

@@ -75,0 +75,0 @@ };

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

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

"devDependencies": {
"@jridgewell/trace-mapping": "^0.3.20",
"@jridgewell/trace-mapping": "^0.3.21",
"@types/estree": "^1.0.5",

@@ -69,0 +69,0 @@ "tinyhighlight": "^0.3.2"

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