nitro-nightly 3.0.1-alpha.1 → 3.0.1-alpha.2
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/README.md +2 -0
- package/dist/_build/common.mjs +24924 -52
- package/dist/_build/rolldown.mjs +29 -63
- package/dist/_build/rollup.mjs +22 -110
- package/dist/_build/vite.build.mjs +3 -43
- package/dist/{_dev.mjs → _chunks/dev.mjs} +45 -43
- package/dist/_chunks/{B-D1JOIz.mjs → nitro.mjs} +144 -308
- package/dist/_chunks/nitro2.mjs +101 -0
- package/dist/_chunks/utils.mjs +254 -0
- package/dist/{_chunks/Bqks5huO.mjs → _common.mjs} +24 -10
- package/dist/_libs/c12+giget+readdirp+chokidar.d.mts +214 -0
- package/dist/_libs/citty.mjs +140 -110
- package/dist/_libs/{plugin-commonjs.mjs → commondir+is-reference.mjs} +59 -250
- package/dist/_libs/compatx.d.mts +47 -0
- package/dist/_libs/confbox.mjs +388 -799
- package/dist/_libs/esbuild.d.mts +20 -0
- package/dist/_libs/estree-walker.mjs +1 -144
- package/dist/_libs/{plugin-node-resolve.mjs → hasown+resolve+deepmerge.mjs} +497 -78
- package/dist/_libs/httpxy.d.mts +79 -0
- package/dist/_libs/httpxy.mjs +6 -1
- package/dist/_libs/magic-string.d.mts +220 -0
- package/dist/_libs/mlly.d.mts +57 -0
- package/dist/_libs/nypm+giget+tinyexec.mjs +3603 -0
- package/dist/_libs/pkg-types.d.mts +23 -0
- package/dist/_libs/plugin-alias.mjs +4 -2
- package/dist/_libs/plugin-inject.mjs +5 -5
- package/dist/_libs/plugin-json.mjs +2 -2
- package/dist/_libs/pluginutils+plugin-commonjs.d.mts +241 -0
- package/dist/_libs/{vite-plugin-fullstack.mjs → pluginutils.mjs} +244 -153
- package/dist/_libs/rc9+c12+dotenv.mjs +972 -0
- package/dist/_libs/{chokidar.mjs → readdirp+chokidar.mjs} +237 -187
- package/dist/_libs/remapping.mjs +1 -1
- package/dist/_libs/{gen-mapping.mjs → resolve-uri+gen-mapping.mjs} +2 -166
- package/dist/_libs/rou3.d.mts +43 -0
- package/dist/_libs/rou3.mjs +9 -6
- package/dist/_libs/std-env.d.mts +4 -0
- package/dist/_libs/tsconfck.mjs +3 -3
- package/dist/_libs/{unimport.mjs → unimport+unplugin.mjs} +226 -1961
- package/dist/_libs/unplugin+unimport.d.mts +426 -0
- package/dist/_libs/unwasm.d.mts +29 -0
- package/dist/_presets.mjs +130 -80
- package/dist/builder.d.mts +4 -4
- package/dist/builder.mjs +6 -30
- package/dist/cli/_chunks/build.mjs +1 -1
- package/dist/cli/_chunks/dev.mjs +5 -11
- package/dist/cli/_chunks/list.mjs +1 -1
- package/dist/cli/_chunks/prepare.mjs +1 -1
- package/dist/cli/_chunks/run.mjs +1 -1
- package/dist/node_modules/@poppinss/colors/build/index.js +130 -160
- package/dist/node_modules/@poppinss/colors/package.json +20 -18
- package/dist/node_modules/@poppinss/exception/build/index.js +36 -55
- package/dist/node_modules/@poppinss/exception/package.json +19 -16
- package/dist/node_modules/@sindresorhus/is/distribution/index.js +46 -5
- package/dist/node_modules/@sindresorhus/is/package.json +1 -1
- package/dist/node_modules/@speed-highlight/core/dist/index.js +1 -1
- package/dist/node_modules/@speed-highlight/core/dist/terminal.js +1 -1
- package/dist/node_modules/@speed-highlight/core/package.json +2 -2
- package/dist/node_modules/hookable/dist/index.mjs +5 -6
- package/dist/node_modules/hookable/package.json +13 -13
- package/dist/node_modules/ufo/dist/index.mjs +16 -9
- package/dist/node_modules/ufo/package.json +15 -14
- package/dist/node_modules/unctx/package.json +16 -16
- package/dist/node_modules/youch/build/{chunk-4XB2BYKC.js → chunk-7QV3D5YX.js} +2 -4
- package/dist/node_modules/youch/build/{chunk-PUHGL6HA.js → chunk-AUGPHE32.js} +2 -4
- package/dist/node_modules/youch/build/{chunk-F4I6KX4R.js → chunk-CM7DWJNZ.js} +2 -4
- package/dist/node_modules/youch/build/{chunk-YYEJ3AGB.js → chunk-EJH674NB.js} +2 -4
- package/dist/node_modules/youch/build/{chunk-EUJBVOYB.js → chunk-OIJ3WD7L.js} +2 -4
- package/dist/node_modules/youch/build/{chunk-HFSXRSKS.js → chunk-P36L72PL.js} +5 -3
- package/dist/node_modules/youch/build/{chunk-4YEN7HVQ.js → chunk-PE3GG3TN.js} +5 -1
- package/dist/node_modules/youch/build/{chunk-PINJDICN.js → chunk-X53OIOJH.js} +2 -4
- package/dist/node_modules/youch/build/index.js +8 -9
- package/dist/node_modules/youch/build/public/error_info/style.css +1 -0
- package/dist/node_modules/youch/build/public/error_metadata/style.css +3 -0
- package/dist/node_modules/youch/build/public/error_stack/style.css +2 -3
- package/dist/node_modules/youch/package.json +1 -1
- package/dist/presets/_nitro/runtime/nitro-dev.d.mts +1 -1
- package/dist/presets/_nitro/runtime/nitro-dev.mjs +5 -6
- package/dist/presets/_nitro/runtime/nitro-prerenderer.d.mts +1 -1
- package/dist/presets/_nitro/runtime/nitro-prerenderer.mjs +1 -1
- package/dist/presets/_nitro/runtime/service-worker.d.mts +1 -1
- package/dist/presets/_nitro/runtime/service-worker.mjs +2 -2
- package/dist/presets/aws-amplify/runtime/aws-amplify.d.mts +1 -1
- package/dist/presets/aws-amplify/runtime/aws-amplify.mjs +1 -1
- package/dist/presets/aws-lambda/runtime/_utils.d.mts +0 -5
- package/dist/presets/aws-lambda/runtime/aws-lambda-streaming.d.mts +1 -1
- package/dist/presets/aws-lambda/runtime/aws-lambda-streaming.mjs +9 -11
- package/dist/presets/aws-lambda/runtime/aws-lambda.d.mts +1 -1
- package/dist/presets/aws-lambda/runtime/aws-lambda.mjs +1 -1
- package/dist/presets/azure/runtime/azure-swa.d.mts +1 -1
- package/dist/presets/azure/runtime/azure-swa.mjs +1 -1
- package/dist/presets/bun/runtime/bun.d.mts +1 -1
- package/dist/presets/bun/runtime/bun.mjs +7 -8
- package/dist/presets/cloudflare/runtime/_module-handler.d.mts +3 -3
- package/dist/presets/cloudflare/runtime/_module-handler.mjs +19 -17
- package/dist/presets/cloudflare/runtime/cloudflare-durable.d.mts +1 -1
- package/dist/presets/cloudflare/runtime/cloudflare-durable.mjs +17 -16
- package/dist/presets/cloudflare/runtime/cloudflare-module.d.mts +1 -1
- package/dist/presets/cloudflare/runtime/cloudflare-module.mjs +8 -9
- package/dist/presets/cloudflare/runtime/cloudflare-pages.d.mts +1 -1
- package/dist/presets/cloudflare/runtime/cloudflare-pages.mjs +12 -18
- package/dist/presets/deno/runtime/deno-deploy.d.mts +1 -1
- package/dist/presets/deno/runtime/deno-deploy.mjs +4 -5
- package/dist/presets/deno/runtime/deno-server.d.mts +1 -1
- package/dist/presets/deno/runtime/deno-server.mjs +5 -6
- package/dist/presets/netlify/runtime/netlify-edge.d.mts +1 -2
- package/dist/presets/netlify/runtime/netlify-edge.mjs +3 -2
- package/dist/presets/netlify/runtime/netlify.d.mts +3 -2
- package/dist/presets/netlify/runtime/netlify.mjs +3 -1
- package/dist/presets/node/runtime/node-cluster.d.mts +1 -1
- package/dist/presets/node/runtime/node-cluster.mjs +5 -6
- package/dist/presets/node/runtime/node-middleware.d.mts +1 -1
- package/dist/presets/node/runtime/node-middleware.mjs +4 -5
- package/dist/presets/node/runtime/node-server.d.mts +1 -1
- package/dist/presets/node/runtime/node-server.mjs +5 -6
- package/dist/presets/standard/runtime/server.d.mts +1 -1
- package/dist/presets/standard/runtime/server.mjs +1 -1
- package/dist/presets/stormkit/runtime/stormkit.d.mts +1 -1
- package/dist/presets/stormkit/runtime/stormkit.mjs +1 -1
- package/dist/presets/vercel/runtime/isr.d.mts +2 -0
- package/dist/presets/vercel/runtime/isr.mjs +19 -0
- package/dist/presets/vercel/runtime/vercel.node.d.mts +1 -1
- package/dist/presets/vercel/runtime/vercel.node.mjs +16 -7
- package/dist/presets/vercel/runtime/vercel.web.d.mts +1 -1
- package/dist/presets/vercel/runtime/vercel.web.mjs +18 -13
- package/dist/presets/winterjs/runtime/winterjs.d.mts +1 -2
- package/dist/presets/winterjs/runtime/winterjs.mjs +1 -1
- package/dist/presets/zeabur/runtime/zeabur.d.mts +1 -1
- package/dist/presets/zeabur/runtime/zeabur.mjs +1 -1
- package/dist/runtime/app.d.mts +1 -1
- package/dist/runtime/app.mjs +1 -1
- package/dist/runtime/internal/app.d.mts +7 -3
- package/dist/runtime/internal/app.mjs +29 -22
- package/dist/runtime/internal/database.mjs +1 -1
- package/dist/runtime/internal/error/dev.d.mts +0 -1
- package/dist/runtime/internal/error/dev.mjs +1 -1
- package/dist/runtime/internal/route-rules.d.mts +0 -4
- package/dist/runtime/internal/routes/dev-tasks.mjs +1 -1
- package/dist/runtime/internal/routes/openapi.d.mts +0 -1
- package/dist/runtime/internal/routes/openapi.mjs +3 -3
- package/dist/runtime/internal/routes/renderer-template.dev.mjs +1 -1
- package/dist/runtime/internal/routes/renderer-template.mjs +1 -1
- package/dist/runtime/internal/routes/scalar.d.mts +0 -1
- package/dist/runtime/internal/routes/scalar.mjs +4 -4
- package/dist/runtime/internal/routes/swagger.d.mts +0 -1
- package/dist/runtime/internal/routes/swagger.mjs +3 -3
- package/dist/runtime/internal/runtime-config.mjs +8 -8
- package/dist/runtime/internal/static.mjs +1 -1
- package/dist/runtime/internal/storage.mjs +1 -1
- package/dist/runtime/internal/task.mjs +1 -1
- package/dist/runtime/internal/vite/dev-entry.mjs +3 -4
- package/dist/runtime/internal/vite/{dev-worker.mjs → node-runner.mjs} +51 -6
- package/dist/runtime/meta.d.mts +1 -1
- package/dist/runtime/meta.mjs +1 -1
- package/dist/runtime/nitro.d.mts +0 -3
- package/dist/runtime/nitro.mjs +1 -1
- 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 +6 -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/types/index.d.mts +292 -371
- package/dist/types/index.mjs +10 -0
- package/dist/vite.d.mts +7 -12
- package/dist/vite.mjs +734 -41
- package/lib/vite.types.d.mts +26 -0
- package/lib/vite.types.mjs +2 -0
- package/package.json +82 -53
- package/dist/_build/common2.mjs +0 -772
- package/dist/_build/vite.plugin.mjs +0 -768
- package/dist/_chunks/ANM1K1bE.mjs +0 -304
- package/dist/_chunks/BX9-zVkM.mjs +0 -59
- package/dist/_chunks/C7CbzoI1.mjs +0 -39
- package/dist/_libs/acorn.mjs +0 -5034
- package/dist/_libs/c12.mjs +0 -2858
- package/dist/_libs/commondir.mjs +0 -22
- package/dist/_libs/deepmerge.mjs +0 -86
- package/dist/_libs/dot-prop.mjs +0 -138
- package/dist/_libs/duplexer.mjs +0 -71
- package/dist/_libs/etag.mjs +0 -80
- package/dist/_libs/fdir.mjs +0 -514
- package/dist/_libs/function-bind.mjs +0 -63
- package/dist/_libs/giget.mjs +0 -19289
- package/dist/_libs/gzip-size.mjs +0 -21
- package/dist/_libs/hasown.mjs +0 -14
- package/dist/_libs/is-core-module.mjs +0 -220
- package/dist/_libs/is-module.mjs +0 -13
- package/dist/_libs/is-reference.mjs +0 -32
- package/dist/_libs/js-tokens.mjs +0 -382
- package/dist/_libs/knitwork.mjs +0 -124
- package/dist/_libs/local-pkg.mjs +0 -1686
- package/dist/_libs/magic-string.mjs +0 -939
- package/dist/_libs/mime.mjs +0 -1391
- package/dist/_libs/node-fetch-native.mjs +0 -173
- package/dist/_libs/path-parse.mjs +0 -47
- package/dist/_libs/pathe.mjs +0 -41
- package/dist/_libs/picomatch.mjs +0 -1673
- package/dist/_libs/plugin-replace.mjs +0 -104
- package/dist/_libs/pretty-bytes.mjs +0 -116
- package/dist/_libs/std-env.mjs +0 -158
- package/dist/_libs/strip-literal.mjs +0 -51
- package/dist/_libs/tinyglobby.mjs +0 -292
- package/dist/_libs/untyped.mjs +0 -271
- package/dist/_libs/unwasm.mjs +0 -5836
- package/dist/cli/_chunks/detect-acorn.mjs +0 -12
- package/dist/cli/_chunks/dist.mjs +0 -3
- package/dist/cli/_chunks/dist2.mjs +0 -3
- package/dist/cli/_chunks/dist3.mjs +0 -3
- package/dist/cli/_chunks/dist4.mjs +0 -4
- package/dist/cli/_chunks/dist5.mjs +0 -4
- package/dist/cli/_chunks/esm.mjs +0 -3
- package/dist/cli/_chunks/json5.mjs +0 -4
- package/dist/cli/_chunks/jsonc.mjs +0 -4
- package/dist/cli/_chunks/multipart-parser.mjs +0 -6
- package/dist/cli/_chunks/toml.mjs +0 -4
- package/dist/cli/_chunks/yaml.mjs +0 -4
- package/dist/node_modules/kleur/index.js +0 -110
- package/dist/node_modules/youch/build/chunk-OSUFJZHZ.js +0 -6
- package/lib/deps/ofetch.mjs +0 -1
- package/lib/deps/ofetch.mts +0 -1
- /package/dist/runtime/{vite-runtime.d.mts → vite.d.mts} +0 -0
- /package/dist/runtime/{vite-runtime.mjs → vite.mjs} +0 -0
- /package/lib/{deps/h3.d.mts → h3.d.mts} +0 -0
- /package/lib/{deps/h3.mjs → h3.mjs} +0 -0
package/dist/_libs/commondir.mjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { n as __require, t as __commonJS } from "../_chunks/Bqks5huO.mjs";
|
|
2
|
-
|
|
3
|
-
//#region node_modules/.pnpm/commondir@1.0.1/node_modules/commondir/index.js
|
|
4
|
-
var require_commondir = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/commondir@1.0.1/node_modules/commondir/index.js": ((exports, module) => {
|
|
5
|
-
var path = __require("path");
|
|
6
|
-
module.exports = function(basedir, relfiles) {
|
|
7
|
-
if (relfiles) var files = relfiles.map(function(r) {
|
|
8
|
-
return path.resolve(basedir, r);
|
|
9
|
-
});
|
|
10
|
-
else var files = basedir;
|
|
11
|
-
var res = files.slice(1).reduce(function(ps, file) {
|
|
12
|
-
if (!file.match(/^([A-Za-z]:)?\/|\\/)) throw new Error("relative path without a basedir");
|
|
13
|
-
var xs = file.split(/\/+|\\+/);
|
|
14
|
-
for (var i = 0; ps[i] === xs[i] && i < Math.min(ps.length, xs.length); i++);
|
|
15
|
-
return ps.slice(0, i);
|
|
16
|
-
}, files[0].split(/\/+|\\+/));
|
|
17
|
-
return res.length > 1 ? res.join("/") : "/";
|
|
18
|
-
};
|
|
19
|
-
}) });
|
|
20
|
-
|
|
21
|
-
//#endregion
|
|
22
|
-
export { require_commondir as t };
|
package/dist/_libs/deepmerge.mjs
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { t as __commonJS } from "../_chunks/Bqks5huO.mjs";
|
|
2
|
-
|
|
3
|
-
//#region node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js
|
|
4
|
-
var require_cjs = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js": ((exports, module) => {
|
|
5
|
-
var isMergeableObject = function isMergeableObject$1(value) {
|
|
6
|
-
return isNonNullObject(value) && !isSpecial(value);
|
|
7
|
-
};
|
|
8
|
-
function isNonNullObject(value) {
|
|
9
|
-
return !!value && typeof value === "object";
|
|
10
|
-
}
|
|
11
|
-
function isSpecial(value) {
|
|
12
|
-
var stringValue = Object.prototype.toString.call(value);
|
|
13
|
-
return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value);
|
|
14
|
-
}
|
|
15
|
-
var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for ? Symbol.for("react.element") : 60103;
|
|
16
|
-
function isReactElement(value) {
|
|
17
|
-
return value.$$typeof === REACT_ELEMENT_TYPE;
|
|
18
|
-
}
|
|
19
|
-
function emptyTarget(val) {
|
|
20
|
-
return Array.isArray(val) ? [] : {};
|
|
21
|
-
}
|
|
22
|
-
function cloneUnlessOtherwiseSpecified(value, options) {
|
|
23
|
-
return options.clone !== false && options.isMergeableObject(value) ? deepmerge(emptyTarget(value), value, options) : value;
|
|
24
|
-
}
|
|
25
|
-
function defaultArrayMerge(target, source, options) {
|
|
26
|
-
return target.concat(source).map(function(element) {
|
|
27
|
-
return cloneUnlessOtherwiseSpecified(element, options);
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
function getMergeFunction(key, options) {
|
|
31
|
-
if (!options.customMerge) return deepmerge;
|
|
32
|
-
var customMerge = options.customMerge(key);
|
|
33
|
-
return typeof customMerge === "function" ? customMerge : deepmerge;
|
|
34
|
-
}
|
|
35
|
-
function getEnumerableOwnPropertySymbols(target) {
|
|
36
|
-
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
|
|
37
|
-
return Object.propertyIsEnumerable.call(target, symbol);
|
|
38
|
-
}) : [];
|
|
39
|
-
}
|
|
40
|
-
function getKeys(target) {
|
|
41
|
-
return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));
|
|
42
|
-
}
|
|
43
|
-
function propertyIsOnObject(object, property) {
|
|
44
|
-
try {
|
|
45
|
-
return property in object;
|
|
46
|
-
} catch (_) {
|
|
47
|
-
return false;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
function propertyIsUnsafe(target, key) {
|
|
51
|
-
return propertyIsOnObject(target, key) && !(Object.hasOwnProperty.call(target, key) && Object.propertyIsEnumerable.call(target, key));
|
|
52
|
-
}
|
|
53
|
-
function mergeObject(target, source, options) {
|
|
54
|
-
var destination = {};
|
|
55
|
-
if (options.isMergeableObject(target)) getKeys(target).forEach(function(key) {
|
|
56
|
-
destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
|
|
57
|
-
});
|
|
58
|
-
getKeys(source).forEach(function(key) {
|
|
59
|
-
if (propertyIsUnsafe(target, key)) return;
|
|
60
|
-
if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
|
|
61
|
-
else destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
|
|
62
|
-
});
|
|
63
|
-
return destination;
|
|
64
|
-
}
|
|
65
|
-
function deepmerge(target, source, options) {
|
|
66
|
-
options = options || {};
|
|
67
|
-
options.arrayMerge = options.arrayMerge || defaultArrayMerge;
|
|
68
|
-
options.isMergeableObject = options.isMergeableObject || isMergeableObject;
|
|
69
|
-
options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
|
|
70
|
-
var sourceIsArray = Array.isArray(source);
|
|
71
|
-
if (!(sourceIsArray === Array.isArray(target))) return cloneUnlessOtherwiseSpecified(source, options);
|
|
72
|
-
else if (sourceIsArray) return options.arrayMerge(target, source, options);
|
|
73
|
-
else return mergeObject(target, source, options);
|
|
74
|
-
}
|
|
75
|
-
deepmerge.all = function deepmergeAll(array, options) {
|
|
76
|
-
if (!Array.isArray(array)) throw new Error("first argument should be an array");
|
|
77
|
-
return array.reduce(function(prev, next) {
|
|
78
|
-
return deepmerge(prev, next, options);
|
|
79
|
-
}, {});
|
|
80
|
-
};
|
|
81
|
-
var deepmerge_1 = deepmerge;
|
|
82
|
-
module.exports = deepmerge_1;
|
|
83
|
-
}) });
|
|
84
|
-
|
|
85
|
-
//#endregion
|
|
86
|
-
export { require_cjs as t };
|
package/dist/_libs/dot-prop.mjs
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/dot-prop@10.1.0/node_modules/dot-prop/index.js
|
|
2
|
-
const isObject = (value) => {
|
|
3
|
-
const type = typeof value;
|
|
4
|
-
return value !== null && (type === "object" || type === "function");
|
|
5
|
-
};
|
|
6
|
-
const disallowedKeys = new Set([
|
|
7
|
-
"__proto__",
|
|
8
|
-
"prototype",
|
|
9
|
-
"constructor"
|
|
10
|
-
]);
|
|
11
|
-
const MAX_ARRAY_INDEX = 1e6;
|
|
12
|
-
const isDigit = (character) => character >= "0" && character <= "9";
|
|
13
|
-
function shouldCoerceToNumber(segment) {
|
|
14
|
-
if (segment === "0") return true;
|
|
15
|
-
if (/^[1-9]\d*$/.test(segment)) {
|
|
16
|
-
const parsedNumber = Number.parseInt(segment, 10);
|
|
17
|
-
return parsedNumber <= Number.MAX_SAFE_INTEGER && parsedNumber <= MAX_ARRAY_INDEX;
|
|
18
|
-
}
|
|
19
|
-
return false;
|
|
20
|
-
}
|
|
21
|
-
function processSegment(segment, parts) {
|
|
22
|
-
if (disallowedKeys.has(segment)) return false;
|
|
23
|
-
if (segment && shouldCoerceToNumber(segment)) parts.push(Number.parseInt(segment, 10));
|
|
24
|
-
else parts.push(segment);
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
function parsePath(path) {
|
|
28
|
-
if (typeof path !== "string") throw new TypeError(`Expected a string, got ${typeof path}`);
|
|
29
|
-
const parts = [];
|
|
30
|
-
let currentSegment = "";
|
|
31
|
-
let currentPart = "start";
|
|
32
|
-
let isEscaping = false;
|
|
33
|
-
let position = 0;
|
|
34
|
-
for (const character of path) {
|
|
35
|
-
position++;
|
|
36
|
-
if (isEscaping) {
|
|
37
|
-
currentSegment += character;
|
|
38
|
-
isEscaping = false;
|
|
39
|
-
continue;
|
|
40
|
-
}
|
|
41
|
-
if (character === "\\") {
|
|
42
|
-
if (currentPart === "index") throw new Error(`Invalid character '${character}' in an index at position ${position}`);
|
|
43
|
-
if (currentPart === "indexEnd") throw new Error(`Invalid character '${character}' after an index at position ${position}`);
|
|
44
|
-
isEscaping = true;
|
|
45
|
-
currentPart = currentPart === "start" ? "property" : currentPart;
|
|
46
|
-
continue;
|
|
47
|
-
}
|
|
48
|
-
switch (character) {
|
|
49
|
-
case ".":
|
|
50
|
-
if (currentPart === "index") throw new Error(`Invalid character '${character}' in an index at position ${position}`);
|
|
51
|
-
if (currentPart === "indexEnd") {
|
|
52
|
-
currentPart = "property";
|
|
53
|
-
break;
|
|
54
|
-
}
|
|
55
|
-
if (!processSegment(currentSegment, parts)) return [];
|
|
56
|
-
currentSegment = "";
|
|
57
|
-
currentPart = "property";
|
|
58
|
-
break;
|
|
59
|
-
case "[":
|
|
60
|
-
if (currentPart === "index") throw new Error(`Invalid character '${character}' in an index at position ${position}`);
|
|
61
|
-
if (currentPart === "indexEnd") {
|
|
62
|
-
currentPart = "index";
|
|
63
|
-
break;
|
|
64
|
-
}
|
|
65
|
-
if (currentPart === "property" || currentPart === "start") {
|
|
66
|
-
if ((currentSegment || currentPart === "property") && !processSegment(currentSegment, parts)) return [];
|
|
67
|
-
currentSegment = "";
|
|
68
|
-
}
|
|
69
|
-
currentPart = "index";
|
|
70
|
-
break;
|
|
71
|
-
case "]":
|
|
72
|
-
if (currentPart === "index") {
|
|
73
|
-
if (currentSegment === "") {
|
|
74
|
-
currentSegment = (parts.pop() || "") + "[]";
|
|
75
|
-
currentPart = "property";
|
|
76
|
-
} else {
|
|
77
|
-
const parsedNumber = Number.parseInt(currentSegment, 10);
|
|
78
|
-
if (!Number.isNaN(parsedNumber) && Number.isFinite(parsedNumber) && parsedNumber >= 0 && parsedNumber <= Number.MAX_SAFE_INTEGER && parsedNumber <= MAX_ARRAY_INDEX && currentSegment === String(parsedNumber)) parts.push(parsedNumber);
|
|
79
|
-
else parts.push(currentSegment);
|
|
80
|
-
currentSegment = "";
|
|
81
|
-
currentPart = "indexEnd";
|
|
82
|
-
}
|
|
83
|
-
break;
|
|
84
|
-
}
|
|
85
|
-
if (currentPart === "indexEnd") throw new Error(`Invalid character '${character}' after an index at position ${position}`);
|
|
86
|
-
currentSegment += character;
|
|
87
|
-
break;
|
|
88
|
-
default:
|
|
89
|
-
if (currentPart === "index" && !isDigit(character)) throw new Error(`Invalid character '${character}' in an index at position ${position}`);
|
|
90
|
-
if (currentPart === "indexEnd") throw new Error(`Invalid character '${character}' after an index at position ${position}`);
|
|
91
|
-
if (currentPart === "start") currentPart = "property";
|
|
92
|
-
currentSegment += character;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
if (isEscaping) currentSegment += "\\";
|
|
96
|
-
switch (currentPart) {
|
|
97
|
-
case "property":
|
|
98
|
-
if (!processSegment(currentSegment, parts)) return [];
|
|
99
|
-
break;
|
|
100
|
-
case "index": throw new Error("Index was not closed");
|
|
101
|
-
case "start":
|
|
102
|
-
parts.push("");
|
|
103
|
-
break;
|
|
104
|
-
}
|
|
105
|
-
return parts;
|
|
106
|
-
}
|
|
107
|
-
function normalizePath(path) {
|
|
108
|
-
if (typeof path === "string") return parsePath(path);
|
|
109
|
-
if (Array.isArray(path)) {
|
|
110
|
-
const normalized = [];
|
|
111
|
-
for (const [index, segment] of path.entries()) {
|
|
112
|
-
if (typeof segment !== "string" && typeof segment !== "number") throw new TypeError(`Expected a string or number for path segment at index ${index}, got ${typeof segment}`);
|
|
113
|
-
if (typeof segment === "number" && !Number.isFinite(segment)) throw new TypeError(`Path segment at index ${index} must be a finite number, got ${segment}`);
|
|
114
|
-
if (disallowedKeys.has(segment)) return [];
|
|
115
|
-
if (typeof segment === "string" && shouldCoerceToNumber(segment)) normalized.push(Number.parseInt(segment, 10));
|
|
116
|
-
else normalized.push(segment);
|
|
117
|
-
}
|
|
118
|
-
return normalized;
|
|
119
|
-
}
|
|
120
|
-
return [];
|
|
121
|
-
}
|
|
122
|
-
function getProperty(object, path, value) {
|
|
123
|
-
if (!isObject(object) || typeof path !== "string" && !Array.isArray(path)) return value === void 0 ? object : value;
|
|
124
|
-
const pathArray = normalizePath(path);
|
|
125
|
-
if (pathArray.length === 0) return value;
|
|
126
|
-
for (let index = 0; index < pathArray.length; index++) {
|
|
127
|
-
const key = pathArray[index];
|
|
128
|
-
object = object[key];
|
|
129
|
-
if (object === void 0 || object === null) {
|
|
130
|
-
if (index !== pathArray.length - 1) return value;
|
|
131
|
-
break;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
return object === void 0 ? value : object;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
//#endregion
|
|
138
|
-
export { getProperty as t };
|
package/dist/_libs/duplexer.mjs
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { n as __require, t as __commonJS } from "../_chunks/Bqks5huO.mjs";
|
|
2
|
-
|
|
3
|
-
//#region node_modules/.pnpm/duplexer@0.1.2/node_modules/duplexer/index.js
|
|
4
|
-
var require_duplexer = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/duplexer@0.1.2/node_modules/duplexer/index.js": ((exports, module) => {
|
|
5
|
-
var Stream = __require("stream");
|
|
6
|
-
var writeMethods = [
|
|
7
|
-
"write",
|
|
8
|
-
"end",
|
|
9
|
-
"destroy"
|
|
10
|
-
];
|
|
11
|
-
var readMethods = ["resume", "pause"];
|
|
12
|
-
var readEvents = ["data", "close"];
|
|
13
|
-
var slice = Array.prototype.slice;
|
|
14
|
-
module.exports = duplex;
|
|
15
|
-
function forEach(arr, fn) {
|
|
16
|
-
if (arr.forEach) return arr.forEach(fn);
|
|
17
|
-
for (var i = 0; i < arr.length; i++) fn(arr[i], i);
|
|
18
|
-
}
|
|
19
|
-
function duplex(writer, reader) {
|
|
20
|
-
var stream = new Stream();
|
|
21
|
-
var ended = false;
|
|
22
|
-
forEach(writeMethods, proxyWriter);
|
|
23
|
-
forEach(readMethods, proxyReader);
|
|
24
|
-
forEach(readEvents, proxyStream);
|
|
25
|
-
reader.on("end", handleEnd);
|
|
26
|
-
writer.on("drain", function() {
|
|
27
|
-
stream.emit("drain");
|
|
28
|
-
});
|
|
29
|
-
writer.on("error", reemit);
|
|
30
|
-
reader.on("error", reemit);
|
|
31
|
-
stream.writable = writer.writable;
|
|
32
|
-
stream.readable = reader.readable;
|
|
33
|
-
return stream;
|
|
34
|
-
function proxyWriter(methodName) {
|
|
35
|
-
stream[methodName] = method;
|
|
36
|
-
function method() {
|
|
37
|
-
return writer[methodName].apply(writer, arguments);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
function proxyReader(methodName) {
|
|
41
|
-
stream[methodName] = method;
|
|
42
|
-
function method() {
|
|
43
|
-
stream.emit(methodName);
|
|
44
|
-
var func = reader[methodName];
|
|
45
|
-
if (func) return func.apply(reader, arguments);
|
|
46
|
-
reader.emit(methodName);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
function proxyStream(methodName) {
|
|
50
|
-
reader.on(methodName, reemit$1);
|
|
51
|
-
function reemit$1() {
|
|
52
|
-
var args = slice.call(arguments);
|
|
53
|
-
args.unshift(methodName);
|
|
54
|
-
stream.emit.apply(stream, args);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
function handleEnd() {
|
|
58
|
-
if (ended) return;
|
|
59
|
-
ended = true;
|
|
60
|
-
var args = slice.call(arguments);
|
|
61
|
-
args.unshift("end");
|
|
62
|
-
stream.emit.apply(stream, args);
|
|
63
|
-
}
|
|
64
|
-
function reemit(err) {
|
|
65
|
-
stream.emit("error", err);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}) });
|
|
69
|
-
|
|
70
|
-
//#endregion
|
|
71
|
-
export { require_duplexer as t };
|
package/dist/_libs/etag.mjs
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { n as __require, t as __commonJS } from "../_chunks/Bqks5huO.mjs";
|
|
2
|
-
|
|
3
|
-
//#region node_modules/.pnpm/etag@1.8.1/node_modules/etag/index.js
|
|
4
|
-
/*!
|
|
5
|
-
* etag
|
|
6
|
-
* Copyright(c) 2014-2016 Douglas Christopher Wilson
|
|
7
|
-
* MIT Licensed
|
|
8
|
-
*/
|
|
9
|
-
var require_etag = /* @__PURE__ */ __commonJS({ "node_modules/.pnpm/etag@1.8.1/node_modules/etag/index.js": ((exports, module) => {
|
|
10
|
-
/**
|
|
11
|
-
* Module exports.
|
|
12
|
-
* @public
|
|
13
|
-
*/
|
|
14
|
-
module.exports = etag;
|
|
15
|
-
/**
|
|
16
|
-
* Module dependencies.
|
|
17
|
-
* @private
|
|
18
|
-
*/
|
|
19
|
-
var crypto = __require("crypto");
|
|
20
|
-
var Stats = __require("fs").Stats;
|
|
21
|
-
/**
|
|
22
|
-
* Module variables.
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
var toString = Object.prototype.toString;
|
|
26
|
-
/**
|
|
27
|
-
* Generate an entity tag.
|
|
28
|
-
*
|
|
29
|
-
* @param {Buffer|string} entity
|
|
30
|
-
* @return {string}
|
|
31
|
-
* @private
|
|
32
|
-
*/
|
|
33
|
-
function entitytag(entity) {
|
|
34
|
-
if (entity.length === 0) return "\"0-2jmj7l5rSw0yVb/vlWAYkK/YBwk\"";
|
|
35
|
-
var hash = crypto.createHash("sha1").update(entity, "utf8").digest("base64").substring(0, 27);
|
|
36
|
-
return "\"" + (typeof entity === "string" ? Buffer.byteLength(entity, "utf8") : entity.length).toString(16) + "-" + hash + "\"";
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Create a simple ETag.
|
|
40
|
-
*
|
|
41
|
-
* @param {string|Buffer|Stats} entity
|
|
42
|
-
* @param {object} [options]
|
|
43
|
-
* @param {boolean} [options.weak]
|
|
44
|
-
* @return {String}
|
|
45
|
-
* @public
|
|
46
|
-
*/
|
|
47
|
-
function etag(entity, options) {
|
|
48
|
-
if (entity == null) throw new TypeError("argument entity is required");
|
|
49
|
-
var isStats = isstats(entity);
|
|
50
|
-
var weak = options && typeof options.weak === "boolean" ? options.weak : isStats;
|
|
51
|
-
if (!isStats && typeof entity !== "string" && !Buffer.isBuffer(entity)) throw new TypeError("argument entity must be string, Buffer, or fs.Stats");
|
|
52
|
-
var tag = isStats ? stattag(entity) : entitytag(entity);
|
|
53
|
-
return weak ? "W/" + tag : tag;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Determine if object is a Stats object.
|
|
57
|
-
*
|
|
58
|
-
* @param {object} obj
|
|
59
|
-
* @return {boolean}
|
|
60
|
-
* @api private
|
|
61
|
-
*/
|
|
62
|
-
function isstats(obj) {
|
|
63
|
-
if (typeof Stats === "function" && obj instanceof Stats) return true;
|
|
64
|
-
return obj && typeof obj === "object" && "ctime" in obj && toString.call(obj.ctime) === "[object Date]" && "mtime" in obj && toString.call(obj.mtime) === "[object Date]" && "ino" in obj && typeof obj.ino === "number" && "size" in obj && typeof obj.size === "number";
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Generate a tag for a stat.
|
|
68
|
-
*
|
|
69
|
-
* @param {object} stat
|
|
70
|
-
* @return {string}
|
|
71
|
-
* @private
|
|
72
|
-
*/
|
|
73
|
-
function stattag(stat) {
|
|
74
|
-
var mtime = stat.mtime.getTime().toString(16);
|
|
75
|
-
return "\"" + stat.size.toString(16) + "-" + mtime + "\"";
|
|
76
|
-
}
|
|
77
|
-
}) });
|
|
78
|
-
|
|
79
|
-
//#endregion
|
|
80
|
-
export { require_etag as t };
|