gologin-commonjs 2.1.13 → 3.0.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.
- package/dist/src/gologin.js +299 -248
- package/dist/src/utils/timezone.js +21 -0
- package/gologin/.eslintrc.json +290 -0
- package/gologin/package.json +1 -1
- package/gologin/src/gologin.js +671 -395
- package/gologin/src/utils/timezone.js +470 -0
- package/package.json +3 -1
- package/tes.js +2 -1
- package/tsconfig.json +23 -0
- package/types/fonts.d.ts +21 -0
- package/types/{bookmarks → src/bookmarks}/utils.d.ts +0 -1
- package/types/src/browser/browser-api.d.ts +10 -0
- package/types/{browser → src/browser}/browser-checker.d.ts +1 -2
- package/types/{browser → src/browser}/browser-user-data-manager.d.ts +0 -1
- package/types/{cookies → src/cookies}/cookies-manager.d.ts +7 -3
- package/types/{extensions → src/extensions}/extensions-extractor.d.ts +0 -1
- package/types/{extensions → src/extensions}/extensions-manager.d.ts +4 -7
- package/types/{extensions → src/extensions}/user-extensions-manager.d.ts +1 -2
- package/types/src/gologin-api.d.ts +17 -0
- package/types/{gologin.d.ts → src/gologin.d.ts} +18 -35
- package/types/{profile → src/profile}/profile-archiver.d.ts +1 -2
- package/types/{profile → src/profile}/profile-directories-to-remove.d.ts +0 -1
- package/types/{utils → src/utils}/browser.d.ts +0 -1
- package/types/src/utils/common.d.ts +10 -0
- package/types/{utils → src/utils}/constants.d.ts +0 -1
- package/types/src/utils/timezone.d.ts +1 -0
- package/types/{utils → src/utils}/utils.d.ts +0 -1
- package/types/src/utils/zero-profile-bookmarks.d.ts +41 -0
- package/types/src/utils/zero-profile-preferences.d.ts +219 -0
- package/dist/fonts_config +0 -104
- package/dist/gologin-browser-ext.zip +0 -0
- package/dist/gologin_zeroprofile.b64 +0 -1
- package/dist/index.d.ts +0 -61
- package/dist/zero_profile.zip +0 -0
- package/types/browser/browser-api.d.ts +0 -10
- package/types/utils/common.d.ts +0 -10
package/dist/index.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
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;
|
|
9
|
-
export type OsType = (typeof OPERATING_SYSTEMS)[keyof typeof OPERATING_SYSTEMS];
|
|
10
|
-
|
|
11
|
-
type CloudLaunchParams = {
|
|
12
|
-
cloud: true;
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Format: 'dataCenter:DE'
|
|
16
|
-
*/
|
|
17
|
-
geolocation?: string;
|
|
18
|
-
};
|
|
19
|
-
type LocalLaunchParams = {
|
|
20
|
-
cloud: false;
|
|
21
|
-
headless: boolean;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
type ExistingProfileLaunchParams = {
|
|
25
|
-
profileId: string;
|
|
26
|
-
};
|
|
27
|
-
type NewProfileLaunchParams = {
|
|
28
|
-
proxyGeolocation: string;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
type LaunchParams =
|
|
32
|
-
| CloudLaunchParams
|
|
33
|
-
| LocalLaunchParams
|
|
34
|
-
| ExistingProfileLaunchParams
|
|
35
|
-
| NewProfileLaunchParams
|
|
36
|
-
| {
|
|
37
|
-
/**
|
|
38
|
-
* default delay, 250
|
|
39
|
-
*/
|
|
40
|
-
defaultDelay: number;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Operating system
|
|
44
|
-
*/
|
|
45
|
-
os: OsType;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
type LaunchFn = (params?: LaunchParams) => Promise<{ browser: Browser }>;
|
|
49
|
-
|
|
50
|
-
type GologinApiType = {
|
|
51
|
-
launch: LaunchFn;
|
|
52
|
-
exit: (status = 0) => Promise<void>;
|
|
53
|
-
delay: (ms: number) => Promise<void>;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
type GologinApiParams = {
|
|
57
|
-
token: string;
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
export declare function GologinApi(params: GologinApiParams): GologinApiType;
|
|
61
|
-
export declare function exitAll(): Promise<void>;
|
package/dist/zero_profile.zip
DELETED
|
Binary file
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export const __esModule: boolean;
|
|
2
|
-
/**
|
|
3
|
-
* @param {string} profileId
|
|
4
|
-
* @param {string} ACCESS_TOKEN
|
|
5
|
-
* @param {string} resolution
|
|
6
|
-
*/
|
|
7
|
-
export function updateProfileResolution(profileId: string, ACCESS_TOKEN: string, resolution: string): any;
|
|
8
|
-
export function updateProfileUserAgent(profileId: any, ACCESS_TOKEN: any, userAgent: any): any;
|
|
9
|
-
export function updateProfileProxy(profileId: any, ACCESS_TOKEN: any, browserProxyData: any): any;
|
|
10
|
-
export function updateProfileBookmarks(profileIds: any, ACCESS_TOKEN: any, bookmarks: any): Promise<any>;
|
package/types/utils/common.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export const __esModule: boolean;
|
|
2
|
-
export const API_URL: "https://api.gologin.com";
|
|
3
|
-
export function composeExtractionPromises(filteredArchives: any, destPath?: any): any;
|
|
4
|
-
export function getOS(): "win" | "macM1" | "mac" | "lin";
|
|
5
|
-
export function getOsAdvanced(): Promise<{
|
|
6
|
-
os: string;
|
|
7
|
-
osSpec: any;
|
|
8
|
-
}>;
|
|
9
|
-
export const USER_EXTENSIONS_PATH: any;
|
|
10
|
-
export const CHROME_EXTENSIONS_PATH: any;
|