Socket
Socket
Sign inDemoInstall

vite-node

Package Overview
Dependencies
Maintainers
4
Versions
254
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 1.2.2 to 1.3.0

dist/chunk-hmr.cjs

16

dist/cli.d.ts

@@ -5,10 +5,10 @@ import { V as ViteNodeServerOptions } from './index-WT31LSgS.js';

interface CliOptions {
root?: string;
script?: boolean;
config?: string;
mode?: string;
watch?: boolean;
options?: ViteNodeServerOptionsCLI;
version?: boolean;
help?: boolean;
'root'?: string;
'script'?: boolean;
'config'?: string;
'mode'?: string;
'watch'?: boolean;
'options'?: ViteNodeServerOptionsCLI;
'version'?: boolean;
'help'?: boolean;
'--'?: string[];

@@ -15,0 +15,0 @@ }

@@ -9,9 +9,8 @@ import { EventEmitter } from 'node:events';

interface Emitter<Events extends Record<EventType, unknown>> {
on<Key extends keyof Events>(type: Key, handler: Handler<Events[Key]>): void;
off<Key extends keyof Events>(type: Key, handler?: Handler<Events[Key]>): void;
emit<Key extends keyof Events>(type: Key, event: Events[Key]): void;
emit<Key extends keyof Events>(type: undefined extends Events[Key] ? Key : never): void;
on: <Key extends keyof Events>(type: Key, handler: Handler<Events[Key]>) => void;
off: <Key extends keyof Events>(type: Key, handler?: Handler<Events[Key]>) => void;
emit: (<Key extends keyof Events>(type: Key, event: Events[Key]) => void) & (<Key extends keyof Events>(type: undefined extends Events[Key] ? Key : never) => void);
}
type HMREmitter = Emitter<{
'message': HMRPayload;
message: HMRPayload;
}> & EventEmitter;

@@ -18,0 +17,0 @@ declare module 'vite' {

{
"name": "vite-node",
"type": "module",
"version": "1.2.2",
"version": "1.3.0",
"description": "Vite as Node.js runtime",

@@ -6,0 +6,0 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>",

@@ -9,3 +9,3 @@ <p align="center">

<p align="center">
Vite as Node runtime.<br>The engine powers <a href="https://github.com/vitest-dev/vitest">Vitest</a> and <a href="https://github.com/nuxt/framework">Nuxt 3 Dev SSR</a>.
Vite as Node runtime.<br>The engine that powers <a href="https://github.com/vitest-dev/vitest">Vitest</a> and <a href="https://github.com/nuxt/framework">Nuxt 3 Dev SSR</a>.
<p>

@@ -12,0 +12,0 @@ <p align="center">

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