@cloud411716/fancy-webnovel 0.1.95 → 0.1.96

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud411716/fancy-webnovel",
3
- "version": "0.1.95",
3
+ "version": "0.1.96",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "exports": {
@@ -180,8 +180,8 @@ async function runScanWithChromiumFix(ctx, session, invocation, { platform, leng
180
180
  });
181
181
 
182
182
  let sudoDialogPromise = null;
183
- // 检测 sudo 密码提示
184
- installProc.stderr.on('data', async (d) => {
183
+ // sudo 密码提示走 stdout,不是 stderr
184
+ installProc.stdout.on('data', async (d) => {
185
185
  if (sudoDialogPromise) return;
186
186
  const text = d.toString();
187
187
  if (/password|密码|sudo/i.test(text)) {