@xbrowser/cli 1.7.9 → 1.8.0

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 CHANGED
@@ -12660,7 +12660,7 @@ async function routeCommand(argvIn, stdinCommands) {
12660
12660
  const hasJsonFlag = argv.some((a) => a === "--json" || a.startsWith("--json="));
12661
12661
  const hasYamlFlag = argv.some((a) => a === "--yaml" || a.startsWith("--yaml="));
12662
12662
  const cleanArgv = argv.filter((a) => a !== "--json" && a !== "--yaml");
12663
- const parsed = parseArgs(cleanArgv);
12663
+ const parsed = parseArgs(cleanArgv, { booleanFlags: ["json", "yaml"] });
12664
12664
  const { positional, options } = parsed;
12665
12665
  if (hasJsonFlag) options.json = true;
12666
12666
  if (hasYamlFlag) options.yaml = true;
package/dist/index.js CHANGED
@@ -12983,7 +12983,7 @@ async function routeCommand(argvIn, stdinCommands) {
12983
12983
  const hasJsonFlag = argv.some((a) => a === "--json" || a.startsWith("--json="));
12984
12984
  const hasYamlFlag = argv.some((a) => a === "--yaml" || a.startsWith("--yaml="));
12985
12985
  const cleanArgv = argv.filter((a) => a !== "--json" && a !== "--yaml");
12986
- const parsed = parseArgs(cleanArgv);
12986
+ const parsed = parseArgs(cleanArgv, { booleanFlags: ["json", "yaml"] });
12987
12987
  const { positional, options } = parsed;
12988
12988
  if (hasJsonFlag) options.json = true;
12989
12989
  if (hasYamlFlag) options.yaml = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xbrowser/cli",
3
- "version": "1.7.9",
3
+ "version": "1.8.0",
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": {
@@ -84,7 +84,7 @@
84
84
  "prepare": "husky"
85
85
  },
86
86
  "dependencies": {
87
- "@dyyz1993/xcli-core": "^0.16.0",
87
+ "@dyyz1993/xcli-core": "^0.18.0",
88
88
  "@types/react-syntax-highlighter": "^15.5.13",
89
89
  "@types/turndown": "^5.0.6",
90
90
  "cheerio": "^1.2.0",