@xbrowser/cli 1.6.0 → 1.6.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/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -12523,7 +12523,7 @@ async function handleEvalMode(argv) {
|
|
|
12523
12523
|
}
|
|
12524
12524
|
async function handleChainInput(input, argv) {
|
|
12525
12525
|
const cdpEndpoint = argv ? extractCdpFromArgv(argv) : void 0;
|
|
12526
|
-
const jsonMode = argv ? argv.includes("--json") || argv.includes("-j") : false;
|
|
12526
|
+
const jsonMode = argv ? argv.some((a) => a === "--json" || a.startsWith("--json=") || a.includes(" --json") || a.startsWith("--json")) || argv.includes("-j") : false;
|
|
12527
12527
|
const chainResult = await executeChain(input, { cdpEndpoint });
|
|
12528
12528
|
if (jsonMode) {
|
|
12529
12529
|
const output = {
|
package/dist/index.js
CHANGED
|
@@ -12846,7 +12846,7 @@ async function handleEvalMode(argv) {
|
|
|
12846
12846
|
}
|
|
12847
12847
|
async function handleChainInput(input, argv) {
|
|
12848
12848
|
const cdpEndpoint = argv ? extractCdpFromArgv(argv) : void 0;
|
|
12849
|
-
const jsonMode = argv ? argv.includes("--json") || argv.includes("-j") : false;
|
|
12849
|
+
const jsonMode = argv ? argv.some((a) => a === "--json" || a.startsWith("--json=") || a.includes(" --json") || a.startsWith("--json")) || argv.includes("-j") : false;
|
|
12850
12850
|
const chainResult = await executeChain(input, { cdpEndpoint });
|
|
12851
12851
|
if (jsonMode) {
|
|
12852
12852
|
const output = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xbrowser/cli",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "Browser automation CLI for web scraping, headless browsing, SEO analysis, and AI agent workflows. A command-line alternative to Playwright, Puppeteer, and Selenium.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|