nitro-nightly 3.1.0-20251028-110430-e607b753 → 3.1.0-20251028-131831-fe9fd554
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/build.mjs +379 -14
- package/dist/_build/{rollup.mjs → build2.mjs} +218 -68
- package/dist/_build/info.mjs +963 -7
- package/dist/_build/prepare.mjs +1491 -2
- package/dist/_build/snapshot.mjs +155 -31
- package/dist/_build/vite.mjs +43 -2307
- package/dist/_build/vite2.mjs +149 -0
- package/dist/{_deps → _chunks/_deps}/c12.mjs +1 -1
- package/dist/{_deps → _chunks/_deps}/giget.mjs +1 -1
- package/dist/_chunks/_deps/klona.mjs +137 -0
- package/dist/{_deps → _chunks/_deps}/knitwork.mjs +1 -1
- package/dist/{_deps → _chunks/_deps}/local-pkg.mjs +1 -1
- package/dist/{_deps → _chunks/_deps}/mlly.mjs +1 -1
- package/dist/{_deps → _chunks/_deps}/nypm.mjs +1 -1
- package/dist/{_deps → _chunks/_deps}/pathe.mjs +1 -1
- package/dist/{_deps → _chunks/_deps}/pkg-types.mjs +2 -2
- package/dist/{_deps → _chunks/_deps}/rou3.mjs +1 -1
- package/dist/_chunks/_deps/std-env.mjs +3 -0
- package/dist/{_deps → _chunks/_deps}/unimport.mjs +2 -2
- package/dist/{_deps → _chunks/_deps}/unplugin-utils.mjs +1 -1
- package/dist/{_deps → _chunks/_deps}/untyped.mjs +1 -1
- package/dist/{_deps → _chunks/_deps}/unwasm.mjs +2 -2
- package/dist/{_presets → _chunks/_presets}/_resolve.mjs +2 -2
- package/dist/{_presets → _chunks/_presets}/_utils.mjs +1 -1
- package/dist/{_presets → _chunks/_presets}/azure.mjs +1 -1
- package/dist/{_presets → _chunks/_presets}/cloudflare.mjs +4 -4
- package/dist/{_presets → _chunks/_presets}/deno.mjs +1 -1
- package/dist/{_presets → _chunks/_presets}/firebase.mjs +1 -1
- package/dist/{_presets → _chunks/_presets}/iis.mjs +1 -1
- package/dist/{_presets → _chunks/_presets}/index.mjs +1 -1
- package/dist/{_presets → _chunks/_presets}/vercel.mjs +3 -3
- package/dist/{_presets → _chunks/_presets}/zeabur.mjs +1 -1
- package/dist/_chunks/app.mjs +600 -0
- package/dist/_chunks/index.mjs +648 -0
- package/dist/_chunks/server.mjs +256 -0
- package/dist/_cli/build.mjs +2 -2
- package/dist/_cli/dev.mjs +46 -130
- package/dist/_cli/index.mjs +1 -1
- package/dist/_cli/list.mjs +2 -2
- package/dist/_cli/prepare.mjs +2 -2
- package/dist/_cli/run.mjs +2 -2
- package/dist/cli/index.mjs +1 -1
- package/dist/index.mjs +94 -120
- 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/rendu/dist/index.mjs +380 -0
- package/dist/node_modules/rendu/package.json +47 -0
- package/dist/runtime/internal/task.mjs +1 -2
- package/dist/types/index.d.mts +2 -1
- package/dist/vite.mjs +103 -114
- package/lib/runtime/meta.mjs +18 -25
- package/package.json +9 -10
- package/dist/_build/assets.mjs +0 -235
- package/dist/_build/config.mjs +0 -124
- package/dist/_build/plugins.mjs +0 -1041
- package/dist/_build/rolldown.mjs +0 -494
- package/dist/_build/types.mjs +0 -268
- package/dist/node_modules/klona/dist/index.mjs +0 -81
- package/dist/node_modules/klona/full/index.mjs +0 -53
- package/dist/node_modules/klona/package.json +0 -74
- package/dist/node_modules/std-env/dist/index.mjs +0 -1
- package/dist/node_modules/std-env/package.json +0 -46
- /package/dist/{_deps → _chunks/_deps}/@jridgewell/gen-mapping.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/@jridgewell/remapping.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/@jridgewell/resolve-uri.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/@jridgewell/sourcemap-codec.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/@jridgewell/trace-mapping.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/@pi0/vite-plugin-fullstack.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/@rollup/plugin-alias.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/@rollup/plugin-commonjs.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/@rollup/plugin-inject.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/@rollup/plugin-json.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/@rollup/plugin-node-resolve.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/@rollup/plugin-replace.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/@rollup/pluginutils.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/acorn.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/chokidar.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/citty.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/commondir.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/compatx.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/confbox.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/debug.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/deepmerge.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/depd.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/dot-prop.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/dotenv.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/duplexer.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/ee-first.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/encodeurl.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/escape-html.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/escape-string-regexp.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/estree-walker.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/etag.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/exsolve.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/fdir.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/fresh.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/function-bind.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/gzip-size.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/hasown.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/http-errors.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/httpxy.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/inherits.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/is-core-module.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/is-module.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/is-reference.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/js-tokens.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/magic-string.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/mime-db.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/mime-types.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/mime.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/ms.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/node-fetch-native.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/on-finished.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/parseurl.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/path-parse.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/perfect-debounce.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/picomatch.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/pretty-bytes.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/quansync.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/range-parser.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/rc9.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/readdirp.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/resolve.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/send.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/serve-static.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/setprototypeof.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/statuses.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/strip-literal.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/supports-color.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/tinyexec.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/tinyglobby.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/toidentifier.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/ultrahtml.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/unplugin.mjs +0 -0
- /package/dist/{_deps → _chunks/_deps}/webpack-virtual-modules.mjs +0 -0
- /package/dist/{_presets → _chunks/_presets}/_all.mjs +0 -0
- /package/dist/{_presets → _chunks/_presets}/_nitro.mjs +0 -0
- /package/dist/{_presets → _chunks/_presets}/_static.mjs +0 -0
- /package/dist/{_presets → _chunks/_presets}/_types.mjs +0 -0
- /package/dist/{_presets → _chunks/_presets}/alwaysdata.mjs +0 -0
- /package/dist/{_presets → _chunks/_presets}/aws-amplify.mjs +0 -0
- /package/dist/{_presets → _chunks/_presets}/aws-lambda.mjs +0 -0
- /package/dist/{_presets → _chunks/_presets}/bun.mjs +0 -0
- /package/dist/{_presets → _chunks/_presets}/cleavr.mjs +0 -0
- /package/dist/{_presets → _chunks/_presets}/digitalocean.mjs +0 -0
- /package/dist/{_presets → _chunks/_presets}/flightcontrol.mjs +0 -0
- /package/dist/{_presets → _chunks/_presets}/genezio.mjs +0 -0
- /package/dist/{_presets → _chunks/_presets}/heroku.mjs +0 -0
- /package/dist/{_presets → _chunks/_presets}/koyeb.mjs +0 -0
- /package/dist/{_presets → _chunks/_presets}/netlify.mjs +0 -0
- /package/dist/{_presets → _chunks/_presets}/node.mjs +0 -0
- /package/dist/{_presets → _chunks/_presets}/platform.mjs +0 -0
- /package/dist/{_presets → _chunks/_presets}/render.mjs +0 -0
- /package/dist/{_presets → _chunks/_presets}/standard.mjs +0 -0
- /package/dist/{_presets → _chunks/_presets}/stormkit.mjs +0 -0
- /package/dist/{_presets → _chunks/_presets}/winterjs.mjs +0 -0
- /package/dist/{_presets → _chunks/_presets}/zerops.mjs +0 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { n as nitro } from './vite.mjs';
|
|
2
|
+
import { a } from '../_chunks/_deps/std-env.mjs';
|
|
3
|
+
import './prepare.mjs';
|
|
4
|
+
import 'consola';
|
|
5
|
+
import 'hookable';
|
|
6
|
+
import '../_chunks/_deps/c12.mjs';
|
|
7
|
+
import 'node:fs';
|
|
8
|
+
import 'node:fs/promises';
|
|
9
|
+
import 'node:url';
|
|
10
|
+
import 'node:os';
|
|
11
|
+
import '../_chunks/_deps/exsolve.mjs';
|
|
12
|
+
import 'node:path';
|
|
13
|
+
import 'node:assert';
|
|
14
|
+
import 'node:process';
|
|
15
|
+
import 'node:v8';
|
|
16
|
+
import 'node:util';
|
|
17
|
+
import 'jiti';
|
|
18
|
+
import '../_chunks/_deps/rc9.mjs';
|
|
19
|
+
import 'destr';
|
|
20
|
+
import 'defu';
|
|
21
|
+
import '../_chunks/_deps/pkg-types.mjs';
|
|
22
|
+
import '../_chunks/_deps/mlly.mjs';
|
|
23
|
+
import '../_chunks/_deps/acorn.mjs';
|
|
24
|
+
import 'node:module';
|
|
25
|
+
import 'ufo';
|
|
26
|
+
import '../_chunks/_deps/pathe.mjs';
|
|
27
|
+
import '../_chunks/_deps/confbox.mjs';
|
|
28
|
+
import '../_chunks/_deps/dotenv.mjs';
|
|
29
|
+
import 'fs';
|
|
30
|
+
import 'os';
|
|
31
|
+
import 'crypto';
|
|
32
|
+
import 'path';
|
|
33
|
+
import '../_chunks/_deps/commondir.mjs';
|
|
34
|
+
import '../_chunks/_deps/perfect-debounce.mjs';
|
|
35
|
+
import '../_chunks/_deps/compatx.mjs';
|
|
36
|
+
import '../_chunks/_deps/klona.mjs';
|
|
37
|
+
import 'nitro/runtime/meta';
|
|
38
|
+
import '../_chunks/_deps/escape-string-regexp.mjs';
|
|
39
|
+
import '../_chunks/_deps/tinyglobby.mjs';
|
|
40
|
+
import 'url';
|
|
41
|
+
import '../_chunks/_deps/fdir.mjs';
|
|
42
|
+
import 'module';
|
|
43
|
+
import '../_chunks/_deps/picomatch.mjs';
|
|
44
|
+
import 'ofetch';
|
|
45
|
+
import 'unstorage';
|
|
46
|
+
import '../_chunks/_deps/rou3.mjs';
|
|
47
|
+
import 'ohash';
|
|
48
|
+
import '../_chunks/_deps/unimport.mjs';
|
|
49
|
+
import 'scule';
|
|
50
|
+
import '../_chunks/_deps/magic-string.mjs';
|
|
51
|
+
import '../_chunks/_deps/@jridgewell/sourcemap-codec.mjs';
|
|
52
|
+
import '../_chunks/_deps/unplugin.mjs';
|
|
53
|
+
import 'node:buffer';
|
|
54
|
+
import '../_chunks/_deps/@jridgewell/remapping.mjs';
|
|
55
|
+
import '../_chunks/_deps/@jridgewell/trace-mapping.mjs';
|
|
56
|
+
import '../_chunks/_deps/@jridgewell/resolve-uri.mjs';
|
|
57
|
+
import '../_chunks/_deps/@jridgewell/gen-mapping.mjs';
|
|
58
|
+
import 'node:querystring';
|
|
59
|
+
import '../_chunks/_deps/webpack-virtual-modules.mjs';
|
|
60
|
+
import 'constants';
|
|
61
|
+
import '../_chunks/_deps/unplugin-utils.mjs';
|
|
62
|
+
import '../_chunks/_deps/local-pkg.mjs';
|
|
63
|
+
import '../_chunks/_deps/quansync.mjs';
|
|
64
|
+
import '../_chunks/_deps/estree-walker.mjs';
|
|
65
|
+
import '../_chunks/_deps/strip-literal.mjs';
|
|
66
|
+
import '../_chunks/_deps/js-tokens.mjs';
|
|
67
|
+
import 'consola/utils';
|
|
68
|
+
import '../_chunks/_deps/dot-prop.mjs';
|
|
69
|
+
import 'node:zlib';
|
|
70
|
+
import '../_chunks/_deps/mime.mjs';
|
|
71
|
+
import 'node:worker_threads';
|
|
72
|
+
import 'h3';
|
|
73
|
+
import 'undici';
|
|
74
|
+
import 'nitro/meta';
|
|
75
|
+
import 'srvx/node';
|
|
76
|
+
import '../_chunks/app.mjs';
|
|
77
|
+
import '../_chunks/_deps/serve-static.mjs';
|
|
78
|
+
import '../_chunks/_deps/encodeurl.mjs';
|
|
79
|
+
import '../_chunks/_deps/escape-html.mjs';
|
|
80
|
+
import '../_chunks/_deps/parseurl.mjs';
|
|
81
|
+
import '../_chunks/_deps/send.mjs';
|
|
82
|
+
import '../_chunks/_deps/http-errors.mjs';
|
|
83
|
+
import '../_chunks/_deps/depd.mjs';
|
|
84
|
+
import '../_chunks/_deps/setprototypeof.mjs';
|
|
85
|
+
import '../_chunks/_deps/statuses.mjs';
|
|
86
|
+
import '../_chunks/_deps/inherits.mjs';
|
|
87
|
+
import '../_chunks/_deps/toidentifier.mjs';
|
|
88
|
+
import '../_chunks/_deps/debug.mjs';
|
|
89
|
+
import 'tty';
|
|
90
|
+
import 'util';
|
|
91
|
+
import '../_chunks/_deps/ms.mjs';
|
|
92
|
+
import '../_chunks/_deps/supports-color.mjs';
|
|
93
|
+
import '../_chunks/_deps/etag.mjs';
|
|
94
|
+
import '../_chunks/_deps/fresh.mjs';
|
|
95
|
+
import '../_chunks/_deps/mime-types.mjs';
|
|
96
|
+
import '../_chunks/_deps/mime-db.mjs';
|
|
97
|
+
import '../_chunks/_deps/on-finished.mjs';
|
|
98
|
+
import '../_chunks/_deps/ee-first.mjs';
|
|
99
|
+
import '../_chunks/_deps/range-parser.mjs';
|
|
100
|
+
import 'stream';
|
|
101
|
+
import '../_chunks/_deps/httpxy.mjs';
|
|
102
|
+
import 'node:http';
|
|
103
|
+
import 'node:https';
|
|
104
|
+
import 'node:events';
|
|
105
|
+
import 'youch-core';
|
|
106
|
+
import 'youch';
|
|
107
|
+
import 'source-map';
|
|
108
|
+
import 'srvx';
|
|
109
|
+
import '../_chunks/_deps/@rollup/plugin-alias.mjs';
|
|
110
|
+
import '../_chunks/_deps/@rollup/plugin-inject.mjs';
|
|
111
|
+
import '../_chunks/_deps/@rollup/pluginutils.mjs';
|
|
112
|
+
import './info.mjs';
|
|
113
|
+
import '../_chunks/_deps/@rollup/plugin-replace.mjs';
|
|
114
|
+
import 'unenv';
|
|
115
|
+
import '../_chunks/_deps/unwasm.mjs';
|
|
116
|
+
import 'node:crypto';
|
|
117
|
+
import '../_chunks/_deps/knitwork.mjs';
|
|
118
|
+
import 'db0';
|
|
119
|
+
import 'esbuild';
|
|
120
|
+
import 'nf3';
|
|
121
|
+
import 'rendu';
|
|
122
|
+
import '../_chunks/_presets/_types.mjs';
|
|
123
|
+
import 'vite';
|
|
124
|
+
import '../_chunks/_deps/chokidar.mjs';
|
|
125
|
+
import 'fs/promises';
|
|
126
|
+
import 'events';
|
|
127
|
+
import '../_chunks/_deps/readdirp.mjs';
|
|
128
|
+
import 'node:stream';
|
|
129
|
+
import 'get-port-please';
|
|
130
|
+
import 'node:child_process';
|
|
131
|
+
import '../_chunks/_deps/@pi0/vite-plugin-fullstack.mjs';
|
|
132
|
+
import 'node:assert/strict';
|
|
133
|
+
|
|
134
|
+
async function viteBuild(nitro$1) {
|
|
135
|
+
if (nitro$1.options.dev) {
|
|
136
|
+
throw new Error(
|
|
137
|
+
"Nitro vite builder is not supported in development mode. Please use `vite dev` instead."
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
const { createBuilder } = await import('vite');
|
|
141
|
+
const builder = await createBuilder({
|
|
142
|
+
base: nitro$1.options.rootDir,
|
|
143
|
+
plugins: [await nitro({ _nitro: nitro$1 })],
|
|
144
|
+
logLevel: a ? "warn" : void 0
|
|
145
|
+
});
|
|
146
|
+
await builder.buildApp();
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export { viteBuild };
|
|
@@ -8,7 +8,7 @@ import { r as read, a as readUser } from './rc9.mjs';
|
|
|
8
8
|
import { defu } from 'defu';
|
|
9
9
|
import { f as findWorkspaceDir, r as readPackageJSON } from './pkg-types.mjs';
|
|
10
10
|
import { m as mainExports } from './dotenv.mjs';
|
|
11
|
-
import {
|
|
11
|
+
import { r as resolve, j as join, d as dirname, b as basename, e as extname, n as normalize } from './pathe.mjs';
|
|
12
12
|
import { d as debounce } from './perfect-debounce.mjs';
|
|
13
13
|
|
|
14
14
|
async function setupDotenv(options) {
|
|
@@ -17,7 +17,7 @@ import 'node:child_process';
|
|
|
17
17
|
import { homedir, tmpdir } from 'node:os';
|
|
18
18
|
import { promisify } from 'node:util';
|
|
19
19
|
import { h } from './node-fetch-native.mjs';
|
|
20
|
-
import {
|
|
20
|
+
import { r as resolve, d as dirname, b as basename } from './pathe.mjs';
|
|
21
21
|
import { i as installDependencies } from './nypm.mjs';
|
|
22
22
|
import 'node:module';
|
|
23
23
|
import './tinyexec.mjs';
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
function set(obj, key, val) {
|
|
2
|
+
if (typeof val.value === 'object') val.value = klona$1(val.value);
|
|
3
|
+
if (!val.enumerable || val.get || val.set || !val.configurable || !val.writable || key === '__proto__') {
|
|
4
|
+
Object.defineProperty(obj, key, val);
|
|
5
|
+
} else obj[key] = val.value;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
function klona$1(x) {
|
|
9
|
+
if (typeof x !== 'object') return x;
|
|
10
|
+
|
|
11
|
+
var i=0, k, list, tmp, str=Object.prototype.toString.call(x);
|
|
12
|
+
|
|
13
|
+
if (str === '[object Object]') {
|
|
14
|
+
tmp = Object.create(x.__proto__ || null);
|
|
15
|
+
} else if (str === '[object Array]') {
|
|
16
|
+
tmp = Array(x.length);
|
|
17
|
+
} else if (str === '[object Set]') {
|
|
18
|
+
tmp = new Set;
|
|
19
|
+
x.forEach(function (val) {
|
|
20
|
+
tmp.add(klona$1(val));
|
|
21
|
+
});
|
|
22
|
+
} else if (str === '[object Map]') {
|
|
23
|
+
tmp = new Map;
|
|
24
|
+
x.forEach(function (val, key) {
|
|
25
|
+
tmp.set(klona$1(key), klona$1(val));
|
|
26
|
+
});
|
|
27
|
+
} else if (str === '[object Date]') {
|
|
28
|
+
tmp = new Date(+x);
|
|
29
|
+
} else if (str === '[object RegExp]') {
|
|
30
|
+
tmp = new RegExp(x.source, x.flags);
|
|
31
|
+
} else if (str === '[object DataView]') {
|
|
32
|
+
tmp = new x.constructor( klona$1(x.buffer) );
|
|
33
|
+
} else if (str === '[object ArrayBuffer]') {
|
|
34
|
+
tmp = x.slice(0);
|
|
35
|
+
} else if (str.slice(-6) === 'Array]') {
|
|
36
|
+
// ArrayBuffer.isView(x)
|
|
37
|
+
// ~> `new` bcuz `Buffer.slice` => ref
|
|
38
|
+
tmp = new x.constructor(x);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
if (tmp) {
|
|
42
|
+
for (list=Object.getOwnPropertySymbols(x); i < list.length; i++) {
|
|
43
|
+
set(tmp, list[i], Object.getOwnPropertyDescriptor(x, list[i]));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
for (i=0, list=Object.getOwnPropertyNames(x); i < list.length; i++) {
|
|
47
|
+
if (Object.hasOwnProperty.call(tmp, k=list[i]) && tmp[k] === x[k]) continue;
|
|
48
|
+
set(tmp, k, Object.getOwnPropertyDescriptor(x, k));
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
return tmp || x;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function klona(x) {
|
|
56
|
+
if (typeof x !== 'object') return x;
|
|
57
|
+
|
|
58
|
+
var k, tmp, str=Object.prototype.toString.call(x);
|
|
59
|
+
|
|
60
|
+
if (str === '[object Object]') {
|
|
61
|
+
if (x.constructor !== Object && typeof x.constructor === 'function') {
|
|
62
|
+
tmp = new x.constructor();
|
|
63
|
+
for (k in x) {
|
|
64
|
+
if (x.hasOwnProperty(k) && tmp[k] !== x[k]) {
|
|
65
|
+
tmp[k] = klona(x[k]);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
} else {
|
|
69
|
+
tmp = {}; // null
|
|
70
|
+
for (k in x) {
|
|
71
|
+
if (k === '__proto__') {
|
|
72
|
+
Object.defineProperty(tmp, k, {
|
|
73
|
+
value: klona(x[k]),
|
|
74
|
+
configurable: true,
|
|
75
|
+
enumerable: true,
|
|
76
|
+
writable: true,
|
|
77
|
+
});
|
|
78
|
+
} else {
|
|
79
|
+
tmp[k] = klona(x[k]);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return tmp;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (str === '[object Array]') {
|
|
87
|
+
k = x.length;
|
|
88
|
+
for (tmp=Array(k); k--;) {
|
|
89
|
+
tmp[k] = klona(x[k]);
|
|
90
|
+
}
|
|
91
|
+
return tmp;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (str === '[object Set]') {
|
|
95
|
+
tmp = new Set;
|
|
96
|
+
x.forEach(function (val) {
|
|
97
|
+
tmp.add(klona(val));
|
|
98
|
+
});
|
|
99
|
+
return tmp;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
if (str === '[object Map]') {
|
|
103
|
+
tmp = new Map;
|
|
104
|
+
x.forEach(function (val, key) {
|
|
105
|
+
tmp.set(klona(key), klona(val));
|
|
106
|
+
});
|
|
107
|
+
return tmp;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
if (str === '[object Date]') {
|
|
111
|
+
return new Date(+x);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if (str === '[object RegExp]') {
|
|
115
|
+
tmp = new RegExp(x.source, x.flags);
|
|
116
|
+
tmp.lastIndex = x.lastIndex;
|
|
117
|
+
return tmp;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
if (str === '[object DataView]') {
|
|
121
|
+
return new x.constructor( klona(x.buffer) );
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
if (str === '[object ArrayBuffer]') {
|
|
125
|
+
return x.slice(0);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// ArrayBuffer.isView(x)
|
|
129
|
+
// ~> `new` bcuz `Buffer.slice` => ref
|
|
130
|
+
if (str.slice(-6) === 'Array]') {
|
|
131
|
+
return new x.constructor(x);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
return x;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export { klona as a, klona$1 as k };
|
|
@@ -169,4 +169,4 @@ function genRawValue(value, indent = "", options = {}) {
|
|
|
169
169
|
return value.toString();
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
export { genSafeVariableName as a,
|
|
172
|
+
export { genSafeVariableName as a, genImport as b, genString as c, genObjectFromRaw as d, genObjectKey as g };
|
|
@@ -4,7 +4,7 @@ import path, { win32, dirname, join } from 'node:path';
|
|
|
4
4
|
import process$1 from 'node:process';
|
|
5
5
|
import fsp from 'node:fs/promises';
|
|
6
6
|
import { fileURLToPath } from 'node:url';
|
|
7
|
-
import {
|
|
7
|
+
import { r as resolvePathSync } from './mlly.mjs';
|
|
8
8
|
import { q as quansync } from './quansync.mjs';
|
|
9
9
|
|
|
10
10
|
const toPath = urlOrPath => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;
|
|
@@ -2410,4 +2410,4 @@ function detectSyntax(code, opts = {}) {
|
|
|
2410
2410
|
};
|
|
2411
2411
|
}
|
|
2412
2412
|
|
|
2413
|
-
export {
|
|
2413
|
+
export { resolvePath as a, findExports as b, findTypeExports as c, detectSyntax as d, resolve as e, findStaticImports as f, resolveModuleExportNames as g, fileURLToPath as h, parseNodeModulePath as i, lookupNodeModuleSubpath as l, parseStaticImport as p, resolvePathSync as r, sanitizeFilePath as s };
|
|
@@ -2,7 +2,7 @@ import 'node:module';
|
|
|
2
2
|
import { v as ve } from './tinyexec.mjs';
|
|
3
3
|
import { existsSync } from 'node:fs';
|
|
4
4
|
import { readFile } from 'node:fs/promises';
|
|
5
|
-
import {
|
|
5
|
+
import { r as resolve, j as join, n as normalize } from './pathe.mjs';
|
|
6
6
|
|
|
7
7
|
async function findup(cwd, match, options = {}) {
|
|
8
8
|
const segments = normalize(cwd).split("/");
|
|
@@ -248,4 +248,4 @@ function hasTrailingSlash(path = "/") {
|
|
|
248
248
|
return lastChar === "/" || lastChar === "\\";
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
-
export {
|
|
251
|
+
export { relative as a, basename as b, resolveAlias as c, dirname as d, extname as e, isAbsolute as i, join as j, normalize as n, parse as p, resolve as r };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { promises, statSync } from 'node:fs';
|
|
2
|
-
import {
|
|
2
|
+
import { a as resolvePath } from './mlly.mjs';
|
|
3
3
|
import { x, h, a as x$1, b as h$1, S } from './confbox.mjs';
|
|
4
|
-
import { i as isAbsolute,
|
|
4
|
+
import { i as isAbsolute, r as resolve, j as join, n as normalize, d as dirname } from './pathe.mjs';
|
|
5
5
|
import { r as resolveModulePath } from './exsolve.mjs';
|
|
6
6
|
import { fileURLToPath } from 'node:url';
|
|
7
7
|
import { readFile } from 'node:fs/promises';
|
|
@@ -323,4 +323,4 @@ function serializeData(ctx, value) {
|
|
|
323
323
|
return JSON.stringify(value);
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
-
export { addRoute as a, compileRouterToString as b, createRouter as c,
|
|
326
|
+
export { addRoute as a, compileRouterToString as b, createRouter as c, findRoute as d, findAllRoutes as f };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const r=Object.create(null),i=e=>globalThis.process?.env||import.meta.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?r:globalThis),o=new Proxy(r,{get(e,s){return i()[s]??r[s]},has(e,s){const E=i();return s in E||s in r},set(e,s,E){const B=i(true);return B[s]=E,true},deleteProperty(e,s){if(!s)return false;const E=i(true);return delete E[s],true},ownKeys(){const e=i(true);return Object.keys(e)}}),t=typeof process<"u"&&process.env&&process.env.NODE_ENV||"",f=[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:true}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:true}],["CLOUDFLARE_WORKERS","WORKERS_CI",{ci:true}],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["HUDSON","HUDSON_URL"],["JENKINS","JENKINS_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:false}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:false}],["VERCEL","VERCEL_ENV",{ci:false}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:false}],["CODESANDBOX","CODESANDBOX_HOST",{ci:false}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:true}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:true}]];function b(){if(globalThis.process?.env)for(const e of f){const s=e[1]||e[0];if(globalThis.process?.env[s])return {name:e[0].toLowerCase(),...e[2]}}return globalThis.process?.env?.SHELL==="/bin/jsh"&&globalThis.process?.versions?.webcontainer?{name:"stackblitz",ci:false}:{name:"",ci:false}}const l=b(),p=l.name;function n(e){return e?e!=="false":false}const I=globalThis.process?.platform||"",T=n(o.CI)||l.ci!==false,R=n(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY),d=n(o.DEBUG),a=t==="test"||n(o.TEST);n(o.MINIMAL)||T||a||!R;const A=/^win/i.test(I);!n(o.NO_COLOR)&&(n(o.FORCE_COLOR)||(R||A)&&o.TERM!=="dumb"||T);const C=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null;Number(C?.split(".")[0])||null;const W=globalThis.process||Object.create(null),_={versions:{}};new Proxy(W,{get(e,s){if(s==="env")return o;if(s in e)return e[s];if(s in _)return _[s]}});const O=globalThis.process?.release?.name==="node",c=!!globalThis.Bun||!!globalThis.process?.versions?.bun,D=!!globalThis.Deno,L=!!globalThis.fastly,S=!!globalThis.Netlify,u=!!globalThis.EdgeRuntime,N=globalThis.navigator?.userAgent==="Cloudflare-Workers",F=[[S,"netlify"],[u,"edge-light"],[N,"workerd"],[L,"fastly"],[D,"deno"],[c,"bun"],[O,"node"]];function G(){const e=F.find(s=>s[0]);if(e)return {name:e[1]}}const P=G();P?.name||"";
|
|
2
|
+
|
|
3
|
+
export { T, a, d, p };
|
|
@@ -8,12 +8,12 @@ import { basename } from 'node:path';
|
|
|
8
8
|
import { M as MagicString } from './magic-string.mjs';
|
|
9
9
|
import { c as createUnplugin } from './unplugin.mjs';
|
|
10
10
|
import { c as createFilter } from './unplugin-utils.mjs';
|
|
11
|
-
import { f as findStaticImports,
|
|
11
|
+
import { f as findStaticImports, p as parseStaticImport, d as detectSyntax, b as findExports, c as findTypeExports, e as resolve$1, g as resolveModuleExportNames } from './mlly.mjs';
|
|
12
12
|
import { p as pm } from './picomatch.mjs';
|
|
13
13
|
import { g as glob } from './tinyglobby.mjs';
|
|
14
14
|
import { b as resolvePackageJSON, r as readPackageJSON } from './pkg-types.mjs';
|
|
15
15
|
import { r as resolveModule } from './local-pkg.mjs';
|
|
16
|
-
import { i as isAbsolute,
|
|
16
|
+
import { i as isAbsolute, a as relative, r as resolve, p as parse, d as dirname, n as normalize, j as join, b as basename$1 } from './pathe.mjs';
|
|
17
17
|
import { p as parse$1 } from './acorn.mjs';
|
|
18
18
|
import { a as walk } from './estree-walker.mjs';
|
|
19
19
|
import { s as stripLiteral } from './strip-literal.mjs';
|
|
@@ -2,8 +2,8 @@ import { existsSync, promises } from 'node:fs';
|
|
|
2
2
|
import { M as MagicString } from './magic-string.mjs';
|
|
3
3
|
import { c as createUnplugin } from './unplugin.mjs';
|
|
4
4
|
import { createHash } from 'node:crypto';
|
|
5
|
-
import { a as genSafeVariableName,
|
|
6
|
-
import {
|
|
5
|
+
import { a as genSafeVariableName, b as genImport, c as genString, d as genObjectFromRaw } from './knitwork.mjs';
|
|
6
|
+
import { b as basename } from './pathe.mjs';
|
|
7
7
|
|
|
8
8
|
var __create = Object.create;
|
|
9
9
|
var __defProp = Object.defineProperty;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as resolveCompatibilityDatesFromEnv, f as formatCompatibilityDate } from '../_deps/compatx.mjs';
|
|
2
2
|
import { kebabCase } from 'scule';
|
|
3
|
-
import {
|
|
3
|
+
import { p } from '../_deps/std-env.mjs';
|
|
4
4
|
import { a as allPresets } from './_all.mjs';
|
|
5
5
|
|
|
6
6
|
const _stdProviderMap = {
|
|
@@ -12,7 +12,7 @@ async function resolvePreset(name, opts = {}) {
|
|
|
12
12
|
if (name === ".") {
|
|
13
13
|
return void 0;
|
|
14
14
|
}
|
|
15
|
-
const _name = kebabCase(name) ||
|
|
15
|
+
const _name = kebabCase(name) || p;
|
|
16
16
|
const _compatDates = opts.compatibilityDate ? resolveCompatibilityDatesFromEnv(opts.compatibilityDate) : false;
|
|
17
17
|
const matches = allPresets.filter((preset2) => {
|
|
18
18
|
const names = [preset2._meta.name, preset2._meta.stdName, ...preset2._meta.aliases || []].filter(Boolean);
|
|
@@ -3,7 +3,7 @@ import { resolve } from 'node:path';
|
|
|
3
3
|
import fsp from 'node:fs/promises';
|
|
4
4
|
import consola from 'consola';
|
|
5
5
|
import { colors } from 'consola/utils';
|
|
6
|
-
import { d as dirname,
|
|
6
|
+
import { d as dirname, a as relative } from '../_deps/pathe.mjs';
|
|
7
7
|
|
|
8
8
|
function defineNitroPreset(preset, meta) {
|
|
9
9
|
if (typeof preset !== "function" && preset.entry && preset.entry.startsWith(".")) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { w as writeFile, d as defineNitroPreset } from './_utils.mjs';
|
|
2
2
|
import fsp from 'node:fs/promises';
|
|
3
|
-
import { j as join,
|
|
3
|
+
import { j as join, r as resolve } from '../_deps/pathe.mjs';
|
|
4
4
|
|
|
5
5
|
async function writeSWARoutes(nitro) {
|
|
6
6
|
const host = {
|
|
@@ -5,12 +5,12 @@ import { readFile } from 'node:fs/promises';
|
|
|
5
5
|
import { relative, dirname, extname, resolve as resolve$1 } from 'node:path';
|
|
6
6
|
import { c as findNearestFile, d as readGitConfig, r as readPackageJSON, e as findFile } from '../_deps/pkg-types.mjs';
|
|
7
7
|
import { defu } from 'defu';
|
|
8
|
-
import {
|
|
8
|
+
import { p } from '../_deps/std-env.mjs';
|
|
9
9
|
import { g as glob } from '../_deps/tinyglobby.mjs';
|
|
10
10
|
import { withoutLeadingSlash, withTrailingSlash, joinURL, withLeadingSlash, hasProtocol } from 'ufo';
|
|
11
|
-
import { j as join,
|
|
11
|
+
import { j as join, r as resolve } from '../_deps/pathe.mjs';
|
|
12
12
|
import { Q, b as h } from '../_deps/confbox.mjs';
|
|
13
|
-
import {
|
|
13
|
+
import { h as fileURLToPath } from '../_deps/mlly.mjs';
|
|
14
14
|
import { r as resolveModulePath } from '../_deps/exsolve.mjs';
|
|
15
15
|
|
|
16
16
|
const builtnNodeModules = [
|
|
@@ -240,7 +240,7 @@ async function writeCFPagesRedirects(nitro) {
|
|
|
240
240
|
}
|
|
241
241
|
async function enableNodeCompat(nitro) {
|
|
242
242
|
nitro.options.cloudflare ??= {};
|
|
243
|
-
if (nitro.options.cloudflare.deployConfig === void 0 &&
|
|
243
|
+
if (nitro.options.cloudflare.deployConfig === void 0 && p === "cloudflare_workers") {
|
|
244
244
|
nitro.options.cloudflare.deployConfig = true;
|
|
245
245
|
}
|
|
246
246
|
if (nitro.options.cloudflare.nodeCompat === void 0) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as defineNitroPreset, w as writeFile } from './_utils.mjs';
|
|
2
2
|
import { version } from 'nitro/meta';
|
|
3
|
-
import { j as join,
|
|
3
|
+
import { j as join, a as relative } from '../_deps/pathe.mjs';
|
|
4
4
|
import { g as gr } from '../_deps/confbox.mjs';
|
|
5
5
|
|
|
6
6
|
const firebaseAppHosting = defineNitroPreset(
|
|
@@ -2,7 +2,7 @@ import { w as writeFile, d as defineNitroPreset } from './_utils.mjs';
|
|
|
2
2
|
import { existsSync } from 'node:fs';
|
|
3
3
|
import { readFile } from 'node:fs/promises';
|
|
4
4
|
import { defu } from 'defu';
|
|
5
|
-
import {
|
|
5
|
+
import { r as resolve } from '../_deps/pathe.mjs';
|
|
6
6
|
|
|
7
7
|
async function writeIISFiles(nitro) {
|
|
8
8
|
await writeFile(
|
|
@@ -2,8 +2,8 @@ import { w as writeFile, d as defineNitroPreset } from './_utils.mjs';
|
|
|
2
2
|
import fsp from 'node:fs/promises';
|
|
3
3
|
import { defu } from 'defu';
|
|
4
4
|
import { joinURL, withoutLeadingSlash, withLeadingSlash } from 'ufo';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { a } from '../_deps/std-env.mjs';
|
|
6
|
+
import { r as resolve, d as dirname, a as relative } from '../_deps/pathe.mjs';
|
|
7
7
|
|
|
8
8
|
const SUPPORTED_NODE_VERSIONS = [20, 22];
|
|
9
9
|
const FALLBACK_ROUTE = "/__fallback";
|
|
@@ -201,7 +201,7 @@ function deprecateSWR(nitro) {
|
|
|
201
201
|
hasLegacyOptions = true;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
if (hasLegacyOptions && !
|
|
204
|
+
if (hasLegacyOptions && !a) {
|
|
205
205
|
nitro.logger.warn(
|
|
206
206
|
"Nitro now uses `isr` option to configure ISR behavior on Vercel. Backwards-compatible support for `static` and `swr` options within the Vercel Build Options API will be removed in the future versions. Set `future.nativeSWR: true` nitro config disable this warning."
|
|
207
207
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import fsp from 'node:fs/promises';
|
|
2
2
|
import { d as defineNitroPreset, w as writeFile } from './_utils.mjs';
|
|
3
|
-
import {
|
|
3
|
+
import { r as resolve, d as dirname, a as relative } from '../_deps/pathe.mjs';
|
|
4
4
|
|
|
5
5
|
const zeabur = defineNitroPreset(
|
|
6
6
|
{
|