gologin-commonjs 1.1.9 → 1.2.0

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.
@@ -52,8 +52,8 @@ const {
52
52
  } = _fs.promises;
53
53
  const SEPARATOR = _path.sep;
54
54
  const OS_PLATFORM = process.platform;
55
- const TIMEZONE_URL = "https://geolocation-db.com/json/";
56
- // const TIMEZONE_URL = 'https://geo.myip.link';
55
+ // const TIMEZONE_URL = "https://geolocation-db.com/json/";
56
+ const TIMEZONE_URL = "https://geo.myip.link";
57
57
  const PROXY_NONE = "none";
58
58
  const debug = (0, _debug.default)("gologin");
59
59
  const delay = time => new Promise(resolve => setTimeout(resolve, time));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gologin-commonjs",
3
- "version": "1.1.9",
3
+ "version": "1.2.0",
4
4
  "description": "A Transpiled GoLogin API ESM to CommonJS",
5
5
  "types": "./types/src/gologin.d.ts",
6
6
  "main": "./dist/src/gologin.js",
package/tes.js CHANGED
@@ -10,6 +10,10 @@ const puppeteer = require("puppeteer-core");
10
10
  restoreLastSession: false,
11
11
  });
12
12
 
13
+ const profile = await GL.getProfile(process.env.PROFILE_ID);
14
+ // console.log("Profile:", profile);
15
+ // return;
16
+
13
17
  try {
14
18
  const gologin = await GL.start();
15
19
 
@@ -20,5 +24,7 @@ const puppeteer = require("puppeteer-core");
20
24
 
21
25
  const page = await browser.newPage();
22
26
  await page.goto("https://youtube.com");
23
- } catch {}
27
+ } catch (e) {
28
+ console.error("Error:", e);
29
+ }
24
30
  })();