nuxtseo-shared 5.3.0 → 5.3.2
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 +19 -5
- package/dist/module.json +1 -1
- package/package.json +8 -8
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
|
|
198
|
-
|
|
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",
|
|
204
|
-
child.stderr?.on("data",
|
|
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
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxtseo-shared",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.3.
|
|
4
|
+
"version": "5.3.2",
|
|
5
5
|
"description": "Shared utilities for Nuxt SEO modules.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Harlan Wilton",
|
|
@@ -75,13 +75,13 @@
|
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@clack/prompts": "^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.
|
|
84
|
+
"nypm": "^0.6.8",
|
|
85
85
|
"ofetch": "^1.5.1",
|
|
86
86
|
"pathe": "^2.0.3",
|
|
87
87
|
"pkg-types": "^2.3.1",
|
|
@@ -91,17 +91,17 @@
|
|
|
91
91
|
"ufo": "^1.6.4"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
|
-
"@arethetypeswrong/cli": "^0.18.
|
|
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",
|
|
98
98
|
"nitropack": "^2.13.4",
|
|
99
99
|
"nuxt": "^4.4.8",
|
|
100
|
-
"nuxt-site-config": "^4.1.
|
|
100
|
+
"nuxt-site-config": "^4.1.1",
|
|
101
101
|
"typescript": "^6.0.3",
|
|
102
|
-
"vitest": "^4.1.
|
|
103
|
-
"vue": "^3.5.
|
|
104
|
-
"vue-tsc": "^3.3.
|
|
102
|
+
"vitest": "^4.1.9",
|
|
103
|
+
"vue": "^3.5.39",
|
|
104
|
+
"vue-tsc": "^3.3.6"
|
|
105
105
|
},
|
|
106
106
|
"scripts": {
|
|
107
107
|
"build": "nuxt-module-build build",
|