@depup/nitro 3.0.260311-beta-depup.0
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 +27 -0
- package/README.md +32 -0
- package/changes.json +14 -0
- package/dist/THIRD-PARTY-LICENSES.md +1646 -0
- package/dist/_build/common.mjs +29361 -0
- package/dist/_build/rolldown.mjs +173 -0
- package/dist/_build/rollup.mjs +194 -0
- package/dist/_build/vite.build.mjs +18 -0
- package/dist/_chunks/nitro.mjs +1159 -0
- package/dist/_chunks/nitro2.mjs +102 -0
- package/dist/_chunks/nitro3.mjs +129 -0
- package/dist/_chunks/utils.mjs +272 -0
- package/dist/_common.mjs +35 -0
- package/dist/_dev.d.mts +12 -0
- package/dist/_dev.mjs +519 -0
- 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+readdirp+chokidar.d.mts +230 -0
- package/dist/_libs/citty.mjs +361 -0
- package/dist/_libs/commondir+is-reference.mjs +1311 -0
- package/dist/_libs/compatx.d.mts +47 -0
- package/dist/_libs/compatx.mjs +45 -0
- package/dist/_libs/esbuild.d.mts +20 -0
- package/dist/_libs/escape-string-regexp.mjs +7 -0
- package/dist/_libs/estree+pluginutils.d.mts +241 -0
- package/dist/_libs/estree-walker.mjs +184 -0
- package/dist/_libs/exsolve.d.mts +1 -0
- package/dist/_libs/hasown+resolve+deepmerge.mjs +1949 -0
- package/dist/_libs/httpxy.d.mts +82 -0
- package/dist/_libs/httpxy.mjs +671 -0
- package/dist/_libs/js-tokens.d.mts +1 -0
- package/dist/_libs/klona.mjs +37 -0
- package/dist/_libs/magic-string.d.mts +220 -0
- package/dist/_libs/mlly.d.mts +57 -0
- package/dist/_libs/nypm+tinyexec.mjs +845 -0
- package/dist/_libs/perfect-debounce.mjs +88 -0
- package/dist/_libs/pkg-types.d.mts +23 -0
- package/dist/_libs/plugin-alias.mjs +64 -0
- package/dist/_libs/plugin-inject.mjs +131 -0
- package/dist/_libs/plugin-json.mjs +34 -0
- package/dist/_libs/pluginutils.mjs +646 -0
- package/dist/_libs/readdirp+chokidar.mjs +1606 -0
- package/dist/_libs/remapping.mjs +115 -0
- package/dist/_libs/resolve-uri+gen-mapping.mjs +442 -0
- package/dist/_libs/rou3.d.mts +44 -0
- package/dist/_libs/rou3.mjs +496 -0
- package/dist/_libs/std-env.d.mts +12 -0
- package/dist/_libs/strip-literal.d.mts +1 -0
- package/dist/_libs/tsconfck.mjs +813 -0
- package/dist/_libs/ultrahtml.mjs +127 -0
- package/dist/_libs/unimport+unplugin.mjs +1684 -0
- package/dist/_libs/unplugin+unimport.d.mts +423 -0
- package/dist/_libs/unwasm.d.mts +29 -0
- package/dist/_presets.mjs +1759 -0
- package/dist/builder.d.mts +64 -0
- package/dist/builder.mjs +15 -0
- package/dist/cli/_chunks/build.mjs +47 -0
- package/dist/cli/_chunks/common.mjs +14 -0
- package/dist/cli/_chunks/deploy.mjs +40 -0
- package/dist/cli/_chunks/dev.mjs +62 -0
- package/dist/cli/_chunks/docs.mjs +30 -0
- package/dist/cli/_chunks/list.mjs +25 -0
- package/dist/cli/_chunks/prepare.mjs +17 -0
- package/dist/cli/_chunks/preview.mjs +51 -0
- package/dist/cli/_chunks/run.mjs +53 -0
- package/dist/cli/_chunks/task.mjs +14 -0
- package/dist/cli/index.d.mts +1 -0
- package/dist/cli/index.mjs +22 -0
- package/dist/node_modules/@poppinss/colors/build/index.js +139 -0
- package/dist/node_modules/@poppinss/colors/package.json +118 -0
- package/dist/node_modules/@poppinss/dumper/build/chunk-26HALFTP.js +602 -0
- package/dist/node_modules/@poppinss/dumper/build/formatters/console/main.js +441 -0
- package/dist/node_modules/@poppinss/dumper/build/formatters/html/main.js +725 -0
- package/dist/node_modules/@poppinss/dumper/package.json +122 -0
- package/dist/node_modules/@poppinss/exception/build/index.js +44 -0
- package/dist/node_modules/@poppinss/exception/package.json +109 -0
- package/dist/node_modules/@sindresorhus/is/distribution/index.js +1354 -0
- package/dist/node_modules/@sindresorhus/is/distribution/utilities.js +3 -0
- package/dist/node_modules/@sindresorhus/is/package.json +81 -0
- package/dist/node_modules/@speed-highlight/core/dist/index.js +4 -0
- package/dist/node_modules/@speed-highlight/core/dist/terminal.js +2 -0
- package/dist/node_modules/@speed-highlight/core/package.json +94 -0
- package/dist/node_modules/cookie-es/dist/index.mjs +262 -0
- package/dist/node_modules/cookie-es/package.json +37 -0
- package/dist/node_modules/croner/dist/croner.js +1 -0
- package/dist/node_modules/croner/package.json +73 -0
- package/dist/node_modules/defu/dist/defu.mjs +69 -0
- package/dist/node_modules/defu/package.json +43 -0
- package/dist/node_modules/destr/dist/index.mjs +72 -0
- package/dist/node_modules/destr/package.json +47 -0
- package/dist/node_modules/error-stack-parser-es/dist/index.mjs +38 -0
- package/dist/node_modules/error-stack-parser-es/dist/lite.mjs +167 -0
- package/dist/node_modules/error-stack-parser-es/package.json +83 -0
- package/dist/node_modules/get-port-please/dist/index.mjs +430 -0
- package/dist/node_modules/get-port-please/package.json +39 -0
- package/dist/node_modules/kleur/index.mjs +110 -0
- package/dist/node_modules/kleur/package.json +51 -0
- package/dist/node_modules/rendu/dist/index.mjs +380 -0
- package/dist/node_modules/rendu/package.json +47 -0
- package/dist/node_modules/scule/dist/index.mjs +80 -0
- package/dist/node_modules/scule/package.json +43 -0
- package/dist/node_modules/source-map/lib/array-set.js +100 -0
- package/dist/node_modules/source-map/lib/base64-vlq.js +94 -0
- package/dist/node_modules/source-map/lib/base64.js +19 -0
- package/dist/node_modules/source-map/lib/binary-search.js +113 -0
- package/dist/node_modules/source-map/lib/mapping-list.js +83 -0
- package/dist/node_modules/source-map/lib/mappings.wasm +0 -0
- package/dist/node_modules/source-map/lib/read-wasm.js +27 -0
- package/dist/node_modules/source-map/lib/source-map-consumer.js +1081 -0
- package/dist/node_modules/source-map/lib/source-map-generator.js +439 -0
- package/dist/node_modules/source-map/lib/source-node.js +430 -0
- package/dist/node_modules/source-map/lib/url.js +13 -0
- package/dist/node_modules/source-map/lib/util.js +444 -0
- package/dist/node_modules/source-map/lib/wasm.js +138 -0
- package/dist/node_modules/source-map/package.json +79 -0
- package/dist/node_modules/source-map/source-map.js +10 -0
- package/dist/node_modules/supports-color/index.js +202 -0
- package/dist/node_modules/supports-color/package.json +64 -0
- package/dist/node_modules/ufo/dist/index.mjs +645 -0
- package/dist/node_modules/ufo/package.json +48 -0
- package/dist/node_modules/unctx/dist/index.mjs +131 -0
- package/dist/node_modules/unctx/package.json +67 -0
- package/dist/node_modules/youch/build/helpers-B9BQYaS6.js +23 -0
- package/dist/node_modules/youch/build/index.js +212 -0
- package/dist/node_modules/youch/build/public/error_cause/style.css +5 -0
- package/dist/node_modules/youch/build/public/error_info/script.js +13 -0
- package/dist/node_modules/youch/build/public/error_info/style.css +145 -0
- package/dist/node_modules/youch/build/public/error_metadata/style.css +3 -0
- package/dist/node_modules/youch/build/public/error_stack/script.js +72 -0
- package/dist/node_modules/youch/build/public/error_stack/style.css +219 -0
- package/dist/node_modules/youch/build/public/error_stack_source/style.css +123 -0
- package/dist/node_modules/youch/build/public/header/script.js +14 -0
- package/dist/node_modules/youch/build/public/header/style.css +56 -0
- package/dist/node_modules/youch/build/public/layout/script.js +12 -0
- package/dist/node_modules/youch/build/public/layout/style.css +435 -0
- 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 +135 -0
- package/dist/node_modules/youch-core/build/index.js +316 -0
- package/dist/node_modules/youch-core/package.json +124 -0
- package/dist/presets/_nitro/runtime/nitro-dev.mjs +20 -0
- package/dist/presets/_nitro/runtime/nitro-prerenderer.mjs +15 -0
- package/dist/presets/_nitro/runtime/service-worker.mjs +23 -0
- package/dist/presets/aws-amplify/runtime/aws-amplify.mjs +14 -0
- package/dist/presets/aws-lambda/runtime/_utils.mjs +116 -0
- package/dist/presets/aws-lambda/runtime/aws-lambda-streaming.mjs +31 -0
- package/dist/presets/aws-lambda/runtime/aws-lambda.mjs +13 -0
- package/dist/presets/azure/runtime/_utils.mjs +50 -0
- package/dist/presets/azure/runtime/azure-swa.mjs +30 -0
- package/dist/presets/bun/runtime/bun.mjs +40 -0
- package/dist/presets/cloudflare/runtime/_module-handler.mjs +87 -0
- package/dist/presets/cloudflare/runtime/cloudflare-durable.mjs +72 -0
- package/dist/presets/cloudflare/runtime/cloudflare-module.mjs +17 -0
- package/dist/presets/cloudflare/runtime/cloudflare-pages.mjs +39 -0
- package/dist/presets/cloudflare/runtime/plugin.dev.mjs +96 -0
- package/dist/presets/cloudflare/runtime/shims/workers.dev.mjs +27 -0
- package/dist/presets/deno/runtime/deno-deploy.mjs +19 -0
- package/dist/presets/deno/runtime/deno-server.mjs +39 -0
- package/dist/presets/netlify/runtime/netlify-edge.mjs +20 -0
- package/dist/presets/netlify/runtime/netlify.mjs +20 -0
- package/dist/presets/node/runtime/node-cluster.mjs +54 -0
- package/dist/presets/node/runtime/node-middleware.mjs +14 -0
- package/dist/presets/node/runtime/node-server.mjs +47 -0
- package/dist/presets/standard/runtime/server.mjs +4 -0
- package/dist/presets/stormkit/runtime/stormkit.mjs +27 -0
- package/dist/presets/vercel/runtime/cron-handler.mjs +25 -0
- package/dist/presets/vercel/runtime/isr.mjs +19 -0
- package/dist/presets/vercel/runtime/vercel.node.mjs +24 -0
- package/dist/presets/vercel/runtime/vercel.web.mjs +23 -0
- package/dist/presets/winterjs/runtime/winterjs.mjs +91 -0
- package/dist/presets/zeabur/runtime/zeabur.mjs +4 -0
- package/dist/presets/zephyr/runtime/server.mjs +3 -0
- package/dist/runtime/app.d.mts +1 -0
- package/dist/runtime/app.mjs +1 -0
- package/dist/runtime/cache.d.mts +1 -0
- package/dist/runtime/cache.mjs +1 -0
- package/dist/runtime/config.d.mts +3 -0
- package/dist/runtime/config.mjs +4 -0
- package/dist/runtime/context.d.mts +1 -0
- package/dist/runtime/context.mjs +1 -0
- package/dist/runtime/database.d.mts +1 -0
- package/dist/runtime/database.mjs +1 -0
- package/dist/runtime/internal/app.d.mts +16 -0
- package/dist/runtime/internal/app.mjs +208 -0
- package/dist/runtime/internal/cache.d.mts +7 -0
- package/dist/runtime/internal/cache.mjs +41 -0
- package/dist/runtime/internal/context.d.mts +14 -0
- package/dist/runtime/internal/context.mjs +24 -0
- package/dist/runtime/internal/database.d.mts +2 -0
- package/dist/runtime/internal/database.mjs +12 -0
- package/dist/runtime/internal/empty.mjs +0 -0
- package/dist/runtime/internal/error/dev.d.mts +10 -0
- package/dist/runtime/internal/error/dev.mjs +121 -0
- package/dist/runtime/internal/error/hooks.d.mts +1 -0
- package/dist/runtime/internal/error/hooks.mjs +9 -0
- package/dist/runtime/internal/error/prod.d.mts +6 -0
- package/dist/runtime/internal/error/prod.mjs +40 -0
- package/dist/runtime/internal/error/utils.d.mts +8 -0
- package/dist/runtime/internal/error/utils.mjs +3 -0
- package/dist/runtime/internal/meta.d.mts +2 -0
- package/dist/runtime/internal/meta.mjs +3 -0
- package/dist/runtime/internal/plugin.d.mts +3 -0
- package/dist/runtime/internal/plugin.mjs +4 -0
- package/dist/runtime/internal/route-rules.d.mts +9 -0
- package/dist/runtime/internal/route-rules.mjs +72 -0
- package/dist/runtime/internal/routes/dev-tasks.d.mts +3 -0
- package/dist/runtime/internal/routes/dev-tasks.mjs +25 -0
- package/dist/runtime/internal/routes/openapi.d.mts +3 -0
- package/dist/runtime/internal/routes/openapi.mjs +94 -0
- package/dist/runtime/internal/routes/renderer-template.d.mts +2 -0
- package/dist/runtime/internal/routes/renderer-template.dev.d.mts +3 -0
- package/dist/runtime/internal/routes/renderer-template.dev.mjs +19 -0
- package/dist/runtime/internal/routes/renderer-template.mjs +4 -0
- package/dist/runtime/internal/routes/scalar.d.mts +3 -0
- package/dist/runtime/internal/routes/scalar.mjs +193 -0
- package/dist/runtime/internal/routes/swagger.d.mts +3 -0
- package/dist/runtime/internal/routes/swagger.mjs +42 -0
- package/dist/runtime/internal/runtime-config.d.mts +9 -0
- package/dist/runtime/internal/runtime-config.mjs +54 -0
- package/dist/runtime/internal/static.d.mts +3 -0
- package/dist/runtime/internal/static.mjs +67 -0
- package/dist/runtime/internal/storage.d.mts +2 -0
- package/dist/runtime/internal/storage.mjs +6 -0
- package/dist/runtime/internal/task.d.mts +19 -0
- package/dist/runtime/internal/task.mjs +69 -0
- package/dist/runtime/internal/vite/dev-entry.mjs +18 -0
- package/dist/runtime/internal/vite/dev-worker.mjs +264 -0
- package/dist/runtime/internal/vite/ssr-renderer.mjs +6 -0
- package/dist/runtime/meta.d.mts +5 -0
- package/dist/runtime/meta.mjs +27 -0
- package/dist/runtime/nitro.d.mts +11 -0
- package/dist/runtime/nitro.mjs +34 -0
- package/dist/runtime/runtime-config.d.mts +1 -0
- package/dist/runtime/runtime-config.mjs +1 -0
- package/dist/runtime/storage.d.mts +1 -0
- package/dist/runtime/storage.mjs +1 -0
- package/dist/runtime/task.d.mts +1 -0
- package/dist/runtime/task.mjs +1 -0
- package/dist/runtime/virtual/_runtime_warn.d.mts +1 -0
- package/dist/runtime/virtual/_runtime_warn.mjs +5 -0
- package/dist/runtime/virtual/database.d.mts +8 -0
- package/dist/runtime/virtual/database.mjs +2 -0
- package/dist/runtime/virtual/error-handler.d.mts +6 -0
- package/dist/runtime/virtual/error-handler.mjs +9 -0
- package/dist/runtime/virtual/feature-flags.d.mts +7 -0
- package/dist/runtime/virtual/feature-flags.mjs +7 -0
- package/dist/runtime/virtual/plugins.d.mts +3 -0
- package/dist/runtime/virtual/plugins.mjs +2 -0
- package/dist/runtime/virtual/polyfills.d.mts +3 -0
- package/dist/runtime/virtual/polyfills.mjs +2 -0
- package/dist/runtime/virtual/public-assets.d.mts +9 -0
- package/dist/runtime/virtual/public-assets.mjs +8 -0
- package/dist/runtime/virtual/renderer-template.d.mts +4 -0
- package/dist/runtime/virtual/renderer-template.mjs +7 -0
- package/dist/runtime/virtual/routing-meta.d.mts +7 -0
- package/dist/runtime/virtual/routing-meta.mjs +2 -0
- package/dist/runtime/virtual/routing.d.mts +8 -0
- package/dist/runtime/virtual/routing.mjs +11 -0
- package/dist/runtime/virtual/runtime-config.d.mts +3 -0
- package/dist/runtime/virtual/runtime-config.mjs +5 -0
- package/dist/runtime/virtual/server-assets.d.mts +7 -0
- package/dist/runtime/virtual/server-assets.mjs +12 -0
- package/dist/runtime/virtual/storage.d.mts +3 -0
- package/dist/runtime/virtual/storage.mjs +5 -0
- package/dist/runtime/virtual/tasks.d.mts +10 -0
- package/dist/runtime/virtual/tasks.mjs +3 -0
- package/dist/runtime/vite.d.mts +8 -0
- package/dist/runtime/vite.mjs +9 -0
- package/dist/types/index.d.mts +3010 -0
- package/dist/types/index.mjs +1 -0
- package/dist/vite.d.mts +52 -0
- package/dist/vite.mjs +740 -0
- package/lib/h3.d.mts +1 -0
- package/lib/h3.mjs +1 -0
- package/lib/tsconfig.json +27 -0
- package/lib/vite.types.d.mts +26 -0
- package/lib/vite.types.mjs +2 -0
- package/package.json +256 -0
- 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
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { n as BaseComponent, t as publicDirURL } from "../../../public_dir-C5bujZKB.js";
|
|
2
|
+
import { n as htmlEscape, t as colors } from "../../../helpers-B9BQYaS6.js";
|
|
3
|
+
import { dump, themes } from "@poppinss/dumper/html";
|
|
4
|
+
import { dump as dump$1 } from "@poppinss/dumper/console";
|
|
5
|
+
const CHEVIRON = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" width="24" height="24" stroke-width="2">
|
|
6
|
+
<path d="M6 9l6 6l6 -6"></path>
|
|
7
|
+
</svg>`;
|
|
8
|
+
const EDITORS = {
|
|
9
|
+
textmate: "txmt://open?url=file://%f&line=%l",
|
|
10
|
+
macvim: "mvim://open?url=file://%f&line=%l",
|
|
11
|
+
emacs: "emacs://open?url=file://%f&line=%l",
|
|
12
|
+
sublime: "subl://open?url=file://%f&line=%l",
|
|
13
|
+
phpstorm: "phpstorm://open?file=%f&line=%l",
|
|
14
|
+
atom: "atom://core/open/file?filename=%f&line=%l",
|
|
15
|
+
vscode: "vscode://file/%f:%l"
|
|
16
|
+
};
|
|
17
|
+
var ErrorStack = class extends BaseComponent {
|
|
18
|
+
cssFile = new URL("./error_stack/style.css", publicDirURL);
|
|
19
|
+
scriptFile = new URL("./error_stack/script.js", publicDirURL);
|
|
20
|
+
#getRelativeFileName(filePath) {
|
|
21
|
+
return filePath.replace(`${process.cwd()}/`, "");
|
|
22
|
+
}
|
|
23
|
+
#getFirstExpandedFrameIndex(frames) {
|
|
24
|
+
let expandAtIndex = frames.findIndex((frame) => frame.type === "app");
|
|
25
|
+
if (expandAtIndex === -1) expandAtIndex = frames.findIndex((frame) => frame.type === "module");
|
|
26
|
+
return expandAtIndex;
|
|
27
|
+
}
|
|
28
|
+
#getEditorLink(ide, frame) {
|
|
29
|
+
const editorURL = EDITORS[ide] || ide;
|
|
30
|
+
if (!editorURL || frame.type === "native") return { text: this.#getRelativeFileName(frame.fileName) };
|
|
31
|
+
return {
|
|
32
|
+
href: editorURL.replace("%f", frame.fileName).replace("%l", String(frame.lineNumber)),
|
|
33
|
+
text: this.#getRelativeFileName(frame.fileName)
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
#renderFrameLocation(frame, ide) {
|
|
37
|
+
const { text, href } = this.#getEditorLink(ide, frame);
|
|
38
|
+
const fileName = `<a${href ? ` href="${href}"` : ""} class="stack-frame-filepath" title="${text}">
|
|
39
|
+
${htmlEscape(text)}
|
|
40
|
+
</a>`;
|
|
41
|
+
const functionName = frame.functionName ? `<span>in <code title="${frame.functionName}">
|
|
42
|
+
${htmlEscape(frame.functionName)}
|
|
43
|
+
</code></span>` : "";
|
|
44
|
+
const loc = `<span>at line <code>${frame.lineNumber}:${frame.columnNumber}</code></span>`;
|
|
45
|
+
if (frame.type !== "native" && frame.source) return `<button class="stack-frame-location">
|
|
46
|
+
${fileName} ${functionName} ${loc}
|
|
47
|
+
</button>`;
|
|
48
|
+
return `<div class="stack-frame-location">
|
|
49
|
+
${fileName} ${functionName} ${loc}
|
|
50
|
+
</div>`;
|
|
51
|
+
}
|
|
52
|
+
async #renderStackFrame(frame, index, expandAtIndex, props) {
|
|
53
|
+
const label = frame.type === "app" ? "<span class=\"frame-label\">In App</span>" : "";
|
|
54
|
+
const expandedClass = expandAtIndex === index ? " expanded" : "";
|
|
55
|
+
const toggleButton = frame.type !== "native" && frame.source ? `<button class="stack-frame-toggle-indicator">${CHEVIRON}</button>` : "";
|
|
56
|
+
return `<li class="stack-frame stack-frame-${frame.type}${expandedClass}">
|
|
57
|
+
<div class="stack-frame-contents">
|
|
58
|
+
${this.#renderFrameLocation(frame, props.ide)}
|
|
59
|
+
<div class="stack-frame-extras">
|
|
60
|
+
${label}
|
|
61
|
+
${toggleButton}
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
<div class="stack-frame-source">
|
|
65
|
+
${await props.sourceCodeRenderer(props.error, frame)}
|
|
66
|
+
</div>
|
|
67
|
+
</li>`;
|
|
68
|
+
}
|
|
69
|
+
async #printStackFrame(frame, index, expandAtIndex, props) {
|
|
70
|
+
const loc = `${this.#getRelativeFileName(frame.fileName)}:${frame.lineNumber}:${frame.columnNumber}`;
|
|
71
|
+
if (index === expandAtIndex) {
|
|
72
|
+
const functionName = frame.functionName ? `at ${frame.functionName} ` : "";
|
|
73
|
+
const codeSnippet = await props.sourceCodeRenderer(props.error, frame);
|
|
74
|
+
return ` ⁃ ${functionName}${colors.yellow(`(${loc})`)}${codeSnippet}`;
|
|
75
|
+
}
|
|
76
|
+
if (frame.type === "native") {
|
|
77
|
+
const functionName = frame.functionName ? `at ${colors.italic(frame.functionName)} ` : "";
|
|
78
|
+
return colors.dim(` ⁃ ${functionName}(${colors.italic(loc)})`);
|
|
79
|
+
}
|
|
80
|
+
return ` ⁃ ${frame.functionName ? `at ${frame.functionName} ` : ""}${colors.yellow(`(${loc})`)}`;
|
|
81
|
+
}
|
|
82
|
+
async toHTML(props) {
|
|
83
|
+
return `<section>
|
|
84
|
+
<div class="card">
|
|
85
|
+
<div class="card-heading">
|
|
86
|
+
<div>
|
|
87
|
+
<h3 class="card-title">
|
|
88
|
+
Stack Trace
|
|
89
|
+
</h3>
|
|
90
|
+
</div>
|
|
91
|
+
</div>
|
|
92
|
+
<div class="card-body">
|
|
93
|
+
<div id="stack-frames-wrapper">
|
|
94
|
+
<div id="stack-frames-header">
|
|
95
|
+
<div id="all-frames-toggle-wrapper">
|
|
96
|
+
<label id="all-frames-toggle">
|
|
97
|
+
<input type="checkbox" />
|
|
98
|
+
<span> View All Frames </span>
|
|
99
|
+
</label>
|
|
100
|
+
</div>
|
|
101
|
+
|
|
102
|
+
<div>
|
|
103
|
+
<div class="toggle-switch">
|
|
104
|
+
<button id="formatted-frames-toggle" class="active"> Pretty </button>
|
|
105
|
+
<button id="raw-frames-toggle"> Raw </button>
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
|
|
110
|
+
<div id="stack-frames-body">
|
|
111
|
+
<div id="stack-frames-formatted" class="visible">
|
|
112
|
+
<ul id="stack-frames">
|
|
113
|
+
${(await Promise.all(props.error.frames.map((frame, index) => {
|
|
114
|
+
return this.#renderStackFrame(frame, index, this.#getFirstExpandedFrameIndex(props.error.frames), props);
|
|
115
|
+
}))).join("\n")}
|
|
116
|
+
</ul>
|
|
117
|
+
</div>
|
|
118
|
+
<div id="stack-frames-raw">
|
|
119
|
+
${dump(props.error.raw, {
|
|
120
|
+
styles: themes.cssVariables,
|
|
121
|
+
expand: true,
|
|
122
|
+
cspNonce: props.cspNonce,
|
|
123
|
+
inspectObjectPrototype: false,
|
|
124
|
+
inspectStaticMembers: false,
|
|
125
|
+
inspectArrayPrototype: false
|
|
126
|
+
})}
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
<div>
|
|
130
|
+
</div>
|
|
131
|
+
</div>
|
|
132
|
+
</section>`;
|
|
133
|
+
}
|
|
134
|
+
async toANSI(props) {
|
|
135
|
+
const displayRaw = process.env.YOUCH_RAW;
|
|
136
|
+
if (displayRaw) {
|
|
137
|
+
const depth = Number.isNaN(Number(displayRaw)) ? 2 : Number(displayRaw);
|
|
138
|
+
return `\n\n${colors.red("[RAW]")}\n${dump$1(props.error.raw, {
|
|
139
|
+
depth,
|
|
140
|
+
inspectObjectPrototype: false,
|
|
141
|
+
inspectStaticMembers: false,
|
|
142
|
+
inspectArrayPrototype: false
|
|
143
|
+
})}`;
|
|
144
|
+
}
|
|
145
|
+
const frames = await Promise.all(props.error.frames.map((frame, index) => {
|
|
146
|
+
return this.#printStackFrame(frame, index, this.#getFirstExpandedFrameIndex(props.error.frames), props);
|
|
147
|
+
}));
|
|
148
|
+
if (frames.length) return `\n\n${frames.join("\n")}`;
|
|
149
|
+
return "";
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
export { ErrorStack };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { n as BaseComponent, t as publicDirURL } from "../../../public_dir-C5bujZKB.js";
|
|
2
|
+
import { r as stripAnsi, t as colors } from "../../../helpers-B9BQYaS6.js";
|
|
3
|
+
import { extname } from "node:path";
|
|
4
|
+
import { highlightText } from "@speed-highlight/core";
|
|
5
|
+
import { highlightText as highlightText$1 } from "@speed-highlight/core/terminal";
|
|
6
|
+
const GUTTER = "┃";
|
|
7
|
+
const POINTER = "❯";
|
|
8
|
+
const LANGS_MAP = {
|
|
9
|
+
".tsx": "ts",
|
|
10
|
+
".jsx": "js",
|
|
11
|
+
".js": "js",
|
|
12
|
+
".ts": "ts",
|
|
13
|
+
".css": "css",
|
|
14
|
+
".json": "json",
|
|
15
|
+
".html": "html",
|
|
16
|
+
".astro": "ts",
|
|
17
|
+
".vue": "ts"
|
|
18
|
+
};
|
|
19
|
+
var ErrorStackSource = class extends BaseComponent {
|
|
20
|
+
cssFile = new URL("./error_stack_source/style.css", publicDirURL);
|
|
21
|
+
async toHTML(props) {
|
|
22
|
+
const frame = props.frame;
|
|
23
|
+
if (frame.type === "native" || !frame.source || !frame.fileName) return "";
|
|
24
|
+
const language = LANGS_MAP[extname(frame.fileName)] ?? "plain";
|
|
25
|
+
const highlight = `<div class="line-highlight" style="margin-top: ${`${frame.source.findIndex((chunk) => {
|
|
26
|
+
return chunk.lineNumber === frame.lineNumber;
|
|
27
|
+
}) * 24}px`}"></div>`;
|
|
28
|
+
let code = await highlightText(frame.source.map((chunk) => chunk.chunk).join("\n"), language, true);
|
|
29
|
+
code = code.replace("<div class=\"shj-numbers\">", `<div class="shj-numbers" style="counter-set: line ${frame.source[0].lineNumber - 1}">`);
|
|
30
|
+
return `<pre><code class="shj-lang-js">${highlight}${code}</code></pre>`;
|
|
31
|
+
}
|
|
32
|
+
async toANSI(props) {
|
|
33
|
+
const frame = props.frame;
|
|
34
|
+
if (frame.type === "native" || !frame.source || !frame.fileName) return "";
|
|
35
|
+
const language = LANGS_MAP[extname(frame.fileName)] ?? "plain";
|
|
36
|
+
const largestLineNumber = Math.max(...frame.source.map(({ lineNumber }) => lineNumber));
|
|
37
|
+
const lineNumberCols = String(largestLineNumber).length;
|
|
38
|
+
return `\n\n${(await highlightText$1(frame.source.map(({ chunk }) => chunk).join("\n"), language)).split("\n").map((line, index) => {
|
|
39
|
+
const lineNumber = frame.source[index].lineNumber;
|
|
40
|
+
const alignedLineNumber = String(lineNumber).padStart(lineNumberCols, " ");
|
|
41
|
+
if (lineNumber === props.frame.lineNumber) return ` ${colors.bgRed(`${POINTER} ${alignedLineNumber} ${GUTTER} ${stripAnsi(line)}`)}`;
|
|
42
|
+
return ` ${colors.dim(alignedLineNumber)} ${colors.dim(GUTTER)} ${line}`;
|
|
43
|
+
}).join("\n")}\n`;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
export { ErrorStackSource };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { n as BaseComponent, t as publicDirURL } from "../../../public_dir-C5bujZKB.js";
|
|
2
|
+
const DARK_MODE_SVG = `<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="15" height="15" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path d="M0 0h24v24H0z" stroke="none"/><path d="M12 3h.393a7.5 7.5 0 0 0 7.92 12.446A9 9 0 1 1 12 2.992z"/></svg>`;
|
|
3
|
+
const LIGHT_MODE_SVG = `<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="15" height="15" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path d="M0 0h24v24H0z" stroke="none"/><circle cx="12" cy="12" r="4"/><path d="M3 12h1m8-9v1m8 8h1m-9 8v1M5.6 5.6l.7.7m12.1-.7-.7.7m0 11.4.7.7m-12.1-.7-.7.7"/></svg>`;
|
|
4
|
+
var Header = class extends BaseComponent {
|
|
5
|
+
cssFile = new URL("./header/style.css", publicDirURL);
|
|
6
|
+
scriptFile = new URL("./header/script.js", publicDirURL);
|
|
7
|
+
async toHTML() {
|
|
8
|
+
return `<header id="header">
|
|
9
|
+
<div id="header-actions">
|
|
10
|
+
<div id="toggle-theme-container">
|
|
11
|
+
<input type="checkbox" id="toggle-theme-checkbox" />
|
|
12
|
+
<label id="toggle-theme-label" for="toggle-theme-checkbox">
|
|
13
|
+
<span id="light-theme-indicator" title="Light mode">${LIGHT_MODE_SVG}</span>
|
|
14
|
+
<span id="dark-theme-indicator" title="Dark mode">${DARK_MODE_SVG}</span>
|
|
15
|
+
</label>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
</header>`;
|
|
19
|
+
}
|
|
20
|
+
async toANSI() {
|
|
21
|
+
return "";
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
export { Header };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { n as BaseComponent, t as publicDirURL } from "../../../public_dir-C5bujZKB.js";
|
|
2
|
+
var Layout = class extends BaseComponent {
|
|
3
|
+
cssFile = new URL("./layout/style.css", publicDirURL);
|
|
4
|
+
scriptFile = new URL("./layout/script.js", publicDirURL);
|
|
5
|
+
async toHTML(props) {
|
|
6
|
+
return `<!DOCTYPE html>
|
|
7
|
+
<html lang="en">
|
|
8
|
+
<head>
|
|
9
|
+
<meta charset="UTF-8" />
|
|
10
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
11
|
+
<title>${props.title}</title>
|
|
12
|
+
<!-- STYLES -->
|
|
13
|
+
<!-- GLOBAL SCRIPT -->
|
|
14
|
+
</head>
|
|
15
|
+
<body>
|
|
16
|
+
<div id="layout">
|
|
17
|
+
${await props.children()}
|
|
18
|
+
</div>
|
|
19
|
+
<!-- SCRIPTS -->
|
|
20
|
+
</body>
|
|
21
|
+
</html>`;
|
|
22
|
+
}
|
|
23
|
+
async toANSI(props) {
|
|
24
|
+
return `\n${await props.children()}\n`;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
export { Layout };
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "youch",
|
|
3
|
+
"description": "Pretty print JavaScript errors on the Web and the Terminal",
|
|
4
|
+
"version": "4.1.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"build",
|
|
8
|
+
"!build/bin",
|
|
9
|
+
"!build/examples",
|
|
10
|
+
"!build/tests"
|
|
11
|
+
],
|
|
12
|
+
"main": "build/index.js",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": "./build/index.js",
|
|
15
|
+
"./types": "./build/src/types.js",
|
|
16
|
+
"./templates/*": "./build/src/templates/*/main.js"
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"pretest": "npm run lint",
|
|
20
|
+
"test": "c8 npm run quick:test",
|
|
21
|
+
"lint": "eslint .",
|
|
22
|
+
"format": "prettier --write .",
|
|
23
|
+
"typecheck": "tsc --noEmit",
|
|
24
|
+
"precompile": "npm run lint",
|
|
25
|
+
"copy:assets": "copyfiles --up=1 src/public/**/* build",
|
|
26
|
+
"compile": "tsdown && tsc --emitDeclarationOnly --declaration",
|
|
27
|
+
"build": "npm run compile && npm run copy:assets",
|
|
28
|
+
"version": "npm run build",
|
|
29
|
+
"prepublishOnly": "npm run build",
|
|
30
|
+
"release": "release-it",
|
|
31
|
+
"quick:test": "node --import=@poppinss/ts-exec --enable-source-maps bin/test.ts"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@adonisjs/eslint-config": "^3.0.0",
|
|
35
|
+
"@adonisjs/prettier-config": "^1.4.5",
|
|
36
|
+
"@adonisjs/tsconfig": "^2.0.0",
|
|
37
|
+
"@aws-sdk/client-s3": "^3.996.0",
|
|
38
|
+
"@aws-sdk/s3-request-presigner": "^3.996.0",
|
|
39
|
+
"@japa/assert": "^4.2.0",
|
|
40
|
+
"@japa/expect": "^3.0.7",
|
|
41
|
+
"@japa/expect-type": "^2.0.4",
|
|
42
|
+
"@japa/file-system": "^3.0.0",
|
|
43
|
+
"@japa/runner": "^5.3.0",
|
|
44
|
+
"@japa/snapshot": "^2.0.10",
|
|
45
|
+
"@poppinss/exception": "^1.2.3",
|
|
46
|
+
"@poppinss/ts-exec": "^1.4.4",
|
|
47
|
+
"@release-it/conventional-changelog": "^10.0.5",
|
|
48
|
+
"@types/jsdom": "^28.0.0",
|
|
49
|
+
"@types/node": "^25.3.0",
|
|
50
|
+
"@types/pg": "^8.16.0",
|
|
51
|
+
"axios": "^1.13.5",
|
|
52
|
+
"c8": "^10.1.3",
|
|
53
|
+
"copyfiles": "^2.4.1",
|
|
54
|
+
"eslint": "^10.0.2",
|
|
55
|
+
"flydrive": "^2.0.0",
|
|
56
|
+
"jsdom": "^28.1.0",
|
|
57
|
+
"pg": "^8.18.0",
|
|
58
|
+
"prettier": "^3.8.1",
|
|
59
|
+
"release-it": "^19.2.4",
|
|
60
|
+
"tsdown": "^0.20.3",
|
|
61
|
+
"typescript": "^5.9.3"
|
|
62
|
+
},
|
|
63
|
+
"dependencies": {
|
|
64
|
+
"@poppinss/colors": "^4.1.6",
|
|
65
|
+
"@poppinss/dumper": "^0.7.0",
|
|
66
|
+
"@speed-highlight/core": "^1.2.14",
|
|
67
|
+
"cookie-es": "^2.0.0",
|
|
68
|
+
"youch-core": "^0.3.3"
|
|
69
|
+
},
|
|
70
|
+
"homepage": "https://github.com/poppinss/youch#readme",
|
|
71
|
+
"repository": {
|
|
72
|
+
"type": "git",
|
|
73
|
+
"url": "git+https://github.com/poppinss/youch.git"
|
|
74
|
+
},
|
|
75
|
+
"bugs": {
|
|
76
|
+
"url": "https://github.com/poppinss/youch/issues"
|
|
77
|
+
},
|
|
78
|
+
"keywords": [],
|
|
79
|
+
"author": "Harminder Virk <virk@adonisjs.com>",
|
|
80
|
+
"license": "MIT",
|
|
81
|
+
"publishConfig": {
|
|
82
|
+
"access": "public",
|
|
83
|
+
"provenance": true
|
|
84
|
+
},
|
|
85
|
+
"tsdown": {
|
|
86
|
+
"entry": [
|
|
87
|
+
"index.ts",
|
|
88
|
+
"src/types.ts",
|
|
89
|
+
"src/templates/**/*.ts"
|
|
90
|
+
],
|
|
91
|
+
"outDir": "./build",
|
|
92
|
+
"clean": true,
|
|
93
|
+
"format": "esm",
|
|
94
|
+
"minify": "dce-only",
|
|
95
|
+
"fixedExtension": false,
|
|
96
|
+
"dts": false,
|
|
97
|
+
"treeshake": false,
|
|
98
|
+
"sourcemaps": false,
|
|
99
|
+
"target": "esnext"
|
|
100
|
+
},
|
|
101
|
+
"release-it": {
|
|
102
|
+
"git": {
|
|
103
|
+
"requireCleanWorkingDir": true,
|
|
104
|
+
"requireUpstream": true,
|
|
105
|
+
"commitMessage": "chore(release): ${version}",
|
|
106
|
+
"tagAnnotation": "v${version}",
|
|
107
|
+
"push": true,
|
|
108
|
+
"tagName": "v${version}"
|
|
109
|
+
},
|
|
110
|
+
"github": {
|
|
111
|
+
"release": true
|
|
112
|
+
},
|
|
113
|
+
"npm": {
|
|
114
|
+
"publish": true,
|
|
115
|
+
"skipChecks": true
|
|
116
|
+
},
|
|
117
|
+
"plugins": {
|
|
118
|
+
"@release-it/conventional-changelog": {
|
|
119
|
+
"preset": {
|
|
120
|
+
"name": "angular"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"c8": {
|
|
126
|
+
"reporter": [
|
|
127
|
+
"text",
|
|
128
|
+
"html"
|
|
129
|
+
],
|
|
130
|
+
"exclude": [
|
|
131
|
+
"tests/**"
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
"prettier": "@adonisjs/prettier-config"
|
|
135
|
+
}
|