@wdio/firefox-profile-service 7.20.8-alpha.219 → 7.24.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,7 +1,7 @@
1
- import FirefoxProfileLauncher from './launcher.js';
1
+ import FirefoxProfileLauncher from './launcher';
2
2
  import type { FirefoxProfileOptions } from './types';
3
3
  export declare const launcher: typeof FirefoxProfileLauncher;
4
- export * from './types.js';
4
+ export * from './types';
5
5
  declare global {
6
6
  namespace WebdriverIO {
7
7
  interface ServiceOption extends FirefoxProfileOptions {
@@ -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,YAAY,CAAA;AAC/C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAEpD,eAAO,MAAM,QAAQ,+BAAyB,CAAA;AAC9C,cAAc,SAAS,CAAA;AAEvB,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,WAAW,CAAC;QAClB,UAAU,aAAc,SAAQ,qBAAqB;SAAG;KAC3D;CACJ"}
package/build/index.js CHANGED
@@ -1,4 +1,24 @@
1
+ "use strict";
1
2
  /* istanbul ignore file */
2
- import FirefoxProfileLauncher from './launcher.js';
3
- export const launcher = FirefoxProfileLauncher;
4
- export * from './types.js';
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ var __importDefault = (this && this.__importDefault) || function (mod) {
18
+ return (mod && mod.__esModule) ? mod : { "default": mod };
19
+ };
20
+ Object.defineProperty(exports, "__esModule", { value: true });
21
+ exports.launcher = void 0;
22
+ const launcher_1 = __importDefault(require("./launcher"));
23
+ exports.launcher = launcher_1.default;
24
+ __exportStar(require("./types"), exports);
@@ -1,5 +1,5 @@
1
1
  import type { Capabilities } from '@wdio/types';
2
- import type { FirefoxProfileOptions } from './types';
2
+ import { FirefoxProfileOptions } from './types';
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,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAE/C,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"}
package/build/launcher.js CHANGED
@@ -1,6 +1,11 @@
1
- import Profile from 'firefox-profile';
2
- import { promisify } from 'node:util';
3
- export default class FirefoxProfileLauncher {
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const firefox_profile_1 = __importDefault(require("firefox-profile"));
7
+ const util_1 = require("util");
8
+ class FirefoxProfileLauncher {
4
9
  constructor(_options) {
5
10
  this._options = _options;
6
11
  }
@@ -12,10 +17,10 @@ export default class FirefoxProfileLauncher {
12
17
  return;
13
18
  }
14
19
  if (this._options.profileDirectory) {
15
- this._profile = await promisify(Profile.copy)(this._options.profileDirectory);
20
+ this._profile = await (0, util_1.promisify)(firefox_profile_1.default.copy)(this._options.profileDirectory);
16
21
  }
17
22
  else {
18
- this._profile = new Profile();
23
+ this._profile = new firefox_profile_1.default();
19
24
  }
20
25
  if (!this._profile) {
21
26
  return;
@@ -26,7 +31,7 @@ export default class FirefoxProfileLauncher {
26
31
  return this._buildExtension(capabilities);
27
32
  }
28
33
  // Add the extension
29
- await promisify(this._profile.addExtensions.bind(this._profile))(this._options.extensions);
34
+ await (0, util_1.promisify)(this._profile.addExtensions.bind(this._profile))(this._options.extensions);
30
35
  return this._buildExtension(capabilities);
31
36
  }
32
37
  /**
@@ -51,7 +56,7 @@ export default class FirefoxProfileLauncher {
51
56
  if (!this._profile) {
52
57
  return;
53
58
  }
54
- const zippedProfile = await promisify(this._profile.encoded.bind(this._profile))();
59
+ const zippedProfile = await (0, util_1.promisify)(this._profile.encoded.bind(this._profile))();
55
60
  if (Array.isArray(capabilities)) {
56
61
  capabilities
57
62
  .filter((capability) => capability.browserName === 'firefox')
@@ -80,3 +85,4 @@ export default class FirefoxProfileLauncher {
80
85
  }
81
86
  }
82
87
  }
88
+ exports.default = FirefoxProfileLauncher;
package/build/types.js CHANGED
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@wdio/firefox-profile-service",
3
- "version": "7.20.8-alpha.219+4aab2cef1",
3
+ "version": "7.24.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",
7
7
  "license": "MIT",
8
+ "main": "./build/index",
8
9
  "engines": {
9
- "node": "^16.13 || >=18"
10
+ "node": ">=12.0.0"
10
11
  },
11
12
  "repository": {
12
13
  "type": "git",
@@ -27,19 +28,16 @@
27
28
  "bugs": {
28
29
  "url": "https://github.com/webdriverio/webdriverio/issues"
29
30
  },
30
- "type": "module",
31
- "exports": "./build/index.js",
32
- "types": "./build/index.d.ts",
33
- "typeScriptVersion": "3.8.3",
34
31
  "dependencies": {
35
- "@wdio/types": "7.20.7",
32
+ "@wdio/types": "7.24.0",
36
33
  "firefox-profile": "^4.0.0"
37
34
  },
38
35
  "peerDependencies": {
39
- "@wdio/cli": "next"
36
+ "@wdio/cli": "^7.0.0"
40
37
  },
41
38
  "publishConfig": {
42
39
  "access": "public"
43
40
  },
44
- "gitHead": "4aab2cef1b8b195ac8cc611f28b1fd54e4ba3443"
41
+ "types": "./build/index.d.ts",
42
+ "gitHead": "cf88ab19bcd0d097ebf00fb812fcbfd1caef9705"
45
43
  }