vite-node
Advanced tools
Comparing version
@@ -1,2 +0,3 @@ | ||
import { e as ViteNodeServerOptions } from './types-63205a44.js'; | ||
import { e as ViteNodeServerOptions } from './types-e288fc62.js'; | ||
import './types.d-1e7e3fdf.js'; | ||
@@ -7,2 +8,3 @@ interface CliOptions { | ||
config?: string; | ||
mode?: string; | ||
watch?: boolean; | ||
@@ -9,0 +11,0 @@ options?: ViteNodeServerOptionsCLI; |
@@ -1,1 +0,2 @@ | ||
export { j as DEFAULT_REQUEST_STUBS, M as ModuleCacheMap, h as ViteNodeRunner } from './types-63205a44.js'; | ||
import './types.d-1e7e3fdf.js'; | ||
export { j as DEFAULT_REQUEST_STUBS, M as ModuleCacheMap, h as ViteNodeRunner } from './types-e288fc62.js'; |
import { EventEmitter } from 'node:events'; | ||
import { HMRPayload, Plugin } from 'vite'; | ||
import { g as CustomEventMap, h as ViteNodeRunner, i as HMRPayload$1, H as HotContext } from './types-63205a44.js'; | ||
import { g as CustomEventMap, h as ViteNodeRunner, i as HMRPayload$1, H as HotContext } from './types-e288fc62.js'; | ||
import './types.d-1e7e3fdf.js'; | ||
@@ -5,0 +6,0 @@ type EventType = string | symbol; |
@@ -1,1 +0,2 @@ | ||
export { A as Arrayable, C as CreateHotContextFunction, f as DebuggerOptions, D as DepsHandlingOptions, a as FetchFunction, F as FetchResult, H as HotContext, c as ModuleCache, M as ModuleCacheMap, N as Nullable, R as RawSourceMap, b as ResolveIdFunction, S as StartOfSourceMap, d as ViteNodeResolveId, V as ViteNodeRunnerOptions, e as ViteNodeServerOptions } from './types-63205a44.js'; | ||
export { A as Arrayable, C as CreateHotContextFunction, f as DebuggerOptions, D as DepsHandlingOptions, a as FetchFunction, F as FetchResult, H as HotContext, c as ModuleCache, M as ModuleCacheMap, N as Nullable, R as RawSourceMap, b as ResolveIdFunction, S as StartOfSourceMap, d as ViteNodeResolveId, V as ViteNodeRunnerOptions, e as ViteNodeServerOptions } from './types-e288fc62.js'; | ||
export { D as DecodedSourceMap, E as EncodedSourceMap } from './types.d-1e7e3fdf.js'; |
import { TransformResult, ViteDevServer } from 'vite'; | ||
import { f as DebuggerOptions, D as DepsHandlingOptions, e as ViteNodeServerOptions, F as FetchResult, d as ViteNodeResolveId, R as RawSourceMap } from './types-63205a44.js'; | ||
import { E as EncodedSourceMap } from './types.d-1e7e3fdf.js'; | ||
import { f as DebuggerOptions, D as DepsHandlingOptions, e as ViteNodeServerOptions, F as FetchResult, d as ViteNodeResolveId } from './types-e288fc62.js'; | ||
@@ -26,2 +27,3 @@ declare class Debugger { | ||
private transformPromiseMap; | ||
private existingOptimizedDeps; | ||
fetchCache: Map<string, { | ||
@@ -36,5 +38,6 @@ duration?: number | undefined; | ||
shouldExternalize(id: string): Promise<string | false>; | ||
resolveId(id: string, importer?: string): Promise<ViteNodeResolveId | null>; | ||
getSourceMap(source: string): RawSourceMap | null; | ||
fetchModule(id: string): Promise<FetchResult>; | ||
private ensureExists; | ||
resolveId(id: string, importer?: string, transformMode?: 'web' | 'ssr'): Promise<ViteNodeResolveId | null>; | ||
getSourceMap(source: string): EncodedSourceMap | null; | ||
fetchModule(id: string, transformMode?: 'web' | 'ssr'): Promise<FetchResult>; | ||
transformRequest(id: string): Promise<TransformResult | null | undefined>; | ||
@@ -41,0 +44,0 @@ getTransformMode(id: string): "web" | "ssr"; |
import { TransformResult } from 'vite'; | ||
import { R as RawSourceMap } from './types-63205a44.js'; | ||
import { E as EncodedSourceMap } from './types.d-1e7e3fdf.js'; | ||
interface InstallSourceMapSupportOptions { | ||
getSourceMap: (source: string) => RawSourceMap | null | undefined; | ||
getSourceMap: (source: string) => EncodedSourceMap | null | undefined; | ||
} | ||
declare function withInlineSourcemap(result: TransformResult): Promise<TransformResult>; | ||
declare function extractSourceMap(code: string): RawSourceMap | null; | ||
declare function extractSourceMap(code: string): EncodedSourceMap | null; | ||
declare function installSourcemapsSupport(options: InstallSourceMapSupportOptions): void; | ||
export { extractSourceMap, installSourcemapsSupport, withInlineSourcemap }; |
@@ -1,1 +0,2 @@ | ||
export { A as Arrayable, C as CreateHotContextFunction, f as DebuggerOptions, D as DepsHandlingOptions, a as FetchFunction, F as FetchResult, H as HotContext, c as ModuleCache, M as ModuleCacheMap, N as Nullable, R as RawSourceMap, b as ResolveIdFunction, S as StartOfSourceMap, d as ViteNodeResolveId, V as ViteNodeRunnerOptions, e as ViteNodeServerOptions } from './types-63205a44.js'; | ||
export { A as Arrayable, C as CreateHotContextFunction, f as DebuggerOptions, D as DepsHandlingOptions, a as FetchFunction, F as FetchResult, H as HotContext, c as ModuleCache, M as ModuleCacheMap, N as Nullable, R as RawSourceMap, b as ResolveIdFunction, S as StartOfSourceMap, d as ViteNodeResolveId, V as ViteNodeRunnerOptions, e as ViteNodeServerOptions } from './types-e288fc62.js'; | ||
export { D as DecodedSourceMap, E as EncodedSourceMap } from './types.d-1e7e3fdf.js'; |
@@ -1,2 +0,3 @@ | ||
import { N as Nullable, A as Arrayable } from './types-63205a44.js'; | ||
import { N as Nullable, A as Arrayable } from './types-e288fc62.js'; | ||
import './types.d-1e7e3fdf.js'; | ||
@@ -3,0 +4,0 @@ declare const isWindows: boolean; |
{ | ||
"name": "vite-node", | ||
"version": "0.28.5", | ||
"version": "0.29.0", | ||
"description": "Vite as Node.js runtime", | ||
@@ -78,10 +78,7 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>", | ||
"picocolors": "^1.0.0", | ||
"source-map": "^0.6.1", | ||
"source-map-support": "^0.5.21", | ||
"vite": "^3.0.0 || ^4.0.0" | ||
}, | ||
"devDependencies": { | ||
"@jridgewell/trace-mapping": "^0.3.17", | ||
"@types/debug": "^4.1.7", | ||
"@types/source-map": "^0.5.7", | ||
"@types/source-map-support": "^0.5.6", | ||
"rollup": "^2.79.1" | ||
@@ -88,0 +85,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
164371
58.49%6
-25%3
-25%32
3.23%4557
63.1%21
10.53%- Removed
- Removed
- Removed
- Removed
- Removed