@wdio/firefox-profile-service 8.0.11 → 8.1.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/build/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import FirefoxProfileLauncher from './launcher.js';
2
- import type { FirefoxProfileOptions } from './types';
2
+ import type { FirefoxProfileOptions } from './types.js';
3
3
  export declare const launcher: typeof FirefoxProfileLauncher;
4
4
  export * from './types.js';
5
5
  declare global {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,sBAAsB,MAAM,eAAe,CAAA;AAClD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAEpD,eAAO,MAAM,QAAQ,+BAAyB,CAAA;AAC9C,cAAc,YAAY,CAAA;AAE1B,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,WAAW,CAAC;QAClB,UAAU,aAAc,SAAQ,qBAAqB;SAAG;KAC3D;CACJ"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,sBAAsB,MAAM,eAAe,CAAA;AAClD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAEvD,eAAO,MAAM,QAAQ,+BAAyB,CAAA;AAC9C,cAAc,YAAY,CAAA;AAE1B,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,WAAW,CAAC;QAClB,UAAU,aAAc,SAAQ,qBAAqB;SAAG;KAC3D;CACJ"}
@@ -1,5 +1,5 @@
1
1
  import type { Capabilities } from '@wdio/types';
2
- import type { FirefoxProfileOptions } from './types';
2
+ import type { FirefoxProfileOptions } from './types.js';
3
3
  export default class FirefoxProfileLauncher {
4
4
  private _options;
5
5
  private _profile?;
@@ -1 +1 @@
1
- {"version":3,"file":"launcher.d.ts","sourceRoot":"","sources":["../src/launcher.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE/C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAEpD,MAAM,CAAC,OAAO,OAAO,sBAAsB;IAE3B,OAAO,CAAC,QAAQ;IAD5B,OAAO,CAAC,QAAQ,CAAC,CAAS;gBACN,QAAQ,EAAE,qBAAqB;IAE7C,SAAS,CAAC,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,YAAY,CAAC,kBAAkB;IA8B5E;;OAEG;IACH,eAAe;IAoBT,eAAe,CAAC,YAAY,EAAE,YAAY,CAAC,kBAAkB;IA4BnE,WAAW,CAAC,UAAU,EAAE,YAAY,CAAC,YAAY,EAAE,aAAa,EAAE,MAAM;CAU3E"}
1
+ {"version":3,"file":"launcher.d.ts","sourceRoot":"","sources":["../src/launcher.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE/C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAEvD,MAAM,CAAC,OAAO,OAAO,sBAAsB;IAE3B,OAAO,CAAC,QAAQ;IAD5B,OAAO,CAAC,QAAQ,CAAC,CAAS;gBACN,QAAQ,EAAE,qBAAqB;IAE7C,SAAS,CAAC,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,YAAY,CAAC,kBAAkB;IA4B5E;;OAEG;IACH,eAAe;IAoBT,eAAe,CAAC,YAAY,EAAE,YAAY,CAAC,kBAAkB;IA4BnE,WAAW,CAAC,UAAU,EAAE,YAAY,CAAC,YAAY,EAAE,aAAa,EAAE,MAAM;CAU3E"}
package/build/launcher.js CHANGED
@@ -13,12 +13,9 @@ export default class FirefoxProfileLauncher {
13
13
  if (Object.keys(this._options).length === 0) {
14
14
  return;
15
15
  }
16
- if (this._options.profileDirectory) {
17
- this._profile = await promisify(Profile.copy)(this._options.profileDirectory);
18
- }
19
- else {
20
- this._profile = new Profile();
21
- }
16
+ this._profile = this._options.profileDirectory
17
+ ? await promisify(Profile.copy)(this._options.profileDirectory)
18
+ : new Profile();
22
19
  if (!this._profile) {
23
20
  return;
24
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/firefox-profile-service",
3
- "version": "8.0.11",
3
+ "version": "8.1.0",
4
4
  "description": "WebdriverIO service that lets you define your Firefox profile in your wdio.conf.js",
5
5
  "author": "Christian Bromann <mail@bromann.dev>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-firefox-profile-service",
@@ -33,11 +33,11 @@
33
33
  "types": "./build/index.d.ts",
34
34
  "typeScriptVersion": "3.8.3",
35
35
  "dependencies": {
36
- "@wdio/types": "8.0.11",
36
+ "@wdio/types": "8.1.0",
37
37
  "firefox-profile": "^4.0.0"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "gitHead": "22627575a41d9dc7415a2441bd894c0419725334"
42
+ "gitHead": "f505134606f99129c816acb00f22e39032e60820"
43
43
  }