Socket
Socket
Sign inDemoInstall

vite-node

Package Overview
Dependencies
Maintainers
3
Versions
253
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-node - npm Package Compare versions

Comparing version 0.30.1 to 0.31.0

dist/types-d9c0fafd.d.ts

3

dist/cli.d.ts

@@ -1,2 +0,3 @@

import { e as ViteNodeServerOptions } from './types-c39b64bb.js';
import { e as ViteNodeServerOptions } from './types-d9c0fafd.js';
import 'vite/types/hot';
import './types.d-1e7e3fdf.js';

@@ -3,0 +4,0 @@

import './types.d-1e7e3fdf.js';
export { j as DEFAULT_REQUEST_STUBS, M as ModuleCacheMap, h as ViteNodeRunner } from './types-c39b64bb.js';
export { h as DEFAULT_REQUEST_STUBS, M as ModuleCacheMap, g as ViteNodeRunner } from './types-d9c0fafd.js';
import 'vite/types/hot';
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-c39b64bb.js';
import { HMRPayload as HMRPayload$1, Plugin } from 'vite';
import { g as ViteNodeRunner, H as HotContext } from './types-d9c0fafd.js';
import 'vite/types/hot';
import './types.d-1e7e3fdf.js';

@@ -15,3 +16,3 @@

type HMREmitter = Emitter<{
'message': HMRPayload;
'message': HMRPayload$1;
}> & EventEmitter;

@@ -26,2 +27,78 @@ declare module 'vite' {

type HMRPayload =
| ConnectedPayload
| UpdatePayload
| FullReloadPayload
| CustomPayload
| ErrorPayload
| PrunePayload
interface ConnectedPayload {
type: 'connected'
}
interface UpdatePayload {
type: 'update'
updates: Update[]
}
interface Update {
type: 'js-update' | 'css-update'
path: string
acceptedPath: string
timestamp: number
/**
* @experimental internal
*/
explicitImportRequired?: boolean | undefined
}
interface PrunePayload {
type: 'prune'
paths: string[]
}
interface FullReloadPayload {
type: 'full-reload'
path?: string
}
interface CustomPayload {
type: 'custom'
event: string
data?: any
}
interface ErrorPayload {
type: 'error'
err: {
[name: string]: any
message: string
stack: string
id?: string
frame?: string
plugin?: string
pluginCode?: string
loc?: {
file?: string
line: number
column: number
}
}
}
interface CustomEventMap {
'vite:beforeUpdate': UpdatePayload
'vite:afterUpdate': UpdatePayload
'vite:beforePrune': PrunePayload
'vite:beforeFullReload': FullReloadPayload
'vite:error': ErrorPayload
'vite:invalidate': InvalidatePayload
}
interface InvalidatePayload {
path: string
message: string | undefined
}
type InferCustomEventPayload<T extends string> = T extends keyof CustomEventMap ? CustomEventMap[T] : any;

@@ -51,5 +128,5 @@ interface HotModule {

declare function reload(runner: ViteNodeRunner, files: string[]): Promise<any[]>;
declare function handleMessage(runner: ViteNodeRunner, emitter: HMREmitter, files: string[], payload: HMRPayload$1): Promise<void>;
declare function handleMessage(runner: ViteNodeRunner, emitter: HMREmitter, files: string[], payload: HMRPayload): Promise<void>;
declare function createHotContext(runner: ViteNodeRunner, emitter: HMREmitter, files: string[], ownerPath: string): HotContext;
export { Emitter, EventType, HMREmitter, Handler, HotCallback, HotModule, InferCustomEventPayload, createHmrEmitter, createHotContext, getCache, handleMessage, reload, sendMessageBuffer, viteNodeHmrPlugin };

@@ -1,2 +0,3 @@

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-c39b64bb.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-d9c0fafd.js';
export { D as DecodedSourceMap, E as EncodedSourceMap } from './types.d-1e7e3fdf.js';
import 'vite/types/hot';
import { TransformResult, ViteDevServer } from 'vite';
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-c39b64bb.js';
import { f as DebuggerOptions, D as DepsHandlingOptions, e as ViteNodeServerOptions, F as FetchResult, d as ViteNodeResolveId } from './types-d9c0fafd.js';
import 'vite/types/hot';

@@ -5,0 +6,0 @@ declare class Debugger {

@@ -1,2 +0,3 @@

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-c39b64bb.js';
import 'vite/types/hot';
export { D as DecodedSourceMap, E as EncodedSourceMap } from './types.d-1e7e3fdf.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-d9c0fafd.js';

@@ -1,2 +0,3 @@

import { N as Nullable, A as Arrayable } from './types-c39b64bb.js';
import { N as Nullable, A as Arrayable } from './types-d9c0fafd.js';
import 'vite/types/hot';
import './types.d-1e7e3fdf.js';

@@ -3,0 +4,0 @@

{
"name": "vite-node",
"version": "0.30.1",
"version": "0.31.0",
"description": "Vite as Node.js runtime",
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
"license": "MIT",
"funding": "https://github.com/sponsors/antfu",
"funding": "https://opencollective.com/vitest",
"homepage": "https://github.com/vitest-dev/vitest/blob/main/packages/vite-node#readme",

@@ -9,0 +9,0 @@ "repository": {

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

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