Socket
Socket
Sign inDemoInstall

vite

Package Overview
Dependencies
Maintainers
5
Versions
569
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 4.4.7 to 4.4.12

dist/node/chunks/dep-063880ad.js

2

client.d.ts

@@ -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-3b8eb186.js';
import { C as colors, D as bindShortcuts, x as createLogger, h as resolveConfig } from './chunks/dep-063880ad.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-3b8eb186.js').then(function (n) { return n.I; });
const { createServer } = await import('./chunks/dep-063880ad.js').then(function (n) { return n.I; });
try {

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

filterDuplicateOptions(options);
const { build } = await import('./chunks/dep-3b8eb186.js').then(function (n) { return n.H; });
const { build } = await import('./chunks/dep-063880ad.js').then(function (n) { return n.H; });
const buildOptions = cleanOptions(options);

@@ -852,3 +872,3 @@ try {

filterDuplicateOptions(options);
const { optimizeDeps } = await import('./chunks/dep-3b8eb186.js').then(function (n) { return n.G; });
const { optimizeDeps } = await import('./chunks/dep-063880ad.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-3b8eb186.js').then(function (n) { return n.J; });
const { preview } = await import('./chunks/dep-063880ad.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-3b8eb186.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-3b8eb186.js';
import { i as isInNodeModules } from './chunks/dep-063880ad.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-063880ad.js';
export { VERSION as version } from './constants.js';

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

{
"name": "vite",
"version": "4.4.7",
"version": "4.4.12",
"type": "module",

@@ -31,2 +31,5 @@ "license": "MIT",

"./dist/client/*": "./dist/client/*",
"./types/*": {
"types": "./types/*"
},
"./package.json": "./package.json"

@@ -72,4 +75,4 @@ },

"esbuild": "^0.18.10",
"postcss": "^8.4.26",
"rollup": "^3.25.2"
"postcss": "^8.4.27",
"rollup": "^3.27.1"
},

@@ -91,4 +94,4 @@ "optionalDependencies": {

"@rollup/pluginutils": "^5.0.2",
"@types/escape-html": "^1.0.2",
"@types/pnpapi": "^0.0.2",
"@types/escape-html": "^1.0.2",
"acorn": "^8.10.0",

@@ -111,3 +114,3 @@ "acorn-walk": "^8.2.0",

"etag": "^1.8.1",
"fast-glob": "^3.3.0",
"fast-glob": "^3.3.1",
"http-proxy": "^1.18.1",

@@ -117,3 +120,3 @@ "json-stable-stringify": "^1.0.2",

"lightningcss": "^1.21.5",
"magic-string": "^0.30.1",
"magic-string": "^0.30.2",
"micromatch": "^4.0.5",

@@ -136,7 +139,7 @@ "mlly": "^1.4.0",

"strip-ansi": "^7.1.0",
"strip-literal": "^1.0.1",
"strip-literal": "^1.3.0",
"tsconfck": "^2.1.2",
"tslib": "^2.6.0",
"tslib": "^2.6.1",
"types": "link:./types",
"ufo": "^1.1.2",
"ufo": "^1.2.0",
"ws": "^8.13.0"

@@ -147,6 +150,6 @@ },

"less": "*",
"lightningcss": "^1.21.0",
"sass": "*",
"stylus": "*",
"sugarss": "*",
"lightningcss": "^1.21.0",
"terser": "^5.4.0"

@@ -153,0 +156,0 @@ },

@@ -5,4 +5,2 @@ // This file is an augmentation to the built-in ImportMeta interface

/* eslint-disable @typescript-eslint/consistent-type-imports */
interface ImportMetaEnv {

@@ -9,0 +7,0 @@ [key: string]: any

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