New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vite

Package Overview
Dependencies
Maintainers
5
Versions
613
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite - npm Package Compare versions

Comparing version 6.0.11 to 6.1.0-beta.0

dist/node/chunks/dep-7ffYZsA7.js

4

client.d.ts

@@ -109,2 +109,6 @@ /// <reference path="./types/importMeta.d.ts" />

}
declare module '*.jxl' {
const src: string
export default src
}

@@ -111,0 +115,0 @@ // media

24

dist/node/cli.js

@@ -5,3 +5,3 @@ import path from 'node:path';

import { EventEmitter } from 'events';
import { M as colors, G as createLogger, r as resolveConfig } from './chunks/dep-M1IYMR16.js';
import { O as colors, I as createLogger, r as resolveConfig } from './chunks/dep-B8FkPgo5.js';
import { VERSION } from './constants.js';

@@ -703,2 +703,3 @@ import 'node:fs/promises';

delete ret.clearScreen;
delete ret.configLoader;
delete ret.d;

@@ -740,3 +741,6 @@ delete ret.debug;

type: [convertBase]
}).option("-l, --logLevel <level>", `[string] info | warn | error | silent`).option("--clearScreen", `[boolean] allow/disable clear screen when logging`).option("-d, --debug [feat]", `[string | boolean] show debug logs`).option("-f, --filter <filter>", `[string] filter debug logs`).option("-m, --mode <mode>", `[string] set env mode`);
}).option("-l, --logLevel <level>", `[string] info | warn | error | silent`).option("--clearScreen", `[boolean] allow/disable clear screen when logging`).option(
"--configLoader <loader>",
`[string] use 'bundle' to bundle the config with esbuild or 'runner' (experimental) to process it on the fly (default: bundle)`
).option("-d, --debug [feat]", `[string | boolean] show debug logs`).option("-f, --filter <filter>", `[string] filter debug logs`).option("-m, --mode <mode>", `[string] set env mode`);
cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--host [host]", `[string] specify hostname`, { type: [convertHost] }).option("--port <port>", `[number] specify port`).option("--open [path]", `[boolean | string] open browser on startup`).option("--cors", `[boolean] enable CORS`).option("--strictPort", `[boolean] exit if specified port is already in use`).option(

@@ -747,3 +751,3 @@ "--force",

