gologin 3.0.0 → 3.0.2
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/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/gologin.js +15 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Combined changelog for GoLogin node.js SDK
|
|
4
4
|
|
|
5
|
+
## [3.0.2] 2026-07-29
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* Added `customChromeFrame` option to control writing `browser.custom_chrome_frame: false` into profile Preferences
|
|
10
|
+
|
|
11
|
+
## [3.0.1] 2026-07-28
|
|
12
|
+
|
|
13
|
+
### Fixes
|
|
14
|
+
|
|
15
|
+
* Fixed crash when profile user agent is malformed and `executablePath` is set
|
|
16
|
+
|
|
5
17
|
## [3.0.0] 2026-06-24
|
|
6
18
|
|
|
7
19
|
### Features
|
package/README.md
CHANGED
package/index.d.ts
CHANGED
package/package.json
CHANGED
package/src/gologin.js
CHANGED
|
@@ -78,6 +78,7 @@ export class GoLogin {
|
|
|
78
78
|
this.newProxyOrbitaMajorVersion = 135;
|
|
79
79
|
this.proxyCheckTimeout = options.proxyCheckTimeout || 13 * 1000;
|
|
80
80
|
this.proxyCheckAttempts = options.proxyCheckAttempts || 3;
|
|
81
|
+
this.customChromeFrame = options.customChromeFrame;
|
|
81
82
|
|
|
82
83
|
if (options.tmpdir) {
|
|
83
84
|
this.tmpdir = options.tmpdir;
|
|
@@ -581,6 +582,13 @@ export class GoLogin {
|
|
|
581
582
|
|
|
582
583
|
this.browserLang = isMAC ? 'en-US' : checkAutoLangResult;
|
|
583
584
|
const prefsToWrite = Object.assign(preferences, { gologin });
|
|
585
|
+
if (this.customChromeFrame === false) {
|
|
586
|
+
prefsToWrite.browser = {
|
|
587
|
+
...(prefsToWrite.browser || {}),
|
|
588
|
+
custom_chrome_frame: false,
|
|
589
|
+
};
|
|
590
|
+
}
|
|
591
|
+
|
|
584
592
|
if (this.browserMajorVersion >= this.newProxyOrbitaMajorVersion && this.proxy?.mode !== 'none') {
|
|
585
593
|
prefsToWrite.proxy = {
|
|
586
594
|
mode: 'fixed_servers',
|
|
@@ -628,8 +636,13 @@ export class GoLogin {
|
|
|
628
636
|
|
|
629
637
|
if (!this.browserMajorVersion) {
|
|
630
638
|
const { userAgent } = profile.navigator;
|
|
631
|
-
|
|
632
|
-
|
|
639
|
+
try {
|
|
640
|
+
const [browserMajorVersion] = userAgent.split('Chrome/')[1].split('.');
|
|
641
|
+
this.browserMajorVersion = Number(browserMajorVersion);
|
|
642
|
+
} catch (e) {
|
|
643
|
+
const latestVersionNumber = await this.getLatestBrowserVersion();
|
|
644
|
+
this.browserMajorVersion = latestVersionNumber;
|
|
645
|
+
}
|
|
633
646
|
|
|
634
647
|
let executableDir = join(this.executablePath, '..');
|
|
635
648
|
if (OS_PLATFORM === 'darwin') {
|