Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vite

Package Overview
Dependencies
Maintainers
0
Versions
597
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.5 to 6.0.6

dist/node/chunks/dep-0AosnpPU.js

10

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-BZMjGe_U.js';
import { M as colors, G as createLogger, r as resolveConfig } from './chunks/dep-0AosnpPU.js';
import { VERSION } from './constants.js';

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

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

@@ -838,3 +838,3 @@ const server = await createServer({

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

@@ -874,3 +874,3 @@ cleanBuilderCLIOptions(options)

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

@@ -901,3 +901,3 @@ const config = await resolveConfig(

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

@@ -904,0 +904,0 @@ const server = await preview({

export { parseAst, parseAstAsync } from 'rollup/parseAst';
import { i as isInNodeModules, a as arraify } from './chunks/dep-BZMjGe_U.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-BZMjGe_U.js';
import { i as isInNodeModules, a as arraify } from './chunks/dep-0AosnpPU.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-0AosnpPU.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';

@@ -5,0 +5,0 @@ export { version as esbuildVersion } from 'esbuild';

@@ -186,3 +186,2 @@ import { ModuleNamespace, ViteHotContext } from '../../types/hot.js';

private readonly resetSourceMapSupport?;
private readonly root;
private readonly concurrentModuleNodePromises;

@@ -276,4 +275,5 @@ private closed;

* Root of the project
* @deprecated not used and to be removed
*/
root: string;
root?: string;
/**

@@ -280,0 +280,0 @@ * A set of methods to communicate with the server.

@@ -88,7 +88,3 @@ const VALID_ID_PREFIX = "/@id/", NULL_BYTE_PLACEHOLDER = "__x00__";

return segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0]) && (segments[0] += "/"), segments.join("/") || (isAbsolute(p) ? "/" : ".");
};
function normalizeAbsoluteUrl(url, root) {
return url = slash(url), url.startsWith("file://") && (url = decodeURI(url.slice(isWindows ? 8 : 7))), url.startsWith(root) && (url = url.slice(root.length - 1)), url;
}
const decodeBase64 = typeof atob < "u" ? atob : (str) => Buffer.from(str, "base64").toString("utf-8"), CHAR_FORWARD_SLASH = 47, CHAR_BACKWARD_SLASH = 92, percentRegEx = /%/g, backslashRegEx = /\\/g, newlineRegEx = /\n/g, carriageReturnRegEx = /\r/g, tabRegEx = /\t/g, questionRegex = /\?/g, hashRegex = /#/g;
}, decodeBase64 = typeof atob < "u" ? atob : (str) => Buffer.from(str, "base64").toString("utf-8"), CHAR_FORWARD_SLASH = 47, CHAR_BACKWARD_SLASH = 92, percentRegEx = /%/g, backslashRegEx = /\\/g, newlineRegEx = /\n/g, carriageReturnRegEx = /\r/g, tabRegEx = /\t/g, questionRegex = /\?/g, hashRegex = /#/g;
function encodePathChars(filepath) {

@@ -1076,5 +1072,3 @@ return filepath.indexOf("%") !== -1 && (filepath = filepath.replace(percentRegEx, "%25")), !isWindows && filepath.indexOf("\\") !== -1 && (filepath = filepath.replace(backslashRegEx, "%5C")), filepath.indexOf(`

constructor(options, evaluator = new ESModulesEvaluator(), debug) {
this.options = options, this.evaluator = evaluator, this.debug = debug;
const root = this.options.root;
if (this.root = root[root.length - 1] === "/" ? root : `${root}/`, this.evaluatedModules = options.evaluatedModules ?? new EvaluatedModules(), this.transport = normalizeModuleRunnerTransport(options.transport), options.hmr !== !1) {
if (this.options = options, this.evaluator = evaluator, this.debug = debug, this.evaluatedModules = options.evaluatedModules ?? new EvaluatedModules(), this.transport = normalizeModuleRunnerTransport(options.transport), options.hmr !== !1) {
const optionsHmr = options.hmr ?? !0, resolvedHmrLogger = optionsHmr === !0 || optionsHmr.logger === void 0 ? hmrLogger : optionsHmr.logger === !1 ? silentConsole : optionsHmr.logger;

@@ -1105,3 +1099,2 @@ if (this.hmrClient = new HMRClient(

resetSourceMapSupport;
root;
concurrentModuleNodePromises = /* @__PURE__ */ new Map();

@@ -1183,3 +1176,2 @@ closed = !1;

async cachedModule(url, importer) {
url = normalizeAbsoluteUrl(url, this.root);
let cached = this.concurrentModuleNodePromises.get(url);

@@ -1186,0 +1178,0 @@ if (cached)

{
"name": "vite",
"version": "6.0.5",
"version": "6.0.6",
"type": "module",

@@ -75,3 +75,3 @@ "license": "MIT",

"dependencies": {
"esbuild": "0.24.0",
"esbuild": "^0.24.2",
"postcss": "^8.4.49",

@@ -78,0 +78,0 @@ "rollup": "^4.23.0"

@@ -9,3 +9,3 @@ /* eslint-disable @typescript-eslint/ban-ts-comment */

import type Less from 'less'
// @ts-ignore `less` may not be installed
// @ts-ignore `stylus` may not be installed
import type Stylus from 'stylus'

@@ -12,0 +12,0 @@

/* eslint-disable @typescript-eslint/ban-ts-comment */
// @ts-ignore `sass` may not be installed
// @ts-ignore `lightningcss` may not be installed
import type Lightningcss from 'lightningcss'

@@ -5,0 +5,0 @@

Sorry, the diff of this file is not supported yet

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

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