Comparing version 4.4.9 to 4.4.11
@@ -224,3 +224,3 @@ /// <reference path="./types/importMeta.d.ts" /> | ||
const initWasm: ( | ||
options: WebAssembly.Imports, | ||
options?: WebAssembly.Imports, | ||
) => Promise<WebAssembly.Instance> | ||
@@ -227,0 +227,0 @@ export default initWasm |
@@ -5,3 +5,3 @@ import path from 'node:path'; | ||
import { EventEmitter } from 'events'; | ||
import { C as colors, D as bindShortcuts, x as createLogger, h as resolveConfig } from './chunks/dep-df561101.js'; | ||
import { C as colors, D as bindShortcuts, x as createLogger, h as resolveConfig } from './chunks/dep-2b82a1ce.js'; | ||
import { VERSION } from './constants.js'; | ||
@@ -718,5 +718,25 @@ import 'node:fs/promises'; | ||
} | ||
/** | ||
* host may be a number (like 0), should convert to string | ||
*/ | ||
const convertHost = (v) => { | ||
if (typeof v === 'number') { | ||
return String(v); | ||
} | ||
return v; | ||
}; | ||
/** | ||
* base may be a number (like 0), should convert to empty string | ||
*/ | ||
const convertBase = (v) => { | ||
if (v === 0) { | ||
return ''; | ||
} | ||
return v; | ||
}; | ||
cli | ||
.option('-c, --config <file>', `[string] use specified config file`) | ||
.option('--base <path>', `[string] public base path (default: /)`) | ||
.option('--base <path>', `[string] public base path (default: /)`, { | ||
type: [convertBase], | ||
}) | ||
.option('-l, --logLevel <level>', `[string] info | warn | error | silent`) | ||
@@ -732,3 +752,3 @@ .option('--clearScreen', `[boolean] allow/disable clear screen when logging`) | ||
.alias('dev') // alias to align with the script name | ||
.option('--host [host]', `[string] specify hostname`) | ||
.option('--host [host]', `[string] specify hostname`, { type: [convertHost] }) | ||
.option('--port <port>', `[number] specify port`) | ||
@@ -744,3 +764,3 @@ .option('--https', `[boolean] use TLS + HTTP/2`) | ||
// is ok here | ||
const { createServer } = await import('./chunks/dep-df561101.js').then(function (n) { return n.I; }); | ||
const { createServer } = await import('./chunks/dep-2b82a1ce.js').then(function (n) { return n.I; }); | ||
try { | ||
@@ -823,3 +843,3 @@ const server = await createServer({ | ||
filterDuplicateOptions(options); | ||
const { build } = await import('./chunks/dep-df561101.js').then(function (n) { return n.H; }); | ||
const { build } = await import('./chunks/dep-2b82a1ce.js').then(function (n) { return n.H; }); | ||
const buildOptions = cleanOptions(options); | ||
@@ -852,3 +872,3 @@ try { | ||
filterDuplicateOptions(options); | ||
const { optimizeDeps } = await import('./chunks/dep-df561101.js').then(function (n) { return n.G; }); | ||
const { optimizeDeps } = await import('./chunks/dep-2b82a1ce.js').then(function (n) { return n.G; }); | ||
try { | ||
@@ -872,3 +892,3 @@ const config = await resolveConfig({ | ||
.command('preview [root]', 'locally preview production build') | ||
.option('--host [host]', `[string] specify hostname`) | ||
.option('--host [host]', `[string] specify hostname`, { type: [convertHost] }) | ||
.option('--port <port>', `[number] specify port`) | ||
@@ -881,3 +901,3 @@ .option('--strictPort', `[boolean] exit if specified port is already in use`) | ||
filterDuplicateOptions(options); | ||
const { preview } = await import('./chunks/dep-df561101.js').then(function (n) { return n.J; }); | ||
const { preview } = await import('./chunks/dep-2b82a1ce.js').then(function (n) { return n.J; }); | ||
try { | ||
@@ -884,0 +904,0 @@ const server = await preview({ |
@@ -1,3 +0,3 @@ | ||
import { i as isInNodeModules } from './chunks/dep-df561101.js'; | ||
export { b as build, e as buildErrorMessage, v as createFilter, x as createLogger, c as createServer, g as defineConfig, f as formatPostcssSourceMap, k as getDepOptimizationConfig, m as isDepsOptimizerEnabled, z as isFileServingAllowed, l as loadConfigFromFile, A as loadEnv, u as mergeAlias, q as mergeConfig, n as normalizePath, o as optimizeDeps, a as preprocessCSS, p as preview, j as resolveBaseUrl, h as resolveConfig, B as resolveEnvPrefix, d as resolvePackageData, r as resolvePackageEntry, y as searchForWorkspaceRoot, w as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-df561101.js'; | ||
import { i as isInNodeModules } from './chunks/dep-2b82a1ce.js'; | ||
export { b as build, e as buildErrorMessage, v as createFilter, x as createLogger, c as createServer, g as defineConfig, f as formatPostcssSourceMap, k as getDepOptimizationConfig, m as isDepsOptimizerEnabled, z as isFileServingAllowed, l as loadConfigFromFile, A as loadEnv, u as mergeAlias, q as mergeConfig, n as normalizePath, o as optimizeDeps, a as preprocessCSS, p as preview, j as resolveBaseUrl, h as resolveConfig, B as resolveEnvPrefix, d as resolvePackageData, r as resolvePackageEntry, y as searchForWorkspaceRoot, w as send, s as sortUserPlugins, t as transformWithEsbuild } from './chunks/dep-2b82a1ce.js'; | ||
export { VERSION as version } from './constants.js'; | ||
@@ -4,0 +4,0 @@ export { version as esbuildVersion } from 'esbuild'; |
{ | ||
"name": "vite", | ||
"version": "4.4.9", | ||
"version": "4.4.11", | ||
"type": "module", | ||
@@ -31,2 +31,5 @@ "license": "MIT", | ||
"./dist/client/*": "./dist/client/*", | ||
"./types/*": { | ||
"types": "./types/*" | ||
}, | ||
"./package.json": "./package.json" | ||
@@ -33,0 +36,0 @@ }, |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
3339361
85955
53