gologin 3.0.1 → 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 CHANGED
@@ -2,6 +2,12 @@
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
+
5
11
  ## [3.0.1] 2026-07-28
6
12
 
7
13
  ### Fixes
@@ -2,8 +2,8 @@
2
2
  // It will handle the browser start and close management - you just need to control the browser with puppeteer
3
3
  import puppeteer from 'puppeteer-core';
4
4
 
5
- const token = process.env.GL_API_TOKEN || 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqd3RpZCI6IjZhNjM4NDk5YWFlYTkyY2Q4YzE3NjcwNyIsInR5cGUiOiJ1c2VyIiwic3ViIjoiNjkyNjI0YTMzMTQ1YzRjMGU5MDBmNmNkIn0.vA0bWpR47ozYcNFl4DMLxqjg1veYS2gNAYpVJKMtYQ4';
6
- const profileId = '6a294f7a398a99123f1d2a4a';
5
+ const token = process.env.GL_API_TOKEN || 'your dev token here';
6
+ const profileId = 'profile ID';
7
7
 
8
8
  const CLOUD_BROWSER_URL = `https://cloudbrowser.gologin.com/connect?token=${token}&profile=${profileId}`;
9
9
  const STOP_PROFILE_URL = `https://api.gologin.com/browser/${profileId}/web`;
@@ -31,7 +31,9 @@ async function main() {
31
31
  const page = await browser.newPage();
32
32
 
33
33
  await page.goto('https://iphey.com/', { waitUntil: 'networkidle2' });
34
- await page.screenshot({ path: 'screenshot.png' });
34
+ const status = await page.$eval('.trustworthy:not(.hide)',
35
+ (elt) => elt?.innerText?.trim(),
36
+ );
35
37
 
36
38
  return status;
37
39
  }
package/index.d.ts CHANGED
@@ -20,6 +20,7 @@ export type GoLoginOptions = {
20
20
  proxyCheckAttempts?: number;
21
21
  autoUpdateBrowser?: boolean;
22
22
  checkBrowserUpdate?: boolean;
23
+ customChromeFrame?: boolean;
23
24
  };
24
25
 
25
26
  export type GoLoginStartResult = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gologin",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "A high-level API to control Orbita browser over GoLogin API",
5
5
  "types": "./index.d.ts",
6
6
  "main": "./src/index.js",
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',
package/screenshot.png DELETED
Binary file