@loadmill/core 0.3.174 → 0.3.176
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/dist/playwright-step/constants.d.ts +7 -0
- package/dist/playwright-step/constants.js +15 -1
- package/dist/playwright-step/constants.js.map +1 -1
- package/dist/playwright-step/index.d.ts +2 -1
- package/dist/playwright-step/index.js +12 -3
- package/dist/playwright-step/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -2,3 +2,10 @@ export declare enum HeadedMode {
|
|
|
2
2
|
HEADED = "--headed",
|
|
3
3
|
DEBUG = "--debug"
|
|
4
4
|
}
|
|
5
|
+
export declare enum PlaywrightDevices {
|
|
6
|
+
Chromium = "chromium",
|
|
7
|
+
Firefox = "firefox",
|
|
8
|
+
Safari = "safari",
|
|
9
|
+
MobileSafari = "mobile-safari"
|
|
10
|
+
}
|
|
11
|
+
export declare const playwrightDevicesNames: Record<PlaywrightDevices, string>;
|
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var _a;
|
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HeadedMode = void 0;
|
|
4
|
+
exports.playwrightDevicesNames = exports.PlaywrightDevices = exports.HeadedMode = void 0;
|
|
4
5
|
var HeadedMode;
|
|
5
6
|
(function (HeadedMode) {
|
|
6
7
|
HeadedMode["HEADED"] = "--headed";
|
|
7
8
|
HeadedMode["DEBUG"] = "--debug";
|
|
8
9
|
})(HeadedMode = exports.HeadedMode || (exports.HeadedMode = {}));
|
|
10
|
+
var PlaywrightDevices;
|
|
11
|
+
(function (PlaywrightDevices) {
|
|
12
|
+
PlaywrightDevices["Chromium"] = "chromium";
|
|
13
|
+
PlaywrightDevices["Firefox"] = "firefox";
|
|
14
|
+
PlaywrightDevices["Safari"] = "safari";
|
|
15
|
+
PlaywrightDevices["MobileSafari"] = "mobile-safari";
|
|
16
|
+
})(PlaywrightDevices = exports.PlaywrightDevices || (exports.PlaywrightDevices = {}));
|
|
17
|
+
exports.playwrightDevicesNames = (_a = {},
|
|
18
|
+
_a[PlaywrightDevices.Chromium] = 'Desktop Chrome',
|
|
19
|
+
_a[PlaywrightDevices.Firefox] = 'Desktop Firefox',
|
|
20
|
+
_a[PlaywrightDevices.Safari] = 'Desktop Safari',
|
|
21
|
+
_a[PlaywrightDevices.MobileSafari] = 'Mobile Safari',
|
|
22
|
+
_a);
|
|
9
23
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/playwright-step/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/playwright-step/constants.ts"],"names":[],"mappings":";;;;AAAA,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,iCAAmB,CAAA;IACnB,+BAAiB,CAAA;AACnB,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB;AAED,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,0CAAqB,CAAA;IACrB,wCAAmB,CAAA;IACnB,sCAAiB,CAAA;IACjB,mDAA8B,CAAA;AAChC,CAAC,EALW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAK5B;AAEY,QAAA,sBAAsB;IACjC,GAAC,iBAAiB,CAAC,QAAQ,IAAG,gBAAgB;IAC9C,GAAC,iBAAiB,CAAC,OAAO,IAAG,iBAAiB;IAC9C,GAAC,iBAAiB,CAAC,MAAM,IAAG,gBAAgB;IAC5C,GAAC,iBAAiB,CAAC,YAAY,IAAG,eAAe;QACjD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LoopConf, SkipConf, StepLike, StepMeta, StepStatus, StepTypes } from '../step';
|
|
2
2
|
import { Codeable } from '../step/codeable';
|
|
3
|
-
import { HeadedMode } from './constants';
|
|
3
|
+
import { HeadedMode, PlaywrightDevices } from './constants';
|
|
4
4
|
export declare class PlaywrightStep implements StepLike, Codeable {
|
|
5
5
|
type?: StepTypes;
|
|
6
6
|
id?: string;
|
|
@@ -15,6 +15,7 @@ export declare class PlaywrightStep implements StepLike, Codeable {
|
|
|
15
15
|
meta?: StepMeta;
|
|
16
16
|
postScript?: string;
|
|
17
17
|
headedMode?: HeadedMode;
|
|
18
|
+
devices?: PlaywrightDevices[];
|
|
18
19
|
constructor();
|
|
19
20
|
}
|
|
20
21
|
export declare function createPlaywrightStep(from: PlaywrightStep): PlaywrightStep;
|
|
@@ -82,19 +82,28 @@ var PlaywrightStep = /** @class */ (function () {
|
|
|
82
82
|
writable: true,
|
|
83
83
|
value: void 0
|
|
84
84
|
});
|
|
85
|
+
Object.defineProperty(this, "devices", {
|
|
86
|
+
enumerable: true,
|
|
87
|
+
configurable: true,
|
|
88
|
+
writable: true,
|
|
89
|
+
value: void 0
|
|
90
|
+
});
|
|
85
91
|
this.type = step_1.StepTypes.PLAYWRIGHT;
|
|
86
92
|
}
|
|
87
93
|
return PlaywrightStep;
|
|
88
94
|
}());
|
|
89
95
|
exports.PlaywrightStep = PlaywrightStep;
|
|
90
96
|
function createPlaywrightStep(from) {
|
|
91
|
-
var postScript = from.postScript;
|
|
97
|
+
var postScript = from.postScript, headedMode = from.headedMode, devices = from.devices;
|
|
92
98
|
var playwrightStep = (0, step_1.createStep)(from, new PlaywrightStep());
|
|
93
99
|
if (postScript !== undefined) {
|
|
94
100
|
playwrightStep.postScript = postScript;
|
|
95
101
|
}
|
|
96
|
-
if (
|
|
97
|
-
playwrightStep.headedMode =
|
|
102
|
+
if (headedMode) {
|
|
103
|
+
playwrightStep.headedMode = headedMode;
|
|
104
|
+
}
|
|
105
|
+
if (devices) {
|
|
106
|
+
playwrightStep.devices = devices;
|
|
98
107
|
}
|
|
99
108
|
return playwrightStep;
|
|
100
109
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/playwright-step/index.ts"],"names":[],"mappings":";;;AAAA,gCAQiB;AAKjB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/playwright-step/index.ts"],"names":[],"mappings":";;;AAAA,gCAQiB;AAKjB;IAiBE;QAhBA;;;;;WAAiB;QACjB;;;;;WAAY;QACZ;;;;;WAAqB;QACrB;;;;;WAAmB;QACnB;;;;;WAAoB;QACpB;;;;;WAAsB;QACtB;;;;;WAAgB;QAChB;;;;;WAAiB;QACjB;;;;;WAAwB;QACxB;;;;;WAA4B;QAC5B;;;;;WAAgB;QAEhB;;;;;WAAoB;QACpB;;;;;WAAwB;QACxB;;;;;WAA8B;QAG5B,IAAI,CAAC,IAAI,GAAG,gBAAS,CAAC,UAAU,CAAC;IACnC,CAAC;IACH,qBAAC;AAAD,CAAC,AApBD,IAoBC;AApBY,wCAAc;AAsB3B,SAAgB,oBAAoB,CAAC,IAAoB;IAC/C,IAAA,UAAU,GAA0B,IAAI,WAA9B,EAAE,UAAU,GAAc,IAAI,WAAlB,EAAE,OAAO,GAAK,IAAI,QAAT,CAAU;IAEjD,IAAM,cAAc,GAAG,IAAA,iBAAU,EAC/B,IAAI,EACJ,IAAI,cAAc,EAAE,CACrB,CAAC;IAEF,IAAI,UAAU,KAAK,SAAS,EAAE;QAC5B,cAAc,CAAC,UAAU,GAAG,UAAU,CAAC;KACxC;IAED,IAAI,UAAU,EAAE;QACd,cAAc,CAAC,UAAU,GAAG,UAAU,CAAC;KACxC;IAED,IAAI,OAAO,EAAE;QACX,cAAc,CAAC,OAAO,GAAG,OAAO,CAAC;KAClC;IAED,OAAO,cAAc,CAAC;AACxB,CAAC;AArBD,oDAqBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loadmill/core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.176",
|
|
4
4
|
"description": "Loadmill core library",
|
|
5
5
|
"main": "dist/",
|
|
6
6
|
"scripts": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@aws-sdk/client-cognito-identity": "~3.58.0",
|
|
27
27
|
"@aws-sdk/client-firehose": "~3.58.0",
|
|
28
28
|
"@aws-sdk/types": "~3.55.0",
|
|
29
|
-
"@loadmill/universal": "0.3.
|
|
29
|
+
"@loadmill/universal": "0.3.171",
|
|
30
30
|
"@xmldom/xmldom": "^0.8.10",
|
|
31
31
|
"cheerio": "^0.22.0",
|
|
32
32
|
"crypto-js": "^4.1.1",
|