vite-node
Advanced tools
Comparing version 0.33.0 to 0.34.0
@@ -1,2 +0,2 @@ | ||
import { f as ViteNodeServerOptions } from './types-516036fa.js'; | ||
import { f as ViteNodeServerOptions } from './types-e8623e9c.js'; | ||
import 'vite/types/hot'; | ||
@@ -12,2 +12,4 @@ import './types.d-7442d07f.js'; | ||
options?: ViteNodeServerOptionsCLI; | ||
version?: boolean; | ||
help?: boolean; | ||
'--'?: string[]; | ||
@@ -14,0 +16,0 @@ } |
import './types.d-7442d07f.js'; | ||
export { i as DEFAULT_REQUEST_STUBS, M as ModuleCacheMap, h as ViteNodeRunner } from './types-516036fa.js'; | ||
export { i as DEFAULT_REQUEST_STUBS, M as ModuleCacheMap, h as ViteNodeRunner } from './types-e8623e9c.js'; | ||
import 'vite/types/hot'; |
import { EventEmitter } from 'node:events'; | ||
import { HMRPayload as HMRPayload$1, Plugin } from 'vite'; | ||
import { h as ViteNodeRunner, H as HotContext } from './types-516036fa.js'; | ||
import { h as ViteNodeRunner, H as HotContext } from './types-e8623e9c.js'; | ||
import 'vite/types/hot'; | ||
@@ -102,2 +102,5 @@ import './types.d-7442d07f.js'; | ||
type ModuleNamespace = Record<string, any> & { | ||
[Symbol.toStringTag]: 'Module'; | ||
}; | ||
type InferCustomEventPayload<T extends string> = T extends keyof CustomEventMap ? CustomEventMap[T] : any; | ||
@@ -110,3 +113,3 @@ interface HotModule { | ||
deps: string[]; | ||
fn: (modules: object[]) => void; | ||
fn: (modules: (ModuleNamespace | undefined)[]) => void; | ||
} | ||
@@ -131,2 +134,2 @@ interface CacheData { | ||
export { Emitter, EventType, HMREmitter, Handler, HotCallback, HotModule, InferCustomEventPayload, createHmrEmitter, createHotContext, getCache, handleMessage, reload, sendMessageBuffer, viteNodeHmrPlugin }; | ||
export { Emitter, EventType, HMREmitter, Handler, HotCallback, HotModule, InferCustomEventPayload, ModuleNamespace, createHmrEmitter, createHotContext, getCache, handleMessage, reload, sendMessageBuffer, viteNodeHmrPlugin }; |
@@ -1,3 +0,3 @@ | ||
export { A as Arrayable, a as Awaitable, C as CreateHotContextFunction, g as DebuggerOptions, D as DepsHandlingOptions, b as FetchFunction, F as FetchResult, H as HotContext, d as ModuleCache, M as ModuleCacheMap, N as Nullable, R as RawSourceMap, c as ResolveIdFunction, S as StartOfSourceMap, e as ViteNodeResolveId, V as ViteNodeRunnerOptions, f as ViteNodeServerOptions } from './types-516036fa.js'; | ||
export { A as Arrayable, a as Awaitable, C as CreateHotContextFunction, g as DebuggerOptions, D as DepsHandlingOptions, b as FetchFunction, F as FetchResult, H as HotContext, d as ModuleCache, M as ModuleCacheMap, N as Nullable, R as RawSourceMap, c as ResolveIdFunction, S as StartOfSourceMap, e as ViteNodeResolveId, V as ViteNodeRunnerOptions, f as ViteNodeServerOptions } from './types-e8623e9c.js'; | ||
export { D as DecodedSourceMap, E as EncodedSourceMap } from './types.d-7442d07f.js'; | ||
import 'vite/types/hot'; |
import { TransformResult, ViteDevServer } from 'vite'; | ||
import { E as EncodedSourceMap } from './types.d-7442d07f.js'; | ||
import { g as DebuggerOptions, D as DepsHandlingOptions, f as ViteNodeServerOptions, F as FetchResult, e as ViteNodeResolveId } from './types-516036fa.js'; | ||
import { g as DebuggerOptions, D as DepsHandlingOptions, f as ViteNodeServerOptions, F as FetchResult, e as ViteNodeResolveId } from './types-e8623e9c.js'; | ||
import 'vite/types/hot'; | ||
@@ -5,0 +5,0 @@ |
import 'vite/types/hot'; | ||
export { D as DecodedSourceMap, E as EncodedSourceMap } from './types.d-7442d07f.js'; | ||
export { A as Arrayable, a as Awaitable, C as CreateHotContextFunction, g as DebuggerOptions, D as DepsHandlingOptions, b as FetchFunction, F as FetchResult, H as HotContext, d as ModuleCache, M as ModuleCacheMap, N as Nullable, R as RawSourceMap, c as ResolveIdFunction, S as StartOfSourceMap, e as ViteNodeResolveId, V as ViteNodeRunnerOptions, f as ViteNodeServerOptions } from './types-516036fa.js'; | ||
export { A as Arrayable, a as Awaitable, C as CreateHotContextFunction, g as DebuggerOptions, D as DepsHandlingOptions, b as FetchFunction, F as FetchResult, H as HotContext, d as ModuleCache, M as ModuleCacheMap, N as Nullable, R as RawSourceMap, c as ResolveIdFunction, S as StartOfSourceMap, e as ViteNodeResolveId, V as ViteNodeRunnerOptions, f as ViteNodeServerOptions } from './types-e8623e9c.js'; |
@@ -1,2 +0,2 @@ | ||
import { N as Nullable, A as Arrayable } from './types-516036fa.js'; | ||
import { N as Nullable, A as Arrayable } from './types-e8623e9c.js'; | ||
import 'vite/types/hot'; | ||
@@ -26,3 +26,5 @@ import './types.d-7442d07f.js'; | ||
declare function toArray<T>(array?: Nullable<Arrayable<T>>): Array<T>; | ||
declare function getCachedData<T>(cache: Map<string, T>, basedir: string, originalBasedir: string): NonNullable<T> | undefined; | ||
declare function setCacheData<T>(cache: Map<string, T>, data: T, basedir: string, originalBasedir: string): void; | ||
export { VALID_ID_PREFIX, cleanUrl, hashRE, isInternalRequest, isNodeBuiltin, isPrimitive, isWindows, normalizeModuleId, normalizeRequestId, queryRE, slash, toArray, toFilePath }; | ||
export { VALID_ID_PREFIX, cleanUrl, getCachedData, hashRE, isInternalRequest, isNodeBuiltin, isPrimitive, isWindows, normalizeModuleId, normalizeRequestId, queryRE, setCacheData, slash, toArray, toFilePath }; |
{ | ||
"name": "vite-node", | ||
"version": "0.33.0", | ||
"version": "0.34.0", | ||
"description": "Vite as Node.js runtime", | ||
@@ -48,3 +48,9 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>", | ||
"import": "./dist/source-map.mjs" | ||
} | ||
}, | ||
"./constants": { | ||
"types": "./dist/constants.d.ts", | ||
"require": "./dist/constants.cjs", | ||
"import": "./dist/constants.mjs" | ||
}, | ||
"./*": "./*" | ||
}, | ||
@@ -51,0 +57,0 @@ "main": "./dist/index.mjs", |
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
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
178642
36
4923
30