@nuxt/nitro-server-nightly 4.2.2-29404491.1c73525a → 4.2.2-29413365.2a912219

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.
Files changed (2) hide show
  1. package/dist/index.mjs +8 -6
  2. package/package.json +5 -5
package/dist/index.mjs CHANGED
@@ -17,7 +17,7 @@ import { isWindows } from 'std-env';
17
17
  import { ImpoundPlugin } from 'impound';
18
18
  import { resolveModulePath } from 'exsolve';
19
19
 
20
- const version = "4.2.2-29404491.1c73525a";
20
+ const version = "4.2.2-29413365.2a912219";
21
21
 
22
22
  function toArray(value) {
23
23
  return Array.isArray(value) ? value : [value];
@@ -44,11 +44,13 @@ function createImportProtectionPatterns(nuxt, options) {
44
44
  "Importing directly from a `nuxt.config` file is not allowed. Instead, use runtime config or a module."
45
45
  ]);
46
46
  patterns.push([/(^|node_modules\/)@vue\/composition-api/]);
47
- for (const mod of nuxt.options.modules.filter((m) => typeof m === "string")) {
48
- patterns.push([
49
- new RegExp(`^${escapeRE(mod)}$`),
50
- "Importing directly from module entry-points is not allowed."
51
- ]);
47
+ for (const mod of nuxt.options._installedModules) {
48
+ if (mod.entryPath) {
49
+ patterns.push([
50
+ new RegExp(`^${escapeRE(mod.entryPath)}$`),
51
+ "Importing directly from module entry-points is not allowed."
52
+ ]);
53
+ }
52
54
  }
53
55
  for (const i of [/(^|node_modules\/)@nuxt\/(cli|kit|test-utils)/, /(^|node_modules\/)nuxi/, /(^|node_modules\/)nitro(?:pack)?(?:-nightly)?(?:$|\/)(?!(?:dist\/)?(?:node_modules|presets|runtime|types))/, /(^|node_modules\/)nuxt\/(config|kit|schema)/]) {
54
56
  patterns.push([i, `This module cannot be imported in ${context}.`]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/nitro-server-nightly",
3
- "version": "4.2.2-29404491.1c73525a",
3
+ "version": "4.2.2-29413365.2a912219",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -19,7 +19,7 @@
19
19
  ],
20
20
  "dependencies": {
21
21
  "@nuxt/devalue": "^2.0.2",
22
- "@nuxt/kit": "npm:@nuxt/kit-nightly@4.2.2-29404491.1c73525a",
22
+ "@nuxt/kit": "npm:@nuxt/kit-nightly@4.2.2-29413365.2a912219",
23
23
  "@unhead/vue": "^2.0.19",
24
24
  "@vue/shared": "^3.5.25",
25
25
  "consola": "^3.4.2",
@@ -46,11 +46,11 @@
46
46
  "vue-devtools-stub": "^0.1.0"
47
47
  },
48
48
  "peerDependencies": {
49
- "nuxt": "npm:nuxt-nightly@4.2.2-29404491.1c73525a"
49
+ "nuxt": "npm:nuxt-nightly@4.2.2-29413365.2a912219"
50
50
  },
51
51
  "devDependencies": {
52
- "@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.2-29404491.1c73525a",
53
- "nuxt": "npm:nuxt-nightly@4.2.2-29404491.1c73525a",
52
+ "@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.2-29413365.2a912219",
53
+ "nuxt": "npm:nuxt-nightly@4.2.2-29413365.2a912219",
54
54
  "unbuild": "3.6.1",
55
55
  "vitest": "3.2.4"
56
56
  },