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.
- package/dist/fonts_config +104 -0
- package/dist/gologin-browser-ext.zip +0 -0
- package/dist/gologin_zeroprofile.b64 +1 -0
- package/dist/src/browser/browser-user-data-manager.js +140 -230
- package/dist/src/gologin.js +372 -734
- package/dist/zero_profile.zip +0 -0
- package/gologin/index.d.ts +18 -18
- package/package.json +5 -5
- package/types/example.d.ts +1 -0
- package/types/examples/example-amazon-cloud-browser.d.ts +1 -0
- package/types/examples/example-amazon-headless.d.ts +1 -0
- package/types/examples/example-amazon.d.ts +1 -0
- package/types/examples/example-create-custom-profile.d.ts +1 -0
- package/types/examples/example-create-profile.d.ts +1 -0
- package/types/examples/example-custom-args.d.ts +1 -0
- package/types/examples/example-fast-profile-settings.d.ts +1 -0
- package/types/examples/example-gmail.d.ts +1 -0
- package/types/examples/example-iphey.d.ts +1 -0
- package/types/examples/example-local-profile.d.ts +1 -0
- package/types/examples/example-login-walmart.d.ts +1 -0
- package/types/examples/example-stopremote.d.ts +1 -0
- package/types/examples/example-timezone.d.ts +1 -0
|
Binary file
|
package/gologin/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type Browser } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
win:
|
|
5
|
-
lin:
|
|
6
|
-
mac:
|
|
7
|
-
android:
|
|
8
|
-
}
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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.
|
|
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
|
-
"
|
|
44
|
-
"build": "
|
|
45
|
-
"
|
|
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 {};
|