@xbrowser/cli 1.22.0 → 1.23.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/README.md +33 -3
- package/dist/{chunk-PIWNMC36.js → chunk-A3MORKYR.js} +1 -1
- package/dist/{chunk-OMU63E6J.js → chunk-FBQZ3PVD.js} +5 -8
- package/dist/chunk-LFX24QJZ.js +9076 -0
- package/dist/{chunk-TEXCXIBW.js → chunk-LPW6QS4M.js} +5 -8
- package/dist/chunk-TBSS7ES4.js +8732 -0
- package/dist/{chunk-NKW4A74J.js → chunk-W44UXZSC.js} +9 -105
- package/dist/cli.js +717 -9155
- package/dist/daemon-main.js +6 -6
- package/dist/{human-interaction-ZUTR5AC2.js → human-interaction-67K43B4O.js} +1 -1
- package/dist/{human-interaction-Y5IDH6LD.js → human-interaction-DK6QGYNC.js} +2 -1
- package/dist/{human-interaction-4YR2N6R6.js → human-interaction-MXST5ZQM.js} +1 -1
- package/dist/index.d.ts +15 -3
- package/dist/index.js +857 -9588
- package/dist/{plugin-singleton-FCNDN3FX.js → plugin-singleton-GJO7EZXB.js} +1 -1
- package/dist/{recovery-NXC35EQN.js → recovery-67DMH2OM.js} +3 -3
- package/dist/{recovery-L5GLDX4O.js → recovery-6RI2FE3E.js} +4 -3
- package/dist/{recovery-MDWAVXE4.js → recovery-LGY25LIM.js} +1 -1
- package/dist/server-DZUIBVVR.js +243 -0
- package/dist/server-HU4F5KN7.js +240 -0
- package/dist/{session-replayer-XM5L7LFD.js → session-replayer-N665T3G5.js} +22 -17
- package/package.json +11 -7
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-ZTHE5RBZ.js";
|
|
4
4
|
|
|
5
5
|
// src/human-interaction.ts
|
|
6
|
-
import {
|
|
6
|
+
import { execFile } from "child_process";
|
|
7
7
|
|
|
8
8
|
// src/screencast.ts
|
|
9
9
|
var ScreencastCapturer = class {
|
|
@@ -278,11 +278,6 @@ var WebhookNotifier = class {
|
|
|
278
278
|
}
|
|
279
279
|
};
|
|
280
280
|
|
|
281
|
-
// src/utils/shell-escape.ts
|
|
282
|
-
function shellEscape(value) {
|
|
283
|
-
return `'${value.replace(/'/g, "'\\''")}'`;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
281
|
// src/human-interaction.ts
|
|
287
282
|
var HumanInteractionManager = class {
|
|
288
283
|
wsServer;
|
|
@@ -311,8 +306,10 @@ var HumanInteractionManager = class {
|
|
|
311
306
|
tryAutoOpen(previewUrl) {
|
|
312
307
|
if (!this.autoOpen) return;
|
|
313
308
|
try {
|
|
314
|
-
const
|
|
315
|
-
|
|
309
|
+
const opener = process.platform === "darwin" ? "open" : process.platform === "linux" ? "xdg-open" : "cmd";
|
|
310
|
+
const args = process.platform === "win32" ? ["/c", "start", "", previewUrl] : [previewUrl];
|
|
311
|
+
execFile(opener, args, { timeout: 1e4 }, () => {
|
|
312
|
+
});
|
|
316
313
|
} catch {
|
|
317
314
|
}
|
|
318
315
|
}
|