@@ -11,3 +11,3 @@ import "@vite/env"; | ||
| //#endregion | ||
| //#region \0@oxc-project+runtime@0.128.0/helpers/typeof.js | ||
| //#region \0@oxc-project+runtime@0.129.0/helpers/typeof.js | ||
| function _typeof(o) { | ||
@@ -22,3 +22,3 @@ "@babel/helpers - typeof"; | ||
| //#endregion | ||
| //#region \0@oxc-project+runtime@0.128.0/helpers/toPrimitive.js | ||
| //#region \0@oxc-project+runtime@0.129.0/helpers/toPrimitive.js | ||
| function toPrimitive(t, r) { | ||
@@ -35,3 +35,3 @@ if ("object" != _typeof(t) || !t) return t; | ||
| //#endregion | ||
| //#region \0@oxc-project+runtime@0.128.0/helpers/toPropertyKey.js | ||
| //#region \0@oxc-project+runtime@0.129.0/helpers/toPropertyKey.js | ||
| function toPropertyKey(t) { | ||
@@ -42,3 +42,3 @@ var i = toPrimitive(t, "string"); | ||
| //#endregion | ||
| //#region \0@oxc-project+runtime@0.128.0/helpers/defineProperty.js | ||
| //#region \0@oxc-project+runtime@0.129.0/helpers/defineProperty.js | ||
| function _defineProperty(e, r, t) { | ||
@@ -45,0 +45,0 @@ return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { |
@@ -134,4 +134,3 @@ import { a as ExternalFetchResult, c as ViteFetchResult, i as createWebSocketModuleRunnerTransport, n as ModuleRunnerTransportHandlers, o as FetchFunctionOptions, r as NormalizedModuleRunnerTransport, s as FetchResult, t as ModuleRunnerTransport } from "./chunks/moduleRunnerTransport.js"; | ||
| private processImport; | ||
| private isCircularModule; | ||
| private isCircularImport; | ||
| private isCircularRequest; | ||
| private cachedRequest; | ||
@@ -138,0 +137,0 @@ private cachedModule; |
@@ -228,2 +228,3 @@ let SOURCEMAPPING_URL = "sourceMa"; | ||
| var DecodedMap = class { | ||
| map; | ||
| _encoded; | ||
@@ -260,2 +261,4 @@ _decoded; | ||
| var EvaluatedModuleNode = class { | ||
| id; | ||
| url; | ||
| importers = /* @__PURE__ */ new Set(); | ||
@@ -354,2 +357,4 @@ imports = /* @__PURE__ */ new Set(); | ||
| var HMRContext = class { | ||
| hmrClient; | ||
| ownerPath; | ||
| newListeners; | ||
@@ -436,2 +441,5 @@ constructor(hmrClient, ownerPath) { | ||
| }, HMRClient = class { | ||
| logger; | ||
| transport; | ||
| importUpdatedModule; | ||
| hotModulesMap = /* @__PURE__ */ new Map(); | ||
@@ -1087,2 +1095,5 @@ disposeMap = /* @__PURE__ */ new Map(); | ||
| var ModuleRunner = class { | ||
| options; | ||
| evaluator; | ||
| debug; | ||
| evaluatedModules; | ||
@@ -1135,12 +1146,9 @@ hmrClient; | ||
| } | ||
| isCircularModule(mod) { | ||
| for (let importedFile of mod.imports) if (mod.importers.has(importedFile)) return !0; | ||
| return !1; | ||
| } | ||
| isCircularImport(importers, moduleUrl, visited = /* @__PURE__ */ new Set()) { | ||
| for (let importer of importers) { | ||
| if (visited.has(importer)) continue; | ||
| if (visited.add(importer), importer === moduleUrl) return !0; | ||
| let mod = this.evaluatedModules.getModuleById(importer); | ||
| if (mod && mod.importers.size && this.isCircularImport(mod.importers, moduleUrl, visited)) return !0; | ||
| isCircularRequest(mod, callstack, visited = /* @__PURE__ */ new Set()) { | ||
| if (visited.has(mod.id)) return !1; | ||
| visited.add(mod.id); | ||
| for (let importedModuleId of mod.imports) { | ||
| if (callstack.includes(importedModuleId)) return !0; | ||
| let importedModule = this.evaluatedModules.getModuleById(importedModuleId); | ||
| if (importedModule?.promise && !importedModule.evaluated && this.isCircularRequest(importedModule, callstack, visited)) return !0; | ||
| } | ||
@@ -1150,5 +1158,5 @@ return !1; | ||
| async cachedRequest(url, mod, callstack = [], metadata) { | ||
| let meta = mod.meta, moduleId = meta.id, { importers } = mod, importee = callstack[callstack.length - 1]; | ||
| if (importee && importers.add(importee), mod.evaluated && mod.promise) return this.processImport(await mod.promise, meta, metadata); | ||
| if ((callstack.includes(moduleId) || this.isCircularModule(mod) || this.isCircularImport(importers, moduleId)) && mod.exports) return this.processImport(mod.exports, meta, metadata); | ||
| let meta = mod.meta, moduleId = meta.id, importee = callstack[callstack.length - 1]; | ||
| if (importee && mod.importers.add(importee), mod.evaluated && mod.promise) return this.processImport(await mod.promise, meta, metadata); | ||
| if (mod.promise) return mod.exports && (callstack.includes(moduleId) || this.isCircularRequest(mod, callstack)) ? this.processImport(mod.exports, meta, metadata) : this.processImport(await mod.promise, meta, metadata); | ||
| let debugTimer; | ||
@@ -1159,3 +1167,2 @@ this.debug && (debugTimer = setTimeout(() => { | ||
| try { | ||
| if (mod.promise) return this.processImport(await mod.promise, meta, metadata); | ||
| let promise = this.directRequest(url, mod, callstack); | ||
@@ -1162,0 +1169,0 @@ return mod.promise = promise, mod.evaluated = !1, this.processImport(await promise, meta, metadata); |
+6
-6
| { | ||
| "name": "vite", | ||
| "version": "8.0.11", | ||
| "version": "8.0.12", | ||
| "type": "module", | ||
@@ -66,3 +66,3 @@ "license": "MIT", | ||
| "postcss": "^8.5.14", | ||
| "rolldown": "1.0.0-rc.18", | ||
| "rolldown": "1.0.0", | ||
| "tinyglobby": "^0.2.16" | ||
@@ -85,5 +85,5 @@ }, | ||
| "@vitest/utils": "4.1.5", | ||
| "@vitejs/devtools": "^0.1.19", | ||
| "@vitejs/devtools": "^0.1.21", | ||
| "artichokie": "^0.4.3", | ||
| "baseline-browser-mapping": "^2.10.27", | ||
| "baseline-browser-mapping": "^2.10.29", | ||
| "cac": "^7.0.0", | ||
@@ -119,3 +119,3 @@ "chokidar": "^3.6.0", | ||
| "resolve.exports": "^2.0.3", | ||
| "rolldown-plugin-dts": "^0.24.1", | ||
| "rolldown-plugin-dts": "^0.25.0", | ||
| "rollup": "^4.59.0", | ||
@@ -127,3 +127,3 @@ "rollup-plugin-license": "^3.7.1", | ||
| "strip-literal": "^3.1.0", | ||
| "terser": "^5.46.2", | ||
| "terser": "^5.47.1", | ||
| "ufo": "^1.6.4", | ||
@@ -130,0 +130,0 @@ "ws": "^8.20.0" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
2195567
0.02%56965
0.04%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated