gologin 1.0.41 → 1.0.42

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.
Files changed (2) hide show
  1. package/gologin.js +4 -1
  2. package/package.json +1 -1
package/gologin.js CHANGED
@@ -360,7 +360,10 @@ class GoLogin {
360
360
 
361
361
  const prefFileExists = await access(pref_file_name).then(() => true).catch(() => false);
362
362
  if (!prefFileExists) {
363
- debug('Preferences file not exists waiting', pref_file_name);
363
+ debug('Preferences file not exists waiting', pref_file_name, '. Using empty profile');
364
+ profile_folder = await this.emptyProfileFolder();
365
+ await writeFile(this.profile_zip_path, profile_folder);
366
+ await this.extractProfile(profilePath, this.profile_zip_path);
364
367
  }
365
368
 
366
369
  const preferences_raw = await readFile(pref_file_name);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gologin",
3
- "version": "1.0.41",
3
+ "version": "1.0.42",
4
4
  "description": "A high-level API to control Orbita browser over GoLogin API",
5
5
  "main": "./gologin.js",
6
6
  "repository": {