@xbrowser/cli 1.9.3 → 1.9.4
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/daemon-main.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -6330,7 +6330,7 @@ async function checkPluginLoginRequired(options) {
|
|
|
6330
6330
|
const { site, command, commandName, ctx, page, sessionName } = options;
|
|
6331
6331
|
if (commandName === "login" || commandName === "logout") return { ok: true };
|
|
6332
6332
|
const loginConfig = site.config?.loginConfig;
|
|
6333
|
-
const requiresLogin = command.requiresLogin === true || site.config?.requiresLogin === true || loginConfig?.requiresLogin === true;
|
|
6333
|
+
const requiresLogin = command.requiresLogin === true || site.config?.requiresLogin === true || loginConfig?.requiresLogin === true || command.loginRequired === "required";
|
|
6334
6334
|
if (!requiresLogin) return { ok: true };
|
|
6335
6335
|
const pluginName = site.name || "plugin";
|
|
6336
6336
|
if (typeof site.isLoggedIn === "function") {
|
package/dist/daemon-main.js
CHANGED
|
@@ -5847,7 +5847,7 @@ async function checkPluginLoginRequired(options) {
|
|
|
5847
5847
|
const { site, command, commandName, ctx, page, sessionName } = options;
|
|
5848
5848
|
if (commandName === "login" || commandName === "logout") return { ok: true };
|
|
5849
5849
|
const loginConfig = site.config?.loginConfig;
|
|
5850
|
-
const requiresLogin = command.requiresLogin === true || site.config?.requiresLogin === true || loginConfig?.requiresLogin === true;
|
|
5850
|
+
const requiresLogin = command.requiresLogin === true || site.config?.requiresLogin === true || loginConfig?.requiresLogin === true || command.loginRequired === "required";
|
|
5851
5851
|
if (!requiresLogin) return { ok: true };
|
|
5852
5852
|
const pluginName = site.name || "plugin";
|
|
5853
5853
|
if (typeof site.isLoggedIn === "function") {
|
package/dist/index.js
CHANGED
|
@@ -6675,7 +6675,7 @@ async function checkPluginLoginRequired(options) {
|
|
|
6675
6675
|
const { site, command, commandName, ctx, page, sessionName } = options;
|
|
6676
6676
|
if (commandName === "login" || commandName === "logout") return { ok: true };
|
|
6677
6677
|
const loginConfig = site.config?.loginConfig;
|
|
6678
|
-
const requiresLogin = command.requiresLogin === true || site.config?.requiresLogin === true || loginConfig?.requiresLogin === true;
|
|
6678
|
+
const requiresLogin = command.requiresLogin === true || site.config?.requiresLogin === true || loginConfig?.requiresLogin === true || command.loginRequired === "required";
|
|
6679
6679
|
if (!requiresLogin) return { ok: true };
|
|
6680
6680
|
const pluginName = site.name || "plugin";
|
|
6681
6681
|
if (typeof site.isLoggedIn === "function") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xbrowser/cli",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.4",
|
|
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": {
|