nitropack-nightly 2.11.0-20250212-104512.722d586c → 2.11.0-20250221-151704.a7feefae
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/core/index.mjs +1 -1
- package/dist/kit/index.d.mts +1 -1
- package/dist/kit/index.d.ts +1 -1
- package/dist/meta/index.d.mts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/dist/meta/index.mjs +1 -1
- package/dist/presets/cloudflare/unenv/preset.mjs +19 -5
- package/dist/presets/cloudflare/unenv/runtime/async_hooks.d.mts +2 -2
- package/dist/presets/cloudflare/unenv/runtime/async_hooks.mjs +3 -2
- package/dist/presets/cloudflare/unenv/runtime/console.d.mts +26 -0
- package/dist/presets/cloudflare/unenv/runtime/console.mjs +71 -0
- package/dist/presets/cloudflare/unenv/runtime/crypto.d.mts +1 -1
- package/dist/presets/cloudflare/unenv/runtime/crypto.mjs +2 -2
- package/dist/presets/cloudflare/unenv/runtime/module.d.mts +34 -0
- package/dist/presets/cloudflare/unenv/runtime/module.mjs +110 -0
- package/dist/presets/cloudflare/unenv/runtime/perf_hooks.d.mts +15 -0
- package/dist/presets/cloudflare/unenv/runtime/perf_hooks.mjs +76 -0
- package/dist/presets/cloudflare/unenv/runtime/process.d.mts +107 -0
- package/dist/presets/cloudflare/unenv/runtime/process.mjs +128 -0
- package/dist/presets/cloudflare/unenv/runtime/util.d.mts +2 -0
- package/dist/presets/cloudflare/unenv/runtime/util.mjs +3 -4
- package/dist/rollup/index.mjs +6 -25
- package/dist/shared/{nitro.BYXEt1mT.d.mts → nitro.CkNr_mO9.d.mts} +2 -2
- package/dist/shared/{nitro.BYXEt1mT.d.ts → nitro.CkNr_mO9.d.ts} +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +23 -23
package/dist/core/index.mjs
CHANGED
|
@@ -1441,7 +1441,7 @@ async function watchDev(nitro, rollupConfig) {
|
|
|
1441
1441
|
const watchPatterns = nitro.options.scanDirs.flatMap((dir) => [
|
|
1442
1442
|
join(dir, nitro.options.apiDir || "api"),
|
|
1443
1443
|
join(dir, nitro.options.routesDir || "routes"),
|
|
1444
|
-
join(dir, "middleware"
|
|
1444
|
+
join(dir, "middleware"),
|
|
1445
1445
|
join(dir, "plugins"),
|
|
1446
1446
|
join(dir, "modules")
|
|
1447
1447
|
]);
|
package/dist/kit/index.d.mts
CHANGED
package/dist/kit/index.d.ts
CHANGED
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED
package/dist/meta/index.mjs
CHANGED
|
@@ -29,7 +29,15 @@ export const nodeCompatModules = [
|
|
|
29
29
|
"util/types",
|
|
30
30
|
"zlib"
|
|
31
31
|
];
|
|
32
|
-
export const hybridNodeCompatModules = [
|
|
32
|
+
export const hybridNodeCompatModules = [
|
|
33
|
+
"async_hooks",
|
|
34
|
+
"console",
|
|
35
|
+
"crypto",
|
|
36
|
+
"module",
|
|
37
|
+
"perf_hooks",
|
|
38
|
+
"process",
|
|
39
|
+
"util"
|
|
40
|
+
];
|
|
33
41
|
const presetRuntimeDir = fileURLToPath(new URL("runtime/", import.meta.url));
|
|
34
42
|
const resolvePresetRuntime = (m) => join(presetRuntimeDir, `${m}.mjs`);
|
|
35
43
|
export const unenvCfPreset = {
|
|
@@ -58,8 +66,7 @@ export const unenvCfPreset = {
|
|
|
58
66
|
"node-mock-http/_polyfill/buffer": "node:buffer"
|
|
59
67
|
},
|
|
60
68
|
inject: {
|
|
61
|
-
|
|
62
|
-
// console: "TODO",
|
|
69
|
+
process: resolvePresetRuntime("process"),
|
|
63
70
|
Buffer: ["node:buffer", "Buffer"],
|
|
64
71
|
"global.Buffer": ["node:buffer", "Buffer"],
|
|
65
72
|
"globalThis.Buffer": ["node:buffer", "Buffer"]
|
|
@@ -69,10 +76,17 @@ export const hybridNodePlugin = {
|
|
|
69
76
|
name: "nitro:cloudflare:hybrid-node-compat",
|
|
70
77
|
resolveId(id) {
|
|
71
78
|
if (id.startsWith("cloudflare:")) {
|
|
72
|
-
return { id, external: true };
|
|
79
|
+
return { id, external: true, moduleSideEffects: false };
|
|
73
80
|
}
|
|
74
81
|
if (id.startsWith("#workerd/node:")) {
|
|
75
|
-
return {
|
|
82
|
+
return {
|
|
83
|
+
id: id.slice("#workerd/".length),
|
|
84
|
+
external: true,
|
|
85
|
+
moduleSideEffects: false
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
if (id.startsWith(presetRuntimeDir)) {
|
|
89
|
+
return { id, moduleSideEffects: false };
|
|
76
90
|
}
|
|
77
91
|
}
|
|
78
92
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export const AsyncLocalStorage: any;
|
|
2
2
|
export const AsyncResource: any;
|
|
3
3
|
declare namespace _default {
|
|
4
|
+
export { AsyncLocalStorage };
|
|
5
|
+
export { AsyncResource };
|
|
4
6
|
export { asyncWrapProviders };
|
|
5
7
|
export { createHook };
|
|
6
8
|
export { executionAsyncId };
|
|
7
9
|
export { executionAsyncResource };
|
|
8
10
|
export { triggerAsyncId };
|
|
9
|
-
export { AsyncLocalStorage };
|
|
10
|
-
export { AsyncResource };
|
|
11
11
|
}
|
|
12
12
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// https://github.com/cloudflare/workerd/blob/main/src/node/async_hooks.ts
|
|
1
2
|
// https://github.com/cloudflare/workers-sdk/blob/main/packages/unenv-preset/src/runtime/node/async_hooks/index.ts
|
|
2
3
|
|
|
3
4
|
import workerdAsyncHooks from "#workerd/node:async_hooks";
|
|
@@ -21,11 +22,11 @@ export {
|
|
|
21
22
|
export const { AsyncLocalStorage, AsyncResource } = workerdAsyncHooks;
|
|
22
23
|
|
|
23
24
|
export default {
|
|
25
|
+
AsyncLocalStorage,
|
|
26
|
+
AsyncResource,
|
|
24
27
|
asyncWrapProviders,
|
|
25
28
|
createHook,
|
|
26
29
|
executionAsyncId,
|
|
27
30
|
executionAsyncResource,
|
|
28
31
|
triggerAsyncId,
|
|
29
|
-
AsyncLocalStorage,
|
|
30
|
-
AsyncResource,
|
|
31
32
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export const assert: any;
|
|
2
|
+
export const clear: any;
|
|
3
|
+
export const context: any;
|
|
4
|
+
export const count: any;
|
|
5
|
+
export const countReset: any;
|
|
6
|
+
export const createTask: any;
|
|
7
|
+
export const debug: any;
|
|
8
|
+
export const dir: any;
|
|
9
|
+
export const dirxml: any;
|
|
10
|
+
export const error: any;
|
|
11
|
+
export const group: any;
|
|
12
|
+
export const groupCollapsed: any;
|
|
13
|
+
export const groupEnd: any;
|
|
14
|
+
export const info: any;
|
|
15
|
+
export const log: any;
|
|
16
|
+
export const profile: any;
|
|
17
|
+
export const profileEnd: any;
|
|
18
|
+
export const table: any;
|
|
19
|
+
export const time: any;
|
|
20
|
+
export const timeEnd: any;
|
|
21
|
+
export const timeLog: any;
|
|
22
|
+
export const timeStamp: any;
|
|
23
|
+
export const trace: any;
|
|
24
|
+
export const warn: any;
|
|
25
|
+
export default consoleModule;
|
|
26
|
+
declare const consoleModule: any;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// https://github.com/cloudflare/workers-sdk/blob/main/packages/unenv-preset/src/runtime/node/console/index.ts
|
|
2
|
+
|
|
3
|
+
import workerdConsole from "#workerd/node:console";
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
Console,
|
|
7
|
+
_ignoreErrors,
|
|
8
|
+
_stderr,
|
|
9
|
+
_stderrErrorHandler,
|
|
10
|
+
_stdout,
|
|
11
|
+
_stdoutErrorHandler,
|
|
12
|
+
_times,
|
|
13
|
+
} from "unenv/node/console";
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
Console,
|
|
17
|
+
_ignoreErrors,
|
|
18
|
+
_stderr,
|
|
19
|
+
_stderrErrorHandler,
|
|
20
|
+
_stdout,
|
|
21
|
+
_stdoutErrorHandler,
|
|
22
|
+
_times,
|
|
23
|
+
} from "unenv/node/console";
|
|
24
|
+
|
|
25
|
+
export const {
|
|
26
|
+
assert,
|
|
27
|
+
clear,
|
|
28
|
+
context,
|
|
29
|
+
count,
|
|
30
|
+
countReset,
|
|
31
|
+
createTask,
|
|
32
|
+
debug,
|
|
33
|
+
dir,
|
|
34
|
+
dirxml,
|
|
35
|
+
error,
|
|
36
|
+
group,
|
|
37
|
+
groupCollapsed,
|
|
38
|
+
groupEnd,
|
|
39
|
+
info,
|
|
40
|
+
log,
|
|
41
|
+
profile,
|
|
42
|
+
profileEnd,
|
|
43
|
+
table,
|
|
44
|
+
time,
|
|
45
|
+
timeEnd,
|
|
46
|
+
timeLog,
|
|
47
|
+
timeStamp,
|
|
48
|
+
trace,
|
|
49
|
+
warn,
|
|
50
|
+
} = workerdConsole;
|
|
51
|
+
|
|
52
|
+
const consolePolyfill = {
|
|
53
|
+
Console,
|
|
54
|
+
_ignoreErrors,
|
|
55
|
+
_stderr,
|
|
56
|
+
_stderrErrorHandler,
|
|
57
|
+
_stdout,
|
|
58
|
+
_stdoutErrorHandler,
|
|
59
|
+
_times,
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
const consoleModule = /*@__PURE__*/ new Proxy(workerdConsole, {
|
|
63
|
+
get(target, prop) {
|
|
64
|
+
if (Reflect.has(target, prop)) {
|
|
65
|
+
return Reflect.get(target, prop);
|
|
66
|
+
}
|
|
67
|
+
return Reflect.get(consolePolyfill, prop);
|
|
68
|
+
},
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
export default consoleModule;
|
|
@@ -41,6 +41,7 @@ export const setEngine: any;
|
|
|
41
41
|
export const setFips: any;
|
|
42
42
|
export const subtle: any;
|
|
43
43
|
export const timingSafeEqual: any;
|
|
44
|
+
export const fips: any;
|
|
44
45
|
export const getRandomValues: any;
|
|
45
46
|
export namespace webcrypto {
|
|
46
47
|
export let CryptoKey: any;
|
|
@@ -122,4 +123,3 @@ declare namespace _default {
|
|
|
122
123
|
export { webcrypto };
|
|
123
124
|
}
|
|
124
125
|
export default _default;
|
|
125
|
-
declare const fips: any;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// https://github.com/cloudflare/workerd/blob/main/src/node/crypto.ts
|
|
1
2
|
// https://github.com/cloudflare/workers-sdk/blob/main/packages/unenv-preset/src/runtime/node/crypto/index.ts
|
|
2
3
|
|
|
3
4
|
import workerdCrypto from "#workerd/node:crypto";
|
|
@@ -100,6 +101,7 @@ export const {
|
|
|
100
101
|
setFips,
|
|
101
102
|
subtle,
|
|
102
103
|
timingSafeEqual,
|
|
104
|
+
fips,
|
|
103
105
|
} = workerdCrypto;
|
|
104
106
|
|
|
105
107
|
export const getRandomValues = workerdCrypto.getRandomValues.bind(
|
|
@@ -113,8 +115,6 @@ export const webcrypto = {
|
|
|
113
115
|
subtle,
|
|
114
116
|
};
|
|
115
117
|
|
|
116
|
-
const fips = workerdCrypto.fips;
|
|
117
|
-
|
|
118
118
|
export default {
|
|
119
119
|
Certificate,
|
|
120
120
|
Cipher,
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export const builtinModules: any;
|
|
2
|
+
export const isBuiltin: any;
|
|
3
|
+
export function createRequire(file: any): any;
|
|
4
|
+
declare namespace _default {
|
|
5
|
+
export { Module };
|
|
6
|
+
export { SourceMap };
|
|
7
|
+
export { builtinModules };
|
|
8
|
+
export { enableCompileCache };
|
|
9
|
+
export { constants };
|
|
10
|
+
export { createRequire };
|
|
11
|
+
export { findSourceMap };
|
|
12
|
+
export { getCompileCacheDir };
|
|
13
|
+
export { globalPaths };
|
|
14
|
+
export { isBuiltin };
|
|
15
|
+
export { register };
|
|
16
|
+
export { runMain };
|
|
17
|
+
export { syncBuiltinESMExports };
|
|
18
|
+
export { wrap };
|
|
19
|
+
export { flushCompileCache };
|
|
20
|
+
export { stripTypeScriptTypes };
|
|
21
|
+
export { wrapper };
|
|
22
|
+
export { _cache };
|
|
23
|
+
export { _extensions };
|
|
24
|
+
export { _debug };
|
|
25
|
+
export { _pathCache };
|
|
26
|
+
export { _findPath };
|
|
27
|
+
export { _initPaths };
|
|
28
|
+
export { _load };
|
|
29
|
+
export { _nodeModulePaths };
|
|
30
|
+
export { _preloadModules };
|
|
31
|
+
export { _resolveFilename };
|
|
32
|
+
export { _resolveLookupPaths };
|
|
33
|
+
}
|
|
34
|
+
export default _default;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
// https://github.com/cloudflare/workerd/blob/main/src/node/module.ts
|
|
2
|
+
// https://github.com/cloudflare/workers-sdk/blob/main/packages/unenv-preset/src/runtime/node/module/index.ts
|
|
3
|
+
|
|
4
|
+
import workerdModule from "#workerd/node:module";
|
|
5
|
+
|
|
6
|
+
import { notImplemented } from "unenv/_internal/utils";
|
|
7
|
+
|
|
8
|
+
import {
|
|
9
|
+
constants,
|
|
10
|
+
enableCompileCache,
|
|
11
|
+
findSourceMap,
|
|
12
|
+
getCompileCacheDir,
|
|
13
|
+
globalPaths,
|
|
14
|
+
Module,
|
|
15
|
+
register,
|
|
16
|
+
runMain,
|
|
17
|
+
SourceMap,
|
|
18
|
+
syncBuiltinESMExports,
|
|
19
|
+
wrap,
|
|
20
|
+
flushCompileCache,
|
|
21
|
+
stripTypeScriptTypes,
|
|
22
|
+
wrapper,
|
|
23
|
+
_readPackage,
|
|
24
|
+
_stat,
|
|
25
|
+
_cache,
|
|
26
|
+
_debug,
|
|
27
|
+
_extensions,
|
|
28
|
+
_findPath,
|
|
29
|
+
_initPaths,
|
|
30
|
+
_load,
|
|
31
|
+
_nodeModulePaths,
|
|
32
|
+
_pathCache,
|
|
33
|
+
_preloadModules,
|
|
34
|
+
_resolveFilename,
|
|
35
|
+
_resolveLookupPaths,
|
|
36
|
+
} from "unenv/node/module";
|
|
37
|
+
|
|
38
|
+
export {
|
|
39
|
+
Module,
|
|
40
|
+
SourceMap,
|
|
41
|
+
constants,
|
|
42
|
+
enableCompileCache,
|
|
43
|
+
findSourceMap,
|
|
44
|
+
getCompileCacheDir,
|
|
45
|
+
globalPaths,
|
|
46
|
+
register,
|
|
47
|
+
runMain,
|
|
48
|
+
syncBuiltinESMExports,
|
|
49
|
+
wrap,
|
|
50
|
+
flushCompileCache,
|
|
51
|
+
stripTypeScriptTypes,
|
|
52
|
+
wrapper,
|
|
53
|
+
_cache,
|
|
54
|
+
_extensions,
|
|
55
|
+
_debug,
|
|
56
|
+
_pathCache,
|
|
57
|
+
_findPath,
|
|
58
|
+
_initPaths,
|
|
59
|
+
_load,
|
|
60
|
+
_nodeModulePaths,
|
|
61
|
+
_preloadModules,
|
|
62
|
+
_resolveFilename,
|
|
63
|
+
_resolveLookupPaths,
|
|
64
|
+
_readPackage,
|
|
65
|
+
_stat,
|
|
66
|
+
} from "unenv/node/module";
|
|
67
|
+
|
|
68
|
+
export const { builtinModules, isBuiltin } = workerdModule;
|
|
69
|
+
|
|
70
|
+
export const createRequire = (file) => {
|
|
71
|
+
return Object.assign(workerdModule.createRequire(file), {
|
|
72
|
+
resolve: Object.assign(notImplemented("module.require.resolve"), {
|
|
73
|
+
paths: notImplemented("module.require.resolve.paths"),
|
|
74
|
+
}),
|
|
75
|
+
cache: Object.create(null),
|
|
76
|
+
extensions: _extensions,
|
|
77
|
+
main: undefined,
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export default {
|
|
82
|
+
Module,
|
|
83
|
+
SourceMap,
|
|
84
|
+
builtinModules,
|
|
85
|
+
enableCompileCache,
|
|
86
|
+
constants,
|
|
87
|
+
createRequire,
|
|
88
|
+
findSourceMap,
|
|
89
|
+
getCompileCacheDir,
|
|
90
|
+
globalPaths,
|
|
91
|
+
isBuiltin,
|
|
92
|
+
register,
|
|
93
|
+
runMain,
|
|
94
|
+
syncBuiltinESMExports,
|
|
95
|
+
wrap,
|
|
96
|
+
flushCompileCache,
|
|
97
|
+
stripTypeScriptTypes,
|
|
98
|
+
wrapper,
|
|
99
|
+
_cache,
|
|
100
|
+
_extensions,
|
|
101
|
+
_debug,
|
|
102
|
+
_pathCache,
|
|
103
|
+
_findPath,
|
|
104
|
+
_initPaths,
|
|
105
|
+
_load,
|
|
106
|
+
_nodeModulePaths,
|
|
107
|
+
_preloadModules,
|
|
108
|
+
_resolveFilename,
|
|
109
|
+
_resolveLookupPaths,
|
|
110
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export const performance: any;
|
|
2
|
+
declare namespace _default {
|
|
3
|
+
export { Performance };
|
|
4
|
+
export { PerformanceEntry };
|
|
5
|
+
export { PerformanceMark };
|
|
6
|
+
export { PerformanceMeasure };
|
|
7
|
+
export { PerformanceObserverEntryList };
|
|
8
|
+
export { PerformanceObserver };
|
|
9
|
+
export { PerformanceResourceTiming };
|
|
10
|
+
export { constants };
|
|
11
|
+
export { createHistogram };
|
|
12
|
+
export { monitorEventLoopDelay };
|
|
13
|
+
export { performance };
|
|
14
|
+
}
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// https://github.com/unjs/unenv/blob/main/src/runtime/node/perf_hooks.ts
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
constants,
|
|
5
|
+
createHistogram,
|
|
6
|
+
monitorEventLoopDelay,
|
|
7
|
+
Performance,
|
|
8
|
+
PerformanceEntry,
|
|
9
|
+
PerformanceMark,
|
|
10
|
+
PerformanceMeasure,
|
|
11
|
+
PerformanceObserver,
|
|
12
|
+
PerformanceObserverEntryList,
|
|
13
|
+
PerformanceResourceTiming,
|
|
14
|
+
performance as unenvPerformance,
|
|
15
|
+
} from "unenv/node/perf_hooks";
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
Performance,
|
|
19
|
+
PerformanceEntry,
|
|
20
|
+
PerformanceMark,
|
|
21
|
+
PerformanceMeasure,
|
|
22
|
+
PerformanceObserverEntryList,
|
|
23
|
+
PerformanceObserver,
|
|
24
|
+
PerformanceResourceTiming,
|
|
25
|
+
constants,
|
|
26
|
+
createHistogram,
|
|
27
|
+
monitorEventLoopDelay,
|
|
28
|
+
} from "unenv/node/perf_hooks";
|
|
29
|
+
|
|
30
|
+
const workerdGlobalPerformance = globalThis["perf" + "ormance"];
|
|
31
|
+
|
|
32
|
+
export const performance = /*@__PURE__*/ Object.assign(
|
|
33
|
+
workerdGlobalPerformance,
|
|
34
|
+
{
|
|
35
|
+
addEventListener: unenvPerformance.addEventListener.bind(unenvPerformance),
|
|
36
|
+
clearMarks: unenvPerformance.clearMarks.bind(unenvPerformance),
|
|
37
|
+
clearMeasures: unenvPerformance.clearMeasures.bind(unenvPerformance),
|
|
38
|
+
clearResourceTimings:
|
|
39
|
+
unenvPerformance.clearResourceTimings.bind(unenvPerformance),
|
|
40
|
+
dispatchEvent: unenvPerformance.dispatchEvent.bind(unenvPerformance),
|
|
41
|
+
eventLoopUtilization:
|
|
42
|
+
unenvPerformance.eventLoopUtilization.bind(unenvPerformance),
|
|
43
|
+
getEntries: unenvPerformance.getEntries.bind(unenvPerformance),
|
|
44
|
+
getEntriesByName: unenvPerformance.getEntriesByName.bind(unenvPerformance),
|
|
45
|
+
getEntriesByType: unenvPerformance.getEntriesByType.bind(unenvPerformance),
|
|
46
|
+
mark: unenvPerformance.mark.bind(unenvPerformance),
|
|
47
|
+
markResourceTiming:
|
|
48
|
+
unenvPerformance.markResourceTiming.bind(unenvPerformance),
|
|
49
|
+
measure: unenvPerformance.measure.bind(unenvPerformance),
|
|
50
|
+
nodeTiming: { ...unenvPerformance.nodeTiming },
|
|
51
|
+
onresourcetimingbufferfull:
|
|
52
|
+
typeof unenvPerformance.onresourcetimingbufferfull === "function"
|
|
53
|
+
? unenvPerformance.onresourcetimingbufferfull.bind(unenvPerformance)
|
|
54
|
+
: unenvPerformance.onresourcetimingbufferfull,
|
|
55
|
+
removeEventListener:
|
|
56
|
+
unenvPerformance.removeEventListener.bind(unenvPerformance),
|
|
57
|
+
setResourceTimingBufferSize:
|
|
58
|
+
unenvPerformance.setResourceTimingBufferSize.bind(unenvPerformance),
|
|
59
|
+
timerify: unenvPerformance.timerify.bind(unenvPerformance),
|
|
60
|
+
toJSON: unenvPerformance.toJSON.bind(unenvPerformance),
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
export default {
|
|
65
|
+
Performance,
|
|
66
|
+
PerformanceEntry,
|
|
67
|
+
PerformanceMark,
|
|
68
|
+
PerformanceMeasure,
|
|
69
|
+
PerformanceObserverEntryList,
|
|
70
|
+
PerformanceObserver,
|
|
71
|
+
PerformanceResourceTiming,
|
|
72
|
+
constants,
|
|
73
|
+
createHistogram,
|
|
74
|
+
monitorEventLoopDelay,
|
|
75
|
+
performance,
|
|
76
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
export default mixedProcess;
|
|
2
|
+
export const abort: any;
|
|
3
|
+
export const addListener: any;
|
|
4
|
+
export const allowedNodeEnvironmentFlags: any;
|
|
5
|
+
export const hasUncaughtExceptionCaptureCallback: any;
|
|
6
|
+
export const setUncaughtExceptionCaptureCallback: any;
|
|
7
|
+
export const loadEnvFile: any;
|
|
8
|
+
export const sourceMapsEnabled: any;
|
|
9
|
+
export const arch: any;
|
|
10
|
+
export const argv: any;
|
|
11
|
+
export const argv0: any;
|
|
12
|
+
export const chdir: any;
|
|
13
|
+
export const config: any;
|
|
14
|
+
export const connected: any;
|
|
15
|
+
export const constrainedMemory: any;
|
|
16
|
+
export const availableMemory: any;
|
|
17
|
+
export const cpuUsage: any;
|
|
18
|
+
export const cwd: any;
|
|
19
|
+
export const debugPort: any;
|
|
20
|
+
export const dlopen: any;
|
|
21
|
+
export const disconnect: any;
|
|
22
|
+
export const emit: any;
|
|
23
|
+
export const emitWarning: any;
|
|
24
|
+
export const env: any;
|
|
25
|
+
export const eventNames: any;
|
|
26
|
+
export const execArgv: any;
|
|
27
|
+
export const execPath: any;
|
|
28
|
+
export const exit: any;
|
|
29
|
+
export const finalization: any;
|
|
30
|
+
export const features: any;
|
|
31
|
+
export const getBuiltinModule: any;
|
|
32
|
+
export const getActiveResourcesInfo: any;
|
|
33
|
+
export const getMaxListeners: any;
|
|
34
|
+
export const hrtime: any;
|
|
35
|
+
export const kill: any;
|
|
36
|
+
export const listeners: any;
|
|
37
|
+
export const listenerCount: any;
|
|
38
|
+
export const memoryUsage: any;
|
|
39
|
+
export const nextTick: any;
|
|
40
|
+
export const on: any;
|
|
41
|
+
export const off: any;
|
|
42
|
+
export const once: any;
|
|
43
|
+
export const pid: any;
|
|
44
|
+
export const platform: any;
|
|
45
|
+
export const ppid: any;
|
|
46
|
+
export const prependListener: any;
|
|
47
|
+
export const prependOnceListener: any;
|
|
48
|
+
export const rawListeners: any;
|
|
49
|
+
export const release: any;
|
|
50
|
+
export const removeAllListeners: any;
|
|
51
|
+
export const removeListener: any;
|
|
52
|
+
export const report: any;
|
|
53
|
+
export const resourceUsage: any;
|
|
54
|
+
export const setMaxListeners: any;
|
|
55
|
+
export const setSourceMapsEnabled: any;
|
|
56
|
+
export const stderr: any;
|
|
57
|
+
export const stdin: any;
|
|
58
|
+
export const stdout: any;
|
|
59
|
+
export const title: any;
|
|
60
|
+
export const umask: any;
|
|
61
|
+
export const uptime: any;
|
|
62
|
+
export const version: any;
|
|
63
|
+
export const versions: any;
|
|
64
|
+
export const domain: any;
|
|
65
|
+
export const initgroups: any;
|
|
66
|
+
export const moduleLoadList: any;
|
|
67
|
+
export const reallyExit: any;
|
|
68
|
+
export const openStdin: any;
|
|
69
|
+
export const assert: any;
|
|
70
|
+
export const binding: any;
|
|
71
|
+
export const send: any;
|
|
72
|
+
export const exitCode: any;
|
|
73
|
+
export const channel: any;
|
|
74
|
+
export const getegid: any;
|
|
75
|
+
export const geteuid: any;
|
|
76
|
+
export const getgid: any;
|
|
77
|
+
export const getgroups: any;
|
|
78
|
+
export const getuid: any;
|
|
79
|
+
export const setegid: any;
|
|
80
|
+
export const seteuid: any;
|
|
81
|
+
export const setgid: any;
|
|
82
|
+
export const setgroups: any;
|
|
83
|
+
export const setuid: any;
|
|
84
|
+
export const permission: any;
|
|
85
|
+
export const mainModule: any;
|
|
86
|
+
export const _events: any;
|
|
87
|
+
export const _eventsCount: any;
|
|
88
|
+
export const _exiting: any;
|
|
89
|
+
export const _maxListeners: any;
|
|
90
|
+
export const _debugEnd: any;
|
|
91
|
+
export const _debugProcess: any;
|
|
92
|
+
export const _fatalException: any;
|
|
93
|
+
export const _getActiveHandles: any;
|
|
94
|
+
export const _getActiveRequests: any;
|
|
95
|
+
export const _kill: any;
|
|
96
|
+
export const _preload_modules: any;
|
|
97
|
+
export const _rawDebug: any;
|
|
98
|
+
export const _startProfilerIdleNotifier: any;
|
|
99
|
+
export const _stopProfilerIdleNotifier: any;
|
|
100
|
+
export const _tickCallback: any;
|
|
101
|
+
export const _disconnect: any;
|
|
102
|
+
export const _handleQueue: any;
|
|
103
|
+
export const _pendingMessage: any;
|
|
104
|
+
export const _channel: any;
|
|
105
|
+
export const _send: any;
|
|
106
|
+
export const _linkedBinding: any;
|
|
107
|
+
declare const mixedProcess: any;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
// https://github.com/cloudflare/workerd/blob/main/src/node/internal/process.ts
|
|
2
|
+
// https://github.com/unjs/unenv/blob/main/src/runtime/node/process.ts
|
|
3
|
+
|
|
4
|
+
import workerdProcess from "#workerd/node:process";
|
|
5
|
+
|
|
6
|
+
import { Process as UnenvProcess } from "unenv/node/internal/process/process";
|
|
7
|
+
import { env as UnenvEnv } from "unenv/node/internal/process/env";
|
|
8
|
+
import { hrtime as UnenvHrTime } from "unenv/node/internal/process/hrtime";
|
|
9
|
+
|
|
10
|
+
const mixedProcess = new UnenvProcess({
|
|
11
|
+
env: UnenvEnv,
|
|
12
|
+
hrtime: UnenvHrTime,
|
|
13
|
+
nextTick: workerdProcess.nextTick,
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
if (workerdProcess.getBuiltinModule) {
|
|
17
|
+
mixedProcess.getBuiltinModule = workerdProcess.getBuiltinModule;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export default mixedProcess;
|
|
21
|
+
|
|
22
|
+
export const {
|
|
23
|
+
abort,
|
|
24
|
+
addListener,
|
|
25
|
+
allowedNodeEnvironmentFlags,
|
|
26
|
+
hasUncaughtExceptionCaptureCallback,
|
|
27
|
+
setUncaughtExceptionCaptureCallback,
|
|
28
|
+
loadEnvFile,
|
|
29
|
+
sourceMapsEnabled,
|
|
30
|
+
arch,
|
|
31
|
+
argv,
|
|
32
|
+
argv0,
|
|
33
|
+
chdir,
|
|
34
|
+
config,
|
|
35
|
+
connected,
|
|
36
|
+
constrainedMemory,
|
|
37
|
+
availableMemory,
|
|
38
|
+
cpuUsage,
|
|
39
|
+
cwd,
|
|
40
|
+
debugPort,
|
|
41
|
+
dlopen,
|
|
42
|
+
disconnect,
|
|
43
|
+
emit,
|
|
44
|
+
emitWarning,
|
|
45
|
+
env,
|
|
46
|
+
eventNames,
|
|
47
|
+
execArgv,
|
|
48
|
+
execPath,
|
|
49
|
+
exit,
|
|
50
|
+
finalization,
|
|
51
|
+
features,
|
|
52
|
+
getBuiltinModule,
|
|
53
|
+
getActiveResourcesInfo,
|
|
54
|
+
getMaxListeners,
|
|
55
|
+
hrtime,
|
|
56
|
+
kill,
|
|
57
|
+
listeners,
|
|
58
|
+
listenerCount,
|
|
59
|
+
memoryUsage,
|
|
60
|
+
nextTick,
|
|
61
|
+
on,
|
|
62
|
+
off,
|
|
63
|
+
once,
|
|
64
|
+
pid,
|
|
65
|
+
platform,
|
|
66
|
+
ppid,
|
|
67
|
+
prependListener,
|
|
68
|
+
prependOnceListener,
|
|
69
|
+
rawListeners,
|
|
70
|
+
release,
|
|
71
|
+
removeAllListeners,
|
|
72
|
+
removeListener,
|
|
73
|
+
report,
|
|
74
|
+
resourceUsage,
|
|
75
|
+
setMaxListeners,
|
|
76
|
+
setSourceMapsEnabled,
|
|
77
|
+
stderr,
|
|
78
|
+
stdin,
|
|
79
|
+
stdout,
|
|
80
|
+
title,
|
|
81
|
+
umask,
|
|
82
|
+
uptime,
|
|
83
|
+
version,
|
|
84
|
+
versions,
|
|
85
|
+
domain,
|
|
86
|
+
initgroups,
|
|
87
|
+
moduleLoadList,
|
|
88
|
+
reallyExit,
|
|
89
|
+
openStdin,
|
|
90
|
+
assert,
|
|
91
|
+
binding,
|
|
92
|
+
send,
|
|
93
|
+
exitCode,
|
|
94
|
+
channel,
|
|
95
|
+
getegid,
|
|
96
|
+
geteuid,
|
|
97
|
+
getgid,
|
|
98
|
+
getgroups,
|
|
99
|
+
getuid,
|
|
100
|
+
setegid,
|
|
101
|
+
seteuid,
|
|
102
|
+
setgid,
|
|
103
|
+
setgroups,
|
|
104
|
+
setuid,
|
|
105
|
+
permission,
|
|
106
|
+
mainModule,
|
|
107
|
+
_events,
|
|
108
|
+
_eventsCount,
|
|
109
|
+
_exiting,
|
|
110
|
+
_maxListeners,
|
|
111
|
+
_debugEnd,
|
|
112
|
+
_debugProcess,
|
|
113
|
+
_fatalException,
|
|
114
|
+
_getActiveHandles,
|
|
115
|
+
_getActiveRequests,
|
|
116
|
+
_kill,
|
|
117
|
+
_preload_modules,
|
|
118
|
+
_rawDebug,
|
|
119
|
+
_startProfilerIdleNotifier,
|
|
120
|
+
_stopProfilerIdleNotifier,
|
|
121
|
+
_tickCallback,
|
|
122
|
+
_disconnect,
|
|
123
|
+
_handleQueue,
|
|
124
|
+
_pendingMessage,
|
|
125
|
+
_channel,
|
|
126
|
+
_send,
|
|
127
|
+
_linkedBinding,
|
|
128
|
+
} = mixedProcess;
|
|
@@ -20,6 +20,8 @@ export const stripVTControlCharacters: any;
|
|
|
20
20
|
export const toUSVString: any;
|
|
21
21
|
export const transferableAbortController: any;
|
|
22
22
|
export const transferableAbortSignal: any;
|
|
23
|
+
export const isArray: any;
|
|
24
|
+
export const isDeepStrictEqual: any;
|
|
23
25
|
export const types: any;
|
|
24
26
|
declare namespace _default {
|
|
25
27
|
export { _errnoException };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// https://github.com/cloudflare/workerd/blob/main/src/node/util.ts
|
|
1
2
|
// https://github.com/cloudflare/workers-sdk/blob/main/packages/unenv-preset/src/runtime/node/util/index.ts
|
|
2
3
|
|
|
3
4
|
import workerdUtil from "#workerd/node:util";
|
|
@@ -7,11 +8,9 @@ import {
|
|
|
7
8
|
_exceptionWithHostPort,
|
|
8
9
|
getSystemErrorMap,
|
|
9
10
|
getSystemErrorName,
|
|
10
|
-
isArray,
|
|
11
11
|
isBoolean,
|
|
12
12
|
isBuffer,
|
|
13
13
|
isDate,
|
|
14
|
-
isDeepStrictEqual,
|
|
15
14
|
isError,
|
|
16
15
|
isFunction,
|
|
17
16
|
isNull,
|
|
@@ -32,11 +31,9 @@ export {
|
|
|
32
31
|
_exceptionWithHostPort,
|
|
33
32
|
getSystemErrorMap,
|
|
34
33
|
getSystemErrorName,
|
|
35
|
-
isArray,
|
|
36
34
|
isBoolean,
|
|
37
35
|
isBuffer,
|
|
38
36
|
isDate,
|
|
39
|
-
isDeepStrictEqual,
|
|
40
37
|
isError,
|
|
41
38
|
isFunction,
|
|
42
39
|
isNull,
|
|
@@ -75,6 +72,8 @@ export const {
|
|
|
75
72
|
toUSVString,
|
|
76
73
|
transferableAbortController,
|
|
77
74
|
transferableAbortSignal,
|
|
75
|
+
isArray,
|
|
76
|
+
isDeepStrictEqual,
|
|
78
77
|
} = workerdUtil;
|
|
79
78
|
|
|
80
79
|
export const types = workerdUtil.types;
|
package/dist/rollup/index.mjs
CHANGED
|
@@ -37,13 +37,6 @@ import { normalizeKey, builtinDrivers } from 'unstorage';
|
|
|
37
37
|
|
|
38
38
|
const common = {
|
|
39
39
|
alias: {
|
|
40
|
-
"node-fetch": "unenv/npm/node-fetch",
|
|
41
|
-
"cross-fetch": "unenv/npm/cross-fetch",
|
|
42
|
-
"cross-fetch/polyfill": "unenv/mock/empty",
|
|
43
|
-
"isomorphic-fetch": "unenv/mock/empty",
|
|
44
|
-
debug: "unenv/npm/debug",
|
|
45
|
-
// buffer (npm)
|
|
46
|
-
buffer: "node:buffer",
|
|
47
40
|
"buffer/": "node:buffer",
|
|
48
41
|
"buffer/index": "node:buffer",
|
|
49
42
|
"buffer/index.js": "node:buffer"
|
|
@@ -56,24 +49,13 @@ const node = {
|
|
|
56
49
|
}
|
|
57
50
|
};
|
|
58
51
|
const nodeless = {
|
|
59
|
-
alias: {
|
|
60
|
-
fsevents: "unenv/npm/fsevents",
|
|
61
|
-
inherits: "unenv/npm/inherits",
|
|
62
|
-
"whatwg-url": "unenv/npm/whatwg-url"
|
|
63
|
-
},
|
|
52
|
+
alias: {},
|
|
64
53
|
inject: {
|
|
65
54
|
performance: "unenv/polyfill/performance",
|
|
66
|
-
global: "unenv/
|
|
67
|
-
|
|
68
|
-
Buffer: ["unenv/node/buffer", "Buffer"]
|
|
55
|
+
"global.Buffer": ["unenv/node/buffer", "Buffer"],
|
|
56
|
+
"globalThis.Buffer": ["unenv/node/buffer", "Buffer"]
|
|
69
57
|
},
|
|
70
|
-
polyfill: [
|
|
71
|
-
// Backward compatibility (remove in v2)
|
|
72
|
-
// https://github.com/unjs/unenv/pull/427
|
|
73
|
-
"unenv/polyfill/globalthis-global",
|
|
74
|
-
"unenv/polyfill/process",
|
|
75
|
-
"unenv/polyfill/performance"
|
|
76
|
-
]
|
|
58
|
+
polyfill: ["unenv/polyfill/globalthis-global", "unenv/polyfill/process"]
|
|
77
59
|
};
|
|
78
60
|
|
|
79
61
|
const PREFIX = "\0virtual:";
|
|
@@ -1750,6 +1732,7 @@ const getRollupConfig = (nitro) => {
|
|
|
1750
1732
|
const isNodeless = nitro.options.node === false;
|
|
1751
1733
|
const { env } = defineEnv({
|
|
1752
1734
|
nodeCompat: isNodeless,
|
|
1735
|
+
npmShims: true,
|
|
1753
1736
|
resolve: true,
|
|
1754
1737
|
presets: [
|
|
1755
1738
|
common,
|
|
@@ -1757,9 +1740,7 @@ const getRollupConfig = (nitro) => {
|
|
|
1757
1740
|
nitro.options.unenv
|
|
1758
1741
|
],
|
|
1759
1742
|
overrides: {
|
|
1760
|
-
alias:
|
|
1761
|
-
...nitro.options.alias
|
|
1762
|
-
}
|
|
1743
|
+
alias: nitro.options.alias
|
|
1763
1744
|
}
|
|
1764
1745
|
});
|
|
1765
1746
|
const buildServerDir = join(nitro.options.buildDir, "dist/server");
|
|
@@ -6,7 +6,7 @@ import { Unimport } from 'unimport';
|
|
|
6
6
|
import { BuiltinDriverName, Storage } from 'unstorage';
|
|
7
7
|
import { RollupCommonJSOptions } from '@rollup/plugin-commonjs';
|
|
8
8
|
import { C12InputConfig, ResolvedConfig, ConfigWatcher, WatchConfigOptions } from 'c12';
|
|
9
|
-
import { FSWatcher,
|
|
9
|
+
import { FSWatcher, ChokidarOptions } from 'chokidar';
|
|
10
10
|
import { DateString, CompatibilityDateSpec, CompatibilityDates } from 'compatx';
|
|
11
11
|
import { ConnectorName } from 'db0';
|
|
12
12
|
import { ProxyServerOptions } from 'httpxy';
|
|
@@ -457,7 +457,7 @@ interface NitroOptions extends PresetOptions {
|
|
|
457
457
|
ignore: string[];
|
|
458
458
|
dev: boolean;
|
|
459
459
|
devServer: DevServerOptions;
|
|
460
|
-
watchOptions:
|
|
460
|
+
watchOptions: ChokidarOptions;
|
|
461
461
|
devProxy: Record<string, string | ProxyServerOptions>;
|
|
462
462
|
logging: {
|
|
463
463
|
compressedSizes: boolean;
|
|
@@ -6,7 +6,7 @@ import { Unimport } from 'unimport';
|
|
|
6
6
|
import { BuiltinDriverName, Storage } from 'unstorage';
|
|
7
7
|
import { RollupCommonJSOptions } from '@rollup/plugin-commonjs';
|
|
8
8
|
import { C12InputConfig, ResolvedConfig, ConfigWatcher, WatchConfigOptions } from 'c12';
|
|
9
|
-
import { FSWatcher,
|
|
9
|
+
import { FSWatcher, ChokidarOptions } from 'chokidar';
|
|
10
10
|
import { DateString, CompatibilityDateSpec, CompatibilityDates } from 'compatx';
|
|
11
11
|
import { ConnectorName } from 'db0';
|
|
12
12
|
import { ProxyServerOptions } from 'httpxy';
|
|
@@ -457,7 +457,7 @@ interface NitroOptions extends PresetOptions {
|
|
|
457
457
|
ignore: string[];
|
|
458
458
|
dev: boolean;
|
|
459
459
|
devServer: DevServerOptions;
|
|
460
|
-
watchOptions:
|
|
460
|
+
watchOptions: ChokidarOptions;
|
|
461
461
|
devProxy: Record<string, string | ProxyServerOptions>;
|
|
462
462
|
logging: {
|
|
463
463
|
compressedSizes: boolean;
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { App, Router, H3Event, RouterMethod } from 'h3';
|
|
2
2
|
import { FetchRequest, FetchOptions, FetchResponse } from 'ofetch';
|
|
3
|
-
import { a as NitroOptions, b as NitroConfig, N as NitroModule } from '../shared/nitro.
|
|
4
|
-
export { A as AppConfig, C as CacheEntry, c as CacheOptions, d as CachedEventHandlerOptions, e as CompressOptions, g as DatabaseConnectionConfig, h as DatabaseConnectionConfigs, D as DatabaseConnectionName, l as DevServerOptions, I as EsbuildOptions, O as HTTPStatusCode, L as LoadConfigOptions, u as Nitro, y as NitroBuildInfo, q as NitroDevEventHandler, n as NitroDevServer, v as NitroDynamicConfig, r as NitroErrorHandler, p as NitroEventHandler, x as NitroFrameworkInfo, s as NitroHooks, t as NitroModuleInput, k as NitroOpenAPIConfig, E as NitroPreset, F as NitroPresetMeta, Q as NitroRouteConfig, o as NitroRouteMeta, T as NitroRouteRules, j as NitroRuntimeConfig, i as NitroRuntimeConfigApp, w as NitroTypes, m as NitroWorker, J as NodeExternalsOptions, B as PrerenderGenerateRoute, z as PrerenderRoute, P as PublicAssetDir, M as RawOptions, R as ResponseCacheEntry, G as RollupConfig, H as RollupVirtualOptions, S as ServerAssetDir, K as ServerAssetOptions, f as StorageMounts, V as VirtualModule } from '../shared/nitro.
|
|
3
|
+
import { a as NitroOptions, b as NitroConfig, N as NitroModule } from '../shared/nitro.CkNr_mO9.mjs';
|
|
4
|
+
export { A as AppConfig, C as CacheEntry, c as CacheOptions, d as CachedEventHandlerOptions, e as CompressOptions, g as DatabaseConnectionConfig, h as DatabaseConnectionConfigs, D as DatabaseConnectionName, l as DevServerOptions, I as EsbuildOptions, O as HTTPStatusCode, L as LoadConfigOptions, u as Nitro, y as NitroBuildInfo, q as NitroDevEventHandler, n as NitroDevServer, v as NitroDynamicConfig, r as NitroErrorHandler, p as NitroEventHandler, x as NitroFrameworkInfo, s as NitroHooks, t as NitroModuleInput, k as NitroOpenAPIConfig, E as NitroPreset, F as NitroPresetMeta, Q as NitroRouteConfig, o as NitroRouteMeta, T as NitroRouteRules, j as NitroRuntimeConfig, i as NitroRuntimeConfigApp, w as NitroTypes, m as NitroWorker, J as NodeExternalsOptions, B as PrerenderGenerateRoute, z as PrerenderRoute, P as PublicAssetDir, M as RawOptions, R as ResponseCacheEntry, G as RollupConfig, H as RollupVirtualOptions, S as ServerAssetDir, K as ServerAssetOptions, f as StorageMounts, V as VirtualModule } from '../shared/nitro.CkNr_mO9.mjs';
|
|
5
5
|
import { Hookable } from 'hookable';
|
|
6
6
|
import { NitroRuntimeHooks as NitroRuntimeHooks$1 } from 'nitropack';
|
|
7
7
|
import { AbstractRequest, AbstractResponse } from 'node-mock-http';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { App, Router, H3Event, RouterMethod } from 'h3';
|
|
2
2
|
import { FetchRequest, FetchOptions, FetchResponse } from 'ofetch';
|
|
3
|
-
import { a as NitroOptions, b as NitroConfig, N as NitroModule } from '../shared/nitro.
|
|
4
|
-
export { A as AppConfig, C as CacheEntry, c as CacheOptions, d as CachedEventHandlerOptions, e as CompressOptions, g as DatabaseConnectionConfig, h as DatabaseConnectionConfigs, D as DatabaseConnectionName, l as DevServerOptions, I as EsbuildOptions, O as HTTPStatusCode, L as LoadConfigOptions, u as Nitro, y as NitroBuildInfo, q as NitroDevEventHandler, n as NitroDevServer, v as NitroDynamicConfig, r as NitroErrorHandler, p as NitroEventHandler, x as NitroFrameworkInfo, s as NitroHooks, t as NitroModuleInput, k as NitroOpenAPIConfig, E as NitroPreset, F as NitroPresetMeta, Q as NitroRouteConfig, o as NitroRouteMeta, T as NitroRouteRules, j as NitroRuntimeConfig, i as NitroRuntimeConfigApp, w as NitroTypes, m as NitroWorker, J as NodeExternalsOptions, B as PrerenderGenerateRoute, z as PrerenderRoute, P as PublicAssetDir, M as RawOptions, R as ResponseCacheEntry, G as RollupConfig, H as RollupVirtualOptions, S as ServerAssetDir, K as ServerAssetOptions, f as StorageMounts, V as VirtualModule } from '../shared/nitro.
|
|
3
|
+
import { a as NitroOptions, b as NitroConfig, N as NitroModule } from '../shared/nitro.CkNr_mO9.js';
|
|
4
|
+
export { A as AppConfig, C as CacheEntry, c as CacheOptions, d as CachedEventHandlerOptions, e as CompressOptions, g as DatabaseConnectionConfig, h as DatabaseConnectionConfigs, D as DatabaseConnectionName, l as DevServerOptions, I as EsbuildOptions, O as HTTPStatusCode, L as LoadConfigOptions, u as Nitro, y as NitroBuildInfo, q as NitroDevEventHandler, n as NitroDevServer, v as NitroDynamicConfig, r as NitroErrorHandler, p as NitroEventHandler, x as NitroFrameworkInfo, s as NitroHooks, t as NitroModuleInput, k as NitroOpenAPIConfig, E as NitroPreset, F as NitroPresetMeta, Q as NitroRouteConfig, o as NitroRouteMeta, T as NitroRouteRules, j as NitroRuntimeConfig, i as NitroRuntimeConfigApp, w as NitroTypes, m as NitroWorker, J as NodeExternalsOptions, B as PrerenderGenerateRoute, z as PrerenderRoute, P as PublicAssetDir, M as RawOptions, R as ResponseCacheEntry, G as RollupConfig, H as RollupVirtualOptions, S as ServerAssetDir, K as ServerAssetOptions, f as StorageMounts, V as VirtualModule } from '../shared/nitro.CkNr_mO9.js';
|
|
5
5
|
import { Hookable } from 'hookable';
|
|
6
6
|
import { NitroRuntimeHooks as NitroRuntimeHooks$1 } from 'nitropack';
|
|
7
7
|
import { AbstractRequest, AbstractResponse } from 'node-mock-http';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nitropack-nightly",
|
|
3
|
-
"version": "2.11.0-
|
|
3
|
+
"version": "2.11.0-20250221-151704.a7feefae",
|
|
4
4
|
"description": "Build and Deploy Universal JavaScript Servers",
|
|
5
5
|
"repository": "nitrojs/nitro",
|
|
6
6
|
"license": "MIT",
|
|
@@ -105,19 +105,19 @@
|
|
|
105
105
|
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
106
106
|
"@rollup/plugin-replace": "^6.0.2",
|
|
107
107
|
"@rollup/plugin-terser": "^0.4.4",
|
|
108
|
-
"@types/http-proxy": "^1.17.
|
|
109
|
-
"@vercel/nft": "^0.29.
|
|
108
|
+
"@types/http-proxy": "^1.17.16",
|
|
109
|
+
"@vercel/nft": "^0.29.2",
|
|
110
110
|
"archiver": "^7.0.1",
|
|
111
111
|
"c12": "^2.0.2",
|
|
112
|
-
"chokidar": "^
|
|
112
|
+
"chokidar": "^4.0.3",
|
|
113
113
|
"citty": "^0.1.6",
|
|
114
114
|
"compatx": "^0.1.8",
|
|
115
115
|
"confbox": "^0.1.8",
|
|
116
116
|
"consola": "^3.4.0",
|
|
117
117
|
"cookie-es": "^1.2.2",
|
|
118
118
|
"croner": "^9.0.0",
|
|
119
|
-
"crossws": "^0.3.
|
|
120
|
-
"db0": "^0.2.
|
|
119
|
+
"crossws": "^0.3.4",
|
|
120
|
+
"db0": "^0.2.4",
|
|
121
121
|
"defu": "^6.1.4",
|
|
122
122
|
"destr": "^2.0.3",
|
|
123
123
|
"dot-prop": "^9.0.0",
|
|
@@ -125,12 +125,12 @@
|
|
|
125
125
|
"escape-string-regexp": "^5.0.0",
|
|
126
126
|
"etag": "^1.8.1",
|
|
127
127
|
"fs-extra": "^11.3.0",
|
|
128
|
-
"globby": "^14.0
|
|
128
|
+
"globby": "^14.1.0",
|
|
129
129
|
"gzip-size": "^7.0.0",
|
|
130
130
|
"h3": "npm:h3-nightly@latest",
|
|
131
131
|
"hookable": "^5.5.3",
|
|
132
132
|
"httpxy": "^0.1.7",
|
|
133
|
-
"ioredis": "^5.
|
|
133
|
+
"ioredis": "^5.5.0",
|
|
134
134
|
"jiti": "^2.4.2",
|
|
135
135
|
"klona": "^2.0.6",
|
|
136
136
|
"knitwork": "^1.2.0",
|
|
@@ -143,16 +143,16 @@
|
|
|
143
143
|
"node-mock-http": "^1.0.0",
|
|
144
144
|
"ofetch": "^1.4.1",
|
|
145
145
|
"ohash": "^1.1.4",
|
|
146
|
-
"openapi-typescript": "^7.6.
|
|
147
|
-
"pathe": "^2.0.
|
|
146
|
+
"openapi-typescript": "^7.6.1",
|
|
147
|
+
"pathe": "^2.0.3",
|
|
148
148
|
"perfect-debounce": "^1.0.0",
|
|
149
149
|
"pkg-types": "^1.3.1",
|
|
150
150
|
"pretty-bytes": "^6.1.1",
|
|
151
151
|
"radix3": "^1.1.2",
|
|
152
|
-
"rollup": "^4.
|
|
152
|
+
"rollup": "^4.34.8",
|
|
153
153
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
154
154
|
"scule": "^1.3.0",
|
|
155
|
-
"semver": "^7.
|
|
155
|
+
"semver": "^7.7.1",
|
|
156
156
|
"serve-placeholder": "^2.0.2",
|
|
157
157
|
"serve-static": "^1.16.2",
|
|
158
158
|
"source-map": "^0.7.4",
|
|
@@ -161,10 +161,10 @@
|
|
|
161
161
|
"ultrahtml": "^1.5.3",
|
|
162
162
|
"uncrypto": "^0.1.3",
|
|
163
163
|
"unctx": "^2.4.1",
|
|
164
|
-
"unenv": "2.0.0-rc.
|
|
165
|
-
"unimport": "^4.
|
|
166
|
-
"unplugin-utils": "^0.2.
|
|
167
|
-
"unstorage": "^1.
|
|
164
|
+
"unenv": "2.0.0-rc.6",
|
|
165
|
+
"unimport": "^4.1.2",
|
|
166
|
+
"unplugin-utils": "^0.2.4",
|
|
167
|
+
"unstorage": "^1.15.0",
|
|
168
168
|
"untyped": "^1.5.2",
|
|
169
169
|
"unwasm": "^0.3.9",
|
|
170
170
|
"youch": "4.1.0-beta.4",
|
|
@@ -172,11 +172,11 @@
|
|
|
172
172
|
},
|
|
173
173
|
"devDependencies": {
|
|
174
174
|
"@azure/functions": "^3.5.1",
|
|
175
|
-
"@azure/static-web-apps-cli": "^
|
|
176
|
-
"@cloudflare/workers-types": "^4.
|
|
175
|
+
"@azure/static-web-apps-cli": "^2.0.4",
|
|
176
|
+
"@cloudflare/workers-types": "^4.20250214.0",
|
|
177
177
|
"@deno/types": "^0.0.1",
|
|
178
178
|
"@netlify/edge-functions": "^2.11.1",
|
|
179
|
-
"@scalar/api-reference": "^1.25.
|
|
179
|
+
"@scalar/api-reference": "^1.25.122",
|
|
180
180
|
"@types/archiver": "^6.0.3",
|
|
181
181
|
"@types/aws-lambda": "^8.10.147",
|
|
182
182
|
"@types/estree": "^1.0.6",
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
"@types/semver": "^7.5.8",
|
|
187
187
|
"@types/serve-static": "^1.15.7",
|
|
188
188
|
"@types/xml2js": "^0.4.14",
|
|
189
|
-
"@vitest/coverage-v8": "^3.0.
|
|
189
|
+
"@vitest/coverage-v8": "^3.0.6",
|
|
190
190
|
"automd": "^0.3.12",
|
|
191
191
|
"better-sqlite3": "^11.8.1",
|
|
192
192
|
"changelogen": "^0.5.7",
|
|
@@ -198,12 +198,12 @@
|
|
|
198
198
|
"firebase-admin": "^12.7.0",
|
|
199
199
|
"firebase-functions": "^4.9.0",
|
|
200
200
|
"get-port-please": "^3.1.2",
|
|
201
|
-
"miniflare": "^3.
|
|
202
|
-
"prettier": "^3.5.
|
|
201
|
+
"miniflare": "^3.20250214.0",
|
|
202
|
+
"prettier": "^3.5.1",
|
|
203
203
|
"typescript": "^5.7.3",
|
|
204
204
|
"unbuild": "^3.3.1",
|
|
205
205
|
"undici": "^7.3.0",
|
|
206
|
-
"vitest": "^3.0.
|
|
206
|
+
"vitest": "^3.0.6",
|
|
207
207
|
"xml2js": "^0.6.2"
|
|
208
208
|
},
|
|
209
209
|
"peerDependencies": {
|