nitropack-nightly 2.11.0-20250304-111649.ebb80845 → 2.11.0-20250304-184554.fd96966f
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
CHANGED
|
@@ -12,6 +12,7 @@ import { existsSync, promises } from 'node:fs';
|
|
|
12
12
|
import defu$1, { defu } from 'defu';
|
|
13
13
|
import { withLeadingSlash, withoutTrailingSlash, withTrailingSlash, withBase, parseURL, joinURL, withoutBase } from 'ufo';
|
|
14
14
|
import { colors } from 'consola/utils';
|
|
15
|
+
import { resolveModulePath } from 'exsolve';
|
|
15
16
|
import escapeRE from 'escape-string-regexp';
|
|
16
17
|
import { resolveModuleExportNames, parseNodeModulePath, lookupNodeModuleSubpath } from 'mlly';
|
|
17
18
|
import { resolveNitroPath, isDirectory, writeFile, prettyPath } from 'nitropack/kit';
|
|
@@ -32,7 +33,6 @@ import { debounce } from 'perfect-debounce';
|
|
|
32
33
|
import * as rollup from 'rollup';
|
|
33
34
|
import { upperFirst } from 'scule';
|
|
34
35
|
import { genTypeImport } from 'knitwork';
|
|
35
|
-
import { resolveModulePath } from 'exsolve';
|
|
36
36
|
import { resolveAlias } from 'pathe/utils';
|
|
37
37
|
import { generateTypes, resolveSchema } from 'untyped';
|
|
38
38
|
import { version } from 'nitropack/meta';
|
|
@@ -345,7 +345,9 @@ async function resolveFetchOptions(options) {
|
|
|
345
345
|
}
|
|
346
346
|
if (!options.experimental.nodeFetchCompat) {
|
|
347
347
|
options.alias = {
|
|
348
|
-
"node-fetch-native/polyfill": "unenv/mock/empty",
|
|
348
|
+
"node-fetch-native/polyfill": resolveModulePath("unenv/mock/empty", {
|
|
349
|
+
from: import.meta.url
|
|
350
|
+
}),
|
|
349
351
|
"node-fetch-native/native": "node-fetch-native/native",
|
|
350
352
|
"node-fetch-native": "node-fetch-native/native",
|
|
351
353
|
...options.alias
|
|
@@ -709,7 +711,8 @@ async function resolveErrorOptions(options) {
|
|
|
709
711
|
|
|
710
712
|
const common = {
|
|
711
713
|
meta: {
|
|
712
|
-
name: "nitro-common"
|
|
714
|
+
name: "nitro-common",
|
|
715
|
+
url: import.meta.url
|
|
713
716
|
},
|
|
714
717
|
alias: {
|
|
715
718
|
"node-mock-http/_polyfill/events": "node:events",
|
|
@@ -721,7 +724,8 @@ const common = {
|
|
|
721
724
|
};
|
|
722
725
|
const nodeless = {
|
|
723
726
|
meta: {
|
|
724
|
-
name: "nitro-nodeless"
|
|
727
|
+
name: "nitro-nodeless",
|
|
728
|
+
url: import.meta.url
|
|
725
729
|
},
|
|
726
730
|
inject: {
|
|
727
731
|
global: "unenv/polyfill/globalthis",
|
|
@@ -731,7 +735,7 @@ const nodeless = {
|
|
|
731
735
|
setImmediate: ["node:timers", "setImmediate"],
|
|
732
736
|
performance: "unenv/polyfill/performance",
|
|
733
737
|
PerformanceObserver: ["node:perf_hooks", "PerformanceObserver"],
|
|
734
|
-
BroadcastChannel: "node:
|
|
738
|
+
BroadcastChannel: ["node:worker_threads", "BroadcastChannel"]
|
|
735
739
|
},
|
|
736
740
|
polyfill: [
|
|
737
741
|
"unenv/polyfill/globalthis-global",
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED
package/dist/meta/index.mjs
CHANGED
|
@@ -5,7 +5,8 @@ const workerdDir = fileURLToPath(new URL("workerd/", import.meta.url));
|
|
|
5
5
|
const resolvePresetRuntime = (m) => join(workerdDir, `${m}.mjs`);
|
|
6
6
|
export const unenvCfExternals = {
|
|
7
7
|
meta: {
|
|
8
|
-
name: "nitro-cloudflare:externals"
|
|
8
|
+
name: "nitro-cloudflare:externals",
|
|
9
|
+
url: import.meta.url
|
|
9
10
|
},
|
|
10
11
|
external: [
|
|
11
12
|
"cloudflare:email",
|
|
@@ -16,7 +17,8 @@ export const unenvCfExternals = {
|
|
|
16
17
|
};
|
|
17
18
|
export const unenvWorkerdWithNodeCompat = {
|
|
18
19
|
meta: {
|
|
19
|
-
name: "nitro-cloudflare:node-compat"
|
|
20
|
+
name: "nitro-cloudflare:node-compat",
|
|
21
|
+
url: import.meta.url
|
|
20
22
|
},
|
|
21
23
|
external: builtnNodeModules.map((m) => `node:${m}`),
|
|
22
24
|
alias: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nitropack-nightly",
|
|
3
|
-
"version": "2.11.0-20250304-
|
|
3
|
+
"version": "2.11.0-20250304-184554.fd96966f",
|
|
4
4
|
"description": "Build and Deploy Universal JavaScript Servers",
|
|
5
5
|
"repository": "nitrojs/nitro",
|
|
6
6
|
"license": "MIT",
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
"node-fetch-native": "^1.6.6",
|
|
146
146
|
"node-mock-http": "^1.0.0",
|
|
147
147
|
"ofetch": "^1.4.1",
|
|
148
|
-
"ohash": "^2.0.
|
|
148
|
+
"ohash": "^2.0.11",
|
|
149
149
|
"openapi-typescript": "^7.6.1",
|
|
150
150
|
"pathe": "^2.0.3",
|
|
151
151
|
"perfect-debounce": "^1.0.0",
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
"ultrahtml": "^1.5.3",
|
|
165
165
|
"uncrypto": "^0.1.3",
|
|
166
166
|
"unctx": "^2.4.1",
|
|
167
|
-
"unenv": "2.0.0-rc.
|
|
167
|
+
"unenv": "2.0.0-rc.12",
|
|
168
168
|
"unimport": "^4.1.2",
|
|
169
169
|
"unplugin-utils": "^0.2.4",
|
|
170
170
|
"unstorage": "^1.15.0",
|