nitropack-nightly 2.11.0-20250304-141140.cdd912eb → 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.
@@ -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",
@@ -1,3 +1,3 @@
1
- const version = "2.11.0-20250304-141140.cdd912eb";
1
+ const version = "2.11.0-20250304-184554.fd96966f";
2
2
 
3
3
  export { version };
@@ -1,3 +1,3 @@
1
- const version = "2.11.0-20250304-141140.cdd912eb";
1
+ const version = "2.11.0-20250304-184554.fd96966f";
2
2
 
3
3
  export { version };
@@ -1,3 +1,3 @@
1
- const version = "2.11.0-20250304-141140.cdd912eb";
1
+ const version = "2.11.0-20250304-184554.fd96966f";
2
2
 
3
3
  export { version };
@@ -1,5 +1,9 @@
1
1
  import { builtnNodeModules } from "./node-compat/deno.mjs";
2
2
  export const unenvDenoPreset = {
3
+ meta: {
4
+ name: "nitro-deno",
5
+ url: import.meta.url
6
+ },
3
7
  external: builtnNodeModules.map((m) => `node:${m}`),
4
8
  alias: {
5
9
  // (native)
@@ -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-141140.cdd912eb",
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.10",
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.11",
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",