nitro 3.0.1-alpha.2 → 3.0.260311-beta
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 +6 -0
- package/README.md +2 -2
- package/dist/THIRD-PARTY-LICENSES.md +1646 -0
- package/dist/_build/common.mjs +6977 -2556
- package/dist/_build/rolldown.mjs +32 -31
- package/dist/_build/rollup.mjs +28 -35
- package/dist/_build/vite.build.mjs +10 -8
- package/dist/_chunks/nitro.mjs +80 -112
- package/dist/_chunks/nitro2.mjs +8 -7
- package/dist/_chunks/nitro3.mjs +129 -0
- package/dist/_chunks/utils.mjs +42 -24
- package/dist/_common.mjs +14 -24
- package/dist/{_chunks/dev.mjs → _dev.mjs} +132 -320
- package/dist/_libs/_.mjs +3 -0
- package/dist/_libs/_2.mjs +2 -0
- package/dist/_libs/_3.mjs +3 -0
- package/dist/_libs/_4.mjs +2 -0
- package/dist/_libs/_5.mjs +3 -0
- package/dist/_libs/_6.mjs +4 -0
- package/dist/_libs/_7.mjs +5 -0
- package/dist/_libs/c12+rc9.mjs +812 -0
- package/dist/_libs/{c12+giget+readdirp+chokidar.d.mts → c12+readdirp+chokidar.d.mts} +52 -36
- package/dist/_libs/citty.mjs +10 -12
- package/dist/_libs/commondir+is-reference.mjs +60 -49
- package/dist/_libs/compatx.mjs +1 -2
- package/dist/_libs/esbuild.d.mts +1 -1
- package/dist/_libs/escape-string-regexp.mjs +1 -2
- package/dist/_libs/{pluginutils+plugin-commonjs.d.mts → estree+pluginutils.d.mts} +2 -2
- package/dist/_libs/estree-walker.mjs +1 -4
- package/dist/_libs/exsolve.d.mts +1 -0
- package/dist/_libs/hasown+resolve+deepmerge.mjs +146 -169
- package/dist/_libs/httpxy.d.mts +12 -9
- package/dist/_libs/httpxy.mjs +299 -43
- package/dist/_libs/js-tokens.d.mts +1 -0
- package/dist/_libs/klona.mjs +1 -2
- package/dist/_libs/mlly.d.mts +1 -1
- package/dist/_libs/nypm+tinyexec.mjs +845 -0
- package/dist/_libs/perfect-debounce.mjs +88 -0
- package/dist/_libs/plugin-alias.mjs +2 -4
- package/dist/_libs/plugin-inject.mjs +2 -6
- package/dist/_libs/plugin-json.mjs +2 -4
- package/dist/_libs/pluginutils.mjs +5 -11
- package/dist/_libs/readdirp+chokidar.mjs +187 -192
- package/dist/_libs/remapping.mjs +1 -3
- package/dist/_libs/resolve-uri+gen-mapping.mjs +15 -21
- package/dist/_libs/rou3.d.mts +3 -2
- package/dist/_libs/rou3.mjs +225 -51
- package/dist/_libs/std-env.d.mts +10 -2
- package/dist/_libs/strip-literal.d.mts +1 -0
- package/dist/_libs/tsconfck.mjs +21 -40
- package/dist/_libs/ultrahtml.mjs +3 -14
- package/dist/_libs/unimport+unplugin.mjs +250 -351
- package/dist/_libs/unplugin+unimport.d.mts +7 -10
- package/dist/_presets.mjs +389 -432
- package/dist/builder.d.mts +5 -4
- package/dist/builder.mjs +12 -6
- package/dist/cli/_chunks/build.mjs +22 -23
- package/dist/cli/_chunks/common.mjs +1 -2
- package/dist/cli/_chunks/deploy.mjs +40 -0
- package/dist/cli/_chunks/dev.mjs +9 -9
- package/dist/cli/_chunks/docs.mjs +30 -0
- package/dist/cli/_chunks/list.mjs +4 -6
- package/dist/cli/_chunks/prepare.mjs +2 -4
- package/dist/cli/_chunks/preview.mjs +51 -0
- package/dist/cli/_chunks/run.mjs +7 -9
- package/dist/cli/_chunks/task.mjs +1 -3
- package/dist/cli/index.mjs +5 -4
- package/dist/node_modules/@poppinss/dumper/build/formatters/html/main.js +8 -0
- package/dist/node_modules/@poppinss/dumper/package.json +1 -1
- package/dist/node_modules/croner/dist/croner.js +1 -1
- package/dist/node_modules/croner/package.json +11 -1
- package/dist/node_modules/youch/build/helpers-B9BQYaS6.js +23 -0
- package/dist/node_modules/youch/build/index.js +204 -351
- package/dist/node_modules/youch/build/public/error_info/script.js +1 -1
- package/dist/node_modules/youch/build/public_dir-C5bujZKB.js +25 -0
- package/dist/node_modules/youch/build/src/templates/error_cause/main.js +44 -0
- package/dist/node_modules/youch/build/src/templates/error_info/main.js +72 -0
- package/dist/node_modules/youch/build/src/templates/error_metadata/main.js +65 -0
- package/dist/node_modules/youch/build/src/templates/error_stack/main.js +152 -0
- package/dist/node_modules/youch/build/src/templates/error_stack_source/main.js +46 -0
- package/dist/node_modules/youch/build/src/templates/header/main.js +24 -0
- package/dist/node_modules/youch/build/src/templates/layout/main.js +27 -0
- package/dist/node_modules/youch/package.json +34 -31
- package/dist/presets/_nitro/runtime/nitro-dev.mjs +9 -56
- package/dist/presets/_nitro/runtime/nitro-prerenderer.mjs +1 -0
- package/dist/presets/_nitro/runtime/service-worker.mjs +0 -1
- package/dist/presets/aws-lambda/runtime/aws-lambda-streaming.mjs +3 -1
- package/dist/presets/bun/runtime/bun.mjs +4 -3
- package/dist/presets/deno/runtime/deno-server.mjs +4 -3
- package/dist/presets/netlify/runtime/netlify-edge.mjs +0 -1
- package/dist/presets/netlify/runtime/netlify.mjs +1 -1
- package/dist/presets/node/runtime/node-cluster.mjs +3 -2
- package/dist/presets/node/runtime/node-server.mjs +3 -2
- package/dist/presets/stormkit/runtime/stormkit.mjs +0 -1
- package/dist/presets/vercel/runtime/cron-handler.mjs +25 -0
- package/dist/presets/vercel/runtime/vercel.web.mjs +2 -4
- package/dist/presets/zephyr/runtime/server.mjs +3 -0
- package/dist/runtime/internal/cache.d.mts +0 -4
- package/dist/runtime/internal/cache.mjs +32 -256
- package/dist/runtime/internal/context.d.mts +3 -1
- package/dist/runtime/internal/error/dev.d.mts +5 -4
- package/dist/runtime/internal/error/dev.mjs +38 -40
- package/dist/runtime/internal/error/hooks.d.mts +1 -1
- package/dist/runtime/internal/error/prod.d.mts +2 -5
- package/dist/runtime/internal/error/prod.mjs +19 -33
- package/dist/runtime/internal/error/utils.d.mts +4 -4
- package/dist/runtime/internal/meta.d.mts +1 -1
- package/dist/runtime/internal/plugin.d.mts +2 -2
- package/dist/runtime/internal/route-rules.d.mts +9 -4
- package/dist/runtime/internal/route-rules.mjs +9 -1
- package/dist/runtime/internal/routes/dev-tasks.d.mts +3 -2
- package/dist/runtime/internal/routes/dev-tasks.mjs +6 -2
- package/dist/runtime/internal/routes/renderer-template.d.mts +1 -1
- package/dist/runtime/internal/routes/renderer-template.dev.d.mts +2 -1
- package/dist/runtime/internal/runtime-config.d.mts +1 -1
- package/dist/runtime/internal/static.mjs +5 -4
- package/dist/runtime/internal/task.d.mts +3 -1
- package/dist/runtime/internal/task.mjs +2 -2
- package/dist/runtime/internal/vite/dev-entry.mjs +6 -3
- package/dist/runtime/internal/vite/dev-worker.mjs +264 -0
- package/dist/runtime/meta.mjs +1 -0
- package/dist/runtime/nitro.d.mts +2 -0
- package/dist/runtime/nitro.mjs +2 -0
- package/dist/runtime/virtual/error-handler.mjs +1 -1
- package/dist/runtime/virtual/server-assets.d.mts +2 -1
- package/dist/runtime/vite.d.mts +1 -1
- package/dist/types/index.d.mts +68 -117
- package/dist/types/index.mjs +1 -11
- package/dist/vite.d.mts +3 -3
- package/dist/vite.mjs +236 -233
- package/package.json +83 -68
- package/skills/nitro/SKILL.md +10 -0
- package/skills/nitro/docs/TOC.md +83 -0
- package/skills/nitro/docs/_navigation.json +679 -0
- package/skills/nitro/docs/config/index.md +1147 -0
- package/skills/nitro/docs/deploy/index.md +64 -0
- package/skills/nitro/docs/deploy/providers/alwaysdata.md +50 -0
- package/skills/nitro/docs/deploy/providers/aws-amplify.md +81 -0
- package/skills/nitro/docs/deploy/providers/aws.md +47 -0
- package/skills/nitro/docs/deploy/providers/azure.md +72 -0
- package/skills/nitro/docs/deploy/providers/cleavr.md +33 -0
- package/skills/nitro/docs/deploy/providers/cloudflare.md +375 -0
- package/skills/nitro/docs/deploy/providers/deno-deploy.md +66 -0
- package/skills/nitro/docs/deploy/providers/digitalocean.md +46 -0
- package/skills/nitro/docs/deploy/providers/firebase.md +32 -0
- package/skills/nitro/docs/deploy/providers/flightcontrol.md +67 -0
- package/skills/nitro/docs/deploy/providers/genezio.md +67 -0
- package/skills/nitro/docs/deploy/providers/github-pages.md +68 -0
- package/skills/nitro/docs/deploy/providers/gitlab-pages.md +37 -0
- package/skills/nitro/docs/deploy/providers/heroku.md +84 -0
- package/skills/nitro/docs/deploy/providers/iis.md +38 -0
- package/skills/nitro/docs/deploy/providers/koyeb.md +109 -0
- package/skills/nitro/docs/deploy/providers/netlify.md +47 -0
- package/skills/nitro/docs/deploy/providers/platform-sh.md +37 -0
- package/skills/nitro/docs/deploy/providers/render.md +37 -0
- package/skills/nitro/docs/deploy/providers/stormkit.md +24 -0
- package/skills/nitro/docs/deploy/providers/vercel.md +179 -0
- package/skills/nitro/docs/deploy/providers/zeabur.md +19 -0
- package/skills/nitro/docs/deploy/providers/zephyr.md +99 -0
- package/skills/nitro/docs/deploy/providers/zerops.md +102 -0
- package/skills/nitro/docs/deploy/runtimes/bun.md +15 -0
- package/skills/nitro/docs/deploy/runtimes/deno.md +19 -0
- package/skills/nitro/docs/deploy/runtimes/node.md +63 -0
- package/skills/nitro/docs/docs/assets.md +166 -0
- package/skills/nitro/docs/docs/cache.md +408 -0
- package/skills/nitro/docs/docs/configuration.md +256 -0
- package/skills/nitro/docs/docs/database.md +185 -0
- package/skills/nitro/docs/docs/index.md +56 -0
- package/skills/nitro/docs/docs/lifecycle.md +204 -0
- package/skills/nitro/docs/docs/migration.md +215 -0
- package/skills/nitro/docs/docs/nightly.md +31 -0
- package/skills/nitro/docs/docs/plugins.md +164 -0
- package/skills/nitro/docs/docs/quick-start.md +110 -0
- package/skills/nitro/docs/docs/renderer.md +322 -0
- package/skills/nitro/docs/docs/routing.md +711 -0
- package/skills/nitro/docs/docs/server-entry.md +239 -0
- package/skills/nitro/docs/docs/storage.md +261 -0
- package/skills/nitro/docs/docs/tasks.md +277 -0
- package/skills/nitro/docs/examples/api-routes.md +145 -0
- package/skills/nitro/docs/examples/auto-imports.md +93 -0
- package/skills/nitro/docs/examples/cached-handler.md +81 -0
- package/skills/nitro/docs/examples/custom-error-handler.md +98 -0
- package/skills/nitro/docs/examples/database.md +157 -0
- package/skills/nitro/docs/examples/elysia.md +70 -0
- package/skills/nitro/docs/examples/express.md +78 -0
- package/skills/nitro/docs/examples/fastify.md +79 -0
- package/skills/nitro/docs/examples/hello-world.md +68 -0
- package/skills/nitro/docs/examples/hono.md +74 -0
- package/skills/nitro/docs/examples/import-alias.md +100 -0
- package/skills/nitro/docs/examples/index.md +3 -0
- package/skills/nitro/docs/examples/middleware.md +91 -0
- package/skills/nitro/docs/examples/mono-jsx.md +68 -0
- package/skills/nitro/docs/examples/nano-jsx.md +70 -0
- package/skills/nitro/docs/examples/plugins.md +91 -0
- package/skills/nitro/docs/examples/renderer.md +113 -0
- package/skills/nitro/docs/examples/runtime-config.md +97 -0
- package/skills/nitro/docs/examples/server-fetch.md +87 -0
- package/skills/nitro/docs/examples/shiki.md +198 -0
- package/skills/nitro/docs/examples/virtual-routes.md +74 -0
- package/skills/nitro/docs/examples/vite-nitro-plugin.md +79 -0
- package/skills/nitro/docs/examples/vite-rsc.md +1041 -0
- package/skills/nitro/docs/examples/vite-ssr-html.md +217 -0
- package/skills/nitro/docs/examples/vite-ssr-preact.md +247 -0
- package/skills/nitro/docs/examples/vite-ssr-react.md +226 -0
- package/skills/nitro/docs/examples/vite-ssr-solid.md +256 -0
- package/skills/nitro/docs/examples/vite-ssr-tsr-react.md +442 -0
- package/skills/nitro/docs/examples/vite-ssr-tss-react.md +444 -0
- package/skills/nitro/docs/examples/vite-ssr-vue-router.md +616 -0
- package/skills/nitro/docs/examples/vite-trpc.md +335 -0
- package/skills/nitro/docs/examples/websocket.md +282 -0
- package/skills/nitro/docs/index.md +121 -0
- package/dist/_libs/confbox.mjs +0 -2509
- package/dist/_libs/nypm+giget+tinyexec.mjs +0 -3603
- package/dist/_libs/rc9+c12+dotenv.mjs +0 -972
- package/dist/node_modules/hookable/dist/index.mjs +0 -266
- package/dist/node_modules/hookable/package.json +0 -52
- package/dist/node_modules/youch/build/chunk-4L7RY2JA.js +0 -42
- package/dist/node_modules/youch/build/chunk-7QV3D5YX.js +0 -83
- package/dist/node_modules/youch/build/chunk-AUGPHE32.js +0 -39
- package/dist/node_modules/youch/build/chunk-CM7DWJNZ.js +0 -44
- package/dist/node_modules/youch/build/chunk-EJH674NB.js +0 -223
- package/dist/node_modules/youch/build/chunk-OIJ3WD7L.js +0 -81
- package/dist/node_modules/youch/build/chunk-P36L72PL.js +0 -87
- package/dist/node_modules/youch/build/chunk-PE3GG3TN.js +0 -65
- package/dist/node_modules/youch/build/chunk-X53OIOJH.js +0 -70
- package/dist/presets/_nitro/runtime/nitro-dev.d.mts +0 -2
- package/dist/presets/_nitro/runtime/nitro-prerenderer.d.mts +0 -3
- package/dist/presets/_nitro/runtime/service-worker.d.mts +0 -2
- package/dist/presets/aws-amplify/runtime/aws-amplify.d.mts +0 -2
- package/dist/presets/aws-lambda/runtime/_utils.d.mts +0 -8
- package/dist/presets/aws-lambda/runtime/aws-lambda-streaming.d.mts +0 -2
- package/dist/presets/aws-lambda/runtime/aws-lambda.d.mts +0 -3
- package/dist/presets/azure/runtime/_utils.d.mts +0 -2
- package/dist/presets/azure/runtime/azure-swa.d.mts +0 -5
- package/dist/presets/bun/runtime/bun.d.mts +0 -3
- package/dist/presets/cloudflare/runtime/_module-handler.d.mts +0 -16
- package/dist/presets/cloudflare/runtime/cloudflare-durable.d.mts +0 -11
- package/dist/presets/cloudflare/runtime/cloudflare-module.d.mts +0 -3
- package/dist/presets/cloudflare/runtime/cloudflare-pages.d.mts +0 -20
- package/dist/presets/cloudflare/runtime/plugin.dev.d.mts +0 -3
- package/dist/presets/deno/runtime/deno-deploy.d.mts +0 -5
- package/dist/presets/deno/runtime/deno-server.d.mts +0 -3
- package/dist/presets/netlify/runtime/netlify-edge.d.mts +0 -3
- package/dist/presets/netlify/runtime/netlify.d.mts +0 -4
- package/dist/presets/node/runtime/node-cluster.d.mts +0 -3
- package/dist/presets/node/runtime/node-middleware.d.mts +0 -3
- package/dist/presets/node/runtime/node-server.d.mts +0 -3
- package/dist/presets/standard/runtime/server.d.mts +0 -3
- package/dist/presets/stormkit/runtime/stormkit.d.mts +0 -21
- package/dist/presets/vercel/runtime/isr.d.mts +0 -2
- package/dist/presets/vercel/runtime/vercel.node.d.mts +0 -3
- package/dist/presets/vercel/runtime/vercel.web.d.mts +0 -8
- package/dist/presets/winterjs/runtime/winterjs.d.mts +0 -2
- package/dist/presets/zeabur/runtime/zeabur.d.mts +0 -3
- package/dist/runtime/internal/vite/node-runner.mjs +0 -359
package/dist/_libs/tsconfck.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import fs, { promises } from "node:fs";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { createRequire } from "module";
|
|
4
|
-
|
|
5
4
|
//#region node_modules/.pnpm/tsconfck@3.1.6_typescript@5.9.3/node_modules/tsconfck/src/util.js
|
|
6
5
|
const POSIX_SEP_RE = new RegExp("\\" + path.posix.sep, "g");
|
|
7
6
|
const NATIVE_SEP_RE = new RegExp("\\" + path.sep, "g");
|
|
@@ -28,13 +27,13 @@ const IS_POSIX = path.posix.sep === path.sep;
|
|
|
28
27
|
* @returns {{resolve:(result:T)=>void, reject:(error:any)=>void, promise: Promise<T>}}
|
|
29
28
|
*/
|
|
30
29
|
function makePromise() {
|
|
31
|
-
let resolve
|
|
30
|
+
let resolve, reject;
|
|
32
31
|
return {
|
|
33
32
|
promise: new Promise((res, rej) => {
|
|
34
|
-
resolve
|
|
33
|
+
resolve = res;
|
|
35
34
|
reject = rej;
|
|
36
35
|
}),
|
|
37
|
-
resolve
|
|
36
|
+
resolve,
|
|
38
37
|
reject
|
|
39
38
|
};
|
|
40
39
|
}
|
|
@@ -47,8 +46,8 @@ async function resolveTSConfigJson(filename, cache) {
|
|
|
47
46
|
if (path.extname(filename) !== ".json") return;
|
|
48
47
|
const tsconfig = path.resolve(filename);
|
|
49
48
|
if (cache && (cache.hasParseResult(tsconfig) || cache.hasParseResult(filename))) return tsconfig;
|
|
50
|
-
return promises.stat(tsconfig).then((stat
|
|
51
|
-
if (stat
|
|
49
|
+
return promises.stat(tsconfig).then((stat) => {
|
|
50
|
+
if (stat.isFile() || stat.isFIFO()) return tsconfig;
|
|
52
51
|
else throw new Error(`${filename} exists but is not a regular file.`);
|
|
53
52
|
});
|
|
54
53
|
}
|
|
@@ -224,7 +223,6 @@ function pattern2regex(resolvedPattern, allowJs) {
|
|
|
224
223
|
function replaceTokens(result) {
|
|
225
224
|
if (result.tsconfig) result.tsconfig = JSON.parse(JSON.stringify(result.tsconfig).replaceAll(/"\${configDir}/g, `"${native2posix(path.dirname(result.tsconfigFile))}`));
|
|
226
225
|
}
|
|
227
|
-
|
|
228
226
|
//#endregion
|
|
229
227
|
//#region node_modules/.pnpm/tsconfck@3.1.6_typescript@5.9.3/node_modules/tsconfck/src/find.js
|
|
230
228
|
/**
|
|
@@ -240,11 +238,11 @@ async function find(filename, options) {
|
|
|
240
238
|
const cache = options?.cache;
|
|
241
239
|
const configName = options?.configName ?? "tsconfig.json";
|
|
242
240
|
if (cache?.hasConfigPath(dir, configName)) return cache.getConfigPath(dir, configName);
|
|
243
|
-
const { promise, resolve
|
|
241
|
+
const { promise, resolve, reject } = makePromise();
|
|
244
242
|
if (options?.root && !path.isAbsolute(options.root)) options.root = path.resolve(options.root);
|
|
245
243
|
findUp(dir, {
|
|
246
244
|
promise,
|
|
247
|
-
resolve
|
|
245
|
+
resolve,
|
|
248
246
|
reject
|
|
249
247
|
}, options);
|
|
250
248
|
return promise;
|
|
@@ -255,7 +253,7 @@ async function find(filename, options) {
|
|
|
255
253
|
* @param {{promise:Promise<string|null>,resolve:(result:string|null)=>void,reject:(err:any)=>void}} madePromise
|
|
256
254
|
* @param {import('./public.d.ts').TSConfckFindOptions} [options] - options
|
|
257
255
|
*/
|
|
258
|
-
function findUp(dir, { resolve
|
|
256
|
+
function findUp(dir, { resolve, reject, promise }, options) {
|
|
259
257
|
const { cache, root, configName } = options ?? {};
|
|
260
258
|
if (cache) if (cache.hasConfigPath(dir, configName)) {
|
|
261
259
|
let cached;
|
|
@@ -265,38 +263,25 @@ function findUp(dir, { resolve: resolve$1, reject, promise }, options) {
|
|
|
265
263
|
reject(e);
|
|
266
264
|
return;
|
|
267
265
|
}
|
|
268
|
-
if (cached?.then) cached.then(resolve
|
|
269
|
-
else resolve
|
|
266
|
+
if (cached?.then) cached.then(resolve).catch(reject);
|
|
267
|
+
else resolve(cached);
|
|
270
268
|
} else cache.setConfigPath(dir, promise, configName);
|
|
271
269
|
const tsconfig = path.join(dir, options?.configName ?? "tsconfig.json");
|
|
272
270
|
fs.stat(tsconfig, (err, stats) => {
|
|
273
|
-
if (stats && (stats.isFile() || stats.isFIFO())) resolve
|
|
271
|
+
if (stats && (stats.isFile() || stats.isFIFO())) resolve(tsconfig);
|
|
274
272
|
else if (err?.code !== "ENOENT") reject(err);
|
|
275
273
|
else {
|
|
276
274
|
let parent;
|
|
277
|
-
if (root === dir || (parent = path.dirname(dir)) === dir) resolve
|
|
275
|
+
if (root === dir || (parent = path.dirname(dir)) === dir) resolve(null);
|
|
278
276
|
else findUp(parent, {
|
|
279
277
|
promise,
|
|
280
|
-
resolve
|
|
278
|
+
resolve,
|
|
281
279
|
reject
|
|
282
280
|
}, options);
|
|
283
281
|
}
|
|
284
282
|
});
|
|
285
283
|
}
|
|
286
|
-
|
|
287
|
-
//#endregion
|
|
288
|
-
//#region node_modules/.pnpm/tsconfck@3.1.6_typescript@5.9.3/node_modules/tsconfck/src/find-all.js
|
|
289
|
-
/**
|
|
290
|
-
* @typedef WalkState
|
|
291
|
-
* @interface
|
|
292
|
-
* @property {string[]} files - files
|
|
293
|
-
* @property {number} calls - number of ongoing calls
|
|
294
|
-
* @property {(dir: string)=>boolean} skip - function to skip dirs
|
|
295
|
-
* @property {boolean} err - error flag
|
|
296
|
-
* @property {string[]} configNames - config file names
|
|
297
|
-
*/
|
|
298
|
-
const sep$1 = path.sep;
|
|
299
|
-
|
|
284
|
+
path.sep;
|
|
300
285
|
//#endregion
|
|
301
286
|
//#region node_modules/.pnpm/tsconfck@3.1.6_typescript@5.9.3/node_modules/tsconfck/src/to-json.js
|
|
302
287
|
/**
|
|
@@ -424,7 +409,6 @@ function stripBom(string) {
|
|
|
424
409
|
if (string.charCodeAt(0) === 65279) return string.slice(1);
|
|
425
410
|
return string;
|
|
426
411
|
}
|
|
427
|
-
|
|
428
412
|
//#endregion
|
|
429
413
|
//#region node_modules/.pnpm/tsconfck@3.1.6_typescript@5.9.3/node_modules/tsconfck/src/parse.js
|
|
430
414
|
const not_found_result = {
|
|
@@ -443,12 +427,12 @@ async function parse(filename, options) {
|
|
|
443
427
|
/** @type {import('./cache.js').TSConfckCache} */
|
|
444
428
|
const cache = options?.cache;
|
|
445
429
|
if (cache?.hasParseResult(filename)) return getParsedDeep(filename, cache, options);
|
|
446
|
-
const { resolve
|
|
430
|
+
const { resolve, reject, promise } = makePromise();
|
|
447
431
|
cache?.setParseResult(filename, promise, true);
|
|
448
432
|
try {
|
|
449
433
|
let tsconfigFile = await resolveTSConfigJson(filename, cache) || await find(filename, options);
|
|
450
434
|
if (!tsconfigFile) {
|
|
451
|
-
resolve
|
|
435
|
+
resolve(not_found_result);
|
|
452
436
|
return promise;
|
|
453
437
|
}
|
|
454
438
|
let result;
|
|
@@ -458,7 +442,7 @@ async function parse(filename, options) {
|
|
|
458
442
|
await Promise.all([parseExtends(result, cache), parseReferences(result, options)]);
|
|
459
443
|
}
|
|
460
444
|
replaceTokens(result);
|
|
461
|
-
resolve
|
|
445
|
+
resolve(resolveSolutionTSConfig(filename, result));
|
|
462
446
|
} catch (e) {
|
|
463
447
|
reject(e);
|
|
464
448
|
}
|
|
@@ -609,7 +593,7 @@ function extendTSConfig(extending, extended) {
|
|
|
609
593
|
const extendingConfig = extending.tsconfig;
|
|
610
594
|
const extendedConfig = extended.tsconfig;
|
|
611
595
|
const relativePath = native2posix(path.relative(path.dirname(extending.tsconfigFile), path.dirname(extended.tsconfigFile)));
|
|
612
|
-
for (const key of Object.keys(extendedConfig).filter((key
|
|
596
|
+
for (const key of Object.keys(extendedConfig).filter((key) => EXTENDABLE_KEYS.includes(key))) if (key === "compilerOptions") {
|
|
613
597
|
if (!extendingConfig.compilerOptions) extendingConfig.compilerOptions = {};
|
|
614
598
|
for (const option of Object.keys(extendedConfig.compilerOptions)) {
|
|
615
599
|
if (Object.prototype.hasOwnProperty.call(extendingConfig.compilerOptions, option)) continue;
|
|
@@ -713,7 +697,6 @@ const DEFAULT_JSCONFIG_COMPILER_OPTIONS = {
|
|
|
713
697
|
function isJSConfig(configFileName) {
|
|
714
698
|
return path.basename(configFileName) === "jsconfig.json";
|
|
715
699
|
}
|
|
716
|
-
|
|
717
700
|
//#endregion
|
|
718
701
|
//#region node_modules/.pnpm/tsconfck@3.1.6_typescript@5.9.3/node_modules/tsconfck/src/parse-native.js
|
|
719
702
|
/** @typedef TSDiagnosticError {
|
|
@@ -722,7 +705,6 @@ category: number;
|
|
|
722
705
|
messageText: string;
|
|
723
706
|
start?: number;
|
|
724
707
|
} TSDiagnosticError */
|
|
725
|
-
|
|
726
708
|
//#endregion
|
|
727
709
|
//#region node_modules/.pnpm/tsconfck@3.1.6_typescript@5.9.3/node_modules/tsconfck/src/cache.js
|
|
728
710
|
/** @template T */
|
|
@@ -806,8 +788,8 @@ var TSConfckCache = class {
|
|
|
806
788
|
setConfigPath(dir, configPath, configName = "tsconfig.json") {
|
|
807
789
|
const key = `${dir}/${configName}`;
|
|
808
790
|
this.#configPaths.set(key, configPath);
|
|
809
|
-
configPath.then((path
|
|
810
|
-
if (this.#configPaths.get(key) === configPath) this.#configPaths.set(key, path
|
|
791
|
+
configPath.then((path) => {
|
|
792
|
+
if (this.#configPaths.get(key) === configPath) this.#configPaths.set(key, path);
|
|
811
793
|
}).catch((e) => {
|
|
812
794
|
if (this.#configPaths.get(key) === configPath) this.#configPaths.set(key, e);
|
|
813
795
|
});
|
|
@@ -827,6 +809,5 @@ var TSConfckCache = class {
|
|
|
827
809
|
*/
|
|
828
810
|
#parsed = /* @__PURE__ */ new Map();
|
|
829
811
|
};
|
|
830
|
-
|
|
831
812
|
//#endregion
|
|
832
|
-
export { parse as n, TSConfckCache as t };
|
|
813
|
+
export { parse as n, TSConfckCache as t };
|
package/dist/_libs/ultrahtml.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region node_modules/.pnpm/ultrahtml@1.6.0/node_modules/ultrahtml/dist/index.js
|
|
2
|
-
var
|
|
2
|
+
var D = new Set([
|
|
3
3
|
"area",
|
|
4
4
|
"base",
|
|
5
5
|
"br",
|
|
@@ -119,20 +119,9 @@ var T = class {
|
|
|
119
119
|
await Promise.all(n);
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
-
}
|
|
123
|
-
constructor(t) {
|
|
124
|
-
this.callback = t;
|
|
125
|
-
}
|
|
126
|
-
visit(t, i, r) {
|
|
127
|
-
if (this.callback(t, i, r), Array.isArray(t.children)) for (let n = 0; n < t.children.length; n++) {
|
|
128
|
-
let a = t.children[n];
|
|
129
|
-
this.visit(a, t, n);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}, p = Symbol("HTMLString"), M = Symbol("AttrString"), f = Symbol("RenderFn");
|
|
122
|
+
};
|
|
133
123
|
function z(e, t) {
|
|
134
124
|
return new T(t).visit(e);
|
|
135
125
|
}
|
|
136
|
-
|
|
137
126
|
//#endregion
|
|
138
|
-
export { z as n, P as t };
|
|
127
|
+
export { z as n, P as t };
|