vite 7.3.3 → 7.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/dist/node/chunks/config.js +111 -51
- package/package.json +2 -2
package/LICENSE.md
CHANGED
|
@@ -1085,7 +1085,7 @@ Repository: https://github.com/lydell/js-tokens
|
|
|
1085
1085
|
## launch-editor, launch-editor-middleware
|
|
1086
1086
|
License: MIT
|
|
1087
1087
|
By: Evan You
|
|
1088
|
-
Repositories: https://github.com/
|
|
1088
|
+
Repositories: https://github.com/vitejs/launch-editor, https://github.com/vitejs/launch-editor
|
|
1089
1089
|
|
|
1090
1090
|
> The MIT License (MIT)
|
|
1091
1091
|
>
|
|
@@ -2284,11 +2284,11 @@ function processSrcSetSync(srcs, replacer) {
|
|
|
2284
2284
|
descriptor
|
|
2285
2285
|
})));
|
|
2286
2286
|
}
|
|
2287
|
-
const windowsDriveRE = /^[A-Z]:/;
|
|
2287
|
+
const windowsDriveRE$1 = /^[A-Z]:/;
|
|
2288
2288
|
const replaceWindowsDriveRE = /^([A-Z]):\//;
|
|
2289
2289
|
const linuxAbsolutePathRE = /^\/[^/]/;
|
|
2290
2290
|
function escapeToLinuxLikePath(path$13) {
|
|
2291
|
-
if (windowsDriveRE.test(path$13)) return path$13.replace(replaceWindowsDriveRE, "/windows/$1/");
|
|
2291
|
+
if (windowsDriveRE$1.test(path$13)) return path$13.replace(replaceWindowsDriveRE, "/windows/$1/");
|
|
2292
2292
|
if (linuxAbsolutePathRE.test(path$13)) return `/linux${path$13}`;
|
|
2293
2293
|
return path$13;
|
|
2294
2294
|
}
|
|
@@ -14366,12 +14366,47 @@ var require_chokidar = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
14366
14366
|
}));
|
|
14367
14367
|
|
|
14368
14368
|
//#endregion
|
|
14369
|
-
//#region ../../node_modules/.pnpm/shell-quote@1.8.
|
|
14369
|
+
//#region ../../node_modules/.pnpm/shell-quote@1.8.4/node_modules/shell-quote/quote.js
|
|
14370
14370
|
var require_quote = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
14371
|
+
var OPS = [
|
|
14372
|
+
"||",
|
|
14373
|
+
"&&",
|
|
14374
|
+
";;",
|
|
14375
|
+
"|&",
|
|
14376
|
+
"<(",
|
|
14377
|
+
"<<<",
|
|
14378
|
+
">>",
|
|
14379
|
+
">&",
|
|
14380
|
+
"<&",
|
|
14381
|
+
"&",
|
|
14382
|
+
";",
|
|
14383
|
+
"(",
|
|
14384
|
+
")",
|
|
14385
|
+
"|",
|
|
14386
|
+
"<",
|
|
14387
|
+
">"
|
|
14388
|
+
];
|
|
14389
|
+
var LINE_TERMINATORS = /[\n\r\u2028\u2029]/;
|
|
14390
|
+
var GLOB_SHELL_SPECIAL = /[\s#!"$&'():;<=>@\\^`|]/g;
|
|
14371
14391
|
module.exports = function quote(xs) {
|
|
14372
14392
|
return xs.map(function(s) {
|
|
14373
14393
|
if (s === "") return "''";
|
|
14374
|
-
if (s && typeof s === "object")
|
|
14394
|
+
if (s && typeof s === "object") {
|
|
14395
|
+
if (s.op === "glob") {
|
|
14396
|
+
if (typeof s.pattern !== "string") throw new TypeError("glob token requires a string `pattern`");
|
|
14397
|
+
if (LINE_TERMINATORS.test(s.pattern)) throw new TypeError("glob `pattern` must not contain line terminators");
|
|
14398
|
+
return s.pattern.replace(GLOB_SHELL_SPECIAL, "\\$&");
|
|
14399
|
+
}
|
|
14400
|
+
if (typeof s.op === "string") {
|
|
14401
|
+
if (OPS.indexOf(s.op) < 0) throw new TypeError("invalid `op` value: " + JSON.stringify(s.op));
|
|
14402
|
+
return s.op.replace(/[\s\S]/g, "\\$&");
|
|
14403
|
+
}
|
|
14404
|
+
if (typeof s.comment === "string") {
|
|
14405
|
+
if (LINE_TERMINATORS.test(s.comment)) throw new TypeError("`comment` must not contain line terminators");
|
|
14406
|
+
return "#" + s.comment;
|
|
14407
|
+
}
|
|
14408
|
+
throw new TypeError("unrecognized object token shape");
|
|
14409
|
+
}
|
|
14375
14410
|
if (/["\s\\]/.test(s) && !/'/.test(s)) return "'" + s.replace(/(['])/g, "\\$1") + "'";
|
|
14376
14411
|
if (/["'\s]/.test(s)) return "\"" + s.replace(/(["\\$`!])/g, "\\$1") + "\"";
|
|
14377
14412
|
return String(s).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}])/g, "$1\\$2");
|
|
@@ -14380,7 +14415,7 @@ var require_quote = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14380
14415
|
}));
|
|
14381
14416
|
|
|
14382
14417
|
//#endregion
|
|
14383
|
-
//#region ../../node_modules/.pnpm/shell-quote@1.8.
|
|
14418
|
+
//#region ../../node_modules/.pnpm/shell-quote@1.8.4/node_modules/shell-quote/parse.js
|
|
14384
14419
|
var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
14385
14420
|
var CONTROL = "(?:" + [
|
|
14386
14421
|
"\\|\\|",
|
|
@@ -14520,14 +14555,14 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14520
14555
|
}));
|
|
14521
14556
|
|
|
14522
14557
|
//#endregion
|
|
14523
|
-
//#region ../../node_modules/.pnpm/shell-quote@1.8.
|
|
14558
|
+
//#region ../../node_modules/.pnpm/shell-quote@1.8.4/node_modules/shell-quote/index.js
|
|
14524
14559
|
var require_shell_quote = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
14525
14560
|
exports.quote = require_quote();
|
|
14526
14561
|
exports.parse = require_parse$1();
|
|
14527
14562
|
}));
|
|
14528
14563
|
|
|
14529
14564
|
//#endregion
|
|
14530
|
-
//#region ../../node_modules/.pnpm/launch-editor@2.
|
|
14565
|
+
//#region ../../node_modules/.pnpm/launch-editor@2.14.1/node_modules/launch-editor/editor-info/macos.js
|
|
14531
14566
|
var require_macos = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
14532
14567
|
module.exports = {
|
|
14533
14568
|
"/Applications/Atom.app/Contents/MacOS/Atom": "atom",
|
|
@@ -14537,11 +14572,14 @@ var require_macos = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14537
14572
|
"/Applications/Sublime Text.app/Contents/MacOS/sublime_text": "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl",
|
|
14538
14573
|
"/Applications/Sublime Text 2.app/Contents/MacOS/Sublime Text 2": "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl",
|
|
14539
14574
|
"/Applications/Sublime Text Dev.app/Contents/MacOS/Sublime Text": "/Applications/Sublime Text Dev.app/Contents/SharedSupport/bin/subl",
|
|
14575
|
+
"/Applications/Visual Studio Code.app/Contents/MacOS/Code": "code",
|
|
14540
14576
|
"/Applications/Visual Studio Code.app/Contents/MacOS/Electron": "code",
|
|
14577
|
+
"/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Code - Insiders": "code-insiders",
|
|
14541
14578
|
"/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Electron": "code-insiders",
|
|
14542
14579
|
"/Applications/VSCodium.app/Contents/MacOS/Electron": "codium",
|
|
14543
14580
|
"/Applications/Cursor.app/Contents/MacOS/Cursor": "cursor",
|
|
14544
14581
|
"/Applications/Trae.app/Contents/MacOS/Electron": "trae",
|
|
14582
|
+
"/Applications/Antigravity.app/Contents/MacOS/Electron": "antigravity",
|
|
14545
14583
|
"/Applications/AppCode.app/Contents/MacOS/appcode": "/Applications/AppCode.app/Contents/MacOS/appcode",
|
|
14546
14584
|
"/Applications/CLion.app/Contents/MacOS/clion": "/Applications/CLion.app/Contents/MacOS/clion",
|
|
14547
14585
|
"/Applications/IntelliJ IDEA.app/Contents/MacOS/idea": "/Applications/IntelliJ IDEA.app/Contents/MacOS/idea",
|
|
@@ -14560,7 +14598,7 @@ var require_macos = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14560
14598
|
}));
|
|
14561
14599
|
|
|
14562
14600
|
//#endregion
|
|
14563
|
-
//#region ../../node_modules/.pnpm/launch-editor@2.
|
|
14601
|
+
//#region ../../node_modules/.pnpm/launch-editor@2.14.1/node_modules/launch-editor/editor-info/linux.js
|
|
14564
14602
|
var require_linux = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
14565
14603
|
module.exports = {
|
|
14566
14604
|
atom: "atom",
|
|
@@ -14571,6 +14609,7 @@ var require_linux = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14571
14609
|
codium: "codium",
|
|
14572
14610
|
cursor: "cursor",
|
|
14573
14611
|
trae: "trae",
|
|
14612
|
+
antigravity: "antigravity",
|
|
14574
14613
|
emacs: "emacs",
|
|
14575
14614
|
gvim: "gvim",
|
|
14576
14615
|
idea: "idea",
|
|
@@ -14594,7 +14633,7 @@ var require_linux = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14594
14633
|
}));
|
|
14595
14634
|
|
|
14596
14635
|
//#endregion
|
|
14597
|
-
//#region ../../node_modules/.pnpm/launch-editor@2.
|
|
14636
|
+
//#region ../../node_modules/.pnpm/launch-editor@2.14.1/node_modules/launch-editor/editor-info/windows.js
|
|
14598
14637
|
var require_windows$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
14599
14638
|
module.exports = [
|
|
14600
14639
|
"Brackets.exe",
|
|
@@ -14621,12 +14660,14 @@ var require_windows$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14621
14660
|
"goland64.exe",
|
|
14622
14661
|
"rider.exe",
|
|
14623
14662
|
"rider64.exe",
|
|
14624
|
-
"
|
|
14663
|
+
"Trae.exe",
|
|
14664
|
+
"zed.exe",
|
|
14665
|
+
"Antigravity.exe"
|
|
14625
14666
|
];
|
|
14626
14667
|
}));
|
|
14627
14668
|
|
|
14628
14669
|
//#endregion
|
|
14629
|
-
//#region ../../node_modules/.pnpm/launch-editor@2.
|
|
14670
|
+
//#region ../../node_modules/.pnpm/launch-editor@2.14.1/node_modules/launch-editor/guess.js
|
|
14630
14671
|
var require_guess = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
14631
14672
|
const path$8 = __require("path");
|
|
14632
14673
|
const shellQuote = require_shell_quote();
|
|
@@ -14634,61 +14675,75 @@ var require_guess = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14634
14675
|
const COMMON_EDITORS_MACOS = require_macos();
|
|
14635
14676
|
const COMMON_EDITORS_LINUX = require_linux();
|
|
14636
14677
|
const COMMON_EDITORS_WIN = require_windows$1();
|
|
14637
|
-
|
|
14678
|
+
function getEditorFromMacProcesses(output) {
|
|
14679
|
+
const processNames = Object.keys(COMMON_EDITORS_MACOS);
|
|
14680
|
+
const processList = output.split("\n");
|
|
14681
|
+
for (let i$1 = 0; i$1 < processNames.length; i$1++) {
|
|
14682
|
+
const processName = processNames[i$1];
|
|
14683
|
+
if (processList.includes(processName)) return COMMON_EDITORS_MACOS[processName];
|
|
14684
|
+
const processNameWithoutApplications = processName.replace("/Applications", "");
|
|
14685
|
+
if (output.indexOf(processNameWithoutApplications) !== -1) {
|
|
14686
|
+
if (processName !== COMMON_EDITORS_MACOS[processName]) return COMMON_EDITORS_MACOS[processName];
|
|
14687
|
+
const runningProcess = processList.find((procName) => procName.endsWith(processNameWithoutApplications));
|
|
14688
|
+
if (runningProcess !== void 0) return runningProcess;
|
|
14689
|
+
}
|
|
14690
|
+
}
|
|
14691
|
+
}
|
|
14692
|
+
function getEditorFromWindowsProcesses(output) {
|
|
14693
|
+
const runningProcesses = output.split("\r\n");
|
|
14694
|
+
for (let i$1 = 0; i$1 < runningProcesses.length; i$1++) {
|
|
14695
|
+
const fullProcessPath = runningProcesses[i$1].trim();
|
|
14696
|
+
const shortProcessName = path$8.win32.basename(fullProcessPath);
|
|
14697
|
+
if (COMMON_EDITORS_WIN.indexOf(shortProcessName) !== -1) return fullProcessPath;
|
|
14698
|
+
}
|
|
14699
|
+
}
|
|
14700
|
+
function getEditorFromLinuxProcesses(output) {
|
|
14701
|
+
const processNames = Object.keys(COMMON_EDITORS_LINUX);
|
|
14702
|
+
for (let i$1 = 0; i$1 < processNames.length; i$1++) {
|
|
14703
|
+
const processName = processNames[i$1];
|
|
14704
|
+
if (output.indexOf(processName) !== -1) return COMMON_EDITORS_LINUX[processName];
|
|
14705
|
+
}
|
|
14706
|
+
}
|
|
14707
|
+
function guessEditor$1(specifiedEditor) {
|
|
14638
14708
|
if (specifiedEditor) return shellQuote.parse(specifiedEditor);
|
|
14639
14709
|
if (process.env.LAUNCH_EDITOR) return [process.env.LAUNCH_EDITOR];
|
|
14640
14710
|
if (process.versions.webcontainer) return [process.env.EDITOR || "code"];
|
|
14641
14711
|
try {
|
|
14642
14712
|
if (process.platform === "darwin") {
|
|
14643
|
-
const
|
|
14713
|
+
const editor = getEditorFromMacProcesses(childProcess$2.execSync("ps x -o comm=", { stdio: [
|
|
14644
14714
|
"pipe",
|
|
14645
14715
|
"pipe",
|
|
14646
14716
|
"ignore"
|
|
14647
|
-
] }).toString();
|
|
14648
|
-
|
|
14649
|
-
const processList = output.split("\n");
|
|
14650
|
-
for (let i$1 = 0; i$1 < processNames.length; i$1++) {
|
|
14651
|
-
const processName = processNames[i$1];
|
|
14652
|
-
if (processList.includes(processName)) return [COMMON_EDITORS_MACOS[processName]];
|
|
14653
|
-
const processNameWithoutApplications = processName.replace("/Applications", "");
|
|
14654
|
-
if (output.indexOf(processNameWithoutApplications) !== -1) {
|
|
14655
|
-
if (processName !== COMMON_EDITORS_MACOS[processName]) return [COMMON_EDITORS_MACOS[processName]];
|
|
14656
|
-
const runningProcess = processList.find((procName) => procName.endsWith(processNameWithoutApplications));
|
|
14657
|
-
if (runningProcess !== void 0) return [runningProcess];
|
|
14658
|
-
}
|
|
14659
|
-
}
|
|
14717
|
+
] }).toString());
|
|
14718
|
+
if (editor !== void 0) return [editor];
|
|
14660
14719
|
} else if (process.platform === "win32") {
|
|
14661
|
-
const
|
|
14720
|
+
const editor = getEditorFromWindowsProcesses(childProcess$2.execSync("powershell -NoProfile -Command \"[Console]::OutputEncoding=[Text.Encoding]::UTF8;Get-CimInstance -Query \\\"select executablepath from win32_process where executablepath is not null\\\" | % { $_.ExecutablePath }\"", { stdio: [
|
|
14662
14721
|
"pipe",
|
|
14663
14722
|
"pipe",
|
|
14664
14723
|
"ignore"
|
|
14665
|
-
] }).toString()
|
|
14666
|
-
|
|
14667
|
-
const fullProcessPath = runningProcesses[i$1].trim();
|
|
14668
|
-
const shortProcessName = path$8.basename(fullProcessPath);
|
|
14669
|
-
if (COMMON_EDITORS_WIN.indexOf(shortProcessName) !== -1) return [fullProcessPath];
|
|
14670
|
-
}
|
|
14724
|
+
] }).toString());
|
|
14725
|
+
if (editor !== void 0) return [editor];
|
|
14671
14726
|
} else if (process.platform === "linux") {
|
|
14672
|
-
const
|
|
14727
|
+
const editor = getEditorFromLinuxProcesses(childProcess$2.execSync("ps x --no-heading -o comm --sort=comm", { stdio: [
|
|
14673
14728
|
"pipe",
|
|
14674
14729
|
"pipe",
|
|
14675
14730
|
"ignore"
|
|
14676
|
-
] }).toString();
|
|
14677
|
-
|
|
14678
|
-
for (let i$1 = 0; i$1 < processNames.length; i$1++) {
|
|
14679
|
-
const processName = processNames[i$1];
|
|
14680
|
-
if (output.indexOf(processName) !== -1) return [COMMON_EDITORS_LINUX[processName]];
|
|
14681
|
-
}
|
|
14731
|
+
] }).toString());
|
|
14732
|
+
if (editor !== void 0) return [editor];
|
|
14682
14733
|
}
|
|
14683
14734
|
} catch (ignoreError) {}
|
|
14684
14735
|
if (process.env.VISUAL) return [process.env.VISUAL];
|
|
14685
14736
|
else if (process.env.EDITOR) return [process.env.EDITOR];
|
|
14686
14737
|
return [null];
|
|
14687
|
-
}
|
|
14738
|
+
}
|
|
14739
|
+
module.exports = guessEditor$1;
|
|
14740
|
+
module.exports.getEditorFromMacProcesses = getEditorFromMacProcesses;
|
|
14741
|
+
module.exports.getEditorFromWindowsProcesses = getEditorFromWindowsProcesses;
|
|
14742
|
+
module.exports.getEditorFromLinuxProcesses = getEditorFromLinuxProcesses;
|
|
14688
14743
|
}));
|
|
14689
14744
|
|
|
14690
14745
|
//#endregion
|
|
14691
|
-
//#region ../../node_modules/.pnpm/launch-editor@2.
|
|
14746
|
+
//#region ../../node_modules/.pnpm/launch-editor@2.14.1/node_modules/launch-editor/get-args.js
|
|
14692
14747
|
var require_get_args = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
14693
14748
|
const path$7 = __require("path");
|
|
14694
14749
|
module.exports = function getArgumentsForPosition$1(editor, fileName, lineNumber, columnNumber = 1) {
|
|
@@ -14726,6 +14781,7 @@ var require_get_args = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14726
14781
|
case "Code - Insiders":
|
|
14727
14782
|
case "codium":
|
|
14728
14783
|
case "trae":
|
|
14784
|
+
case "antigravity":
|
|
14729
14785
|
case "cursor":
|
|
14730
14786
|
case "vscodium":
|
|
14731
14787
|
case "VSCodium": return [
|
|
@@ -14767,7 +14823,7 @@ var require_get_args = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14767
14823
|
}));
|
|
14768
14824
|
|
|
14769
14825
|
//#endregion
|
|
14770
|
-
//#region ../../node_modules/.pnpm/launch-editor@2.
|
|
14826
|
+
//#region ../../node_modules/.pnpm/launch-editor@2.14.1/node_modules/launch-editor/index.js
|
|
14771
14827
|
var require_launch_editor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
14772
14828
|
/**
|
|
14773
14829
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
@@ -14816,11 +14872,12 @@ var require_launch_editor = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
14816
14872
|
columnNumber: match && match[3]
|
|
14817
14873
|
};
|
|
14818
14874
|
}
|
|
14819
|
-
let
|
|
14875
|
+
let currentChildProcess = null;
|
|
14820
14876
|
function launchEditor(file, specifiedEditor, onErrorCallback) {
|
|
14821
14877
|
const parsed = parseFile(file);
|
|
14822
14878
|
let { fileName } = parsed;
|
|
14823
14879
|
const { lineNumber, columnNumber } = parsed;
|
|
14880
|
+
if (process.platform === "win32" && path$6.resolve(fileName).startsWith("\\\\")) return onErrorCallback(fileName, "UNC paths are not supported on Windows to avoid security issues. See https://github.com/vitejs/launch-editor/tree/main/packages/launch-editor#unc-paths-on-windows for details.");
|
|
14824
14881
|
if (!fs$5.existsSync(fileName)) return;
|
|
14825
14882
|
if (typeof specifiedEditor === "function") {
|
|
14826
14883
|
onErrorCallback = specifiedEditor;
|
|
@@ -14837,7 +14894,7 @@ var require_launch_editor = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
14837
14894
|
const extraArgs = getArgumentsForPosition(editor, fileName, lineNumber, columnNumber);
|
|
14838
14895
|
args.push.apply(args, extraArgs);
|
|
14839
14896
|
} else args.push(fileName);
|
|
14840
|
-
if (
|
|
14897
|
+
if (currentChildProcess && isTerminalEditor(editor)) currentChildProcess.kill("SIGKILL");
|
|
14841
14898
|
if (process.platform === "win32") {
|
|
14842
14899
|
function escapeCmdArgs(cmdArgs) {
|
|
14843
14900
|
return cmdArgs.replace(/([&|<>,;=^])/g, "^$1");
|
|
@@ -14848,16 +14905,16 @@ var require_launch_editor = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
14848
14905
|
return str;
|
|
14849
14906
|
}
|
|
14850
14907
|
const launchCommand = [editor, ...args.map(escapeCmdArgs)].map(doubleQuoteIfNeeded).join(" ");
|
|
14851
|
-
|
|
14908
|
+
currentChildProcess = childProcess$1.exec(launchCommand, {
|
|
14852
14909
|
stdio: "inherit",
|
|
14853
14910
|
shell: true
|
|
14854
14911
|
});
|
|
14855
|
-
} else
|
|
14856
|
-
|
|
14857
|
-
|
|
14912
|
+
} else currentChildProcess = childProcess$1.spawn(editor, args, { stdio: "inherit" });
|
|
14913
|
+
currentChildProcess.on("exit", function(errorCode) {
|
|
14914
|
+
currentChildProcess = null;
|
|
14858
14915
|
if (errorCode) onErrorCallback(fileName, "(code " + errorCode + ")");
|
|
14859
14916
|
});
|
|
14860
|
-
|
|
14917
|
+
currentChildProcess.on("error", function(error$1) {
|
|
14861
14918
|
let { code, message } = error$1;
|
|
14862
14919
|
if ("ENOENT" === code) message = `${message} ('${editor}' command does not exist in 'PATH')`;
|
|
14863
14920
|
onErrorCallback(fileName, message);
|
|
@@ -14867,7 +14924,7 @@ var require_launch_editor = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
14867
14924
|
}));
|
|
14868
14925
|
|
|
14869
14926
|
//#endregion
|
|
14870
|
-
//#region ../../node_modules/.pnpm/launch-editor-middleware@2.
|
|
14927
|
+
//#region ../../node_modules/.pnpm/launch-editor-middleware@2.14.1/node_modules/launch-editor-middleware/index.js
|
|
14871
14928
|
var require_launch_editor_middleware = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
14872
14929
|
const path$5 = __require("path");
|
|
14873
14930
|
const launch = require_launch_editor();
|
|
@@ -22515,12 +22572,15 @@ function isFileServingAllowed(configOrUrl, urlOrServer) {
|
|
|
22515
22572
|
function isFileInTargetPath(targetPath, filePath) {
|
|
22516
22573
|
return isSameFilePath(targetPath, filePath) || isParentDirectory(targetPath, filePath);
|
|
22517
22574
|
}
|
|
22575
|
+
const windowsDriveRE = /^[A-Z]:/i;
|
|
22518
22576
|
/**
|
|
22519
22577
|
* Warning: parameters are not validated, only works with normalized absolute paths
|
|
22520
22578
|
*/
|
|
22521
22579
|
function isFileLoadingAllowed(config$2, filePath) {
|
|
22522
22580
|
const { fs: fs$12 } = config$2.server;
|
|
22523
22581
|
if (!fs$12.strict) return true;
|
|
22582
|
+
if (isWindows && filePath.includes("~")) return false;
|
|
22583
|
+
if ((isWindows && windowsDriveRE.test(filePath) ? filePath.slice(2) : filePath).includes(":")) return false;
|
|
22524
22584
|
const filePathWithoutTrailingSlash = filePath.endsWith("/") ? filePath.slice(0, -1) : filePath;
|
|
22525
22585
|
if (config$2.fsDenyGlob(filePathWithoutTrailingSlash)) return false;
|
|
22526
22586
|
if (config$2.safeModulePaths.has(filePath)) return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Evan You",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"etag": "^1.8.1",
|
|
109
109
|
"host-validation-middleware": "^0.1.2",
|
|
110
110
|
"http-proxy-3": "^1.22.0",
|
|
111
|
-
"launch-editor-middleware": "^2.
|
|
111
|
+
"launch-editor-middleware": "^2.14.1",
|
|
112
112
|
"lightningcss": "^1.30.2",
|
|
113
113
|
"magic-string": "^0.30.21",
|
|
114
114
|
"mlly": "^1.8.0",
|