filterDuplicateOptions(options);
const { createServer } = await import('./chunks/dep-M1IYMR16.js').then(function (n) { return n.Q; });
const { createServer } = await import('./chunks/dep-B8FkPgo5.js').then(function (n) { return n.S; });
try {

@@ -755,6 +759,7 @@ const server = await createServer({

configFile: options.config,
configLoader: options.configLoader,
logLevel: options.logLevel,
clearScreen: options.clearScreen,
optimizeDeps: { force: options.force },
server: cleanGlobalCLIOptions(options)
server: cleanGlobalCLIOptions(options),
forceOptimizeDeps: options.force
});

@@ -842,3 +847,3 @@ if (!server.httpServer) {

filterDuplicateOptions(options);
const { createBuilder } = await import('./chunks/dep-M1IYMR16.js').then(function (n) { return n.R; });
const { createBuilder } = await import('./chunks/dep-B8FkPgo5.js').then(function (n) { return n.T; });
const buildOptions = cleanGlobalCLIOptions(

@@ -853,2 +858,3 @@ cleanBuilderCLIOptions(options)

configFile: options.config,
configLoader: options.configLoader,
logLevel: options.logLevel,

@@ -879,3 +885,3 @@ clearScreen: options.clearScreen,

filterDuplicateOptions(options);
const { optimizeDeps } = await import('./chunks/dep-M1IYMR16.js').then(function (n) { return n.P; });
const { optimizeDeps } = await import('./chunks/dep-B8FkPgo5.js').then(function (n) { return n.R; });
try {

@@ -887,2 +893,3 @@ const config = await resolveConfig(

configFile: options.config,
configLoader: options.configLoader,
logLevel: options.logLevel,

@@ -907,3 +914,3 @@ mode: options.mode

filterDuplicateOptions(options);
const { preview } = await import('./chunks/dep-M1IYMR16.js').then(function (n) { return n.S; });
const { preview } = await import('./chunks/dep-B8FkPgo5.js').then(function (n) { return n.U; });
try {

@@ -914,2 +921,3 @@ const server = await preview({

configFile: options.config,
configLoader: options.configLoader,
logLevel: options.logLevel,

@@ -916,0 +924,0 @@ mode: options.mode,

@@ -103,2 +103,3 @@ import path, { resolve } from 'node:path';

"cur",
"jxl",
// media

@@ -105,0 +106,0 @@ "mp4",

export { parseAst, parseAstAsync } from 'rollup/parseAst';
import { i as isInNodeModules, a as arraify } from './chunks/dep-M1IYMR16.js';
export { B as BuildEnvironment, D as DevEnvironment, f as build, m as buildErrorMessage, g as createBuilder, C as createFilter, h as createIdResolver, G as createLogger, n as createRunnableDevEnvironment, c as createServer, w as createServerHotChannel, v as createServerModuleRunner, d as defineConfig, u as fetchModule, j as formatPostcssSourceMap, J as isFileLoadingAllowed, I as isFileServingAllowed, q as isRunnableDevEnvironment, l as loadConfigFromFile, K as loadEnv, A as mergeAlias, z as mergeConfig, x as moduleRunnerTransform, y as normalizePath, o as optimizeDeps, p as perEnvironmentPlugin, b as perEnvironmentState, k as preprocessCSS, e as preview, r as resolveConfig, L as resolveEnvPrefix, E as rollupVersion, H as searchForWorkspaceRoot, F as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-M1IYMR16.js';
export { DEFAULT_CLIENT_CONDITIONS as defaultClientConditions, DEFAULT_CLIENT_MAIN_FIELDS as defaultClientMainFields, DEFAULT_SERVER_CONDITIONS as defaultServerConditions, DEFAULT_SERVER_MAIN_FIELDS as defaultServerMainFields, VERSION as version } from './constants.js';
import { i as isInNodeModules, a as arraify } from './chunks/dep-B8FkPgo5.js';
export { B as BuildEnvironment, D as DevEnvironment, f as build, m as buildErrorMessage, g as createBuilder, F as createFilter, h as createIdResolver, I as createLogger, n as createRunnableDevEnvironment, c as createServer, y as createServerHotChannel, w as createServerModuleRunner, x as createServerModuleRunnerTransport, d as defineConfig, v as fetchModule, j as formatPostcssSourceMap, L as isFileLoadingAllowed, K as isFileServingAllowed, q as isRunnableDevEnvironment, l as loadConfigFromFile, M as loadEnv, E as mergeAlias, C as mergeConfig, z as moduleRunnerTransform, A as normalizePath, o as optimizeDeps, p as perEnvironmentPlugin, b as perEnvironmentState, k as preprocessCSS, e as preview, r as resolveConfig, N as resolveEnvPrefix, G as rollupVersion, u as runnerImport, J as searchForWorkspaceRoot, H as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-B8FkPgo5.js';
export { defaultAllowedOrigins, DEFAULT_CLIENT_CONDITIONS as defaultClientConditions, DEFAULT_CLIENT_MAIN_FIELDS as defaultClientMainFields, DEFAULT_SERVER_CONDITIONS as defaultServerConditions, DEFAULT_SERVER_MAIN_FIELDS as defaultServerMainFields, VERSION as version } from './constants.js';
export { version as esbuildVersion } from 'esbuild';
import 'node:fs';
import 'node:path';
import 'node:fs/promises';
import 'node:path';
import 'node:url';

@@ -10,0 +10,0 @@ import 'node:util';

import { ModuleNamespace, ViteHotContext } from '../../types/hot.js';
import { HotPayload, Update } from '../../types/hmrPayload.js';
import { Update, HotPayload } from '../../types/hmrPayload.js';
import { InferCustomEventPayload } from '../../types/customEvent.js';
import { N as NormalizedModuleRunnerTransport, E as ExternalFetchResult, V as ViteFetchResult, F as FetchFunctionOptions, a as FetchResult, M as ModuleRunnerTransport } from './moduleRunnerTransport.d-CXw_Ws6P.js';
export { b as ModuleRunnerTransportHandlers, c as createWebSocketModuleRunnerTransport } from './moduleRunnerTransport.d-CXw_Ws6P.js';
interface FetchFunctionOptions {
cached?: boolean;
startOffset?: number;
}
type FetchResult = CachedFetchResult | ExternalFetchResult | ViteFetchResult;
interface CachedFetchResult {
/**
* If module cached in the runner, we can just confirm
* it wasn't invalidated on the server side.
*/
cache: true;
}
interface ExternalFetchResult {
/**
* The path to the externalized module starting with file://,
* by default this will be imported via a dynamic "import"
* instead of being transformed by vite and loaded with vite runner
*/
externalize: string;
/**
* Type of the module. Will be used to determine if import statement is correct.
* For example, if Vite needs to throw an error if variable is not actually exported
*/
type: 'module' | 'commonjs' | 'builtin' | 'network';
}
interface ViteFetchResult {
/**
* Code that will be evaluated by vite runner
* by default this will be wrapped in an async function
*/
code: string;
/**
* File path of the module on disk.
* This will be resolved as import.meta.url/filename
* Will be equal to `null` for virtual modules
*/
file: string | null;
/**
* Module ID in the server module graph.
*/
id: string;
/**
* Module URL used in the import.
*/
url: string;
/**
* Invalidate module on the client side.
*/
invalidate: boolean;
}
type InvokeMethods = {
fetchModule: (id: string, importer?: string, options?: FetchFunctionOptions) => Promise<FetchResult>;
};
type ModuleRunnerTransportHandlers = {
onMessage: (data: HotPayload) => void;
onDisconnection: () => void;
};
/**
* "send and connect" or "invoke" must be implemented
*/
interface ModuleRunnerTransport {
connect?(handlers: ModuleRunnerTransportHandlers): Promise<void> | void;
disconnect?(): Promise<void> | void;
send?(data: HotPayload): Promise<void> | void;
invoke?(data: HotPayload): Promise<{
result: any;
} | {
error: any;
}>;
timeout?: number;
}
interface NormalizedModuleRunnerTransport {
connect?(onMessage?: (data: HotPayload) => void): Promise<void> | void;
disconnect?(): Promise<void> | void;
send(data: HotPayload): Promise<void>;
invoke<T extends keyof InvokeMethods>(name: T, data: Parameters<InvokeMethods[T]>): Promise<ReturnType<Awaited<InvokeMethods[T]>>>;
}
declare const createWebSocketModuleRunnerTransport: (options: {
createConnection: () => WebSocket;
pingInterval?: number;
}) => Required<Pick<ModuleRunnerTransport, "connect" | "disconnect" | "send">>;
interface SourceMapLike {

@@ -364,3 +283,3 @@ version: number;

declare class ESModulesEvaluator implements ModuleEvaluator {
startOffset: number;
readonly startOffset: number;
runInlinedModule(context: ModuleRunnerContext, code: string): Promise<any>;

@@ -370,2 +289,2 @@ runExternalModule(filepath: string): Promise<any>;

export { ESModulesEvaluator, EvaluatedModuleNode, EvaluatedModules, type FetchFunction, type FetchFunctionOptions, type FetchResult, type HMRLogger, type InterceptorOptions, type ModuleEvaluator, ModuleRunner, type ModuleRunnerContext, type ModuleRunnerHmr, type ModuleRunnerImportMeta, type ModuleRunnerOptions, type ModuleRunnerTransport, type ModuleRunnerTransportHandlers, type ResolvedResult, type SSRImportMetadata, createWebSocketModuleRunnerTransport, ssrDynamicImportKey, ssrExportAllKey, ssrImportKey, ssrImportMetaKey, ssrModuleExportsKey };
export { ESModulesEvaluator, EvaluatedModuleNode, EvaluatedModules, type FetchFunction, FetchFunctionOptions, FetchResult, type HMRLogger, type InterceptorOptions, type ModuleEvaluator, ModuleRunner, type ModuleRunnerContext, type ModuleRunnerHmr, type ModuleRunnerImportMeta, type ModuleRunnerOptions, ModuleRunnerTransport, type ResolvedResult, type SSRImportMetadata, ssrDynamicImportKey, ssrExportAllKey, ssrImportKey, ssrImportMetaKey, ssrModuleExportsKey };
{
"name": "vite",
"version": "6.0.11",
"version": "6.1.0-beta.0",
"type": "module",

@@ -76,4 +76,4 @@ "license": "MIT",

"esbuild": "^0.24.2",
"postcss": "^8.4.49",
"rollup": "^4.23.0"
"postcss": "^8.5.1",
"rollup": "^4.30.1"
},

@@ -85,3 +85,3 @@ "optionalDependencies": {

"@ampproject/remapping": "^2.3.0",
"@babel/parser": "^7.26.3",
"@babel/parser": "^7.26.5",
"@jridgewell/trace-mapping": "^0.3.25",

@@ -114,5 +114,5 @@ "@polka/compression": "^1.0.0-next.25",

"launch-editor-middleware": "^2.9.1",
"lightningcss": "^1.28.2",
"lightningcss": "^1.29.1",
"magic-string": "^0.30.17",
"mlly": "^1.7.3",
"mlly": "^1.7.4",
"mrmime": "^2.0.0",

@@ -122,3 +122,3 @@ "nanoid": "^5.0.9",

"parse5": "^7.2.1",
"pathe": "^2.0.0",
"pathe": "^2.0.1",
"periscopic": "^4.0.2",

@@ -134,7 +134,7 @@ "picocolors": "^1.1.1",

"rollup-plugin-license": "^3.5.3",
"sass": "^1.83.1",
"sass-embedded": "^1.83.1",
"sass": "^1.83.4",
"sass-embedded": "^1.83.4",
"sirv": "^3.0.0",
"source-map-support": "^0.5.21",
"strip-literal": "^2.1.1",
"strip-literal": "^3.0.0",
"terser": "^5.37.0",

@@ -141,0 +141,0 @@ "tinyglobby": "^0.2.10",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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