@loadmill/core 0.3.174 → 0.3.175
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 +6 -0
- package/dist/playwright-step/constants.js +8 -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
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HeadedMode = void 0;
|
|
3
|
+
exports.PlaywrightDevices = exports.HeadedMode = void 0;
|
|
4
4
|
var HeadedMode;
|
|
5
5
|
(function (HeadedMode) {
|
|
6
6
|
HeadedMode["HEADED"] = "--headed";
|
|
7
7
|
HeadedMode["DEBUG"] = "--debug";
|
|
8
8
|
})(HeadedMode = exports.HeadedMode || (exports.HeadedMode = {}));
|
|
9
|
+
var PlaywrightDevices;
|
|
10
|
+
(function (PlaywrightDevices) {
|
|
11
|
+
PlaywrightDevices["Chromium"] = "chromium";
|
|
12
|
+
PlaywrightDevices["Firefox"] = "firefox";
|
|
13
|
+
PlaywrightDevices["Safari"] = "safari";
|
|
14
|
+
PlaywrightDevices["MobileSafari"] = "mobile-safari";
|
|
15
|
+
})(PlaywrightDevices = exports.PlaywrightDevices || (exports.PlaywrightDevices = {}));
|
|
9
16
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
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"}
|
|
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"}
|
|
@@ -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.175",
|
|
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.170",
|
|
30
30
|
"@xmldom/xmldom": "^0.8.10",
|
|
31
31
|
"cheerio": "^0.22.0",
|
|
32
32
|
"crypto-js": "^4.1.1",
|