gologin 1.0.57 → 1.0.58
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/gologin.js +6 -3
- package/package.json +1 -1
package/gologin.js
CHANGED
|
@@ -44,7 +44,10 @@ class GoLogin {
|
|
|
44
44
|
this.is_stopping = false;
|
|
45
45
|
this.differentOs = false;
|
|
46
46
|
this.profileOs = 'lin';
|
|
47
|
-
this.waitWebsocket =
|
|
47
|
+
this.waitWebsocket = true;
|
|
48
|
+
if(options.waitWebsocket === false){
|
|
49
|
+
this.waitWebsocket = false;
|
|
50
|
+
}
|
|
48
51
|
this.tmpdir = os.tmpdir();
|
|
49
52
|
this.autoUpdateBrowser = !!options.autoUpdateBrowser;
|
|
50
53
|
this.browserChecker = new BrowserChecker(options.skipOrbitaHashChecking);
|
|
@@ -1071,11 +1074,11 @@ class GoLogin {
|
|
|
1071
1074
|
json,
|
|
1072
1075
|
});
|
|
1073
1076
|
|
|
1074
|
-
if (response.
|
|
1077
|
+
if (response.statusCode === 400) {
|
|
1075
1078
|
throw new Error(`gologin failed account creation with status code, ${response.statusCode} DATA ${JSON.stringify(response.body.message)}`);
|
|
1076
1079
|
}
|
|
1077
1080
|
|
|
1078
|
-
if (response.
|
|
1081
|
+
if (response.statusCode === 500) {
|
|
1079
1082
|
throw new Error(`gologin failed account creation with status code, ${response.statusCode}`);
|
|
1080
1083
|
}
|
|
1081
1084
|
debug(JSON.stringify(response.body));
|