nitro-nightly 3.0.1-20251217-223324-2058e206 → 3.0.1-20251217-233031-5973b3df
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/dist/_build/shared3.mjs +5 -6
- package/dist/_libs/@hiogawa/vite-plugin-fullstack.mjs +146 -122
- package/dist/_libs/c12.mjs +33 -33
- package/dist/_libs/confbox.mjs +160 -160
- package/dist/_libs/giget.mjs +2 -6
- package/dist/_libs/local-pkg.mjs +2 -2
- package/dist/_libs/unimport.mjs +31 -33
- package/dist/_nitro.mjs +1 -0
- package/dist/_nitro2.mjs +1 -0
- package/dist/_presets.mjs +57 -57
- package/lib/vite.d.mts +2 -2
- package/package.json +3 -3
package/dist/_build/shared3.mjs
CHANGED
|
@@ -115,14 +115,14 @@ function resolveAliases(_aliases) {
|
|
|
115
115
|
|
|
116
116
|
//#endregion
|
|
117
117
|
//#region src/build/chunks.ts
|
|
118
|
-
const virtualRe =
|
|
118
|
+
const virtualRe = /^(?:\0|#|virtual:)/;
|
|
119
119
|
const NODE_MODULES_RE$1 = /node_modules[/\\][^.]/;
|
|
120
120
|
function libChunkName(id) {
|
|
121
121
|
return `_libs/${id.match(/.*(?:[/\\])node_modules(?:[/\\])(?<package>@[^/\\]+[/\\][^/\\]+|[^/\\.][^/\\]*)/)?.groups?.package || "common"}`;
|
|
122
122
|
}
|
|
123
123
|
function getChunkName(chunk, nitro) {
|
|
124
124
|
if (chunk.name.startsWith("_libs/")) return `${chunk.name}.mjs`;
|
|
125
|
-
if (chunk.name === "rolldown-runtime") return "
|
|
125
|
+
if (chunk.name === "rolldown-runtime") return "_rolldown.mjs";
|
|
126
126
|
if (chunk.moduleIds.length === 0) return `_chunks/${chunk.name}.mjs`;
|
|
127
127
|
const ids = chunk.moduleIds.filter((id) => !virtualRe.test(id));
|
|
128
128
|
if (ids.length === 0) {
|
|
@@ -132,7 +132,7 @@ function getChunkName(chunk, nitro) {
|
|
|
132
132
|
if (ids.every((id) => id.endsWith(".wasm"))) return `_wasm/[name].mjs`;
|
|
133
133
|
if (ids.every((id) => id.includes("vite/services"))) return `_ssr/[name].mjs`;
|
|
134
134
|
if (ids.every((id) => id.startsWith(nitro.options.buildDir))) return `_build/[name].mjs`;
|
|
135
|
-
if (ids.every((id) => id.startsWith(runtimeDir) || id.startsWith(presetsDir))) return `
|
|
135
|
+
if (ids.every((id) => id.startsWith(runtimeDir) || id.startsWith(presetsDir))) return `_nitro/[name].mjs`;
|
|
136
136
|
const mainId = ids.at(-1);
|
|
137
137
|
if (mainId) {
|
|
138
138
|
const routeHandler = nitro.routing.routes.routes.flatMap((h) => h.data).find((h) => h.handler === mainId);
|
|
@@ -255,7 +255,7 @@ function polyfills(_nitro, polyfills$1) {
|
|
|
255
255
|
|
|
256
256
|
//#endregion
|
|
257
257
|
//#region src/build/virtual/public-assets.ts
|
|
258
|
-
var import_etag
|
|
258
|
+
var import_etag = /* @__PURE__ */ __toESM(require_etag(), 1);
|
|
259
259
|
const readAssetHandler = {
|
|
260
260
|
true: "node",
|
|
261
261
|
node: "node",
|
|
@@ -279,7 +279,7 @@ function publicAssets(nitro) {
|
|
|
279
279
|
if (mimeType.startsWith("text")) mimeType += "; charset=utf-8";
|
|
280
280
|
const fullPath = resolve(nitro.options.output.publicDir, id);
|
|
281
281
|
const assetData = await promises.readFile(fullPath);
|
|
282
|
-
const etag = (0, import_etag
|
|
282
|
+
const etag = (0, import_etag.default)(assetData);
|
|
283
283
|
const stat$2 = await promises.stat(fullPath);
|
|
284
284
|
const assetId = joinURL(nitro.options.baseURL, decodeURIComponent(id));
|
|
285
285
|
let encoding;
|
|
@@ -532,7 +532,6 @@ function runtimeConfig(nitro) {
|
|
|
532
532
|
|
|
533
533
|
//#endregion
|
|
534
534
|
//#region src/build/virtual/server-assets.ts
|
|
535
|
-
var import_etag = /* @__PURE__ */ __toESM(require_etag(), 1);
|
|
536
535
|
function serverAssets(nitro) {
|
|
537
536
|
return {
|
|
538
537
|
id: "#nitro/virtual/server-assets",
|
|
@@ -1536,7 +1536,7 @@ function stripLiteral(code, options) {
|
|
|
1536
1536
|
}
|
|
1537
1537
|
|
|
1538
1538
|
//#endregion
|
|
1539
|
-
//#region node_modules/.pnpm/@hiogawa+vite-plugin-fullstack@0.0.
|
|
1539
|
+
//#region node_modules/.pnpm/@hiogawa+vite-plugin-fullstack@0.0.8_patch_hash=aef5693ec569067da78c3402c9b2884429e322a_ccdea5f53e47d0c803c48383e7777859/node_modules/@hiogawa/vite-plugin-fullstack/dist/index.js
|
|
1540
1540
|
function parseIdQuery(id) {
|
|
1541
1541
|
if (!id.includes("?")) return {
|
|
1542
1542
|
filename: id,
|
|
@@ -1554,16 +1554,25 @@ function toAssetsVirtual(options) {
|
|
|
1554
1554
|
function parseAssetsVirtual(id) {
|
|
1555
1555
|
if (id.startsWith("\0virtual:fullstack/assets?")) return parseIdQuery(id).query;
|
|
1556
1556
|
}
|
|
1557
|
+
function escapeRegExp(string) {
|
|
1558
|
+
return string.replace(/[-\\^$*+?.()|[\]{}]/g, String.raw`\$&`);
|
|
1559
|
+
}
|
|
1557
1560
|
function createVirtualPlugin(name, load) {
|
|
1558
1561
|
name = "virtual:" + name;
|
|
1559
1562
|
return {
|
|
1560
1563
|
name: `rsc:virtual-${name}`,
|
|
1561
|
-
resolveId: {
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
}
|
|
1564
|
+
resolveId: {
|
|
1565
|
+
filter: { id: /* @__PURE__ */ new RegExp("^" + escapeRegExp(name) + "$") },
|
|
1566
|
+
handler(source, _importer, _options) {
|
|
1567
|
+
return source === name ? "\0" + name : void 0;
|
|
1568
|
+
}
|
|
1569
|
+
},
|
|
1570
|
+
load: {
|
|
1571
|
+
filter: { id: /* @__PURE__ */ new RegExp("^\\0" + escapeRegExp(name) + "$") },
|
|
1572
|
+
handler(id, options) {
|
|
1573
|
+
if (id === "\0" + name) return load.apply(this, [id, options]);
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1567
1576
|
};
|
|
1568
1577
|
}
|
|
1569
1578
|
function normalizeRelativePath(s) {
|
|
@@ -1719,71 +1728,78 @@ function assetsPlugin(pluginOpts) {
|
|
|
1719
1728
|
configEnvironment(name) {
|
|
1720
1729
|
if ((pluginOpts?.serverEnvironments ?? ["ssr"]).includes(name)) return { build: { emitAssets: true } };
|
|
1721
1730
|
},
|
|
1722
|
-
transform: {
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
const
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
const
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1731
|
+
transform: {
|
|
1732
|
+
filter: { code: /import\.meta\.vite\.assets\(/ },
|
|
1733
|
+
async handler(code, id, _options) {
|
|
1734
|
+
const output = new MagicString(code);
|
|
1735
|
+
const strippedCode = stripLiteral(code);
|
|
1736
|
+
const newImports = /* @__PURE__ */ new Set();
|
|
1737
|
+
for (const match of code.matchAll(/import\.meta\.vite\.assets\(([\s\S]*?)\)/dg)) {
|
|
1738
|
+
const [start, end] = match.indices[0];
|
|
1739
|
+
if (!strippedCode.slice(start, end).includes("import.meta.vite.assets")) continue;
|
|
1740
|
+
if (this.environment.name === "client") {
|
|
1741
|
+
const replacement$1 = `(${JSON.stringify(EMPTY_ASSETS)})`;
|
|
1742
|
+
output.update(start, end, replacement$1);
|
|
1743
|
+
continue;
|
|
1744
|
+
}
|
|
1745
|
+
const argCode = match[1].trim();
|
|
1746
|
+
const options = {
|
|
1747
|
+
import: id,
|
|
1748
|
+
environment: void 0,
|
|
1749
|
+
asEntry: false
|
|
1750
|
+
};
|
|
1751
|
+
if (argCode) {
|
|
1752
|
+
const argValue = evalValue(argCode);
|
|
1753
|
+
Object.assign(options, argValue);
|
|
1754
|
+
}
|
|
1755
|
+
const environments = options.environment ? [options.environment] : ["client", this.environment.name];
|
|
1756
|
+
const importedNames = [];
|
|
1757
|
+
for (const environment of environments) {
|
|
1758
|
+
const importSource = toAssetsVirtual({
|
|
1759
|
+
import: options.import,
|
|
1760
|
+
importer: id,
|
|
1761
|
+
environment,
|
|
1762
|
+
entry: options.asEntry ? "1" : ""
|
|
1763
|
+
});
|
|
1764
|
+
const importedName = `__assets_${hashString(importSource)}`;
|
|
1765
|
+
newImports.add(`;import ${importedName} from ${JSON.stringify(importSource)};\n`);
|
|
1766
|
+
importedNames.push(importedName);
|
|
1767
|
+
}
|
|
1768
|
+
let replacement = importedNames[0];
|
|
1769
|
+
if (importedNames.length > 1) {
|
|
1770
|
+
newImports.add(`;import * as __assets_runtime from "virtual:fullstack/runtime";\n`);
|
|
1771
|
+
replacement = `__assets_runtime.mergeAssets(${importedNames.join(", ")})`;
|
|
1772
|
+
}
|
|
1773
|
+
output.update(start, end, `(${replacement})`);
|
|
1757
1774
|
}
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1775
|
+
if (output.hasChanged()) {
|
|
1776
|
+
for (const newImport of newImports) output.append(newImport);
|
|
1777
|
+
return {
|
|
1778
|
+
code: output.toString(),
|
|
1779
|
+
map: output.generateMap({ hires: "boundary" })
|
|
1780
|
+
};
|
|
1762
1781
|
}
|
|
1763
|
-
output.update(start, end, `(${replacement})`);
|
|
1764
|
-
}
|
|
1765
|
-
if (output.hasChanged()) {
|
|
1766
|
-
for (const newImport of newImports) output.append(newImport);
|
|
1767
|
-
return {
|
|
1768
|
-
code: output.toString(),
|
|
1769
|
-
map: output.generateMap({ hires: "boundary" })
|
|
1770
|
-
};
|
|
1771
1782
|
}
|
|
1772
|
-
}
|
|
1773
|
-
resolveId: {
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
+
},
|
|
1784
|
+
resolveId: {
|
|
1785
|
+
filter: { id: /^virtual:fullstack\// },
|
|
1786
|
+
handler(source) {
|
|
1787
|
+
if (source === "virtual:fullstack/runtime") return "\0" + source;
|
|
1788
|
+
if (source.startsWith("virtual:fullstack/assets?")) return "\0" + source;
|
|
1789
|
+
if (source === "virtual:fullstack/assets-manifest") {
|
|
1790
|
+
assert$1.notEqual(this.environment.name, "client");
|
|
1791
|
+
assert$1.equal(this.environment.mode, "build");
|
|
1792
|
+
return {
|
|
1793
|
+
id: source,
|
|
1794
|
+
external: true
|
|
1795
|
+
};
|
|
1796
|
+
}
|
|
1783
1797
|
}
|
|
1784
|
-
}
|
|
1785
|
-
load: {
|
|
1786
|
-
|
|
1798
|
+
},
|
|
1799
|
+
load: {
|
|
1800
|
+
filter: { id: /^\0virtual:fullstack\// },
|
|
1801
|
+
async handler(id) {
|
|
1802
|
+
if (id === "\0virtual:fullstack/runtime") return `//#region src/runtime.ts
|
|
1787
1803
|
function mergeAssets(...args) {
|
|
1788
1804
|
const js = uniqBy(args.flatMap((h) => h.js), (a) => a.href);
|
|
1789
1805
|
const css = uniqBy(args.flatMap((h) => h.css), (a) => a.href);
|
|
@@ -1810,20 +1826,21 @@ function uniqBy(array, key) {
|
|
|
1810
1826
|
|
|
1811
1827
|
//#endregion
|
|
1812
1828
|
export { mergeAssets };`;
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1829
|
+
const parsed = parseAssetsVirtual(id);
|
|
1830
|
+
if (!parsed) return;
|
|
1831
|
+
assert$1.notEqual(this.environment.name, "client");
|
|
1832
|
+
const resolved = await this.resolve(parsed.import, parsed.importer);
|
|
1833
|
+
assert$1(resolved, `Failed to resolve: ${parsed.import}`);
|
|
1834
|
+
const s = new MagicString("");
|
|
1835
|
+
const code = await processAssetsImport(this, resolved.id, {
|
|
1836
|
+
environment: parsed.environment,
|
|
1837
|
+
isEntry: !!parsed.entry
|
|
1838
|
+
});
|
|
1839
|
+
s.append(`export default ${code};\n`);
|
|
1840
|
+
if (this.environment.mode === "build") s.prepend(`import __assets_manifest from "virtual:fullstack/assets-manifest";\n`);
|
|
1841
|
+
return s.toString();
|
|
1842
|
+
}
|
|
1843
|
+
},
|
|
1827
1844
|
renderChunk(code, chunk) {
|
|
1828
1845
|
if (code.includes("virtual:fullstack/assets-manifest")) {
|
|
1829
1846
|
const replacement = normalizeRelativePath(path.relative(path.join(chunk.fileName, ".."), BUILD_ASSETS_MANIFEST_NAME));
|
|
@@ -1868,6 +1885,7 @@ export { mergeAssets };`;
|
|
|
1868
1885
|
sharedDuringBuild: true,
|
|
1869
1886
|
resolveId: {
|
|
1870
1887
|
order: "pre",
|
|
1888
|
+
filter: { id: /[?&]assets/ },
|
|
1871
1889
|
handler(source) {
|
|
1872
1890
|
const { query } = parseIdQuery(source);
|
|
1873
1891
|
if (typeof query["assets"] !== "undefined") {
|
|
@@ -1875,41 +1893,44 @@ export { mergeAssets };`;
|
|
|
1875
1893
|
}
|
|
1876
1894
|
}
|
|
1877
1895
|
},
|
|
1878
|
-
load: {
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
const
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
const
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1896
|
+
load: {
|
|
1897
|
+
filter: { id: [/^\0virtual:fullstack\/empty-assets$/, /[?&]assets/] },
|
|
1898
|
+
async handler(id) {
|
|
1899
|
+
if (id === "\0virtual:fullstack/empty-assets") return `export default ${JSON.stringify(EMPTY_ASSETS)}`;
|
|
1900
|
+
const { filename, query } = parseIdQuery(id);
|
|
1901
|
+
const value = query["assets"];
|
|
1902
|
+
if (typeof value !== "undefined") {
|
|
1903
|
+
const s = new MagicString("");
|
|
1904
|
+
const codes = [];
|
|
1905
|
+
if (value) {
|
|
1906
|
+
const code = await processAssetsImport(this, filename, {
|
|
1907
|
+
environment: value,
|
|
1908
|
+
isEntry: value === "client"
|
|
1909
|
+
});
|
|
1910
|
+
codes.push(code);
|
|
1911
|
+
} else {
|
|
1912
|
+
const code1 = await processAssetsImport(this, filename, {
|
|
1913
|
+
environment: "client",
|
|
1914
|
+
isEntry: false
|
|
1915
|
+
});
|
|
1916
|
+
const code2 = await processAssetsImport(this, filename, {
|
|
1917
|
+
environment: this.environment.name,
|
|
1918
|
+
isEntry: false
|
|
1919
|
+
});
|
|
1920
|
+
codes.push(code1, code2);
|
|
1921
|
+
}
|
|
1922
|
+
s.append(`
|
|
1903
1923
|
import * as __assets_runtime from "virtual:fullstack/runtime";\n
|
|
1904
1924
|
export default __assets_runtime.mergeAssets(${codes.join(", ")});
|
|
1905
1925
|
`);
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1926
|
+
if (this.environment.mode === "build") s.prepend(`import __assets_manifest from "virtual:fullstack/assets-manifest";\n`);
|
|
1927
|
+
return {
|
|
1928
|
+
code: s.toString(),
|
|
1929
|
+
moduleSideEffects: false
|
|
1930
|
+
};
|
|
1931
|
+
}
|
|
1911
1932
|
}
|
|
1912
|
-
}
|
|
1933
|
+
},
|
|
1913
1934
|
hotUpdate(ctx) {
|
|
1914
1935
|
if (this.environment.name === "rsc") {
|
|
1915
1936
|
const mods = collectModuleDependents(ctx.modules);
|
|
@@ -2029,11 +2050,13 @@ function patchViteClientPlugin() {
|
|
|
2029
2050
|
}
|
|
2030
2051
|
return {
|
|
2031
2052
|
name: "fullstack:patch-vite-client",
|
|
2032
|
-
transform: {
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2053
|
+
transform: {
|
|
2054
|
+
filter: { id: /* @__PURE__ */ new RegExp("^" + escapeRegExp(viteClientPath) + "$") },
|
|
2055
|
+
handler(code, id) {
|
|
2056
|
+
if (id === viteClientPath) {
|
|
2057
|
+
if (code.includes("linkSheetsMap")) return;
|
|
2058
|
+
const s = new MagicString(code);
|
|
2059
|
+
s.prependLeft(code.indexOf("const sheetsMap"), `\
|
|
2037
2060
|
const linkSheetsMap = new Map();
|
|
2038
2061
|
document
|
|
2039
2062
|
.querySelectorAll('link[rel="stylesheet"][data-vite-dev-id]')
|
|
@@ -2041,8 +2064,8 @@ document
|
|
|
2041
2064
|
linkSheetsMap.set(el.getAttribute('data-vite-dev-id'), el)
|
|
2042
2065
|
});
|
|
2043
2066
|
`);
|
|
2044
|
-
|
|
2045
|
-
|
|
2067
|
+
s.appendLeft(endIndexOf(code, `function updateStyle(id, content) {`), `if (linkSheetsMap.has(id)) { return }`);
|
|
2068
|
+
s.appendLeft(endIndexOf(code, `function removeStyle(id) {`), `
|
|
2046
2069
|
const link = linkSheetsMap.get(id);
|
|
2047
2070
|
if (link) {
|
|
2048
2071
|
document
|
|
@@ -2057,9 +2080,10 @@ if (link) {
|
|
|
2057
2080
|
linkSheetsMap.delete(id)
|
|
2058
2081
|
}
|
|
2059
2082
|
`);
|
|
2060
|
-
|
|
2083
|
+
return s.toString();
|
|
2084
|
+
}
|
|
2061
2085
|
}
|
|
2062
|
-
}
|
|
2086
|
+
}
|
|
2063
2087
|
};
|
|
2064
2088
|
}
|
|
2065
2089
|
function patchVueScopeCssHmr() {
|
package/dist/_libs/c12.mjs
CHANGED
|
@@ -127,7 +127,7 @@ function normalizeString(path$2, allowAboveRoot) {
|
|
|
127
127
|
const isAbsolute$1 = function(p) {
|
|
128
128
|
return _IS_ABSOLUTE_RE.test(p);
|
|
129
129
|
};
|
|
130
|
-
const extname$
|
|
130
|
+
const extname$2 = function(p) {
|
|
131
131
|
if (p === "..") return "";
|
|
132
132
|
const match = _EXTNAME_RE.exec(normalizeWindowsPath(p));
|
|
133
133
|
return match && match[1] || "";
|
|
@@ -164,7 +164,7 @@ const basename$1 = function(p, extension) {
|
|
|
164
164
|
const parse$1 = function(p) {
|
|
165
165
|
const root = _PATH_ROOT_RE.exec(p)?.[0]?.replace(/\\/g, "/") || "";
|
|
166
166
|
const base = basename$1(p);
|
|
167
|
-
const extension = extname$
|
|
167
|
+
const extension = extname$2(base);
|
|
168
168
|
return {
|
|
169
169
|
root,
|
|
170
170
|
dir: dirname$1(p),
|
|
@@ -176,7 +176,7 @@ const parse$1 = function(p) {
|
|
|
176
176
|
|
|
177
177
|
//#endregion
|
|
178
178
|
//#region node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.mjs
|
|
179
|
-
const b = /^(?:( )+|\t+)/, d
|
|
179
|
+
const b = /^(?:( )+|\t+)/, d = "space", h$1 = "tab";
|
|
180
180
|
function g(e, t) {
|
|
181
181
|
const n = /* @__PURE__ */ new Map();
|
|
182
182
|
let s = 0, o, i;
|
|
@@ -186,7 +186,7 @@ function g(e, t) {
|
|
|
186
186
|
const y = c.match(b);
|
|
187
187
|
if (y === null) s = 0, o = "";
|
|
188
188
|
else {
|
|
189
|
-
if (f = y[0].length, a = y[1] ? d
|
|
189
|
+
if (f = y[0].length, a = y[1] ? d : h$1, t && a === d && f === 1) continue;
|
|
190
190
|
a !== o && (s = 0), o = a, l = 1, p = 0;
|
|
191
191
|
const u = f - s;
|
|
192
192
|
if (s = f, u === 0) l = 0, p = 1;
|
|
@@ -200,11 +200,11 @@ function g(e, t) {
|
|
|
200
200
|
return n;
|
|
201
201
|
}
|
|
202
202
|
function T(e, t) {
|
|
203
|
-
return (e === d
|
|
203
|
+
return (e === d ? "s" : "t") + String(t);
|
|
204
204
|
}
|
|
205
205
|
function w(e) {
|
|
206
206
|
return {
|
|
207
|
-
type: e[0] === "s" ? d
|
|
207
|
+
type: e[0] === "s" ? d : h$1,
|
|
208
208
|
amount: Number(e.slice(1))
|
|
209
209
|
};
|
|
210
210
|
}
|
|
@@ -214,7 +214,7 @@ function E(e) {
|
|
|
214
214
|
return t;
|
|
215
215
|
}
|
|
216
216
|
function S$2(e, t) {
|
|
217
|
-
return (e === d
|
|
217
|
+
return (e === d ? " " : " ").repeat(t);
|
|
218
218
|
}
|
|
219
219
|
function _(e) {
|
|
220
220
|
if (typeof e != "string") throw new TypeError("Expected a string");
|
|
@@ -238,7 +238,7 @@ function x$2(e, t = {}) {
|
|
|
238
238
|
}
|
|
239
239
|
};
|
|
240
240
|
}
|
|
241
|
-
function N(e, t, n) {
|
|
241
|
+
function N$1(e, t, n) {
|
|
242
242
|
!t || typeof t != "object" || Object.defineProperty(t, m, {
|
|
243
243
|
enumerable: !1,
|
|
244
244
|
configurable: !0,
|
|
@@ -266,7 +266,7 @@ function C(e, t) {
|
|
|
266
266
|
|
|
267
267
|
//#endregion
|
|
268
268
|
//#region node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.mjs
|
|
269
|
-
function
|
|
269
|
+
function $(n, l = !1) {
|
|
270
270
|
const g$1 = n.length;
|
|
271
271
|
let e = 0, u = "", p = 0, k$1 = 16, A = 0, o = 0, O$1 = 0, B = 0, b$1 = 0;
|
|
272
272
|
function I$1(i, T$1) {
|
|
@@ -468,11 +468,11 @@ var Q;
|
|
|
468
468
|
(function(n) {
|
|
469
469
|
n[n.lineFeed = 10] = "lineFeed", n[n.carriageReturn = 13] = "carriageReturn", n[n.space = 32] = "space", n[n._0 = 48] = "_0", n[n._1 = 49] = "_1", n[n._2 = 50] = "_2", n[n._3 = 51] = "_3", n[n._4 = 52] = "_4", n[n._5 = 53] = "_5", n[n._6 = 54] = "_6", n[n._7 = 55] = "_7", n[n._8 = 56] = "_8", n[n._9 = 57] = "_9", n[n.a = 97] = "a", n[n.b = 98] = "b", n[n.c = 99] = "c", n[n.d = 100] = "d", n[n.e = 101] = "e", n[n.f = 102] = "f", n[n.g = 103] = "g", n[n.h = 104] = "h", n[n.i = 105] = "i", n[n.j = 106] = "j", n[n.k = 107] = "k", n[n.l = 108] = "l", n[n.m = 109] = "m", n[n.n = 110] = "n", n[n.o = 111] = "o", n[n.p = 112] = "p", n[n.q = 113] = "q", n[n.r = 114] = "r", n[n.s = 115] = "s", n[n.t = 116] = "t", n[n.u = 117] = "u", n[n.v = 118] = "v", n[n.w = 119] = "w", n[n.x = 120] = "x", n[n.y = 121] = "y", n[n.z = 122] = "z", n[n.A = 65] = "A", n[n.B = 66] = "B", n[n.C = 67] = "C", n[n.D = 68] = "D", n[n.E = 69] = "E", n[n.F = 70] = "F", n[n.G = 71] = "G", n[n.H = 72] = "H", n[n.I = 73] = "I", n[n.J = 74] = "J", n[n.K = 75] = "K", n[n.L = 76] = "L", n[n.M = 77] = "M", n[n.N = 78] = "N", n[n.O = 79] = "O", n[n.P = 80] = "P", n[n.Q = 81] = "Q", n[n.R = 82] = "R", n[n.S = 83] = "S", n[n.T = 84] = "T", n[n.U = 85] = "U", n[n.V = 86] = "V", n[n.W = 87] = "W", n[n.X = 88] = "X", n[n.Y = 89] = "Y", n[n.Z = 90] = "Z", n[n.asterisk = 42] = "asterisk", n[n.backslash = 92] = "backslash", n[n.closeBrace = 125] = "closeBrace", n[n.closeBracket = 93] = "closeBracket", n[n.colon = 58] = "colon", n[n.comma = 44] = "comma", n[n.dot = 46] = "dot", n[n.doubleQuote = 34] = "doubleQuote", n[n.minus = 45] = "minus", n[n.openBrace = 123] = "openBrace", n[n.openBracket = 91] = "openBracket", n[n.plus = 43] = "plus", n[n.slash = 47] = "slash", n[n.formFeed = 12] = "formFeed", n[n.tab = 9] = "tab";
|
|
470
470
|
})(Q || (Q = {})), new Array(20).fill(0).map((n, l) => " ".repeat(l));
|
|
471
|
-
const N
|
|
472
|
-
new Array(N
|
|
473
|
-
` + " ".repeat(l)), new Array(N
|
|
474
|
-
` + " ".repeat(l)), new Array(N
|
|
475
|
-
` + " ".repeat(l)), new Array(N
|
|
471
|
+
const N = 200;
|
|
472
|
+
new Array(N).fill(0).map((n, l) => `
|
|
473
|
+
` + " ".repeat(l)), new Array(N).fill(0).map((n, l) => "\r" + " ".repeat(l)), new Array(N).fill(0).map((n, l) => `\r
|
|
474
|
+
` + " ".repeat(l)), new Array(N).fill(0).map((n, l) => `
|
|
475
|
+
` + " ".repeat(l)), new Array(N).fill(0).map((n, l) => "\r" + " ".repeat(l)), new Array(N).fill(0).map((n, l) => `\r
|
|
476
476
|
` + " ".repeat(l));
|
|
477
477
|
var U;
|
|
478
478
|
(function(n) {
|
|
@@ -513,7 +513,7 @@ function S$1(n, l = [], g$1 = U.DEFAULT) {
|
|
|
513
513
|
}, g$1), u[0];
|
|
514
514
|
}
|
|
515
515
|
function P(n, l, g$1 = U.DEFAULT) {
|
|
516
|
-
const e =
|
|
516
|
+
const e = $(n, !1), u = [];
|
|
517
517
|
let p = 0;
|
|
518
518
|
function k$1(f) {
|
|
519
519
|
return f ? () => p === 0 && f(e.getTokenOffset(), e.getTokenLength(), e.getTokenStartLine(), e.getTokenStartCharacter()) : () => !0;
|
|
@@ -656,22 +656,22 @@ var q;
|
|
|
656
656
|
(function(n) {
|
|
657
657
|
n[n.InvalidSymbol = 1] = "InvalidSymbol", n[n.InvalidNumberFormat = 2] = "InvalidNumberFormat", n[n.PropertyNameExpected = 3] = "PropertyNameExpected", n[n.ValueExpected = 4] = "ValueExpected", n[n.ColonExpected = 5] = "ColonExpected", n[n.CommaExpected = 6] = "CommaExpected", n[n.CloseBraceExpected = 7] = "CloseBraceExpected", n[n.CloseBracketExpected = 8] = "CloseBracketExpected", n[n.EndOfFileExpected = 9] = "EndOfFileExpected", n[n.InvalidCommentToken = 10] = "InvalidCommentToken", n[n.UnexpectedEndOfComment = 11] = "UnexpectedEndOfComment", n[n.UnexpectedEndOfString = 12] = "UnexpectedEndOfString", n[n.UnexpectedEndOfNumber = 13] = "UnexpectedEndOfNumber", n[n.InvalidUnicode = 14] = "InvalidUnicode", n[n.InvalidEscapeCharacter = 15] = "InvalidEscapeCharacter", n[n.InvalidCharacter = 16] = "InvalidCharacter";
|
|
658
658
|
})(q || (q = {}));
|
|
659
|
-
function x(n, l) {
|
|
659
|
+
function x$1(n, l) {
|
|
660
660
|
const g$1 = JSON.parse(n, l?.reviver);
|
|
661
|
-
return N(n, g$1, l), g$1;
|
|
661
|
+
return N$1(n, g$1, l), g$1;
|
|
662
662
|
}
|
|
663
663
|
function h(n, l) {
|
|
664
664
|
const g$1 = K(n, l?.errors, l);
|
|
665
|
-
return N(n, g$1, l), g$1;
|
|
665
|
+
return N$1(n, g$1, l), g$1;
|
|
666
666
|
}
|
|
667
667
|
|
|
668
668
|
//#endregion
|
|
669
669
|
//#region node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/ini.mjs
|
|
670
|
-
var O, x
|
|
670
|
+
var O, x;
|
|
671
671
|
function j() {
|
|
672
|
-
if (x
|
|
673
|
-
x
|
|
674
|
-
const { hasOwnProperty: y } = Object.prototype, d$
|
|
672
|
+
if (x) return O;
|
|
673
|
+
x = 1;
|
|
674
|
+
const { hasOwnProperty: y } = Object.prototype, d$1 = (e, t = {}) => {
|
|
675
675
|
typeof t == "string" && (t = { section: t }), t.align = t.align === !0, t.newline = t.newline === !0, t.sort = t.sort === !0, t.whitespace = t.whitespace === !0 || t.align === !0, t.platform = t.platform || typeof process < "u" && process.platform, t.bracketedArray = t.bracketedArray !== !1;
|
|
676
676
|
const s = t.platform === "win32" ? `\r
|
|
677
677
|
` : `
|
|
@@ -687,7 +687,7 @@ function j() {
|
|
|
687
687
|
}
|
|
688
688
|
t.section && l.length && (l = "[" + h$2(t.section) + "]" + (t.newline ? s + s : s) + l);
|
|
689
689
|
for (const n of c) {
|
|
690
|
-
const i = k$1(n, ".").join("\\."), f = (t.section ? t.section + "." : "") + i, u = d$
|
|
690
|
+
const i = k$1(n, ".").join("\\."), f = (t.section ? t.section + "." : "") + i, u = d$1(e[n], {
|
|
691
691
|
...t,
|
|
692
692
|
section: f
|
|
693
693
|
});
|
|
@@ -764,15 +764,15 @@ function j() {
|
|
|
764
764
|
return O = {
|
|
765
765
|
parse: w$1,
|
|
766
766
|
decode: w$1,
|
|
767
|
-
stringify: d$
|
|
768
|
-
encode: d$
|
|
767
|
+
stringify: d$1,
|
|
768
|
+
encode: d$1,
|
|
769
769
|
safe: h$2,
|
|
770
770
|
unsafe: A
|
|
771
771
|
}, O;
|
|
772
772
|
}
|
|
773
773
|
var I = j();
|
|
774
|
-
function S(y, d$
|
|
775
|
-
return I.parse(y, d$
|
|
774
|
+
function S(y, d$1) {
|
|
775
|
+
return I.parse(y, d$1);
|
|
776
776
|
}
|
|
777
777
|
|
|
778
778
|
//#endregion
|
|
@@ -1158,7 +1158,7 @@ function getDataProtocolModuleFormat(parsed) {
|
|
|
1158
1158
|
* when used with a `file:` URL.
|
|
1159
1159
|
*
|
|
1160
1160
|
*/
|
|
1161
|
-
function extname$
|
|
1161
|
+
function extname$1(url) {
|
|
1162
1162
|
const pathname = url.pathname;
|
|
1163
1163
|
let index = pathname.length;
|
|
1164
1164
|
while (index--) {
|
|
@@ -1169,7 +1169,7 @@ function extname$2(url) {
|
|
|
1169
1169
|
return "";
|
|
1170
1170
|
}
|
|
1171
1171
|
function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
1172
|
-
const ext = extname$
|
|
1172
|
+
const ext = extname$1(url);
|
|
1173
1173
|
if (ext === ".js") {
|
|
1174
1174
|
const { type: packageType } = getPackageScopeConfig(url);
|
|
1175
1175
|
if (packageType !== "none") return packageType;
|
|
@@ -1849,7 +1849,7 @@ async function readPackageJSON(id, options = {}) {
|
|
|
1849
1849
|
const blob = await promises.readFile(resolvedPath, "utf8");
|
|
1850
1850
|
let parsed;
|
|
1851
1851
|
try {
|
|
1852
|
-
parsed = x(blob);
|
|
1852
|
+
parsed = x$1(blob);
|
|
1853
1853
|
} catch {
|
|
1854
1854
|
parsed = h(blob);
|
|
1855
1855
|
}
|
|
@@ -2750,7 +2750,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
2750
2750
|
})).dir;
|
|
2751
2751
|
}
|
|
2752
2752
|
if (NPM_PACKAGE_RE.test(source)) source = tryResolve(source, options) || source;
|
|
2753
|
-
const ext = extname$
|
|
2753
|
+
const ext = extname$2(source);
|
|
2754
2754
|
const isDir = !ext || ext === basename$1(source);
|
|
2755
2755
|
const cwd$2 = resolve$1(options.cwd, isDir ? source : dirname$1(source));
|
|
2756
2756
|
if (isDir) source = options.configFile;
|
|
@@ -2764,7 +2764,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
2764
2764
|
res.configFile = tryResolve(resolve$1(cwd$2, source), options) || tryResolve(resolve$1(cwd$2, ".config", source.replace(/\.config$/, "")), options) || tryResolve(resolve$1(cwd$2, ".config", source), options) || source;
|
|
2765
2765
|
if (!existsSync(res.configFile)) return res;
|
|
2766
2766
|
res._configFile = res.configFile;
|
|
2767
|
-
const configFileExt = extname$
|
|
2767
|
+
const configFileExt = extname$2(res.configFile) || "";
|
|
2768
2768
|
if (configFileExt in ASYNC_LOADERS) res.config = (await ASYNC_LOADERS[configFileExt]())(await readFile(res.configFile, "utf8"));
|
|
2769
2769
|
else res.config = await options.jiti.import(res.configFile, { default: true });
|
|
2770
2770
|
if (typeof res.config === "function") res.config = await res.config(options.context);
|
|
@@ -2856,4 +2856,4 @@ async function watchConfig(options) {
|
|
|
2856
2856
|
}
|
|
2857
2857
|
|
|
2858
2858
|
//#endregion
|
|
2859
|
-
export { isAbsolute$1 as C, parse$1 as D, normalizeWindowsPath as E, relative$1 as O, extname$
|
|
2859
|
+
export { isAbsolute$1 as C, parse$1 as D, normalizeWindowsPath as E, relative$1 as O, extname$2 as S, normalize$1 as T, h as _, watchConfig as a, basename$1 as b, findNearestFile as c, readGitConfig as d, readPackageJSON as f, resolveModuleURL as g, resolveModulePath as h, setupDotenv as i, resolve$1 as k, findWorkspaceDir as l, resolvePackageJSON as m, loadConfig as n, debounce as o, resolveGitConfig as p, loadDotenv as r, findFile as s, SUPPORTED_EXTENSIONS as t, parseGitConfig as u, C as v, join$1 as w, dirname$1 as x, N$1 as y };
|