nitro 3.0.260311-beta → 3.0.260415-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/dist/_build/common.mjs +630 -1602
- package/dist/_build/rolldown.mjs +0 -11
- package/dist/_build/rollup.mjs +0 -13
- package/dist/_build/vite.build.mjs +0 -2
- package/dist/_chunks/nitro.mjs +23 -216
- package/dist/_chunks/nitro2.mjs +0 -2
- package/dist/_chunks/nitro3.mjs +128 -121
- package/dist/_chunks/nitro4.mjs +127 -0
- package/dist/_chunks/utils.mjs +0 -7
- package/dist/_common.mjs +0 -2
- package/dist/_dev.d.mts +0 -3
- package/dist/_dev.mjs +0 -10
- package/dist/_libs/_.mjs +0 -1
- package/dist/_libs/_3.mjs +0 -1
- package/dist/_libs/_5.mjs +0 -1
- package/dist/_libs/_6.mjs +0 -2
- package/dist/_libs/_7.mjs +0 -3
- package/dist/_libs/c12+rc9.mjs +24 -22
- package/dist/_libs/c12+readdirp+chokidar.d.mts +0 -7
- package/dist/_libs/citty.mjs +134 -31
- package/dist/_libs/commondir+is-reference.mjs +2 -9
- package/dist/_libs/compatx.d.mts +0 -2
- package/dist/_libs/compatx.mjs +0 -2
- package/dist/_libs/esbuild.d.mts +0 -1
- package/dist/_libs/escape-string-regexp.mjs +0 -2
- package/dist/_libs/estree+pluginutils.d.mts +0 -5
- package/dist/_libs/estree-walker.mjs +3 -88
- package/dist/_libs/hasown+resolve+deepmerge.mjs +22 -85
- package/dist/_libs/httpxy.d.mts +9 -5
- package/dist/_libs/httpxy.mjs +284 -116
- package/dist/_libs/klona.mjs +0 -2
- package/dist/_libs/magic-string.d.mts +0 -2
- package/dist/_libs/mlly.d.mts +0 -2
- package/dist/_libs/nypm+tinyexec.mjs +111 -134
- package/dist/_libs/perfect-debounce.mjs +0 -20
- package/dist/_libs/pkg-types.d.mts +0 -3
- package/dist/_libs/plugin-alias.mjs +0 -2
- package/dist/_libs/plugin-inject.mjs +0 -2
- package/dist/_libs/plugin-json.mjs +0 -2
- package/dist/_libs/pluginutils.mjs +0 -26
- package/dist/_libs/readdirp+chokidar.mjs +0 -173
- package/dist/_libs/remapping.mjs +0 -2
- package/dist/_libs/resolve-uri+gen-mapping.mjs +0 -32
- package/dist/_libs/rou3.d.mts +0 -4
- package/dist/_libs/rou3.mjs +0 -29
- package/dist/_libs/std-env.d.mts +1 -3
- package/dist/_libs/tsconfck.mjs +0 -294
- package/dist/_libs/ultrahtml.mjs +0 -2
- package/dist/_libs/unimport+unplugin.mjs +1 -44
- package/dist/_libs/unplugin+unimport.d.mts +0 -7
- package/dist/_libs/unwasm.d.mts +0 -3
- package/dist/_presets.mjs +211 -80
- package/dist/builder.d.mts +1 -22
- package/dist/builder.mjs +0 -11
- package/dist/cli/_chunks/build.mjs +0 -2
- package/dist/cli/_chunks/common.mjs +0 -2
- package/dist/cli/_chunks/deploy.mjs +0 -3
- package/dist/cli/_chunks/dev.mjs +0 -5
- package/dist/cli/_chunks/docs.mjs +1 -3
- package/dist/cli/_chunks/list.mjs +0 -2
- package/dist/cli/_chunks/prepare.mjs +0 -2
- package/dist/cli/_chunks/preview.mjs +1 -4
- package/dist/cli/_chunks/run.mjs +0 -2
- package/dist/cli/_chunks/task.mjs +0 -2
- package/dist/cli/index.mjs +0 -2
- package/{skills/nitro/docs/docs/quick-start.md → dist/docs/0.docs/1.quick-start.md} +4 -4
- package/{skills/nitro/docs/docs/lifecycle.md → dist/docs/0.docs/10.lifecycle.md} +4 -4
- package/dist/docs/0.docs/11.openapi.md +291 -0
- package/{skills/nitro/docs/docs/plugins.md → dist/docs/0.docs/12.plugins.md} +2 -2
- package/{skills/nitro/docs/docs/tasks.md → dist/docs/0.docs/13.tasks.md} +6 -6
- package/dist/docs/0.docs/14.websocket.md +386 -0
- package/{skills/nitro/docs/docs/migration.md → dist/docs/0.docs/15.migration.md} +2 -4
- package/{skills/nitro/docs/docs/renderer.md → dist/docs/0.docs/2.renderer.md} +8 -8
- package/{skills/nitro/docs/docs/routing.md → dist/docs/0.docs/3.routing.md} +34 -34
- package/{skills/nitro/docs/docs/server-entry.md → dist/docs/0.docs/4.server-entry.md} +6 -6
- package/{skills/nitro/docs/docs/cache.md → dist/docs/0.docs/5.cache.md} +12 -12
- package/{skills/nitro/docs/docs/storage.md → dist/docs/0.docs/6.storage.md} +6 -6
- package/{skills/nitro/docs/docs/assets.md → dist/docs/0.docs/7.assets.md} +8 -8
- package/{skills/nitro/docs/docs/configuration.md → dist/docs/0.docs/8.configuration.md} +16 -16
- package/{skills/nitro/docs/docs/database.md → dist/docs/0.docs/9.database.md} +6 -6
- package/{skills/nitro/docs/deploy → dist/docs/1.deploy/0.index}/index.md +3 -3
- package/{skills/nitro/docs/deploy/providers/aws.md → dist/docs/1.deploy/2.providers/1.aws.md} +4 -4
- package/{skills/nitro/docs/deploy/providers/iis.md → dist/docs/1.deploy/2.providers/15.iis.md} +2 -2
- package/{skills/nitro/docs/deploy/providers/aws-amplify.md → dist/docs/1.deploy/2.providers/2.aws-amplify.md} +2 -2
- package/{skills/nitro/docs/deploy/providers/vercel.md → dist/docs/1.deploy/2.providers/21.vercel.md} +98 -7
- package/{skills/nitro/docs/deploy/providers/zephyr.md → dist/docs/1.deploy/2.providers/23.zephyr.md} +2 -2
- package/{skills/nitro/docs/deploy/providers/cloudflare.md → dist/docs/1.deploy/2.providers/5.cloudflare.md} +9 -15
- package/dist/docs/1.deploy/2.providers/8.edgeone.md +20 -0
- package/{skills/nitro/docs/config → dist/docs/2.config/0.index}/index.md +165 -91
- package/{skills/nitro/docs/examples/hono.md → dist/docs/3.examples/10.hono.md} +1 -1
- package/{skills/nitro/docs/examples/import-alias.md → dist/docs/3.examples/11.import-alias.md} +1 -4
- package/{skills/nitro/docs/examples/mono-jsx.md → dist/docs/3.examples/13.mono-jsx.md} +2 -2
- package/{skills/nitro/docs/examples/plugins.md → dist/docs/3.examples/15.plugins.md} +4 -4
- package/{skills/nitro/docs/examples/shiki.md → dist/docs/3.examples/19.shiki.md} +1 -1
- package/{skills/nitro/docs/examples/auto-imports.md → dist/docs/3.examples/2.auto-imports.md} +0 -1
- package/{skills/nitro/docs/examples/vite-nitro-plugin.md → dist/docs/3.examples/21.vite-nitro-plugin.md} +1 -1
- package/{skills/nitro/docs/examples/vite-rsc.md → dist/docs/3.examples/22.vite-rsc.md} +4 -4
- package/{skills/nitro/docs/examples/vite-ssr-html.md → dist/docs/3.examples/23.vite-ssr-html.md} +3 -3
- package/{skills/nitro/docs/examples/vite-ssr-preact.md → dist/docs/3.examples/24.vite-ssr-preact.md} +6 -6
- package/{skills/nitro/docs/examples/vite-ssr-react.md → dist/docs/3.examples/25.vite-ssr-react.md} +3 -3
- package/{skills/nitro/docs/examples/vite-ssr-solid.md → dist/docs/3.examples/26.vite-ssr-solid.md} +3 -3
- package/{skills/nitro/docs/examples/vite-ssr-tsr-react.md → dist/docs/3.examples/27.vite-ssr-tsr-react.md} +6 -6
- package/{skills/nitro/docs/examples/vite-ssr-tss-react.md → dist/docs/3.examples/28.vite-ssr-tss-react.md} +11 -11
- package/{skills/nitro/docs/examples/vite-ssr-vue-router.md → dist/docs/3.examples/29.vite-ssr-vue-router.md} +6 -5
- package/{skills/nitro/docs/examples/vite-trpc.md → dist/docs/3.examples/30.vite-trpc.md} +3 -3
- package/{skills/nitro/docs/examples/elysia.md → dist/docs/3.examples/6.elysia.md} +1 -1
- package/{skills/nitro/docs/examples/fastify.md → dist/docs/3.examples/8.fastify.md} +1 -1
- package/dist/docs/README.md +86 -0
- package/dist/node_modules/@speed-highlight/core/dist/index.js +4 -4
- package/dist/node_modules/@speed-highlight/core/dist/terminal.js +2 -2
- package/dist/node_modules/@speed-highlight/core/package.json +1 -1
- package/dist/node_modules/cookie-es/dist/index.mjs +299 -250
- package/dist/node_modules/cookie-es/package.json +26 -23
- package/dist/node_modules/defu/dist/defu.mjs +2 -2
- package/dist/node_modules/defu/package.json +33 -28
- package/dist/node_modules/rendu/dist/_chunks/libs/cookie-es.mjs +151 -0
- package/dist/node_modules/rendu/dist/index.mjs +5 -112
- package/dist/node_modules/rendu/package.json +25 -24
- package/dist/node_modules/youch/package.json +2 -2
- package/dist/presets/_nitro/runtime/nitro-dev.mjs +3 -1
- package/dist/presets/_nitro/runtime/service-worker.mjs +1 -1
- package/dist/presets/aws-lambda/runtime/_utils.mjs +6 -6
- package/dist/presets/azure/runtime/_utils.mjs +5 -5
- package/dist/presets/azure/runtime/azure-swa.mjs +5 -5
- package/dist/presets/bun/runtime/bun.mjs +5 -3
- package/dist/presets/cloudflare/runtime/_module-handler.mjs +1 -1
- package/dist/presets/cloudflare/runtime/cloudflare-durable.mjs +4 -4
- package/dist/presets/cloudflare/runtime/cloudflare-module.mjs +3 -3
- package/dist/presets/cloudflare/runtime/cloudflare-pages.mjs +2 -2
- package/dist/presets/cloudflare/runtime/plugin.dev.mjs +10 -21
- package/dist/presets/deno/runtime/deno-deploy.mjs +4 -4
- package/dist/presets/deno/runtime/deno-server.mjs +5 -3
- package/dist/presets/edgeone/runtime/edgeone.mjs +10 -0
- package/dist/presets/netlify/runtime/netlify-edge.mjs +2 -2
- package/dist/presets/node/runtime/node-cluster.mjs +2 -2
- package/dist/presets/node/runtime/node-middleware.mjs +1 -1
- package/dist/presets/node/runtime/node-server.mjs +5 -3
- package/dist/presets/stormkit/runtime/stormkit.mjs +1 -1
- package/dist/presets/vercel/runtime/cron-handler.mjs +1 -1
- package/dist/presets/vercel/runtime/queue-handler.mjs +21 -0
- package/dist/presets/vercel/runtime/vercel.node.mjs +3 -3
- package/dist/presets/vercel/runtime/vercel.web.mjs +1 -1
- package/dist/presets/winterjs/runtime/winterjs.mjs +10 -10
- package/dist/runtime/internal/app.mjs +12 -11
- package/dist/runtime/internal/context.mjs +1 -9
- package/dist/runtime/internal/error/dev.mjs +10 -10
- package/dist/runtime/internal/route-rules.d.mts +3 -1
- package/dist/runtime/internal/route-rules.mjs +9 -7
- package/dist/runtime/internal/routes/dev-tasks.mjs +13 -12
- package/dist/runtime/internal/routes/openapi.mjs +2 -2
- package/dist/runtime/internal/routes/scalar.mjs +3 -3
- package/dist/runtime/internal/routes/swagger.mjs +7 -4
- package/dist/runtime/internal/runtime-config.mjs +2 -2
- package/dist/runtime/internal/task.mjs +5 -5
- package/dist/runtime/meta.d.mts +1 -0
- package/dist/runtime/meta.mjs +1 -0
- package/dist/runtime/nitro.mjs +3 -3
- package/dist/runtime/virtual/renderer-template.mjs +1 -1
- package/dist/runtime/virtual/tracing.d.mts +5 -0
- package/dist/runtime/virtual/tracing.mjs +1 -0
- package/dist/types/index.d.mts +155 -86
- package/dist/vite.d.mts +0 -5
- package/dist/vite.mjs +57 -28
- package/lib/tsconfig.json +3 -5
- package/package.json +56 -54
- package/skills/nitro/SKILL.md +0 -10
- package/skills/nitro/docs/TOC.md +0 -83
- package/skills/nitro/docs/_navigation.json +0 -679
- /package/{skills/nitro/docs/docs → dist/docs/0.docs/0.index}/index.md +0 -0
- /package/{skills/nitro/docs/docs/nightly.md → dist/docs/0.docs/16.nightly.md} +0 -0
- /package/{skills/nitro/docs/deploy/runtimes/node.md → dist/docs/1.deploy/1.runtimes/0.node.md} +0 -0
- /package/{skills/nitro/docs/deploy/runtimes/bun.md → dist/docs/1.deploy/1.runtimes/1.bun.md} +0 -0
- /package/{skills/nitro/docs/deploy/runtimes/deno.md → dist/docs/1.deploy/1.runtimes/2.deno.md} +0 -0
- /package/{skills/nitro/docs/deploy/providers/alwaysdata.md → dist/docs/1.deploy/2.providers/0.alwaysdata.md} +0 -0
- /package/{skills/nitro/docs/deploy/providers/flightcontrol.md → dist/docs/1.deploy/2.providers/10.flightcontrol.md} +0 -0
- /package/{skills/nitro/docs/deploy/providers/genezio.md → dist/docs/1.deploy/2.providers/11.genezio.md} +0 -0
- /package/{skills/nitro/docs/deploy/providers/github-pages.md → dist/docs/1.deploy/2.providers/12.github-pages.md} +0 -0
- /package/{skills/nitro/docs/deploy/providers/gitlab-pages.md → dist/docs/1.deploy/2.providers/13.gitlab-pages.md} +0 -0
- /package/{skills/nitro/docs/deploy/providers/heroku.md → dist/docs/1.deploy/2.providers/14.heroku.md} +0 -0
- /package/{skills/nitro/docs/deploy/providers/koyeb.md → dist/docs/1.deploy/2.providers/16.koyeb.md} +0 -0
- /package/{skills/nitro/docs/deploy/providers/netlify.md → dist/docs/1.deploy/2.providers/17.netlify.md} +0 -0
- /package/{skills/nitro/docs/deploy/providers/platform-sh.md → dist/docs/1.deploy/2.providers/18.platform-sh.md} +0 -0
- /package/{skills/nitro/docs/deploy/providers/render.md → dist/docs/1.deploy/2.providers/19.render.md} +0 -0
- /package/{skills/nitro/docs/deploy/providers/stormkit.md → dist/docs/1.deploy/2.providers/20.stormkit.md} +0 -0
- /package/{skills/nitro/docs/deploy/providers/zeabur.md → dist/docs/1.deploy/2.providers/22.zeabur.md} +0 -0
- /package/{skills/nitro/docs/deploy/providers/zerops.md → dist/docs/1.deploy/2.providers/24.zerops.md} +0 -0
- /package/{skills/nitro/docs/deploy/providers/azure.md → dist/docs/1.deploy/2.providers/3.azure.md} +0 -0
- /package/{skills/nitro/docs/deploy/providers/cleavr.md → dist/docs/1.deploy/2.providers/4.cleavr.md} +0 -0
- /package/{skills/nitro/docs/deploy/providers/deno-deploy.md → dist/docs/1.deploy/2.providers/6.deno-deploy.md} +0 -0
- /package/{skills/nitro/docs/deploy/providers/digitalocean.md → dist/docs/1.deploy/2.providers/7.digitalocean.md} +0 -0
- /package/{skills/nitro/docs/deploy/providers/firebase.md → dist/docs/1.deploy/2.providers/9.firebase.md} +0 -0
- /package/{skills/nitro/docs/examples → dist/docs/3.examples/0.index}/index.md +0 -0
- /package/{skills/nitro/docs/examples/api-routes.md → dist/docs/3.examples/1.api-routes.md} +0 -0
- /package/{skills/nitro/docs/examples/middleware.md → dist/docs/3.examples/12.middleware.md} +0 -0
- /package/{skills/nitro/docs/examples/nano-jsx.md → dist/docs/3.examples/14.nano-jsx.md} +0 -0
- /package/{skills/nitro/docs/examples/renderer.md → dist/docs/3.examples/16.renderer.md} +0 -0
- /package/{skills/nitro/docs/examples/runtime-config.md → dist/docs/3.examples/17.runtime-config.md} +0 -0
- /package/{skills/nitro/docs/examples/server-fetch.md → dist/docs/3.examples/18.server-fetch.md} +0 -0
- /package/{skills/nitro/docs/examples/virtual-routes.md → dist/docs/3.examples/20.virtual-routes.md} +0 -0
- /package/{skills/nitro/docs/examples/cached-handler.md → dist/docs/3.examples/3.cached-handler.md} +0 -0
- /package/{skills/nitro/docs/examples/websocket.md → dist/docs/3.examples/31.websocket.md} +0 -0
- /package/{skills/nitro/docs/examples/custom-error-handler.md → dist/docs/3.examples/4.custom-error-handler.md} +0 -0
- /package/{skills/nitro/docs/examples/database.md → dist/docs/3.examples/5.database.md} +0 -0
- /package/{skills/nitro/docs/examples/express.md → dist/docs/3.examples/7.express.md} +0 -0
- /package/{skills/nitro/docs/examples/hello-world.md → dist/docs/3.examples/9.hello-world.md} +0 -0
- /package/{skills/nitro → dist}/docs/index.md +0 -0
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { i as __toESM, r as __require, t as __commonJSMin } from "../_common.mjs";
|
|
2
2
|
import { i as createFilter } from "../_build/common.mjs";
|
|
3
3
|
import { builtinModules } from "module";
|
|
4
|
-
import
|
|
4
|
+
import fs, { realpathSync } from "fs";
|
|
5
5
|
import path, { dirname, extname, normalize, resolve, sep } from "path";
|
|
6
6
|
import { fileURLToPath, pathToFileURL } from "url";
|
|
7
7
|
import { promisify } from "util";
|
|
8
|
-
//#region node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js
|
|
9
8
|
var require_cjs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
10
9
|
var isMergeableObject = function isMergeableObject(value) {
|
|
11
10
|
return isNonNullObject(value) && !isSpecial(value);
|
|
@@ -85,8 +84,6 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
85
84
|
};
|
|
86
85
|
module.exports = deepmerge;
|
|
87
86
|
}));
|
|
88
|
-
//#endregion
|
|
89
|
-
//#region node_modules/.pnpm/is-module@1.0.0/node_modules/is-module/index.js
|
|
90
87
|
var require_is_module = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
91
88
|
var ES6ImportExportRegExp = /(?:^\s*|[}{\(\);,\n]\s*)(import\s+['"]|(import|module)\s+[^"'\(\)\n;]+\s+from\s+['"]|export\s+(\*|\{|default|function|var|const|let|[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*))/;
|
|
92
89
|
var ES6AliasRegExp = /(?:^\s*|[}{\(\);,\n]\s*)(export\s*\*\s*from\s*(?:'([^']+)'|"([^"]+)"))/;
|
|
@@ -94,8 +91,6 @@ var require_is_module = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
94
91
|
return ES6ImportExportRegExp.test(sauce) || ES6AliasRegExp.test(sauce);
|
|
95
92
|
};
|
|
96
93
|
}));
|
|
97
|
-
//#endregion
|
|
98
|
-
//#region node_modules/.pnpm/resolve@1.22.11/node_modules/resolve/lib/homedir.js
|
|
99
94
|
var require_homedir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
100
95
|
module.exports = __require("os").homedir || function homedir() {
|
|
101
96
|
var home = process.env.HOME;
|
|
@@ -106,8 +101,6 @@ var require_homedir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
106
101
|
return home || null;
|
|
107
102
|
};
|
|
108
103
|
}));
|
|
109
|
-
//#endregion
|
|
110
|
-
//#region node_modules/.pnpm/resolve@1.22.11/node_modules/resolve/lib/caller.js
|
|
111
104
|
var require_caller = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
112
105
|
module.exports = function() {
|
|
113
106
|
var origPrepareStackTrace = Error.prepareStackTrace;
|
|
@@ -119,8 +112,6 @@ var require_caller = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
119
112
|
return stack[2].getFileName();
|
|
120
113
|
};
|
|
121
114
|
}));
|
|
122
|
-
//#endregion
|
|
123
|
-
//#region node_modules/.pnpm/path-parse@1.0.7/node_modules/path-parse/index.js
|
|
124
115
|
var require_path_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
125
116
|
var isWindows = process.platform === "win32";
|
|
126
117
|
var splitWindowsRe = /^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/;
|
|
@@ -162,8 +153,6 @@ var require_path_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
162
153
|
module.exports.posix = posix.parse;
|
|
163
154
|
module.exports.win32 = win32.parse;
|
|
164
155
|
}));
|
|
165
|
-
//#endregion
|
|
166
|
-
//#region node_modules/.pnpm/resolve@1.22.11/node_modules/resolve/lib/node-modules-paths.js
|
|
167
156
|
var require_node_modules_paths = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
168
157
|
var path$3 = __require("path");
|
|
169
158
|
var parse = path$3.parse || require_path_parse();
|
|
@@ -194,21 +183,11 @@ var require_node_modules_paths = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
194
183
|
return opts && opts.paths ? dirs.concat(opts.paths) : dirs;
|
|
195
184
|
};
|
|
196
185
|
}));
|
|
197
|
-
//#endregion
|
|
198
|
-
//#region node_modules/.pnpm/resolve@1.22.11/node_modules/resolve/lib/normalize-options.js
|
|
199
186
|
var require_normalize_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
200
187
|
module.exports = function(x, opts) {
|
|
201
|
-
/**
|
|
202
|
-
* This file is purposefully a passthrough. It's expected that third-party
|
|
203
|
-
* environments will override it at runtime in order to inject special logic
|
|
204
|
-
* into `resolve` (by manipulating the options). One such example is the PnP
|
|
205
|
-
* code path in Yarn.
|
|
206
|
-
*/
|
|
207
188
|
return opts || {};
|
|
208
189
|
};
|
|
209
190
|
}));
|
|
210
|
-
//#endregion
|
|
211
|
-
//#region node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js
|
|
212
191
|
var require_implementation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
213
192
|
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
214
193
|
var toStr = Object.prototype.toString;
|
|
@@ -259,22 +238,15 @@ var require_implementation = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
259
238
|
return bound;
|
|
260
239
|
};
|
|
261
240
|
}));
|
|
262
|
-
//#endregion
|
|
263
|
-
//#region node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js
|
|
264
241
|
var require_function_bind = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
265
242
|
var implementation = require_implementation();
|
|
266
243
|
module.exports = Function.prototype.bind || implementation;
|
|
267
244
|
}));
|
|
268
|
-
//#endregion
|
|
269
|
-
//#region node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js
|
|
270
245
|
var require_hasown = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
271
246
|
var call = Function.prototype.call;
|
|
272
247
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
273
|
-
/** @type {import('.')} */
|
|
274
248
|
module.exports = require_function_bind().call(call, $hasOwn);
|
|
275
249
|
}));
|
|
276
|
-
//#endregion
|
|
277
|
-
//#region node_modules/.pnpm/is-core-module@2.16.1/node_modules/is-core-module/core.json
|
|
278
250
|
var require_core$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
279
251
|
module.exports = {
|
|
280
252
|
"assert": true,
|
|
@@ -447,8 +419,6 @@ var require_core$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
447
419
|
"node:zlib": [">= 14.18 && < 15", ">= 16"]
|
|
448
420
|
};
|
|
449
421
|
}));
|
|
450
|
-
//#endregion
|
|
451
|
-
//#region node_modules/.pnpm/is-core-module@2.16.1/node_modules/is-core-module/index.js
|
|
452
422
|
var require_is_core_module = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
453
423
|
var hasOwn = require_hasown();
|
|
454
424
|
function specifierIncluded(current, specifier) {
|
|
@@ -487,17 +457,15 @@ var require_is_core_module = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
487
457
|
return hasOwn(data, x) && versionIncluded(nodeVersion, data[x]);
|
|
488
458
|
};
|
|
489
459
|
}));
|
|
490
|
-
//#endregion
|
|
491
|
-
//#region node_modules/.pnpm/resolve@1.22.11/node_modules/resolve/lib/async.js
|
|
492
460
|
var require_async = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
493
|
-
var fs$
|
|
461
|
+
var fs$2 = __require("fs");
|
|
494
462
|
var getHomedir = require_homedir();
|
|
495
463
|
var path$2 = __require("path");
|
|
496
464
|
var caller = require_caller();
|
|
497
465
|
var nodeModulesPaths = require_node_modules_paths();
|
|
498
466
|
var normalizeOptions = require_normalize_options();
|
|
499
467
|
var isCore = require_is_core_module();
|
|
500
|
-
var realpathFS = process.platform !== "win32" && fs$
|
|
468
|
+
var realpathFS = process.platform !== "win32" && fs$2.realpath && typeof fs$2.realpath.native === "function" ? fs$2.realpath.native : fs$2.realpath;
|
|
501
469
|
var relativePathRegex = /^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/;
|
|
502
470
|
var windowsDriveRegex = /^\w:[/\\]*$/;
|
|
503
471
|
var nodeModulesRegex = /[/\\]node_modules[/\\]*$/;
|
|
@@ -506,14 +474,14 @@ var require_async = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
506
474
|
return [path$2.join(homedir, ".node_modules"), path$2.join(homedir, ".node_libraries")];
|
|
507
475
|
};
|
|
508
476
|
var defaultIsFile = function isFile(file, cb) {
|
|
509
|
-
fs$
|
|
477
|
+
fs$2.stat(file, function(err, stat) {
|
|
510
478
|
if (!err) return cb(null, stat.isFile() || stat.isFIFO());
|
|
511
479
|
if (err.code === "ENOENT" || err.code === "ENOTDIR") return cb(null, false);
|
|
512
480
|
return cb(err);
|
|
513
481
|
});
|
|
514
482
|
};
|
|
515
483
|
var defaultIsDir = function isDirectory(dir, cb) {
|
|
516
|
-
fs$
|
|
484
|
+
fs$2.stat(dir, function(err, stat) {
|
|
517
485
|
if (!err) return cb(null, stat.isDirectory());
|
|
518
486
|
if (err.code === "ENOENT" || err.code === "ENOTDIR") return cb(null, false);
|
|
519
487
|
return cb(err);
|
|
@@ -560,7 +528,7 @@ var require_async = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
560
528
|
opts = normalizeOptions(x, opts);
|
|
561
529
|
var isFile = opts.isFile || defaultIsFile;
|
|
562
530
|
var isDirectory = opts.isDirectory || defaultIsDir;
|
|
563
|
-
var readFile = opts.readFile || fs$
|
|
531
|
+
var readFile = opts.readFile || fs$2.readFile;
|
|
564
532
|
var realpath = opts.realpath || defaultRealpath;
|
|
565
533
|
var readPackage = opts.readPackage || defaultReadPackage;
|
|
566
534
|
if (opts.readFile && opts.readPackage) {
|
|
@@ -735,8 +703,6 @@ var require_async = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
735
703
|
}
|
|
736
704
|
};
|
|
737
705
|
}));
|
|
738
|
-
//#endregion
|
|
739
|
-
//#region node_modules/.pnpm/resolve@1.22.11/node_modules/resolve/lib/core.json
|
|
740
706
|
var require_core$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
741
707
|
module.exports = {
|
|
742
708
|
"assert": true,
|
|
@@ -909,8 +875,6 @@ var require_core$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
909
875
|
"node:zlib": [">= 14.18 && < 15", ">= 16"]
|
|
910
876
|
};
|
|
911
877
|
}));
|
|
912
|
-
//#endregion
|
|
913
|
-
//#region node_modules/.pnpm/resolve@1.22.11/node_modules/resolve/lib/core.js
|
|
914
878
|
var require_core = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
915
879
|
var isCoreModule = require_is_core_module();
|
|
916
880
|
var data = require_core$1();
|
|
@@ -918,25 +882,21 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
918
882
|
for (var mod in data) if (Object.prototype.hasOwnProperty.call(data, mod)) core[mod] = isCoreModule(mod);
|
|
919
883
|
module.exports = core;
|
|
920
884
|
}));
|
|
921
|
-
//#endregion
|
|
922
|
-
//#region node_modules/.pnpm/resolve@1.22.11/node_modules/resolve/lib/is-core.js
|
|
923
885
|
var require_is_core = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
924
886
|
var isCoreModule = require_is_core_module();
|
|
925
887
|
module.exports = function isCore(x) {
|
|
926
888
|
return isCoreModule(x);
|
|
927
889
|
};
|
|
928
890
|
}));
|
|
929
|
-
//#endregion
|
|
930
|
-
//#region node_modules/.pnpm/resolve@1.22.11/node_modules/resolve/lib/sync.js
|
|
931
891
|
var require_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
932
892
|
var isCore = require_is_core_module();
|
|
933
|
-
var fs = __require("fs");
|
|
893
|
+
var fs$1 = __require("fs");
|
|
934
894
|
var path$1 = __require("path");
|
|
935
895
|
var getHomedir = require_homedir();
|
|
936
896
|
var caller = require_caller();
|
|
937
897
|
var nodeModulesPaths = require_node_modules_paths();
|
|
938
898
|
var normalizeOptions = require_normalize_options();
|
|
939
|
-
var realpathFS = process.platform !== "win32" && fs.realpathSync && typeof fs.realpathSync.native === "function" ? fs.realpathSync.native : fs.realpathSync;
|
|
899
|
+
var realpathFS = process.platform !== "win32" && fs$1.realpathSync && typeof fs$1.realpathSync.native === "function" ? fs$1.realpathSync.native : fs$1.realpathSync;
|
|
940
900
|
var relativePathRegex = /^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/;
|
|
941
901
|
var windowsDriveRegex = /^\w:[/\\]*$/;
|
|
942
902
|
var nodeModulesRegex = /[/\\]node_modules[/\\]*$/;
|
|
@@ -946,7 +906,7 @@ var require_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
946
906
|
};
|
|
947
907
|
var defaultIsFile = function isFile(file) {
|
|
948
908
|
try {
|
|
949
|
-
var stat = fs.statSync(file, { throwIfNoEntry: false });
|
|
909
|
+
var stat = fs$1.statSync(file, { throwIfNoEntry: false });
|
|
950
910
|
} catch (e) {
|
|
951
911
|
if (e && (e.code === "ENOENT" || e.code === "ENOTDIR")) return false;
|
|
952
912
|
throw e;
|
|
@@ -955,7 +915,7 @@ var require_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
955
915
|
};
|
|
956
916
|
var defaultIsDir = function isDirectory(dir) {
|
|
957
917
|
try {
|
|
958
|
-
var stat = fs.statSync(dir, { throwIfNoEntry: false });
|
|
918
|
+
var stat = fs$1.statSync(dir, { throwIfNoEntry: false });
|
|
959
919
|
} catch (e) {
|
|
960
920
|
if (e && (e.code === "ENOENT" || e.code === "ENOTDIR")) return false;
|
|
961
921
|
throw e;
|
|
@@ -989,7 +949,7 @@ var require_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
989
949
|
if (typeof x !== "string") throw new TypeError("Path must be a string.");
|
|
990
950
|
var opts = normalizeOptions(x, options);
|
|
991
951
|
var isFile = opts.isFile || defaultIsFile;
|
|
992
|
-
var readFileSync = opts.readFileSync || fs.readFileSync;
|
|
952
|
+
var readFileSync = opts.readFileSync || fs$1.readFileSync;
|
|
993
953
|
var isDirectory = opts.isDirectory || defaultIsDir;
|
|
994
954
|
var realpathSync = opts.realpathSync || defaultRealpathSync;
|
|
995
955
|
var readPackageSync = opts.readPackageSync || defaultReadPackageSync;
|
|
@@ -1081,8 +1041,6 @@ var require_sync = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1081
1041
|
}
|
|
1082
1042
|
};
|
|
1083
1043
|
}));
|
|
1084
|
-
//#endregion
|
|
1085
|
-
//#region node_modules/.pnpm/resolve@1.22.11/node_modules/resolve/index.js
|
|
1086
1044
|
var require_resolve = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1087
1045
|
var async = require_async();
|
|
1088
1046
|
async.core = require_core();
|
|
@@ -1090,26 +1048,24 @@ var require_resolve = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1090
1048
|
async.sync = require_sync();
|
|
1091
1049
|
module.exports = async;
|
|
1092
1050
|
}));
|
|
1093
|
-
//#endregion
|
|
1094
|
-
//#region node_modules/.pnpm/@rollup+plugin-node-resolve@16.0.3_rollup@4.59.0/node_modules/@rollup/plugin-node-resolve/dist/es/index.js
|
|
1095
1051
|
var import_cjs = /* @__PURE__ */ __toESM(require_cjs(), 1);
|
|
1096
1052
|
var import_is_module = /* @__PURE__ */ __toESM(require_is_module(), 1);
|
|
1097
1053
|
var import_resolve = /* @__PURE__ */ __toESM(require_resolve(), 1);
|
|
1098
1054
|
var version = "16.0.3";
|
|
1099
1055
|
var peerDependencies = { rollup: "^2.78.0||^3.0.0||^4.0.0" };
|
|
1100
|
-
promisify(
|
|
1101
|
-
const readFile$1 = promisify(
|
|
1102
|
-
const realpath = promisify(
|
|
1103
|
-
const stat = promisify(
|
|
1056
|
+
promisify(fs.access);
|
|
1057
|
+
const readFile$1 = promisify(fs.readFile);
|
|
1058
|
+
const realpath$1 = promisify(fs.realpath);
|
|
1059
|
+
const stat$1 = promisify(fs.stat);
|
|
1104
1060
|
async function fileExists(filePath) {
|
|
1105
1061
|
try {
|
|
1106
|
-
return (await stat(filePath)).isFile();
|
|
1062
|
+
return (await stat$1(filePath)).isFile();
|
|
1107
1063
|
} catch {
|
|
1108
1064
|
return false;
|
|
1109
1065
|
}
|
|
1110
1066
|
}
|
|
1111
1067
|
async function resolveSymlink(path) {
|
|
1112
|
-
return await fileExists(path) ? realpath(path) : path;
|
|
1068
|
+
return await fileExists(path) ? realpath$1(path) : path;
|
|
1113
1069
|
}
|
|
1114
1070
|
const onError = (error) => {
|
|
1115
1071
|
if (error.code === "ENOENT") return false;
|
|
@@ -1133,14 +1089,14 @@ const makeCache = (fn) => {
|
|
|
1133
1089
|
};
|
|
1134
1090
|
const isDirCached = makeCache(async (file) => {
|
|
1135
1091
|
try {
|
|
1136
|
-
return (await stat(file)).isDirectory();
|
|
1092
|
+
return (await stat$1(file)).isDirectory();
|
|
1137
1093
|
} catch (error) {
|
|
1138
1094
|
return onError(error);
|
|
1139
1095
|
}
|
|
1140
1096
|
});
|
|
1141
1097
|
const isFileCached = makeCache(async (file) => {
|
|
1142
1098
|
try {
|
|
1143
|
-
return (await stat(file)).isFile();
|
|
1099
|
+
return (await stat$1(file)).isFile();
|
|
1144
1100
|
} catch (error) {
|
|
1145
1101
|
return onError(error);
|
|
1146
1102
|
}
|
|
@@ -1265,7 +1221,7 @@ async function findPackageJson(base, moduleDirs) {
|
|
|
1265
1221
|
while (current !== root && !isModuleDir(current, moduleDirs)) {
|
|
1266
1222
|
const pkgJsonPath = path.join(current, "package.json");
|
|
1267
1223
|
if (await fileExists(pkgJsonPath)) {
|
|
1268
|
-
const pkgJsonString =
|
|
1224
|
+
const pkgJsonString = fs.readFileSync(pkgJsonPath, "utf-8");
|
|
1269
1225
|
return {
|
|
1270
1226
|
pkgJson: JSON.parse(pkgJsonString),
|
|
1271
1227
|
pkgPath: current,
|
|
@@ -1283,21 +1239,12 @@ function isUrl(str) {
|
|
|
1283
1239
|
return false;
|
|
1284
1240
|
}
|
|
1285
1241
|
}
|
|
1286
|
-
/**
|
|
1287
|
-
* Conditions is an export object where all keys are conditions like 'node' (aka do not with '.')
|
|
1288
|
-
*/
|
|
1289
1242
|
function isConditions(exports) {
|
|
1290
1243
|
return typeof exports === "object" && Object.keys(exports).every((k) => !k.startsWith("."));
|
|
1291
1244
|
}
|
|
1292
|
-
/**
|
|
1293
|
-
* Mappings is an export object where all keys start with '.
|
|
1294
|
-
*/
|
|
1295
1245
|
function isMappings(exports) {
|
|
1296
1246
|
return typeof exports === "object" && !isConditions(exports);
|
|
1297
1247
|
}
|
|
1298
|
-
/**
|
|
1299
|
-
* Check for mixed exports, which are exports where some keys start with '.' and some do not
|
|
1300
|
-
*/
|
|
1301
1248
|
function isMixedExports(exports) {
|
|
1302
1249
|
const keys = Object.keys(exports);
|
|
1303
1250
|
return keys.some((k) => k.startsWith(".")) && keys.some((k) => !k.startsWith("."));
|
|
@@ -1325,9 +1272,6 @@ var InvalidPackageTargetError = class extends ResolveError {
|
|
|
1325
1272
|
super(createErrorMsg(context, reason));
|
|
1326
1273
|
}
|
|
1327
1274
|
};
|
|
1328
|
-
/**
|
|
1329
|
-
* Check for invalid path segments
|
|
1330
|
-
*/
|
|
1331
1275
|
function includesInvalidSegments(pathSegments, moduleDirs) {
|
|
1332
1276
|
const invalidSegments = [
|
|
1333
1277
|
"",
|
|
@@ -1392,9 +1336,6 @@ async function resolvePackageTarget(context, { target, patternMatch, isImports }
|
|
|
1392
1336
|
if (target === null) return null;
|
|
1393
1337
|
throw new InvalidPackageTargetError(context, `Invalid exports field.`);
|
|
1394
1338
|
}
|
|
1395
|
-
/**
|
|
1396
|
-
* Implementation of Node's `PATTERN_KEY_COMPARE` function
|
|
1397
|
-
*/
|
|
1398
1339
|
function nodePatternKeyCompare(keyA, keyB) {
|
|
1399
1340
|
const baseLengthA = keyA.includes("*") ? keyA.indexOf("*") + 1 : keyA.length;
|
|
1400
1341
|
const rval = (keyB.includes("*") ? keyB.indexOf("*") + 1 : keyB.length) - baseLengthA;
|
|
@@ -1430,9 +1371,6 @@ async function resolvePackageImportsExports(context, { matchKey, matchObj, isImp
|
|
|
1430
1371
|
}
|
|
1431
1372
|
throw new InvalidModuleSpecifierError(context, isImports);
|
|
1432
1373
|
}
|
|
1433
|
-
/**
|
|
1434
|
-
* Implementation of PACKAGE_EXPORTS_RESOLVE
|
|
1435
|
-
*/
|
|
1436
1374
|
async function resolvePackageExports(context, subpath, exports) {
|
|
1437
1375
|
if (isMixedExports(exports)) throw new InvalidConfigurationError(context, "All keys must either start with ./, or without one.");
|
|
1438
1376
|
if (subpath === ".") {
|
|
@@ -1481,7 +1419,7 @@ async function resolvePackageImports({ importSpecifier, importer, moduleDirs, co
|
|
|
1481
1419
|
});
|
|
1482
1420
|
}
|
|
1483
1421
|
const resolveImportPath = promisify(import_resolve.default);
|
|
1484
|
-
const readFile = promisify(
|
|
1422
|
+
const readFile = promisify(fs.readFile);
|
|
1485
1423
|
async function getPackageJson(importer, pkgName, resolveOptions, moduleDirectories) {
|
|
1486
1424
|
if (importer) {
|
|
1487
1425
|
const selfPackageJsonResult = await findPackageJson(importer, moduleDirectories);
|
|
@@ -1863,7 +1801,7 @@ function nodeResolve(opts = {}) {
|
|
|
1863
1801
|
browserMapCache.set(location, packageBrowserField);
|
|
1864
1802
|
}
|
|
1865
1803
|
if (hasPackageEntry && !preserveSymlinks) {
|
|
1866
|
-
if (await fileExists(location)) location = await realpath(location);
|
|
1804
|
+
if (await fileExists(location)) location = await realpath$1(location);
|
|
1867
1805
|
}
|
|
1868
1806
|
idToPackageInfo.set(location, packageInfo);
|
|
1869
1807
|
if (hasPackageEntry) {
|
|
@@ -1945,5 +1883,4 @@ function nodeResolve(opts = {}) {
|
|
|
1945
1883
|
}
|
|
1946
1884
|
};
|
|
1947
1885
|
}
|
|
1948
|
-
//#endregion
|
|
1949
1886
|
export { nodeResolve as t };
|
package/dist/_libs/httpxy.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { EventEmitter } from "node:events";
|
|
2
2
|
import * as stream from "node:stream";
|
|
3
3
|
import http, { IncomingMessage } from "node:http";
|
|
4
|
+
import http2 from "node:http2";
|
|
4
5
|
import { Socket } from "node:net";
|
|
5
|
-
|
|
6
|
-
//#region node_modules/.pnpm/httpxy@0.3.1/node_modules/httpxy/dist/index.d.ts
|
|
6
|
+
//#region src/types.d.ts
|
|
7
7
|
interface ProxyTargetDetailed {
|
|
8
8
|
host?: string;
|
|
9
9
|
port?: number | string;
|
|
@@ -27,7 +27,11 @@ interface ProxyServerOptions {
|
|
|
27
27
|
forward?: ProxyTarget;
|
|
28
28
|
/** Object to be passed to http(s).request. */
|
|
29
29
|
agent?: any;
|
|
30
|
-
/**
|
|
30
|
+
/** Enable HTTP/2 listener, default is `false` */
|
|
31
|
+
http2?: boolean;
|
|
32
|
+
/** Object to be passed to https.createServer()
|
|
33
|
+
* or http2.createSecureServer() if the `http2` option is enabled
|
|
34
|
+
*/
|
|
31
35
|
ssl?: any;
|
|
32
36
|
/** If you want to proxy websockets. */
|
|
33
37
|
ws?: boolean;
|
|
@@ -77,6 +81,6 @@ interface ProxyServerOptions {
|
|
|
77
81
|
followRedirects?: boolean | number;
|
|
78
82
|
/** Buffer */
|
|
79
83
|
buffer?: stream.Stream;
|
|
80
|
-
}
|
|
81
|
-
//#
|
|
84
|
+
} //#endregion
|
|
85
|
+
//#region src/middleware/_utils.d.ts
|
|
82
86
|
export { ProxyServerOptions as t };
|