npm / @vitest/mocker / 4.1.12
@vitest/mocker 4.1.12
- Source
- https://github.com/vitest-dev/vitest
- Tag scanned
v4.1.12- Directory
packages/mocker- Compared with
v4.1.11(0 signals introduced since)- Files
- 31 scanned, 1 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 3 info
- Scan time
- 3.3 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 3 of 3 warn and critical signals; 3 demoted to info.
- Disclude version
- 4.0.0
- Scanned (UTC)
- 2026-10-16 20:11
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
}$` return this.wrapDynamicImport(() => import(/* @vite-ignore */ actualUrl)).then((mod) => { if (!resolved.optimized || typeof mod.default === 'undefined') { return modlikely benign Dynamic import of a resolved module URL in the browser mocking utility, annotated with @vite-ignore.Reasoning
The import specifier is built from a resolved module URL inside a vitest-style browser mocker; the /* @vite-ignore */ comment is the standard Vite annotation for intentionally dynamic module loading. This is expected behavior for a module mocking framework, not obfuscated or malicious code.
-
const query = url. ? `&t=` : `?t=` const moduleObject = await return this. as T }likely benign Dynamic import of a path with cache-busting and mock query params inside the browser mocker.Reasoning
The specifier is a path with a cache-busting query and a mock type parameter, consistent with a test mocker loading mocked module variants. The @vite-ignore annotation signals intentional dynamic loading. No encoding, decoding, or execution of external payloads is visible.
-
return }likely benign Dynamic import of a configured mock redirect module path.Reasoning
The import target is mock.redirect, a configured redirect path for a mock. This is a legitimate pattern in a mocking library. The only residual doubt is that the redirect value's origin is not shown in the snippet, but nothing suggests remote or attacker-controlled loading.
Reproduce This Scan
Run disclude locally to verify. Add --format sarif for SARIF output. Add --llm (with an API key in the environment) to include the LLM review.
&&