gologin-commonjs 3.0.2 → 3.0.3

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.
Binary file
@@ -1,11 +1,11 @@
1
- import { type Browser } from 'puppeteer-core/lib/Browser';
2
-
3
- export const OPERATING_SYSTEMS = {
4
- win: 'win',
5
- lin: 'lin',
6
- mac: 'mac',
7
- android: 'android',
8
- } as const;
1
+ import { type Browser } from "puppeteer-core/lib/Browser";
2
+
3
+ declare const OPERATING_SYSTEMS: {
4
+ win: "win";
5
+ lin: "lin";
6
+ mac: "mac";
7
+ android: "android";
8
+ };
9
9
  export type OsType = (typeof OPERATING_SYSTEMS)[keyof typeof OPERATING_SYSTEMS];
10
10
 
11
11
  type CloudLaunchParams = {
@@ -34,16 +34,16 @@ type LaunchParams =
34
34
  | ExistingProfileLaunchParams
35
35
  | NewProfileLaunchParams
36
36
  | {
37
- /**
38
- * default delay, 250
39
- */
40
- defaultDelay: number;
41
-
42
- /**
43
- * Operating system
44
- */
45
- os: OsType;
46
- };
37
+ /**
38
+ * default delay, 250
39
+ */
40
+ defaultDelay: number;
41
+
42
+ /**
43
+ * Operating system
44
+ */
45
+ os: OsType;
46
+ };
47
47
 
48
48
  type LaunchFn = (params?: LaunchParams) => Promise<{ browser: Browser }>;
49
49
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gologin-commonjs",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
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",
@@ -21,6 +21,7 @@
21
21
  "decompress-unzip": "^4.0.1",
22
22
  "form-data": "^3.0.0",
23
23
  "gologin": "^2.1.1",
24
+ "ncp": "^2.0.0",
24
25
  "progress": "^2.0.3",
25
26
  "puppeteer-core": "^2.1.1",
26
27
  "request": "^2.88.2",
@@ -40,10 +41,9 @@
40
41
  "typescript": "^5.5.4"
41
42
  },
42
43
  "scripts": {
43
- "tsc": "tsc",
44
- "build": "npm run build:tsc && npm run build:common",
45
- "build:tsc": "npx tsc",
46
- "build:common": "abel gologin --out-dir dist",
44
+ "build": "tsc && npm run build:common",
45
+ "build:common": "babel gologin --out-dir dist && npm run copy",
46
+ "copy": "ncp gologin/fonts_config dist/fonts_config && ncp gologin/gologin_zeroprofile.b64 dist/gologin_zeroprofile.b64 && ncp gologin/gologin-browser-ext.zip dist/gologin-browser-ext.zip && ncp gologin/zero_profile.zip dist/zero_profile.zip",
47
47
  "test": "echo \"Error: no test specified\" && exit 1",
48
48
  "format": "npx prettier --single-quote src/* --write",
49
49
  "iphey": "GOLOGIN_PROFILE_ID= GOLOGIN_API_TOKEN= node examples/example-iphey "
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};