@agentium/browser 2.0.6 → 2.0.7
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/index.cjs +1 -5
- package/dist/index.js +1 -5
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -206,14 +206,10 @@ var BrowserProvider = class {
|
|
|
206
206
|
const launchOpts = {
|
|
207
207
|
headless: opts?.headless ?? true
|
|
208
208
|
};
|
|
209
|
-
const windowSizeArg = `--window-size=${this._viewport.width},${this._viewport.height}`;
|
|
210
|
-
const windowPositionArg = "--window-position=0,0";
|
|
211
209
|
if (stealthEnabled) {
|
|
212
210
|
const { args, proxy } = buildStealthLaunchArgs(stealthCfg);
|
|
213
|
-
launchOpts.args =
|
|
211
|
+
launchOpts.args = args;
|
|
214
212
|
if (proxy) launchOpts.proxy = proxy;
|
|
215
|
-
} else {
|
|
216
|
-
launchOpts.args = [windowSizeArg, windowPositionArg];
|
|
217
213
|
}
|
|
218
214
|
this.browser = await chromium.launch(launchOpts);
|
|
219
215
|
let contextOpts;
|
package/dist/index.js
CHANGED
|
@@ -168,14 +168,10 @@ var BrowserProvider = class {
|
|
|
168
168
|
const launchOpts = {
|
|
169
169
|
headless: opts?.headless ?? true
|
|
170
170
|
};
|
|
171
|
-
const windowSizeArg = `--window-size=${this._viewport.width},${this._viewport.height}`;
|
|
172
|
-
const windowPositionArg = "--window-position=0,0";
|
|
173
171
|
if (stealthEnabled) {
|
|
174
172
|
const { args, proxy } = buildStealthLaunchArgs(stealthCfg);
|
|
175
|
-
launchOpts.args =
|
|
173
|
+
launchOpts.args = args;
|
|
176
174
|
if (proxy) launchOpts.proxy = proxy;
|
|
177
|
-
} else {
|
|
178
|
-
launchOpts.args = [windowSizeArg, windowPositionArg];
|
|
179
175
|
}
|
|
180
176
|
this.browser = await chromium.launch(launchOpts);
|
|
181
177
|
let contextOpts;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentium/browser",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"description": "Browser automation agent for Agentium using Playwright",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"typescript": "^5.6.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@agentium/core": "^2.0.
|
|
49
|
+
"@agentium/core": "^2.0.7",
|
|
50
50
|
"playwright": ">=1.40.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependenciesMeta": {
|