@nuxt/schema-nightly 4.2.0-29335081.002c92c6 → 4.2.0-29336610.7ae2cf56

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 +5 -4
  2. package/package.json +2 -4
package/dist/index.mjs CHANGED
@@ -1,12 +1,10 @@
1
1
  import defu$1, { defu } from 'defu';
2
2
  import { resolve, join, relative } from 'pathe';
3
3
  import { isTest, isDevelopment, isDebug } from 'std-env';
4
- import { consola } from 'consola';
5
4
  import { existsSync } from 'node:fs';
6
5
  import { readdir } from 'node:fs/promises';
7
6
  import { randomUUID } from 'node:crypto';
8
7
  import { findWorkspaceDir } from 'pkg-types';
9
- import { withTrailingSlash } from 'ufo';
10
8
  import { escapeHtml } from '@vue/shared';
11
9
 
12
10
  function defineResolvers(config) {
@@ -222,7 +220,7 @@ const build = defineResolvers({
222
220
  logLevel: {
223
221
  $resolve: (val) => {
224
222
  if (val && typeof val === "string" && !["silent", "info", "verbose"].includes(val)) {
225
- consola.warn(`Invalid \`logLevel\` option: \`${val}\`. Must be one of: \`silent\`, \`info\`, \`verbose\`.`);
223
+ console.warn(`Invalid \`logLevel\` option: \`${val}\`. Must be one of: \`silent\`, \`info\`, \`verbose\`.`);
226
224
  }
227
225
  return val && typeof val === "string" ? val : isTest ? "silent" : "info";
228
226
  }
@@ -582,6 +580,9 @@ function provideFallbackValues(obj) {
582
580
  }
583
581
  }
584
582
  }
583
+ function withTrailingSlash(str) {
584
+ return str.replace(/\/?$/, "/");
585
+ }
585
586
 
586
587
  const _messages = { "appName": "Nuxt", "loading": "Loading", "version": "4.0" };
587
588
  const template = (messages) => {
@@ -1063,7 +1064,7 @@ const vite = defineResolvers({
1063
1064
  publicDir: {
1064
1065
  $resolve: (val) => {
1065
1066
  if (val) {
1066
- consola.warn("Directly configuring the `vite.publicDir` option is not supported. Instead, set `dir.public`. You can read more in `https://nuxt.com/docs/4.x/api/nuxt-config#public`.");
1067
+ console.warn("Directly configuring the `vite.publicDir` option is not supported. Instead, set `dir.public`. You can read more in `https://nuxt.com/docs/4.x/api/nuxt-config#public`.");
1067
1068
  }
1068
1069
  return false;
1069
1070
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/schema-nightly",
3
- "version": "4.2.0-29335081.002c92c6",
3
+ "version": "4.2.0-29336610.7ae2cf56",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -72,12 +72,10 @@
72
72
  },
73
73
  "dependencies": {
74
74
  "@vue/shared": "^3.5.22",
75
- "consola": "^3.4.2",
76
75
  "defu": "^6.1.4",
77
76
  "pathe": "^2.0.3",
78
77
  "pkg-types": "^2.3.0",
79
- "std-env": "^3.9.0",
80
- "ufo": "1.6.1"
78
+ "std-env": "^3.9.0"
81
79
  },
82
80
  "engines": {
83
81
  "node": "^14.18.0 || >=16.10.0"