@vitest/snapshot
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -1,5 +0,5 @@ | ||
import { S as SnapshotStateOptions, a as SnapshotMatchOptions, b as SnapshotResult, R as RawSnapshotInfo } from './index-reKGmLsM.js'; | ||
export { c as SnapshotData, e as SnapshotSerializer, f as SnapshotSummary, d as SnapshotUpdateState, U as UncheckedSnapshot } from './index-reKGmLsM.js'; | ||
import { S as SnapshotStateOptions, a as SnapshotMatchOptions, b as SnapshotResult, R as RawSnapshotInfo } from './index-Y6kQUiCB.js'; | ||
export { c as SnapshotData, e as SnapshotSerializer, f as SnapshotSummary, d as SnapshotUpdateState, U as UncheckedSnapshot } from './index-Y6kQUiCB.js'; | ||
import { S as SnapshotEnvironment } from './environment-Ddx0EDtY.js'; | ||
import { Plugin, Plugins } from 'pretty-format'; | ||
import { Plugin, Plugins } from '@vitest/pretty-format'; | ||
@@ -6,0 +6,0 @@ interface ParsedStack { |
@@ -1,2 +0,2 @@ | ||
import { plugins, format } from 'pretty-format'; | ||
import { plugins, format } from '@vitest/pretty-format'; | ||
import { resolve as resolve$2 } from 'pathe'; | ||
@@ -235,2 +235,83 @@ | ||
// src/index.ts | ||
var f = { | ||
reset: [0, 0], | ||
bold: [1, 22, "\x1B[22m\x1B[1m"], | ||
dim: [2, 22, "\x1B[22m\x1B[2m"], | ||
italic: [3, 23], | ||
underline: [4, 24], | ||
inverse: [7, 27], | ||
hidden: [8, 28], | ||
strikethrough: [9, 29], | ||
black: [30, 39], | ||
red: [31, 39], | ||
green: [32, 39], | ||
yellow: [33, 39], | ||
blue: [34, 39], | ||
magenta: [35, 39], | ||
cyan: [36, 39], | ||
white: [37, 39], | ||
gray: [90, 39], | ||
bgBlack: [40, 49], | ||
bgRed: [41, 49], | ||
bgGreen: [42, 49], | ||
bgYellow: [43, 49], | ||
bgBlue: [44, 49], | ||
bgMagenta: [45, 49], | ||
bgCyan: [46, 49], | ||
bgWhite: [47, 49], | ||
blackBright: [90, 39], | ||
redBright: [91, 39], | ||
greenBright: [92, 39], | ||
yellowBright: [93, 39], | ||
blueBright: [94, 39], | ||
magentaBright: [95, 39], | ||
cyanBright: [96, 39], | ||
whiteBright: [97, 39], | ||
bgBlackBright: [100, 49], | ||
bgRedBright: [101, 49], | ||
bgGreenBright: [102, 49], | ||
bgYellowBright: [103, 49], | ||
bgBlueBright: [104, 49], | ||
bgMagentaBright: [105, 49], | ||
bgCyanBright: [106, 49], | ||
bgWhiteBright: [107, 49] | ||
}, h = Object.entries(f); | ||
function a(n) { | ||
return String(n); | ||
} | ||
a.open = ""; | ||
a.close = ""; | ||
function C(n = !1) { | ||
let e = typeof process != "undefined" ? process : void 0, i = (e == null ? void 0 : e.env) || {}, g = (e == null ? void 0 : e.argv) || []; | ||
return !("NO_COLOR" in i || g.includes("--no-color")) && ("FORCE_COLOR" in i || g.includes("--color") || (e == null ? void 0 : e.platform) === "win32" || n && i.TERM !== "dumb" || "CI" in i) || typeof window != "undefined" && !!window.chrome; | ||
} | ||
function p(n = !1) { | ||
let e = C(n), i = (r, t, c, o) => { | ||
let l = "", s = 0; | ||
do | ||
l += r.substring(s, o) + c, s = o + t.length, o = r.indexOf(t, s); | ||
while (~o); | ||
return l + r.substring(s); | ||
}, g = (r, t, c = r) => { | ||
let o = (l) => { | ||
let s = String(l), b = s.indexOf(t, r.length); | ||
return ~b ? r + i(s, t, c, b) + t : r + s + t; | ||
}; | ||
return o.open = r, o.close = t, o; | ||
}, u = { | ||
isColorSupported: e | ||
}, d = (r) => `\x1B[${r}m`; | ||
for (let [r, t] of h) | ||
u[r] = e ? g( | ||
d(t[0]), | ||
d(t[1]), | ||
t[2] | ||
) : a; | ||
return u; | ||
} | ||
// src/browser.ts | ||
p(!1); | ||
const serialize$1 = (val, config, indentation, depth, refs, printer) => { | ||
@@ -237,0 +318,0 @@ const name = val.getMockName(); |
@@ -1,3 +0,3 @@ | ||
import { S as SnapshotStateOptions, f as SnapshotSummary, b as SnapshotResult } from './index-reKGmLsM.js'; | ||
import 'pretty-format'; | ||
import { S as SnapshotStateOptions, f as SnapshotSummary, b as SnapshotResult } from './index-Y6kQUiCB.js'; | ||
import '@vitest/pretty-format'; | ||
import './environment-Ddx0EDtY.js'; | ||
@@ -4,0 +4,0 @@ |
{ | ||
"name": "@vitest/snapshot", | ||
"type": "module", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Vitest snapshot manager", | ||
@@ -43,3 +43,3 @@ "license": "MIT", | ||
"pathe": "^1.1.2", | ||
"pretty-format": "^29.7.0" | ||
"@vitest/pretty-format": "2.0.2" | ||
}, | ||
@@ -49,3 +49,3 @@ "devDependencies": { | ||
"natural-compare": "^1.4.0", | ||
"@vitest/utils": "2.0.1" | ||
"@vitest/utils": "2.0.2" | ||
}, | ||
@@ -52,0 +52,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71427
2075
+ Added@vitest/pretty-format@2.0.2
+ Added@vitest/pretty-format@2.0.2(transitive)
+ Addedtinyrainbow@1.2.0(transitive)
- Removedpretty-format@^29.7.0
- Removed@jest/schemas@29.6.3(transitive)
- Removed@sinclair/typebox@0.27.8(transitive)
- Removedansi-styles@5.2.0(transitive)
- Removedpretty-format@29.7.0(transitive)
- Removedreact-is@18.3.1(transitive)