@wdio/firefox-profile-service 7.20.7 → 7.20.8-alpha.219
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 +2 -2
- package/build/index.d.ts.map +1 -1
- package/build/index.js +3 -23
- package/build/launcher.d.ts +1 -1
- package/build/launcher.d.ts.map +1 -1
- package/build/launcher.js +7 -13
- package/build/types.js +1 -2
- package/package.json +8 -6
package/build/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import FirefoxProfileLauncher from './launcher';
|
|
1
|
+
import FirefoxProfileLauncher from './launcher.js';
|
|
2
2
|
import type { FirefoxProfileOptions } from './types';
|
|
3
3
|
export declare const launcher: typeof FirefoxProfileLauncher;
|
|
4
|
-
export * from './types';
|
|
4
|
+
export * from './types.js';
|
|
5
5
|
declare global {
|
|
6
6
|
namespace WebdriverIO {
|
|
7
7
|
interface ServiceOption extends FirefoxProfileOptions {
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,sBAAsB,MAAM,
|
|
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"}
|
package/build/index.js
CHANGED
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/* istanbul ignore file */
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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);
|
|
2
|
+
import FirefoxProfileLauncher from './launcher.js';
|
|
3
|
+
export const launcher = FirefoxProfileLauncher;
|
|
4
|
+
export * from './types.js';
|
package/build/launcher.d.ts
CHANGED
package/build/launcher.d.ts.map
CHANGED
|
@@ -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,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;
|
|
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"}
|
package/build/launcher.js
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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 {
|
|
1
|
+
import Profile from 'firefox-profile';
|
|
2
|
+
import { promisify } from 'node:util';
|
|
3
|
+
export default class FirefoxProfileLauncher {
|
|
9
4
|
constructor(_options) {
|
|
10
5
|
this._options = _options;
|
|
11
6
|
}
|
|
@@ -17,10 +12,10 @@ class FirefoxProfileLauncher {
|
|
|
17
12
|
return;
|
|
18
13
|
}
|
|
19
14
|
if (this._options.profileDirectory) {
|
|
20
|
-
this._profile = await
|
|
15
|
+
this._profile = await promisify(Profile.copy)(this._options.profileDirectory);
|
|
21
16
|
}
|
|
22
17
|
else {
|
|
23
|
-
this._profile = new
|
|
18
|
+
this._profile = new Profile();
|
|
24
19
|
}
|
|
25
20
|
if (!this._profile) {
|
|
26
21
|
return;
|
|
@@ -31,7 +26,7 @@ class FirefoxProfileLauncher {
|
|
|
31
26
|
return this._buildExtension(capabilities);
|
|
32
27
|
}
|
|
33
28
|
// Add the extension
|
|
34
|
-
await
|
|
29
|
+
await promisify(this._profile.addExtensions.bind(this._profile))(this._options.extensions);
|
|
35
30
|
return this._buildExtension(capabilities);
|
|
36
31
|
}
|
|
37
32
|
/**
|
|
@@ -56,7 +51,7 @@ class FirefoxProfileLauncher {
|
|
|
56
51
|
if (!this._profile) {
|
|
57
52
|
return;
|
|
58
53
|
}
|
|
59
|
-
const zippedProfile = await
|
|
54
|
+
const zippedProfile = await promisify(this._profile.encoded.bind(this._profile))();
|
|
60
55
|
if (Array.isArray(capabilities)) {
|
|
61
56
|
capabilities
|
|
62
57
|
.filter((capability) => capability.browserName === 'firefox')
|
|
@@ -85,4 +80,3 @@ class FirefoxProfileLauncher {
|
|
|
85
80
|
}
|
|
86
81
|
}
|
|
87
82
|
}
|
|
88
|
-
exports.default = FirefoxProfileLauncher;
|
package/build/types.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/firefox-profile-service",
|
|
3
|
-
"version": "7.20.
|
|
3
|
+
"version": "7.20.8-alpha.219+4aab2cef1",
|
|
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",
|
|
9
8
|
"engines": {
|
|
10
|
-
"node": ">=
|
|
9
|
+
"node": "^16.13 || >=18"
|
|
11
10
|
},
|
|
12
11
|
"repository": {
|
|
13
12
|
"type": "git",
|
|
@@ -28,16 +27,19 @@
|
|
|
28
27
|
"bugs": {
|
|
29
28
|
"url": "https://github.com/webdriverio/webdriverio/issues"
|
|
30
29
|
},
|
|
30
|
+
"type": "module",
|
|
31
|
+
"exports": "./build/index.js",
|
|
32
|
+
"types": "./build/index.d.ts",
|
|
33
|
+
"typeScriptVersion": "3.8.3",
|
|
31
34
|
"dependencies": {
|
|
32
35
|
"@wdio/types": "7.20.7",
|
|
33
36
|
"firefox-profile": "^4.0.0"
|
|
34
37
|
},
|
|
35
38
|
"peerDependencies": {
|
|
36
|
-
"@wdio/cli": "
|
|
39
|
+
"@wdio/cli": "next"
|
|
37
40
|
},
|
|
38
41
|
"publishConfig": {
|
|
39
42
|
"access": "public"
|
|
40
43
|
},
|
|
41
|
-
"
|
|
42
|
-
"gitHead": "21b8b61453f4749d87eca3e4d7d6e5e2cb60f043"
|
|
44
|
+
"gitHead": "4aab2cef1b8b195ac8cc611f28b1fd54e4ba3443"
|
|
43
45
|
}
|