nuxtseo-shared 5.3.0 → 5.3.1

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/devtools.mjs CHANGED
@@ -194,24 +194,38 @@ export default defineNuxtConfig({
194
194
  const cliBin = resolveNuxtCli(rootDir);
195
195
  const child = cliBin ? spawn(process.execPath, [cliBin, "build"], { cwd: cacheDir, stdio: ["inherit", "pipe", "pipe"] }) : spawn("npx", ["nuxi", "build"], { cwd: cacheDir, stdio: ["inherit", "pipe", "pipe"], shell: true });
196
196
  const statusLine = /^(?:[ℹ✔✓✨⚠✖✗●➜√]|\[\w)/;
197
- const forward = (chunk, sink) => {
198
- sink.write(chunk);
197
+ const buffered = [];
198
+ let drawing = false;
199
+ const capture = (chunk) => {
200
+ buffered.push(chunk);
199
201
  const step = stripAnsi(chunk.toString()).split("\n").map((l) => l.trim()).filter((l) => statusLine.test(l)).pop();
200
- if (step)
202
+ if (step) {
201
203
  hooks.onProgress(step);
204
+ process.stdout.write(`\r\x1B[2K[nuxt-seo] ${step}`);
205
+ drawing = true;
206
+ }
207
+ };
208
+ const endLine = () => {
209
+ if (drawing) {
210
+ process.stdout.write("\n");
211
+ drawing = false;
212
+ }
202
213
  };
203
- child.stdout?.on("data", (c) => forward(c, process.stdout));
204
- child.stderr?.on("data", (c) => forward(c, process.stderr));
214
+ child.stdout?.on("data", capture);
215
+ child.stderr?.on("data", capture);
205
216
  child.on("error", (err) => {
217
+ endLine();
206
218
  console.error(`[nuxt-seo] could not build devtools client, the panel will stay unavailable: ${err.message}`);
207
219
  hooks.onError();
208
220
  });
209
221
  child.on("exit", (code) => {
222
+ endLine();
210
223
  if (code === 0) {
211
224
  writeFileSync(join(cacheDir, ".installed-hash"), hashSet(installed.map((m) => m.slug).sort()));
212
225
  hooks.onReady();
213
226
  console.log("[nuxt-seo] devtools client ready");
214
227
  } else {
228
+ process.stderr.write(Buffer.concat(buffered));
215
229
  console.error(`[nuxt-seo] devtools client build exited with code ${code}, the panel will stay unavailable`);
216
230
  hooks.onError();
217
231
  }
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.16.0"
6
6
  },
7
- "version": "5.3.0",
7
+ "version": "5.3.1",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxtseo-shared",
3
3
  "type": "module",
4
- "version": "5.3.0",
4
+ "version": "5.3.1",
5
5
  "description": "Shared utilities for Nuxt SEO modules.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",
@@ -63,7 +63,7 @@
63
63
  "@nuxt/schema": "^3.16.0 || ^4.0.0",
64
64
  "nuxt": "^3.16.0 || ^4.0.0",
65
65
  "nuxt-site-config": "^3.2.0 || ^4.0.0",
66
- "vue": "^3.5.0",
66
+ "vue": "^3.5.38",
67
67
  "zod": "^3.23.0 || ^4.0.0"
68
68
  },
69
69
  "peerDependenciesMeta": {
@@ -75,13 +75,13 @@
75
75
  }
76
76
  },
77
77
  "dependencies": {
78
- "@clack/prompts": "^1.5.1",
78
+ "@clack/prompts": "^1.6.0",
79
79
  "@nuxt/devtools-kit": "4.0.0-alpha.3",
80
80
  "@nuxt/kit": "^4.4.8",
81
81
  "birpc": "^4.0.0",
82
82
  "consola": "^3.4.2",
83
83
  "defu": "^6.1.7",
84
- "nypm": "^0.6.6",
84
+ "nypm": "^0.6.7",
85
85
  "ofetch": "^1.5.1",
86
86
  "pathe": "^2.0.3",
87
87
  "pkg-types": "^2.3.1",
@@ -91,7 +91,7 @@
91
91
  "ufo": "^1.6.4"
92
92
  },
93
93
  "devDependencies": {
94
- "@arethetypeswrong/cli": "^0.18.3",
94
+ "@arethetypeswrong/cli": "^0.18.4",
95
95
  "@nuxt/module-builder": "^1.0.2",
96
96
  "@nuxt/schema": "^4.4.8",
97
97
  "@nuxtjs/i18n": "^10.4.0",
@@ -99,9 +99,9 @@
99
99
  "nuxt": "^4.4.8",
100
100
  "nuxt-site-config": "^4.1.0",
101
101
  "typescript": "^6.0.3",
102
- "vitest": "^4.1.8",
103
- "vue": "^3.5.35",
104
- "vue-tsc": "^3.3.4"
102
+ "vitest": "^4.1.9",
103
+ "vue": "^3.5.38",
104
+ "vue-tsc": "^3.3.5"
105
105
  },
106
106
  "scripts": {
107
107
  "build": "nuxt-module-build build",