gologin 2.1.18 → 2.1.19

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/package.json +1 -1
  2. package/src/gologin.js +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gologin",
3
- "version": "2.1.18",
3
+ "version": "2.1.19",
4
4
  "description": "A high-level API to control Orbita browser over GoLogin API",
5
5
  "types": "./index.d.ts",
6
6
  "main": "./src/gologin.js",
package/src/gologin.js CHANGED
@@ -509,6 +509,7 @@ export class GoLogin {
509
509
  const prefFileExists = await access(pref_file_name).then(() => true).catch(() => false);
510
510
  if (!prefFileExists) {
511
511
  debug('Preferences file not exists waiting', pref_file_name, '. Using empty profile');
512
+ await mkdir(join(profilePath, 'Default'), { recursive: true });
512
513
  await writeFile(pref_file_name, '{}');
513
514
  }
514
515