nitro-nightly 3.1.0-20251028-110430-e607b753 → 3.1.0-20251028-132924-f89aefa2
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
package/dist/vite.mjs
CHANGED
|
@@ -1,132 +1,104 @@
|
|
|
1
1
|
export { n as nitro } from './_build/vite.mjs';
|
|
2
|
-
import '
|
|
3
|
-
import 'consola
|
|
4
|
-
import '
|
|
5
|
-
import './_deps/
|
|
6
|
-
import './_build/assets.mjs';
|
|
2
|
+
import './_build/prepare.mjs';
|
|
3
|
+
import 'consola';
|
|
4
|
+
import 'hookable';
|
|
5
|
+
import './_chunks/_deps/c12.mjs';
|
|
7
6
|
import 'node:fs';
|
|
8
|
-
import './_deps/tinyglobby.mjs';
|
|
9
|
-
import 'fs';
|
|
10
|
-
import 'path';
|
|
11
|
-
import 'url';
|
|
12
|
-
import './_deps/fdir.mjs';
|
|
13
|
-
import 'module';
|
|
14
|
-
import './_deps/picomatch.mjs';
|
|
15
|
-
import './_deps/commondir.mjs';
|
|
16
7
|
import 'node:fs/promises';
|
|
17
|
-
import '
|
|
18
|
-
import '
|
|
19
|
-
import './_deps/
|
|
20
|
-
import 'node:zlib';
|
|
21
|
-
import './_deps/rou3.mjs';
|
|
22
|
-
import 'ufo';
|
|
23
|
-
import './_build/build.mjs';
|
|
24
|
-
import './_build/rolldown.mjs';
|
|
25
|
-
import './_deps/mlly.mjs';
|
|
26
|
-
import './_deps/acorn.mjs';
|
|
27
|
-
import 'node:module';
|
|
28
|
-
import './_deps/pkg-types.mjs';
|
|
29
|
-
import './_deps/confbox.mjs';
|
|
30
|
-
import './_deps/exsolve.mjs';
|
|
8
|
+
import 'node:url';
|
|
9
|
+
import 'node:os';
|
|
10
|
+
import './_chunks/_deps/exsolve.mjs';
|
|
31
11
|
import 'node:path';
|
|
32
12
|
import 'node:assert';
|
|
33
13
|
import 'node:process';
|
|
34
14
|
import 'node:v8';
|
|
35
15
|
import 'node:util';
|
|
16
|
+
import 'jiti';
|
|
17
|
+
import './_chunks/_deps/rc9.mjs';
|
|
18
|
+
import 'destr';
|
|
19
|
+
import 'defu';
|
|
20
|
+
import './_chunks/_deps/pkg-types.mjs';
|
|
21
|
+
import './_chunks/_deps/mlly.mjs';
|
|
22
|
+
import './_chunks/_deps/acorn.mjs';
|
|
23
|
+
import 'node:module';
|
|
24
|
+
import 'ufo';
|
|
25
|
+
import './_chunks/_deps/pathe.mjs';
|
|
26
|
+
import './_chunks/_deps/confbox.mjs';
|
|
27
|
+
import './_chunks/_deps/dotenv.mjs';
|
|
28
|
+
import 'fs';
|
|
29
|
+
import 'os';
|
|
30
|
+
import 'crypto';
|
|
31
|
+
import 'path';
|
|
32
|
+
import './_chunks/_deps/commondir.mjs';
|
|
33
|
+
import './_chunks/_deps/perfect-debounce.mjs';
|
|
34
|
+
import './_chunks/_deps/compatx.mjs';
|
|
35
|
+
import './_chunks/_deps/klona.mjs';
|
|
36
36
|
import 'nitro/runtime/meta';
|
|
37
|
-
import './
|
|
38
|
-
import '
|
|
39
|
-
import './
|
|
40
|
-
import '
|
|
41
|
-
import './_deps/
|
|
42
|
-
import '
|
|
43
|
-
import './_deps
|
|
44
|
-
import '
|
|
37
|
+
import './_chunks/_deps/std-env.mjs';
|
|
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';
|
|
45
47
|
import 'ohash';
|
|
46
|
-
import './_deps/unimport.mjs';
|
|
48
|
+
import './_chunks/_deps/unimport.mjs';
|
|
47
49
|
import 'scule';
|
|
48
|
-
import '
|
|
49
|
-
import './_deps/
|
|
50
|
+
import './_chunks/_deps/magic-string.mjs';
|
|
51
|
+
import './_chunks/_deps/@jridgewell/sourcemap-codec.mjs';
|
|
52
|
+
import './_chunks/_deps/unplugin.mjs';
|
|
50
53
|
import 'node:buffer';
|
|
51
|
-
import './_deps/@jridgewell/remapping.mjs';
|
|
52
|
-
import './_deps/@jridgewell/trace-mapping.mjs';
|
|
53
|
-
import './_deps/@jridgewell/resolve-uri.mjs';
|
|
54
|
-
import './_deps/@jridgewell/gen-mapping.mjs';
|
|
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';
|
|
55
58
|
import 'node:querystring';
|
|
56
|
-
import './_deps/webpack-virtual-modules.mjs';
|
|
59
|
+
import './_chunks/_deps/webpack-virtual-modules.mjs';
|
|
57
60
|
import 'constants';
|
|
58
|
-
import './_deps/unplugin-utils.mjs';
|
|
59
|
-
import './_deps/local-pkg.mjs';
|
|
60
|
-
import './_deps/quansync.mjs';
|
|
61
|
-
import './_deps/
|
|
62
|
-
import './_deps/
|
|
63
|
-
import './_deps/
|
|
64
|
-
import '
|
|
65
|
-
import './_deps/
|
|
66
|
-
import '
|
|
67
|
-
import '
|
|
68
|
-
import './_deps/etag.mjs';
|
|
69
|
-
import 'crypto';
|
|
70
|
-
import 'unstorage';
|
|
71
|
-
import 'nf3';
|
|
72
|
-
import 'rendu';
|
|
73
|
-
import './_deps/chokidar.mjs';
|
|
74
|
-
import 'fs/promises';
|
|
75
|
-
import 'events';
|
|
76
|
-
import './_deps/readdirp.mjs';
|
|
77
|
-
import 'node:stream';
|
|
78
|
-
import 'os';
|
|
79
|
-
import './_deps/perfect-debounce.mjs';
|
|
80
|
-
import './_build/types.mjs';
|
|
81
|
-
import './_deps/untyped.mjs';
|
|
82
|
-
import './_deps/compatx.mjs';
|
|
83
|
-
import './_deps/gzip-size.mjs';
|
|
84
|
-
import 'stream';
|
|
85
|
-
import './_deps/pretty-bytes.mjs';
|
|
86
|
-
import 'std-env';
|
|
87
|
-
import './_build/snapshot.mjs';
|
|
88
|
-
import 'klona';
|
|
89
|
-
import './_build/info.mjs';
|
|
90
|
-
import 'nitro/meta';
|
|
91
|
-
import './_presets/_types.mjs';
|
|
92
|
-
import './_deps/ultrahtml.mjs';
|
|
93
|
-
import 'h3';
|
|
94
|
-
import 'srvx/node';
|
|
95
|
-
import './_build/prepare.mjs';
|
|
96
|
-
import 'hookable';
|
|
97
|
-
import './_deps/c12.mjs';
|
|
98
|
-
import 'jiti';
|
|
99
|
-
import './_deps/rc9.mjs';
|
|
100
|
-
import 'destr';
|
|
101
|
-
import './_deps/dotenv.mjs';
|
|
102
|
-
import 'klona/full';
|
|
103
|
-
import './_deps/escape-string-regexp.mjs';
|
|
104
|
-
import 'ofetch';
|
|
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';
|
|
105
71
|
import 'node:worker_threads';
|
|
72
|
+
import 'h3';
|
|
106
73
|
import 'undici';
|
|
107
|
-
import '
|
|
108
|
-
import '
|
|
109
|
-
import './
|
|
110
|
-
import './_deps/
|
|
111
|
-
import './_deps/
|
|
112
|
-
import './_deps/
|
|
113
|
-
import './_deps/
|
|
114
|
-
import './_deps/
|
|
115
|
-
import './_deps/
|
|
116
|
-
import './_deps/
|
|
117
|
-
import './_deps/
|
|
118
|
-
import './_deps/
|
|
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';
|
|
119
89
|
import 'tty';
|
|
120
90
|
import 'util';
|
|
121
|
-
import './_deps/ms.mjs';
|
|
122
|
-
import './_deps/supports-color.mjs';
|
|
123
|
-
import './_deps/
|
|
124
|
-
import './_deps/
|
|
125
|
-
import './_deps/mime-
|
|
126
|
-
import './_deps/
|
|
127
|
-
import './_deps/
|
|
128
|
-
import './_deps/
|
|
129
|
-
import './_deps/
|
|
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';
|
|
130
102
|
import 'node:http';
|
|
131
103
|
import 'node:https';
|
|
132
104
|
import 'node:events';
|
|
@@ -134,10 +106,27 @@ import 'youch-core';
|
|
|
134
106
|
import 'youch';
|
|
135
107
|
import 'source-map';
|
|
136
108
|
import 'srvx';
|
|
137
|
-
import './_deps/@rollup/plugin-alias.mjs';
|
|
138
|
-
import './_deps/@rollup/plugin-inject.mjs';
|
|
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 './_build/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';
|
|
139
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';
|
|
140
129
|
import 'get-port-please';
|
|
141
130
|
import 'node:child_process';
|
|
142
|
-
import './_deps/@pi0/vite-plugin-fullstack.mjs';
|
|
131
|
+
import './_chunks/_deps/@pi0/vite-plugin-fullstack.mjs';
|
|
143
132
|
import 'node:assert/strict';
|
package/lib/runtime/meta.mjs
CHANGED
|
@@ -11,31 +11,24 @@ export const presetsDir = fileURLToPath(
|
|
|
11
11
|
);
|
|
12
12
|
|
|
13
13
|
export const runtimeDependencies = [
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"ofetch",
|
|
23
|
-
"ohash",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"srvx",
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"uncrypto",
|
|
32
|
-
"unctx",
|
|
33
|
-
"unenv",
|
|
34
|
-
"unstorage",
|
|
35
|
-
"crossws",
|
|
36
|
-
"croner",
|
|
37
|
-
"rendu",
|
|
38
|
-
"nitro/runtime",
|
|
14
|
+
"crossws", // dep
|
|
15
|
+
"croner", // traced
|
|
16
|
+
"db0", // dep
|
|
17
|
+
"defu", // traced
|
|
18
|
+
"destr", // traced
|
|
19
|
+
"h3", // dep
|
|
20
|
+
"rou3", // sub-dep of h3
|
|
21
|
+
"hookable", // traced
|
|
22
|
+
"ofetch", // dep
|
|
23
|
+
"ohash", // traced
|
|
24
|
+
"rendu", // traced
|
|
25
|
+
"scule", // traced
|
|
26
|
+
"srvx", // dep
|
|
27
|
+
"ufo", // traced
|
|
28
|
+
"unctx", // traced
|
|
29
|
+
"unenv", // dep
|
|
30
|
+
"unstorage", // dep
|
|
39
31
|
"nitro/deps/h3",
|
|
40
32
|
"nitro/deps/ofetch",
|
|
33
|
+
"nitro/runtime",
|
|
41
34
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nitro-nightly",
|
|
3
|
-
"version": "3.1.0-20251028-
|
|
3
|
+
"version": "3.1.0-20251028-132924-f89aefa2",
|
|
4
4
|
"description": "Build and Deploy Universal JavaScript Servers",
|
|
5
5
|
"homepage": "https://nitro.build",
|
|
6
6
|
"repository": "nitrojs/nitro",
|
|
@@ -53,22 +53,19 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"consola": "^3.4.2",
|
|
56
|
-
"cookie-es": "^2.0.0",
|
|
57
56
|
"crossws": "^0.4.1",
|
|
58
57
|
"db0": "^0.3.4",
|
|
59
58
|
"esbuild": "^0.25.11",
|
|
60
|
-
"fetchdts": "^0.1.7",
|
|
61
59
|
"h3": "2.0.1-rc.5",
|
|
62
60
|
"jiti": "^2.6.1",
|
|
63
61
|
"nf3": "^0.1.3",
|
|
64
|
-
"ofetch": "^
|
|
62
|
+
"ofetch": "^2.0.0-alpha.3",
|
|
65
63
|
"ohash": "^2.0.11",
|
|
66
|
-
"rendu": "^0.0.6",
|
|
67
64
|
"rollup": "^4.52.5",
|
|
68
|
-
"srvx": "^0.9.
|
|
65
|
+
"srvx": "^0.9.2",
|
|
69
66
|
"undici": "^7.16.0",
|
|
70
|
-
"unenv": "2.0.0-rc.
|
|
71
|
-
"unstorage": "2.0.0-alpha.
|
|
67
|
+
"unenv": "^2.0.0-rc.23",
|
|
68
|
+
"unstorage": "^2.0.0-alpha.4"
|
|
72
69
|
},
|
|
73
70
|
"devDependencies": {
|
|
74
71
|
"@azure/functions": "^3.5.1",
|
|
@@ -104,6 +101,7 @@
|
|
|
104
101
|
"citty": "^0.1.6",
|
|
105
102
|
"compatx": "^0.2.0",
|
|
106
103
|
"confbox": "^0.2.2",
|
|
104
|
+
"cookie-es": "^2.0.0",
|
|
107
105
|
"croner": "^9.1.0",
|
|
108
106
|
"defu": "^6.1.4",
|
|
109
107
|
"destr": "^2.0.5",
|
|
@@ -133,6 +131,7 @@
|
|
|
133
131
|
"prettier": "^3.6.2",
|
|
134
132
|
"pretty-bytes": "^7.1.0",
|
|
135
133
|
"react": "^19.2.0",
|
|
134
|
+
"rendu": "^0.0.7",
|
|
136
135
|
"rolldown": "1.0.0-beta.45",
|
|
137
136
|
"rou3": "^0.7.9",
|
|
138
137
|
"scule": "^1.3.0",
|
|
@@ -153,9 +152,9 @@
|
|
|
153
152
|
"untyped": "^2.0.0",
|
|
154
153
|
"unwasm": "^0.3.11",
|
|
155
154
|
"vitest": "^4.0.4",
|
|
156
|
-
"wrangler": "^4.45.
|
|
155
|
+
"wrangler": "^4.45.1",
|
|
157
156
|
"xml2js": "^0.6.2",
|
|
158
|
-
"youch": "4.1.0-beta.11",
|
|
157
|
+
"youch": "^4.1.0-beta.11",
|
|
159
158
|
"youch-core": "^0.3.3"
|
|
160
159
|
},
|
|
161
160
|
"peerDependencies": {
|
package/dist/_build/assets.mjs
DELETED
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
import { existsSync, promises } from 'node:fs';
|
|
2
|
-
import { g as glob } from '../_deps/tinyglobby.mjs';
|
|
3
|
-
import fsp, { stat, mkdir, writeFile as writeFile$1 } from 'node:fs/promises';
|
|
4
|
-
import consola from 'consola';
|
|
5
|
-
import { colors } from 'consola/utils';
|
|
6
|
-
import { g as getProperty } from '../_deps/dot-prop.mjs';
|
|
7
|
-
import { r as relative, a as resolve, d as dirname, j as join } from '../_deps/pathe.mjs';
|
|
8
|
-
import zlib from 'node:zlib';
|
|
9
|
-
import { m as mime } from '../_deps/mime.mjs';
|
|
10
|
-
|
|
11
|
-
function prettyPath(p, highlight = true) {
|
|
12
|
-
p = relative(process.cwd(), p);
|
|
13
|
-
return highlight ? colors.cyan(p) : p;
|
|
14
|
-
}
|
|
15
|
-
function resolveNitroPath(path, nitroOptions, base) {
|
|
16
|
-
if (typeof path !== "string") {
|
|
17
|
-
throw new TypeError("Invalid path: " + path);
|
|
18
|
-
}
|
|
19
|
-
path = _compilePathTemplate(path)(nitroOptions);
|
|
20
|
-
for (const base2 in nitroOptions.alias) {
|
|
21
|
-
if (path.startsWith(base2)) {
|
|
22
|
-
path = nitroOptions.alias[base2] + path.slice(base2.length);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
return resolve(base || nitroOptions.srcDir, path);
|
|
26
|
-
}
|
|
27
|
-
function _compilePathTemplate(contents) {
|
|
28
|
-
return (params) => contents.replace(/{{ ?([\w.]+) ?}}/g, (_, match) => {
|
|
29
|
-
const val = getProperty(params, match);
|
|
30
|
-
if (!val) {
|
|
31
|
-
consola.warn(
|
|
32
|
-
`cannot resolve template param '${match}' in ${contents.slice(0, 20)}`
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
return val || `${match}`;
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
async function writeFile(file, contents, log = false) {
|
|
39
|
-
await mkdir(dirname(file), { recursive: true });
|
|
40
|
-
await writeFile$1(
|
|
41
|
-
file,
|
|
42
|
-
contents,
|
|
43
|
-
typeof contents === "string" ? "utf8" : void 0
|
|
44
|
-
);
|
|
45
|
-
if (log) {
|
|
46
|
-
consola.info("Generated", prettyPath(file));
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
async function isDirectory(path) {
|
|
50
|
-
try {
|
|
51
|
-
return (await stat(path)).isDirectory();
|
|
52
|
-
} catch {
|
|
53
|
-
return false;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
async function compressPublicAssets(nitro) {
|
|
58
|
-
const publicFiles = await glob("**", {
|
|
59
|
-
cwd: nitro.options.output.publicDir,
|
|
60
|
-
absolute: false,
|
|
61
|
-
dot: true,
|
|
62
|
-
ignore: ["**/*.gz", "**/*.br"]
|
|
63
|
-
});
|
|
64
|
-
await Promise.all(
|
|
65
|
-
publicFiles.map(async (fileName) => {
|
|
66
|
-
const filePath = resolve(nitro.options.output.publicDir, fileName);
|
|
67
|
-
if (existsSync(filePath + ".gz") || existsSync(filePath + ".br")) {
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
const mimeType = mime.getType(fileName) || "text/plain";
|
|
71
|
-
const fileContents = await fsp.readFile(filePath);
|
|
72
|
-
if (fileContents.length < 1024 || fileName.endsWith(".map") || !isCompressibleMime(mimeType)) {
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
const { gzip, brotli } = nitro.options.compressPublicAssets || {};
|
|
76
|
-
const encodings = [
|
|
77
|
-
gzip !== false && "gzip",
|
|
78
|
-
brotli !== false && "br"
|
|
79
|
-
].filter(Boolean);
|
|
80
|
-
await Promise.all(
|
|
81
|
-
encodings.map(async (encoding) => {
|
|
82
|
-
const suffix = "." + (encoding === "gzip" ? "gz" : "br");
|
|
83
|
-
const compressedPath = filePath + suffix;
|
|
84
|
-
if (existsSync(compressedPath)) {
|
|
85
|
-
return;
|
|
86
|
-
}
|
|
87
|
-
const gzipOptions = { level: zlib.constants.Z_BEST_COMPRESSION };
|
|
88
|
-
const brotliOptions = {
|
|
89
|
-
[zlib.constants.BROTLI_PARAM_MODE]: isTextMime(mimeType) ? zlib.constants.BROTLI_MODE_TEXT : zlib.constants.BROTLI_MODE_GENERIC,
|
|
90
|
-
[zlib.constants.BROTLI_PARAM_QUALITY]: zlib.constants.BROTLI_MAX_QUALITY,
|
|
91
|
-
[zlib.constants.BROTLI_PARAM_SIZE_HINT]: fileContents.length
|
|
92
|
-
};
|
|
93
|
-
const compressedBuff = await new Promise(
|
|
94
|
-
(resolve2, reject) => {
|
|
95
|
-
const cb = (error, result) => error ? reject(error) : resolve2(result);
|
|
96
|
-
if (encoding === "gzip") {
|
|
97
|
-
zlib.gzip(fileContents, gzipOptions, cb);
|
|
98
|
-
} else {
|
|
99
|
-
zlib.brotliCompress(fileContents, brotliOptions, cb);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
);
|
|
103
|
-
await fsp.writeFile(compressedPath, compressedBuff);
|
|
104
|
-
})
|
|
105
|
-
);
|
|
106
|
-
})
|
|
107
|
-
);
|
|
108
|
-
}
|
|
109
|
-
function isTextMime(mimeType) {
|
|
110
|
-
return /text|javascript|json|xml/.test(mimeType);
|
|
111
|
-
}
|
|
112
|
-
const COMPRESSIBLE_MIMES_RE = /* @__PURE__ */ new Set([
|
|
113
|
-
"application/dash+xml",
|
|
114
|
-
"application/eot",
|
|
115
|
-
"application/font",
|
|
116
|
-
"application/font-sfnt",
|
|
117
|
-
"application/javascript",
|
|
118
|
-
"application/json",
|
|
119
|
-
"application/opentype",
|
|
120
|
-
"application/otf",
|
|
121
|
-
"application/pdf",
|
|
122
|
-
"application/pkcs7-mime",
|
|
123
|
-
"application/protobuf",
|
|
124
|
-
"application/rss+xml",
|
|
125
|
-
"application/truetype",
|
|
126
|
-
"application/ttf",
|
|
127
|
-
"application/vnd.apple.mpegurl",
|
|
128
|
-
"application/vnd.mapbox-vector-tile",
|
|
129
|
-
"application/vnd.ms-fontobject",
|
|
130
|
-
"application/wasm",
|
|
131
|
-
"application/xhtml+xml",
|
|
132
|
-
"application/xml",
|
|
133
|
-
"application/x-font-opentype",
|
|
134
|
-
"application/x-font-truetype",
|
|
135
|
-
"application/x-font-ttf",
|
|
136
|
-
"application/x-httpd-cgi",
|
|
137
|
-
"application/x-javascript",
|
|
138
|
-
"application/x-mpegurl",
|
|
139
|
-
"application/x-opentype",
|
|
140
|
-
"application/x-otf",
|
|
141
|
-
"application/x-perl",
|
|
142
|
-
"application/x-ttf",
|
|
143
|
-
"font/eot",
|
|
144
|
-
"font/opentype",
|
|
145
|
-
"font/otf",
|
|
146
|
-
"font/ttf",
|
|
147
|
-
"image/svg+xml",
|
|
148
|
-
"text/css",
|
|
149
|
-
"text/csv",
|
|
150
|
-
"text/html",
|
|
151
|
-
"text/javascript",
|
|
152
|
-
"text/js",
|
|
153
|
-
"text/plain",
|
|
154
|
-
"text/richtext",
|
|
155
|
-
"text/tab-separated-values",
|
|
156
|
-
"text/xml",
|
|
157
|
-
"text/x-component",
|
|
158
|
-
"text/x-java-source",
|
|
159
|
-
"text/x-script",
|
|
160
|
-
"vnd.apple.mpegurl"
|
|
161
|
-
]);
|
|
162
|
-
function isCompressibleMime(mimeType) {
|
|
163
|
-
return COMPRESSIBLE_MIMES_RE.has(mimeType);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
const NEGATION_RE = /^(!?)(.*)$/;
|
|
167
|
-
const PARENT_DIR_GLOB_RE = /!?\.\.\//;
|
|
168
|
-
async function scanUnprefixedPublicAssets(nitro) {
|
|
169
|
-
const scannedPaths = [];
|
|
170
|
-
for (const asset of nitro.options.publicAssets) {
|
|
171
|
-
if (asset.baseURL && asset.baseURL !== "/" && !asset.fallthrough) {
|
|
172
|
-
continue;
|
|
173
|
-
}
|
|
174
|
-
if (!await isDirectory(asset.dir)) {
|
|
175
|
-
continue;
|
|
176
|
-
}
|
|
177
|
-
const includePatterns = getIncludePatterns(nitro, asset.dir);
|
|
178
|
-
const publicAssets = await glob(includePatterns, {
|
|
179
|
-
cwd: asset.dir,
|
|
180
|
-
absolute: false,
|
|
181
|
-
dot: true
|
|
182
|
-
});
|
|
183
|
-
scannedPaths.push(
|
|
184
|
-
...publicAssets.map((file) => join(asset.baseURL || "/", file))
|
|
185
|
-
);
|
|
186
|
-
}
|
|
187
|
-
return scannedPaths;
|
|
188
|
-
}
|
|
189
|
-
async function copyPublicAssets(nitro) {
|
|
190
|
-
if (nitro.options.noPublicDir) {
|
|
191
|
-
return;
|
|
192
|
-
}
|
|
193
|
-
for (const asset of nitro.options.publicAssets) {
|
|
194
|
-
const srcDir = asset.dir;
|
|
195
|
-
const dstDir = join(nitro.options.output.publicDir, asset.baseURL);
|
|
196
|
-
if (await isDirectory(srcDir)) {
|
|
197
|
-
const includePatterns = getIncludePatterns(nitro, srcDir);
|
|
198
|
-
const publicAssets = await glob(includePatterns, {
|
|
199
|
-
cwd: srcDir,
|
|
200
|
-
absolute: false,
|
|
201
|
-
dot: true
|
|
202
|
-
});
|
|
203
|
-
await Promise.all(
|
|
204
|
-
publicAssets.map(async (file) => {
|
|
205
|
-
const src = join(srcDir, file);
|
|
206
|
-
const dst = join(dstDir, file);
|
|
207
|
-
if (!existsSync(dst)) {
|
|
208
|
-
await promises.cp(src, dst);
|
|
209
|
-
}
|
|
210
|
-
})
|
|
211
|
-
);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
if (nitro.options.compressPublicAssets) {
|
|
215
|
-
await compressPublicAssets(nitro);
|
|
216
|
-
}
|
|
217
|
-
nitro.logger.success(
|
|
218
|
-
"Generated public " + prettyPath(nitro.options.output.publicDir)
|
|
219
|
-
);
|
|
220
|
-
}
|
|
221
|
-
function getIncludePatterns(nitro, srcDir) {
|
|
222
|
-
return [
|
|
223
|
-
"**",
|
|
224
|
-
...nitro.options.ignore.map((p) => {
|
|
225
|
-
const [_, negation, pattern] = p.match(NEGATION_RE) || [];
|
|
226
|
-
return (
|
|
227
|
-
// Convert ignore to include patterns
|
|
228
|
-
(negation ? "" : "!") + // Make non-glob patterns relative to publicAssetDir
|
|
229
|
-
(pattern.startsWith("*") ? pattern : relative(srcDir, resolve(nitro.options.srcDir, pattern)))
|
|
230
|
-
);
|
|
231
|
-
})
|
|
232
|
-
].filter((p) => !PARENT_DIR_GLOB_RE.test(p));
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
export { copyPublicAssets as a, compressPublicAssets as c, isDirectory as i, prettyPath as p, resolveNitroPath as r, scanUnprefixedPublicAssets as s, writeFile as w };
|