vite-node
Advanced tools
Comparing version 1.2.2 to 1.3.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
191626
35
5276
1