nitropack-nightly 2.11.0-20250206-184858.0f7c3eaf → 2.11.0-20250206-204748.ac78f21d
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 +2 -2
- 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 +3 -1
- package/dist/presets/cloudflare/unenv/runtime/async_hooks.d.mts +1 -5
- package/dist/presets/cloudflare/unenv/runtime/async_hooks.mjs +5 -4
- package/dist/presets/cloudflare/unenv/runtime/crypto.d.mts +1 -25
- package/dist/presets/cloudflare/unenv/runtime/crypto.mjs +5 -5
- package/dist/presets/cloudflare/unenv/runtime/util.d.mts +2 -21
- package/dist/presets/cloudflare/unenv/runtime/util.mjs +8 -8
- package/dist/presets/deno/preset-legacy.mjs +1 -1
- package/dist/rollup/index.mjs +7 -3
- package/package.json +2 -2
- package/runtime-meta.mjs +1 -0
package/dist/core/index.mjs
CHANGED
|
@@ -117,7 +117,7 @@ const NitroDefaults = {
|
|
|
117
117
|
unenv: {},
|
|
118
118
|
analyze: false,
|
|
119
119
|
moduleSideEffects: [
|
|
120
|
-
"unenv/
|
|
120
|
+
"unenv/polyfill/",
|
|
121
121
|
"node-fetch-native/polyfill",
|
|
122
122
|
"node-fetch-native/dist/polyfill",
|
|
123
123
|
resolve(runtimeDir, "polyfill/")
|
|
@@ -345,7 +345,7 @@ async function resolveFetchOptions(options) {
|
|
|
345
345
|
}
|
|
346
346
|
if (!options.experimental.nodeFetchCompat) {
|
|
347
347
|
options.alias = {
|
|
348
|
-
"node-fetch-native/polyfill": "unenv/
|
|
348
|
+
"node-fetch-native/polyfill": "unenv/mock/empty",
|
|
349
349
|
"node-fetch-native": "node-fetch-native/native",
|
|
350
350
|
...options.alias
|
|
351
351
|
};
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED
package/dist/meta/index.mjs
CHANGED
|
@@ -46,7 +46,9 @@ export const unenvCfPreset = {
|
|
|
46
46
|
])
|
|
47
47
|
),
|
|
48
48
|
sys: resolvePresetRuntime("util"),
|
|
49
|
-
"node:sys": resolvePresetRuntime("util")
|
|
49
|
+
"node:sys": resolvePresetRuntime("util"),
|
|
50
|
+
"node-mock-http/_polyfill/events": "node:events",
|
|
51
|
+
"node-mock-http/_polyfill/buffer": "node:buffer"
|
|
50
52
|
},
|
|
51
53
|
inject: {
|
|
52
54
|
"globalThis.Buffer": ["node:buffer", "Buffer"]
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export const AsyncLocalStorage: any;
|
|
2
2
|
export const AsyncResource: any;
|
|
3
3
|
declare namespace _default {
|
|
4
|
+
export { asyncWrapProviders };
|
|
4
5
|
export { createHook };
|
|
5
6
|
export { executionAsyncId };
|
|
6
7
|
export { executionAsyncResource };
|
|
@@ -9,8 +10,3 @@ declare namespace _default {
|
|
|
9
10
|
export { AsyncResource };
|
|
10
11
|
}
|
|
11
12
|
export default _default;
|
|
12
|
-
import { createHook } from "unenv/runtime/node/async_hooks/index";
|
|
13
|
-
import { executionAsyncId } from "unenv/runtime/node/async_hooks/index";
|
|
14
|
-
import { executionAsyncResource } from "unenv/runtime/node/async_hooks/index";
|
|
15
|
-
import { triggerAsyncId } from "unenv/runtime/node/async_hooks/index";
|
|
16
|
-
export { createHook, executionAsyncId, executionAsyncResource, triggerAsyncId } from "unenv/runtime/node/async_hooks/index";
|
|
@@ -3,24 +3,25 @@
|
|
|
3
3
|
import workerdAsyncHooks from "#workerd/node:async_hooks";
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
6
|
+
asyncWrapProviders,
|
|
7
7
|
createHook,
|
|
8
8
|
executionAsyncId,
|
|
9
9
|
executionAsyncResource,
|
|
10
10
|
triggerAsyncId,
|
|
11
|
-
} from "unenv/
|
|
11
|
+
} from "unenv/node/async_hooks";
|
|
12
12
|
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
asyncWrapProviders,
|
|
15
15
|
createHook,
|
|
16
16
|
executionAsyncId,
|
|
17
17
|
executionAsyncResource,
|
|
18
18
|
triggerAsyncId,
|
|
19
|
-
} from "unenv/
|
|
19
|
+
} from "unenv/node/async_hooks";
|
|
20
20
|
|
|
21
21
|
export const { AsyncLocalStorage, AsyncResource } = workerdAsyncHooks;
|
|
22
22
|
|
|
23
23
|
export default {
|
|
24
|
+
asyncWrapProviders,
|
|
24
25
|
createHook,
|
|
25
26
|
executionAsyncId,
|
|
26
27
|
executionAsyncResource,
|
|
@@ -66,6 +66,7 @@ declare namespace _default {
|
|
|
66
66
|
export { createVerify };
|
|
67
67
|
export { diffieHellman };
|
|
68
68
|
export { getCipherInfo };
|
|
69
|
+
export { hash };
|
|
69
70
|
export { privateDecrypt };
|
|
70
71
|
export { privateEncrypt };
|
|
71
72
|
export { publicDecrypt };
|
|
@@ -121,29 +122,4 @@ declare namespace _default {
|
|
|
121
122
|
export { webcrypto };
|
|
122
123
|
}
|
|
123
124
|
export default _default;
|
|
124
|
-
import { Cipher } from "unenv/runtime/node/crypto/index";
|
|
125
|
-
import { Cipheriv } from "unenv/runtime/node/crypto/index";
|
|
126
|
-
import { Decipher } from "unenv/runtime/node/crypto/index";
|
|
127
|
-
import { Decipheriv } from "unenv/runtime/node/crypto/index";
|
|
128
|
-
import { ECDH } from "unenv/runtime/node/crypto/index";
|
|
129
|
-
import { Sign } from "unenv/runtime/node/crypto/index";
|
|
130
|
-
import { Verify } from "unenv/runtime/node/crypto/index";
|
|
131
|
-
import { constants } from "unenv/runtime/node/crypto/index";
|
|
132
|
-
import { createCipheriv } from "unenv/runtime/node/crypto/index";
|
|
133
|
-
import { createDecipheriv } from "unenv/runtime/node/crypto/index";
|
|
134
|
-
import { createECDH } from "unenv/runtime/node/crypto/index";
|
|
135
|
-
import { createSign } from "unenv/runtime/node/crypto/index";
|
|
136
|
-
import { createVerify } from "unenv/runtime/node/crypto/index";
|
|
137
|
-
import { diffieHellman } from "unenv/runtime/node/crypto/index";
|
|
138
|
-
import { getCipherInfo } from "unenv/runtime/node/crypto/index";
|
|
139
|
-
import { privateDecrypt } from "unenv/runtime/node/crypto/index";
|
|
140
|
-
import { privateEncrypt } from "unenv/runtime/node/crypto/index";
|
|
141
|
-
import { publicDecrypt } from "unenv/runtime/node/crypto/index";
|
|
142
|
-
import { publicEncrypt } from "unenv/runtime/node/crypto/index";
|
|
143
|
-
import { sign } from "unenv/runtime/node/crypto/index";
|
|
144
|
-
import { verify } from "unenv/runtime/node/crypto/index";
|
|
145
|
-
import { createCipher } from "unenv/runtime/node/crypto/index";
|
|
146
|
-
import { createDecipher } from "unenv/runtime/node/crypto/index";
|
|
147
|
-
import { pseudoRandomBytes } from "unenv/runtime/node/crypto/index";
|
|
148
125
|
declare const fips: any;
|
|
149
|
-
export { Cipher, Cipheriv, Decipher, Decipheriv, ECDH, Sign, Verify, constants, createCipheriv, createDecipheriv, createECDH, createSign, createVerify, diffieHellman, getCipherInfo, privateDecrypt, privateEncrypt, publicDecrypt, publicEncrypt, sign, verify } from "unenv/runtime/node/crypto/index";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
diffieHellman,
|
|
19
19
|
ECDH,
|
|
20
20
|
getCipherInfo,
|
|
21
|
-
|
|
21
|
+
hash,
|
|
22
22
|
privateDecrypt,
|
|
23
23
|
privateEncrypt,
|
|
24
24
|
pseudoRandomBytes,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
webcrypto as unenvCryptoWebcrypto,
|
|
30
30
|
Verify,
|
|
31
31
|
verify,
|
|
32
|
-
} from "unenv/
|
|
32
|
+
} from "unenv/node/crypto";
|
|
33
33
|
|
|
34
34
|
export {
|
|
35
35
|
Cipher,
|
|
@@ -47,14 +47,14 @@ export {
|
|
|
47
47
|
createVerify,
|
|
48
48
|
diffieHellman,
|
|
49
49
|
getCipherInfo,
|
|
50
|
-
|
|
50
|
+
hash,
|
|
51
51
|
privateDecrypt,
|
|
52
52
|
privateEncrypt,
|
|
53
53
|
publicDecrypt,
|
|
54
54
|
publicEncrypt,
|
|
55
55
|
sign,
|
|
56
56
|
verify,
|
|
57
|
-
} from "unenv/
|
|
57
|
+
} from "unenv/node/crypto";
|
|
58
58
|
|
|
59
59
|
export const {
|
|
60
60
|
Certificate,
|
|
@@ -133,7 +133,7 @@ export default {
|
|
|
133
133
|
createVerify,
|
|
134
134
|
diffieHellman,
|
|
135
135
|
getCipherInfo,
|
|
136
|
-
|
|
136
|
+
hash,
|
|
137
137
|
privateDecrypt,
|
|
138
138
|
privateEncrypt,
|
|
139
139
|
publicDecrypt,
|
|
@@ -42,6 +42,8 @@ declare namespace _default {
|
|
|
42
42
|
export { isString };
|
|
43
43
|
export { isSymbol };
|
|
44
44
|
export { isUndefined };
|
|
45
|
+
export { parseEnv };
|
|
46
|
+
export { styleText };
|
|
45
47
|
export { MIMEParams };
|
|
46
48
|
export { MIMEType };
|
|
47
49
|
export { TextDecoder };
|
|
@@ -67,24 +69,3 @@ declare namespace _default {
|
|
|
67
69
|
export { types };
|
|
68
70
|
}
|
|
69
71
|
export default _default;
|
|
70
|
-
import { _errnoException } from "unenv/runtime/node/util/index";
|
|
71
|
-
import { _exceptionWithHostPort } from "unenv/runtime/node/util/index";
|
|
72
|
-
import { getSystemErrorMap } from "unenv/runtime/node/util/index";
|
|
73
|
-
import { getSystemErrorName } from "unenv/runtime/node/util/index";
|
|
74
|
-
import { isArray } from "unenv/runtime/node/util/index";
|
|
75
|
-
import { isBoolean } from "unenv/runtime/node/util/index";
|
|
76
|
-
import { isBuffer } from "unenv/runtime/node/util/index";
|
|
77
|
-
import { isDate } from "unenv/runtime/node/util/index";
|
|
78
|
-
import { isDeepStrictEqual } from "unenv/runtime/node/util/index";
|
|
79
|
-
import { isError } from "unenv/runtime/node/util/index";
|
|
80
|
-
import { isFunction } from "unenv/runtime/node/util/index";
|
|
81
|
-
import { isNull } from "unenv/runtime/node/util/index";
|
|
82
|
-
import { isNullOrUndefined } from "unenv/runtime/node/util/index";
|
|
83
|
-
import { isNumber } from "unenv/runtime/node/util/index";
|
|
84
|
-
import { isObject } from "unenv/runtime/node/util/index";
|
|
85
|
-
import { isPrimitive } from "unenv/runtime/node/util/index";
|
|
86
|
-
import { isRegExp } from "unenv/runtime/node/util/index";
|
|
87
|
-
import { isString } from "unenv/runtime/node/util/index";
|
|
88
|
-
import { isSymbol } from "unenv/runtime/node/util/index";
|
|
89
|
-
import { isUndefined } from "unenv/runtime/node/util/index";
|
|
90
|
-
export { _errnoException, _exceptionWithHostPort, getSystemErrorMap, getSystemErrorName, isArray, isBoolean, isBuffer, isDate, isDeepStrictEqual, isError, isFunction, isNull, isNullOrUndefined, isNumber, isObject, isPrimitive, isRegExp, isString, isSymbol, isUndefined } from "unenv/runtime/node/util/index";
|
|
@@ -23,9 +23,9 @@ import {
|
|
|
23
23
|
isString,
|
|
24
24
|
isSymbol,
|
|
25
25
|
isUndefined,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} from "unenv/
|
|
26
|
+
parseEnv,
|
|
27
|
+
styleText,
|
|
28
|
+
} from "unenv/node/util";
|
|
29
29
|
|
|
30
30
|
export {
|
|
31
31
|
_errnoException,
|
|
@@ -48,9 +48,9 @@ export {
|
|
|
48
48
|
isString,
|
|
49
49
|
isSymbol,
|
|
50
50
|
isUndefined,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
} from "unenv/
|
|
51
|
+
parseEnv,
|
|
52
|
+
styleText,
|
|
53
|
+
} from "unenv/node/util";
|
|
54
54
|
|
|
55
55
|
export const {
|
|
56
56
|
MIMEParams,
|
|
@@ -100,8 +100,8 @@ export default {
|
|
|
100
100
|
isString,
|
|
101
101
|
isSymbol,
|
|
102
102
|
isUndefined,
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
parseEnv,
|
|
104
|
+
styleText,
|
|
105
105
|
MIMEParams,
|
|
106
106
|
MIMEType,
|
|
107
107
|
TextDecoder,
|
|
@@ -15,7 +15,7 @@ export const denoServerLegacy = defineNitroPreset(
|
|
|
15
15
|
},
|
|
16
16
|
unenv: {
|
|
17
17
|
inject: {
|
|
18
|
-
global: ["unenv/
|
|
18
|
+
global: ["unenv/polyfill/global-this", "default"],
|
|
19
19
|
Buffer: ["node:buffer", "Buffer"],
|
|
20
20
|
setTimeout: ["node:timers", "setTimeout"],
|
|
21
21
|
clearTimeout: ["node:timers", "clearTimeout"],
|
package/dist/rollup/index.mjs
CHANGED
|
@@ -1677,9 +1677,13 @@ const getRollupConfig = (nitro) => {
|
|
|
1677
1677
|
alias: {
|
|
1678
1678
|
// General
|
|
1679
1679
|
...nitro.options.dev ? {} : {
|
|
1680
|
-
debug: "unenv/
|
|
1680
|
+
debug: "unenv/npm/debug",
|
|
1681
1681
|
"consola/core": "consola/core",
|
|
1682
|
-
consola: "unenv/
|
|
1682
|
+
consola: "unenv/npm/consola"
|
|
1683
|
+
},
|
|
1684
|
+
...nitro.options.node === false ? {} : {
|
|
1685
|
+
"node-mock-http/_polyfill/events": "node:events",
|
|
1686
|
+
"node-mock-http/_polyfill/buffer": "node:buffer"
|
|
1683
1687
|
},
|
|
1684
1688
|
...nitro.options.alias
|
|
1685
1689
|
}
|
|
@@ -1897,7 +1901,7 @@ const getRollupConfig = (nitro) => {
|
|
|
1897
1901
|
rollupConfig.plugins.push(
|
|
1898
1902
|
virtual(
|
|
1899
1903
|
{
|
|
1900
|
-
"#nitro-internal-pollyfills": env.polyfill.map((p) => `import '${p}';`).join("\n")
|
|
1904
|
+
"#nitro-internal-pollyfills": env.polyfill.map((p) => `import '${p}';`).join("\n") || `/* No polyfills */`
|
|
1901
1905
|
},
|
|
1902
1906
|
nitro.vfs
|
|
1903
1907
|
)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nitropack-nightly",
|
|
3
|
-
"version": "2.11.0-20250206-
|
|
3
|
+
"version": "2.11.0-20250206-204748.ac78f21d",
|
|
4
4
|
"description": "Build and Deploy Universal JavaScript Servers",
|
|
5
5
|
"repository": "nitrojs/nitro",
|
|
6
6
|
"license": "MIT",
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
"ultrahtml": "^1.5.3",
|
|
164
164
|
"uncrypto": "^0.1.3",
|
|
165
165
|
"unctx": "^2.4.1",
|
|
166
|
-
"unenv": "
|
|
166
|
+
"unenv": "2.0.0-rc.2",
|
|
167
167
|
"unimport": "^4.0.0",
|
|
168
168
|
"unstorage": "^1.14.4",
|
|
169
169
|
"untyped": "^1.5.2",
|