@xbrowser/cli 1.7.7 → 1.7.8
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 +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -9949,9 +9949,9 @@ async function handleBrowserCommand(command, args, options, sessionName, mode, c
|
|
|
9949
9949
|
};
|
|
9950
9950
|
break;
|
|
9951
9951
|
case "eval":
|
|
9952
|
-
if (!args[0]) outputError("Usage: xbrowser eval <expression>");
|
|
9953
9952
|
cmdName = "eval";
|
|
9954
|
-
params = { expression: args.join(" ") };
|
|
9953
|
+
params = { expression: args.join(" ") || options.expression || "" };
|
|
9954
|
+
if (!params.expression) outputError("Usage: xbrowser eval <expression>");
|
|
9955
9955
|
break;
|
|
9956
9956
|
case "scroll": {
|
|
9957
9957
|
let direction = "down";
|
package/dist/index.js
CHANGED
|
@@ -10272,9 +10272,9 @@ async function handleBrowserCommand(command, args, options, sessionName, mode, c
|
|
|
10272
10272
|
};
|
|
10273
10273
|
break;
|
|
10274
10274
|
case "eval":
|
|
10275
|
-
if (!args[0]) outputError("Usage: xbrowser eval <expression>");
|
|
10276
10275
|
cmdName = "eval";
|
|
10277
|
-
params = { expression: args.join(" ") };
|
|
10276
|
+
params = { expression: args.join(" ") || options.expression || "" };
|
|
10277
|
+
if (!params.expression) outputError("Usage: xbrowser eval <expression>");
|
|
10278
10278
|
break;
|
|
10279
10279
|
case "scroll": {
|
|
10280
10280
|
let direction = "down";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xbrowser/cli",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.8",
|
|
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": {
|