@ignix-social/editor 0.1.6 → 0.1.7
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/package.json
CHANGED
package/patches/index.mjs
CHANGED
|
@@ -88,4 +88,16 @@ export const patches = [
|
|
|
88
88
|
replacement: ' return null; // ignix-editor: sin aviso de la app de escritorio\n if (ready && (installed ?? desktopInstalled({ platform, env })))',
|
|
89
89
|
}),
|
|
90
90
|
},
|
|
91
|
+
{
|
|
92
|
+
id: 'chrome-first-launch',
|
|
93
|
+
// Antes de renderizar, el motor pregunta `chrome --version` con 5 s de margen. La
|
|
94
|
+
// primera vez que se abre una copia recién instalada, macOS la revisa entera: 4,7 s
|
|
95
|
+
// medidos en un Mac Intel, y más con el equipo ocupado. El primer render tras instalar
|
|
96
|
+
// fallaba con «Chrome cannot start». 60 s; las demás veces responde en 0,05 s.
|
|
97
|
+
apply: (dist) =>
|
|
98
|
+
replaceAnchor(dist, {
|
|
99
|
+
anchor: 'runCancellableProcess(executablePath, ["--version"], {\n signal,\n timeoutMs: 5e3,',
|
|
100
|
+
replacement: 'runCancellableProcess(executablePath, ["--version"], {\n signal,\n timeoutMs: 6e4, // ignix-editor: primera apertura de una copia nueva',
|
|
101
|
+
}),
|
|
102
|
+
},
|
|
91
103
|
];
|
|
@@ -211,7 +211,7 @@ async function chromeLaunchOutcome(executablePath, found, signal) {
|
|
|
211
211
|
try {
|
|
212
212
|
const { stdout } = await runCancellableProcess(executablePath, ["--version"], {
|
|
213
213
|
signal,
|
|
214
|
-
timeoutMs:
|
|
214
|
+
timeoutMs: 6e4, // ignix-editor: primera apertura de una copia nueva
|
|
215
215
|
maxBufferBytes: 64 * 1024
|
|
216
216
|
});
|
|
217
217
|
return { ...found, versionMajor: extractMajorVersion(stdout) };
|