@loadmill/core 0.3.191 → 0.3.192

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.
@@ -9,3 +9,9 @@ export declare enum PlaywrightDevices {
9
9
  MobileSafari = "mobile-safari"
10
10
  }
11
11
  export declare const playwrightDevicesNames: Record<PlaywrightDevices, string>;
12
+ export declare enum AvailablePlaywrightRegions {
13
+ EAST_US = "EAST_US",
14
+ WEST_EUROPE = "WEST_EUROPE"
15
+ }
16
+ export declare const DEFAULT_PLAYWRIGHT_REGION = AvailablePlaywrightRegions.EAST_US;
17
+ export declare const availablePlaywrightRegionsNames: string[];
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  var _a;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.playwrightDevicesNames = exports.PlaywrightDevices = exports.HeadedMode = void 0;
4
+ exports.availablePlaywrightRegionsNames = exports.DEFAULT_PLAYWRIGHT_REGION = exports.AvailablePlaywrightRegions = exports.playwrightDevicesNames = exports.PlaywrightDevices = exports.HeadedMode = void 0;
5
5
  var HeadedMode;
6
6
  (function (HeadedMode) {
7
7
  HeadedMode["HEADED"] = "--headed";
@@ -20,4 +20,11 @@ exports.playwrightDevicesNames = (_a = {},
20
20
  _a[PlaywrightDevices.Safari] = 'Desktop Safari',
21
21
  _a[PlaywrightDevices.MobileSafari] = 'Mobile Safari',
22
22
  _a);
23
+ var AvailablePlaywrightRegions;
24
+ (function (AvailablePlaywrightRegions) {
25
+ AvailablePlaywrightRegions["EAST_US"] = "EAST_US";
26
+ AvailablePlaywrightRegions["WEST_EUROPE"] = "WEST_EUROPE";
27
+ })(AvailablePlaywrightRegions = exports.AvailablePlaywrightRegions || (exports.AvailablePlaywrightRegions = {}));
28
+ exports.DEFAULT_PLAYWRIGHT_REGION = AvailablePlaywrightRegions.EAST_US;
29
+ exports.availablePlaywrightRegionsNames = Object.values(AvailablePlaywrightRegions);
23
30
  //# 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;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
+ {"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;AAEF,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IACpC,iDAAmB,CAAA;IACnB,yDAA2B,CAAA;AAC7B,CAAC,EAHW,0BAA0B,GAA1B,kCAA0B,KAA1B,kCAA0B,QAGrC;AAEY,QAAA,yBAAyB,GAAG,0BAA0B,CAAC,OAAO,CAAC;AAE/D,QAAA,+BAA+B,GAAa,MAAM,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC"}
@@ -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, PlaywrightDevices } from './constants';
3
+ import { AvailablePlaywrightRegions, HeadedMode, PlaywrightDevices } from './constants';
4
4
  export declare class PlaywrightStep implements StepLike, Codeable {
5
5
  type?: StepTypes;
6
6
  id?: string;
@@ -17,6 +17,7 @@ export declare class PlaywrightStep implements StepLike, Codeable {
17
17
  postScript?: string;
18
18
  headedMode?: HeadedMode;
19
19
  devices?: PlaywrightDevices[];
20
+ region?: AvailablePlaywrightRegions;
20
21
  constructor();
21
22
  }
22
23
  export declare function createPlaywrightStep(from: PlaywrightStep): PlaywrightStep;
@@ -94,13 +94,19 @@ var PlaywrightStep = /** @class */ (function () {
94
94
  writable: true,
95
95
  value: void 0
96
96
  });
97
+ Object.defineProperty(this, "region", {
98
+ enumerable: true,
99
+ configurable: true,
100
+ writable: true,
101
+ value: void 0
102
+ });
97
103
  this.type = step_1.StepTypes.PLAYWRIGHT;
98
104
  }
99
105
  return PlaywrightStep;
100
106
  }());
101
107
  exports.PlaywrightStep = PlaywrightStep;
102
108
  function createPlaywrightStep(from) {
103
- var postScript = from.postScript, headedMode = from.headedMode, devices = from.devices;
109
+ var postScript = from.postScript, headedMode = from.headedMode, devices = from.devices, region = from.region;
104
110
  var playwrightStep = (0, step_1.createStep)(from, new PlaywrightStep());
105
111
  if (postScript !== undefined) {
106
112
  playwrightStep.postScript = postScript;
@@ -111,6 +117,9 @@ function createPlaywrightStep(from) {
111
117
  if (devices) {
112
118
  playwrightStep.devices = devices;
113
119
  }
120
+ if (region) {
121
+ playwrightStep.region = region;
122
+ }
114
123
  return playwrightStep;
115
124
  }
116
125
  exports.createPlaywrightStep = createPlaywrightStep;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/playwright-step/index.ts"],"names":[],"mappings":";;;AAAA,gCAQiB;AAKjB;IAkBE;QAjBA;;;;;WAAiB;QACjB;;;;;WAAY;QACZ;;;;;WAAiB;QACjB;;;;;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,AArBD,IAqBC;AArBY,wCAAc;AAuB3B,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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/playwright-step/index.ts"],"names":[],"mappings":";;;AAAA,gCAQiB;AAKjB;IAmBE;QAlBA;;;;;WAAiB;QACjB;;;;;WAAY;QACZ;;;;;WAAiB;QACjB;;;;;WAAqB;QACrB;;;;;WAAmB;QACnB;;;;;WAAoB;QACpB;;;;;WAAsB;QACtB;;;;;WAAgB;QAChB;;;;;WAAiB;QACjB;;;;;WAAwB;QACxB;;;;;WAA4B;QAC5B;;;;;WAAgB;QAEhB;;;;;WAAoB;QACpB;;;;;WAAwB;QACxB;;;;;WAA8B;QAC9B;;;;;WAAoC;QAGlC,IAAI,CAAC,IAAI,GAAG,gBAAS,CAAC,UAAU,CAAC;IACnC,CAAC;IACH,qBAAC;AAAD,CAAC,AAtBD,IAsBC;AAtBY,wCAAc;AAwB3B,SAAgB,oBAAoB,CAAC,IAAoB;IAC/C,IAAA,UAAU,GAAkC,IAAI,WAAtC,EAAE,UAAU,GAAsB,IAAI,WAA1B,EAAE,OAAO,GAAa,IAAI,QAAjB,EAAE,MAAM,GAAK,IAAI,OAAT,CAAU;IAEzD,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,IAAI,MAAM,EAAE;QACV,cAAc,CAAC,MAAM,GAAG,MAAM,CAAC;KAChC;IAED,OAAO,cAAc,CAAC;AACxB,CAAC;AAzBD,oDAyBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loadmill/core",
3
- "version": "0.3.191",
3
+ "version": "0.3.192",
4
4
  "description": "Loadmill core library",
5
5
  "main": "dist/",
6
6
  "scripts": {
@@ -27,7 +27,7 @@
27
27
  "@aws-sdk/client-cognito-identity": "~3.58.0",
28
28
  "@aws-sdk/client-firehose": "~3.58.0",
29
29
  "@aws-sdk/types": "~3.55.0",
30
- "@loadmill/universal": "0.3.186",
30
+ "@loadmill/universal": "0.3.187",
31
31
  "@playwright/test": "1.50.0",
32
32
  "@xmldom/xmldom": "^0.8.10",
33
33
  "cheerio": "^0.22.0",