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.3.8 to 4.4.9

dist/node/chunks/dep-73522cdf.js

4

client.d.ts

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

// images
declare module '*.apng' {
const src: string
export default src
}
declare module '*.png' {

@@ -103,0 +107,0 @@ const src: string

28

dist/node/cli.js

@@ -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-4d3eff22.js';
import { C as colors, D as bindShortcuts, x as createLogger, h as resolveConfig } from './chunks/dep-df561101.js';
import { VERSION } from './constants.js';

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

import 'node:v8';
import 'rollup';
import 'worker_threads';
import 'node:http';
import 'node:https';
import 'zlib';

@@ -40,5 +43,2 @@ import 'buffer';

import 'tls';
import 'node:http';
import 'node:https';
import 'rollup';
import 'querystring';

@@ -708,2 +708,12 @@ import 'node:readline';

delete ret.mode;
// convert the sourcemap option to a boolean if necessary
if ('sourcemap' in ret) {
const sourcemap = ret.sourcemap;
ret.sourcemap =
sourcemap === 'true'
? true
: sourcemap === 'false'
? false
: ret.sourcemap;
}
return ret;

@@ -735,3 +745,3 @@ }

// is ok here
const { createServer } = await import('./chunks/dep-4d3eff22.js').then(function (n) { return n.I; });
const { createServer } = await import('./chunks/dep-df561101.js').then(function (n) { return n.I; });
try {

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

filterDuplicateOptions(options);
const { build } = await import('./chunks/dep-4d3eff22.js').then(function (n) { return n.H; });
const { build } = await import('./chunks/dep-df561101.js').then(function (n) { return n.H; });
const buildOptions = cleanOptions(options);

@@ -843,3 +853,3 @@ try {

filterDuplicateOptions(options);
const { optimizeDeps } = await import('./chunks/dep-4d3eff22.js').then(function (n) { return n.G; });
const { optimizeDeps } = await import('./chunks/dep-df561101.js').then(function (n) { return n.G; });
try {

@@ -860,2 +870,3 @@ const config = await resolveConfig({

});
// preview
cli

@@ -871,3 +882,3 @@ .command('preview [root]', 'locally preview production build')

filterDuplicateOptions(options);
const { preview } = await import('./chunks/dep-4d3eff22.js').then(function (n) { return n.J; });
const { preview } = await import('./chunks/dep-df561101.js').then(function (n) { return n.J; });
try {

@@ -892,2 +903,3 @@ const server = await preview({

server.printUrls();
bindShortcuts(server, { print: true });
}

@@ -894,0 +906,0 @@ catch (e) {

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

// images
'apng',
'png',

@@ -81,0 +82,0 @@ 'jpe?g',

@@ -1,3 +0,3 @@

import { i as isInNodeModules } from './chunks/dep-4d3eff22.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-4d3eff22.js';
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';
export { VERSION as version } from './constants.js';

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

import 'worker_threads';
import 'node:http';
import 'node:https';
import 'zlib';

@@ -41,4 +43,2 @@ import 'buffer';

import 'tls';
import 'node:http';
import 'node:https';
import 'querystring';

@@ -128,4 +128,8 @@ import 'node:readline';

}
// else, leave the object form of manualChunks untouched, as
// we can't safely replicate rollup handling.
else {
// else, leave the object form of manualChunks untouched, as
// we can't safely replicate rollup handling.
// eslint-disable-next-line no-console
console.warn("(!) the `splitVendorChunk` plugin doesn't have any effect when using the object form of `build.rollupOptions.output.manualChunks`. Consider using the function form instead.");
}
}

@@ -132,0 +136,0 @@ else {

{
"name": "vite",
"version": "4.3.8",
"version": "4.4.9",
"type": "module",

@@ -52,2 +52,3 @@ "license": "MIT",

"homepage": "https://github.com/vitejs/vite/tree/main/#readme",
"funding": "https://github.com/vitejs/vite?sponsor=1",
"scripts": {

@@ -60,3 +61,3 @@ "dev": "rimraf dist && pnpm run build-bundle -w",

"build-types-pre-patch": "tsx scripts/prePatchTypes.ts",
"build-types-roll": "api-extractor run && rimraf temp",
"build-types-roll": "tsx scripts/api-extractor.ts run && rimraf temp",
"build-types-post-patch": "tsx scripts/postPatchTypes.ts",

@@ -71,5 +72,5 @@ "build-types-check": "tsx scripts/checkBuiltTypes.ts && tsc --project tsconfig.check.json",

"dependencies": {
"esbuild": "^0.17.5",
"postcss": "^8.4.23",
"rollup": "^3.21.0"
"esbuild": "^0.18.10",
"postcss": "^8.4.27",
"rollup": "^3.27.1"
},

@@ -81,15 +82,15 @@ "optionalDependencies": {

"@ampproject/remapping": "^2.2.1",
"@babel/parser": "^7.21.4",
"@babel/types": "^7.21.4",
"@babel/parser": "^7.22.7",
"@babel/types": "^7.22.5",
"@jridgewell/trace-mapping": "^0.3.18",
"@rollup/plugin-alias": "^4.0.4",
"@rollup/plugin-commonjs": "^24.1.0",
"@rollup/plugin-dynamic-import-vars": "^2.0.3",
"@rollup/plugin-commonjs": "^25.0.3",
"@rollup/plugin-dynamic-import-vars": "^2.0.4",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "15.0.2",
"@rollup/plugin-typescript": "^11.1.0",
"@rollup/plugin-node-resolve": "15.1.0",
"@rollup/plugin-typescript": "^11.1.2",
"@rollup/pluginutils": "^5.0.2",
"@types/escape-html": "^1.0.2",
"@types/pnpapi": "^0.0.2",
"@types/escape-html": "^1.0.2",
"acorn": "^8.8.2",
"acorn": "^8.10.0",
"acorn-walk": "^8.2.0",

@@ -105,15 +106,16 @@ "cac": "^6.7.14",

"dep-types": "link:./src/types",
"dotenv": "^16.0.3",
"dotenv": "^16.3.1",
"dotenv-expand": "^9.0.0",
"es-module-lexer": "^1.2.1",
"es-module-lexer": "^1.3.0",
"escape-html": "^1.0.3",
"estree-walker": "^3.0.3",
"etag": "^1.8.1",
"fast-glob": "^3.2.12",
"fast-glob": "^3.3.1",
"http-proxy": "^1.18.1",
"json-stable-stringify": "^1.0.2",
"launch-editor-middleware": "^2.6.0",
"magic-string": "^0.30.0",
"lightningcss": "^1.21.5",
"magic-string": "^0.30.2",
"micromatch": "^4.0.5",
"mlly": "^1.2.0",
"mlly": "^1.4.0",
"mrmime": "^1.0.1",

@@ -131,10 +133,10 @@ "okie": "^1.0.1",

"rollup-plugin-license": "^3.0.1",
"sirv": "^2.0.2",
"sirv": "^2.0.3",
"source-map-support": "^0.5.21",
"strip-ansi": "^7.0.1",
"strip-literal": "^1.0.1",
"tsconfck": "^2.1.1",
"tslib": "^2.5.0",
"strip-ansi": "^7.1.0",
"strip-literal": "^1.3.0",
"tsconfck": "^2.1.2",
"tslib": "^2.6.1",
"types": "link:./types",
"ufo": "^1.1.1",
"ufo": "^1.2.0",
"ws": "^8.13.0"

@@ -145,2 +147,3 @@ },

"less": "*",
"lightningcss": "^1.21.0",
"sass": "*",

@@ -167,2 +170,5 @@ "stylus": "*",

},
"lightningcss": {
"optional": true
},
"terser": {

@@ -169,0 +175,0 @@ "optional": true

@@ -15,4 +15,16 @@ import type {

'vite:invalidate': InvalidatePayload
'vite:ws:connect': WebSocketConnectionPayload
'vite:ws:disconnect': WebSocketConnectionPayload
}
export interface WebSocketConnectionPayload {
/**
* @experimental
* We expose this instance experimentally to see potential usage.
* This might be removed in the future if we didn't find reasonable use cases.
* If you find this useful, please open an issue with details so we can discuss and make it stable API.
*/
webSocket: WebSocket
}
export interface InvalidatePayload {

@@ -19,0 +31,0 @@ path: string

@@ -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

{
"//": "this file is here to make typescript happy when moduleResolution=node16+"
"//": "this file is here to make typescript happy when moduleResolution=node16+",
"version": "0.0.0"
}

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 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