gologin 2.1.25 → 2.1.26

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,13 @@
2
2
 
3
3
  Combined changelog for GoLogin node.js SDK
4
4
 
5
+ ## [2.1.26] 2025-07-02
6
+
7
+
8
+ ### Fixes
9
+
10
+ * Socks 5 proxy passing
11
+
5
12
  ## [2.1.24] 2025-06-16
6
13
 
7
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gologin",
3
- "version": "2.1.25",
3
+ "version": "2.1.26",
4
4
  "description": "A high-level API to control Orbita browser over GoLogin API",
5
5
  "types": "./index.d.ts",
6
6
  "main": "./src/gologin.js",
package/src/gologin.js CHANGED
@@ -785,7 +785,7 @@ export class GoLogin {
785
785
 
786
786
  const checkData = await checkSocksProxy(agent);
787
787
 
788
- const body = checkData || {};
788
+ const body = checkData.body || {};
789
789
  if (!body.ip && checkData.statusCode.toString().startsWith('4')) {
790
790
  throw checkData;
791
791
  }
@@ -929,10 +929,13 @@ export class GoLogin {
929
929
 
930
930
  if (proxy) {
931
931
  const hr_rules = `"MAP * 0.0.0.0 , EXCLUDE ${proxy_host}"`;
932
- params.push(`--proxy-server=${proxy}`);
933
932
  params.push(`--host-resolver-rules=${hr_rules}`);
934
933
  }
935
934
 
935
+ if (proxy && Number(this.browserMajorVersion) < this.newProxyOrbbitaMajorVersion) {
936
+ params.push(`--proxy-server=${proxy}`);
937
+ }
938
+
936
939
  if (Array.isArray(this.extra_params) && this.extra_params.length) {
937
940
  params = params.concat(this.extra_params);
938
941
  }
@@ -945,9 +948,8 @@ export class GoLogin {
945
948
  console.log('params', params);
946
949
  const child = execFile(ORBITA_BROWSER, params, { env });
947
950
  this.processSpawned = child;
948
- // const child = spawn(ORBITA_BROWSER, params, { env, shell: true });
949
- child.stdout.on('error', (data) => console.log(data.toString()));
950
- child.stderr.on('data', (data) => console.log(data.toString()));
951
+ // child.stdout.on('error', (data) => console.log(data.toString()));
952
+ // child.stderr.on('data', (data) => console.log(data.toString()));
951
953
  debug('SPAWN CMD', ORBITA_BROWSER, params.join(' '));
952
954
  }
953
955