webdriverio 9.28.0 → 9.29.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.js
CHANGED
|
@@ -500,7 +500,7 @@ var wheelActionIds = 0;
|
|
|
500
500
|
var _id, _type, _parameters, _instance;
|
|
501
501
|
var BaseAction = class {
|
|
502
502
|
constructor(instance, type, params) {
|
|
503
|
-
this
|
|
503
|
+
__publicField(this, "instance", instance);
|
|
504
504
|
__privateAdd(this, _id);
|
|
505
505
|
__privateAdd(this, _type);
|
|
506
506
|
__privateAdd(this, _parameters);
|
|
@@ -3772,11 +3772,11 @@ var NOOP = () => {
|
|
|
3772
3772
|
var _retPromise;
|
|
3773
3773
|
var Timer = class {
|
|
3774
3774
|
constructor(_delay, _timeout, _fn, _leading = false, _signal) {
|
|
3775
|
-
this
|
|
3776
|
-
this
|
|
3777
|
-
this
|
|
3778
|
-
this
|
|
3779
|
-
this
|
|
3775
|
+
__publicField(this, "_delay", _delay);
|
|
3776
|
+
__publicField(this, "_timeout", _timeout);
|
|
3777
|
+
__publicField(this, "_fn", _fn);
|
|
3778
|
+
__publicField(this, "_leading", _leading);
|
|
3779
|
+
__publicField(this, "_signal", _signal);
|
|
3780
3780
|
__privateAdd(this, _retPromise);
|
|
3781
3781
|
__publicField(this, "_conditionExecutedCnt", 0);
|
|
3782
3782
|
__publicField(this, "_resolve", NOOP);
|
|
@@ -3942,9 +3942,9 @@ function getPatternParam(pattern, key) {
|
|
|
3942
3942
|
var log8 = logger8("WebDriverInterception");
|
|
3943
3943
|
var DEFAULT_SPY_COLLECTED_BODY_SIZE = 10 * 1024 * 1024;
|
|
3944
3944
|
var hasSubscribedToEvents = false;
|
|
3945
|
-
var _pattern, _mockId, _filterOptions, _browser4, _eventHandler, _restored, _requestOverwrites, _respondOverwrites, _calls, _overwrittenResponseBodies, _requestPostData, _WebDriverInterception_instances, emit_fn, addEventHandler_fn, handleBeforeRequestSent_fn, handleBeforeRequestSentWithPostData_fn, continueBeforeRequestSent_fn, handleResponseStarted_fn, handleResponseCompleted_fn, handleNetworkProvideResponseError_fn, attachPostData_fn, populateRequestPostData_fn, getCall_fn, isRequestMatching_fn, matchesPostDataFilter_fn, matchesFilterOptions_fn, _setOverwrite, ensureNotRestored_fn;
|
|
3945
|
+
var _pattern, _mockId, _filterOptions, _browser4, _eventHandler, _restored, _requestOverwrites, _respondOverwrites, _calls, _overwrittenResponseBodies, _requestPostData, _isCollectingNetworkData, _hasOneResponseCollected, _WebDriverInterception_instances, emit_fn, addEventHandler_fn, handleBeforeRequestSent_fn, handleBeforeRequestSentWithPostData_fn, continueBeforeRequestSent_fn, handleResponseStarted_fn, handleResponseCompleted_fn, handleNetworkProvideResponseError_fn, attachPostData_fn, populateRequestPostData_fn, getCall_fn, isRequestMatching_fn, matchesPostDataFilter_fn, matchesFilterOptions_fn, _setOverwrite, ensureNotRestored_fn;
|
|
3946
3946
|
var _WebDriverInterception = class _WebDriverInterception {
|
|
3947
|
-
constructor(pattern, mockId, filterOptions, browser) {
|
|
3947
|
+
constructor(pattern, mockId, filterOptions, browser, isCollectingNetworkData = false) {
|
|
3948
3948
|
__privateAdd(this, _WebDriverInterception_instances);
|
|
3949
3949
|
__privateAdd(this, _pattern);
|
|
3950
3950
|
__privateAdd(this, _mockId);
|
|
@@ -3957,6 +3957,8 @@ var _WebDriverInterception = class _WebDriverInterception {
|
|
|
3957
3957
|
__privateAdd(this, _calls, []);
|
|
3958
3958
|
__privateAdd(this, _overwrittenResponseBodies, /* @__PURE__ */ new Map());
|
|
3959
3959
|
__privateAdd(this, _requestPostData, /* @__PURE__ */ new Map());
|
|
3960
|
+
__privateAdd(this, _isCollectingNetworkData);
|
|
3961
|
+
__privateAdd(this, _hasOneResponseCollected, false);
|
|
3960
3962
|
__privateAdd(this, _setOverwrite, (overwriteProp, { overwrite, abort, once }) => {
|
|
3961
3963
|
return once ? [
|
|
3962
3964
|
...overwriteProp.filter(({ once: once2 }) => once2),
|
|
@@ -3967,12 +3969,14 @@ var _WebDriverInterception = class _WebDriverInterception {
|
|
|
3967
3969
|
__privateSet(this, _mockId, mockId);
|
|
3968
3970
|
__privateSet(this, _filterOptions, filterOptions);
|
|
3969
3971
|
__privateSet(this, _browser4, browser);
|
|
3972
|
+
__privateSet(this, _isCollectingNetworkData, isCollectingNetworkData);
|
|
3970
3973
|
browser.on("network.beforeRequestSent", __privateMethod(this, _WebDriverInterception_instances, handleBeforeRequestSent_fn).bind(this));
|
|
3971
3974
|
browser.on("network.responseStarted", __privateMethod(this, _WebDriverInterception_instances, handleResponseStarted_fn).bind(this));
|
|
3972
3975
|
browser.on("network.responseCompleted", __privateMethod(this, _WebDriverInterception_instances, handleResponseCompleted_fn).bind(this));
|
|
3973
3976
|
}
|
|
3974
3977
|
static async initiate(url2, filterOptions, browser) {
|
|
3975
3978
|
const pattern = parseUrlPattern(url2);
|
|
3979
|
+
const isCollectingNetworkData = browser.options.maxSpyCollectedBodySize !== 0;
|
|
3976
3980
|
if (!hasSubscribedToEvents) {
|
|
3977
3981
|
await browser.sessionSubscribe({
|
|
3978
3982
|
events: [
|
|
@@ -3982,7 +3986,7 @@ var _WebDriverInterception = class _WebDriverInterception {
|
|
|
3982
3986
|
]
|
|
3983
3987
|
});
|
|
3984
3988
|
try {
|
|
3985
|
-
if (
|
|
3989
|
+
if (isCollectingNetworkData) {
|
|
3986
3990
|
await browser.networkAddDataCollector({
|
|
3987
3991
|
dataTypes: ["request", "response"],
|
|
3988
3992
|
maxEncodedDataSize: typeof browser.options.maxSpyCollectedBodySize === "number" ? browser.options.maxSpyCollectedBodySize : DEFAULT_SPY_COLLECTED_BODY_SIZE
|
|
@@ -4005,7 +4009,7 @@ var _WebDriverInterception = class _WebDriverInterception {
|
|
|
4005
4009
|
search: getPatternParam(pattern, "search")
|
|
4006
4010
|
}]
|
|
4007
4011
|
});
|
|
4008
|
-
return new _WebDriverInterception(pattern, interception.intercept, filterOptions, browser);
|
|
4012
|
+
return new _WebDriverInterception(pattern, interception.intercept, filterOptions, browser, isCollectingNetworkData);
|
|
4009
4013
|
}
|
|
4010
4014
|
/**
|
|
4011
4015
|
* Get the raw binary data for a mock response by request ID
|
|
@@ -4044,6 +4048,10 @@ var _WebDriverInterception = class _WebDriverInterception {
|
|
|
4044
4048
|
get calls() {
|
|
4045
4049
|
return __privateGet(this, _calls);
|
|
4046
4050
|
}
|
|
4051
|
+
get hasAtLeastOneResponseReceived() {
|
|
4052
|
+
const isResponseReceived = this.calls && this.calls.length > 0;
|
|
4053
|
+
return isResponseReceived && (!__privateGet(this, _isCollectingNetworkData) || __privateGet(this, _hasOneResponseCollected));
|
|
4054
|
+
}
|
|
4047
4055
|
/**
|
|
4048
4056
|
* Resets all information stored in the `mock.calls` set.
|
|
4049
4057
|
*/
|
|
@@ -4051,6 +4059,7 @@ var _WebDriverInterception = class _WebDriverInterception {
|
|
|
4051
4059
|
__privateSet(this, _calls, []);
|
|
4052
4060
|
__privateGet(this, _overwrittenResponseBodies).clear();
|
|
4053
4061
|
__privateGet(this, _requestPostData).clear();
|
|
4062
|
+
__privateSet(this, _hasOneResponseCollected, false);
|
|
4054
4063
|
return this;
|
|
4055
4064
|
}
|
|
4056
4065
|
/**
|
|
@@ -4166,8 +4175,8 @@ var _WebDriverInterception = class _WebDriverInterception {
|
|
|
4166
4175
|
if (typeof interval !== "number") {
|
|
4167
4176
|
interval = __privateGet(this, _browser4).options.waitforInterval;
|
|
4168
4177
|
}
|
|
4169
|
-
const
|
|
4170
|
-
const timer = new Timer_default(interval, timeout,
|
|
4178
|
+
const isResponseReceived = () => this.hasAtLeastOneResponseReceived;
|
|
4179
|
+
const timer = new Timer_default(interval, timeout, isResponseReceived, true);
|
|
4171
4180
|
return __privateGet(this, _browser4).call(() => timer.catch((e) => {
|
|
4172
4181
|
if (e.message === "timeout") {
|
|
4173
4182
|
if (typeof timeoutMsg === "string") {
|
|
@@ -4190,6 +4199,8 @@ _respondOverwrites = new WeakMap();
|
|
|
4190
4199
|
_calls = new WeakMap();
|
|
4191
4200
|
_overwrittenResponseBodies = new WeakMap();
|
|
4192
4201
|
_requestPostData = new WeakMap();
|
|
4202
|
+
_isCollectingNetworkData = new WeakMap();
|
|
4203
|
+
_hasOneResponseCollected = new WeakMap();
|
|
4193
4204
|
_WebDriverInterception_instances = new WeakSet();
|
|
4194
4205
|
emit_fn = function(event, args) {
|
|
4195
4206
|
if (!__privateGet(this, _eventHandler).has(event)) {
|
|
@@ -4292,36 +4303,33 @@ handleResponseStarted_fn = function(request) {
|
|
|
4292
4303
|
request: request.request.request
|
|
4293
4304
|
}).catch(__privateMethod(this, _WebDriverInterception_instances, handleNetworkProvideResponseError_fn));
|
|
4294
4305
|
};
|
|
4295
|
-
handleResponseCompleted_fn = async function(
|
|
4296
|
-
if (__privateGet(this, _browser4).options.maxSpyCollectedBodySize === 0 || !__privateGet(this, _pattern).test(
|
|
4297
|
-
return;
|
|
4298
|
-
}
|
|
4299
|
-
if (!__privateMethod(this, _WebDriverInterception_instances, matchesFilterOptions_fn).call(this, request, { includePostData: false })) {
|
|
4306
|
+
handleResponseCompleted_fn = async function(response) {
|
|
4307
|
+
if (__privateGet(this, _browser4).options.maxSpyCollectedBodySize === 0 || !__privateGet(this, _pattern).test(response.request.url) || !__privateMethod(this, _WebDriverInterception_instances, matchesFilterOptions_fn).call(this, response, { includePostData: false })) {
|
|
4300
4308
|
return;
|
|
4301
4309
|
}
|
|
4302
|
-
const requestWithPostData = await __privateMethod(this, _WebDriverInterception_instances, populateRequestPostData_fn).call(this,
|
|
4310
|
+
const requestWithPostData = await __privateMethod(this, _WebDriverInterception_instances, populateRequestPostData_fn).call(this, response);
|
|
4303
4311
|
if (!__privateMethod(this, _WebDriverInterception_instances, matchesPostDataFilter_fn).call(this, requestWithPostData)) {
|
|
4304
|
-
__privateGet(this, _requestPostData).delete(
|
|
4312
|
+
__privateGet(this, _requestPostData).delete(response.request.request);
|
|
4305
4313
|
return;
|
|
4306
4314
|
}
|
|
4307
|
-
const call2 = __privateMethod(this, _WebDriverInterception_instances, getCall_fn).call(this,
|
|
4308
|
-
if (call2) {
|
|
4309
|
-
|
|
4315
|
+
const call2 = __privateMethod(this, _WebDriverInterception_instances, getCall_fn).call(this, response.request.request);
|
|
4316
|
+
if (!call2) {
|
|
4317
|
+
return;
|
|
4310
4318
|
}
|
|
4319
|
+
__privateMethod(this, _WebDriverInterception_instances, attachPostData_fn).call(this, call2);
|
|
4311
4320
|
try {
|
|
4312
4321
|
const { bytes } = await __privateGet(this, _browser4).networkGetData({
|
|
4313
|
-
request:
|
|
4322
|
+
request: response.request.request,
|
|
4314
4323
|
dataType: "response"
|
|
4315
4324
|
});
|
|
4316
4325
|
if (bytes) {
|
|
4317
|
-
|
|
4318
|
-
call2.body = bytes.value;
|
|
4319
|
-
}
|
|
4326
|
+
call2.body = bytes.value;
|
|
4320
4327
|
}
|
|
4321
4328
|
} catch (err) {
|
|
4322
|
-
log8.debug("Failed to get response body for ".concat(
|
|
4329
|
+
log8.debug("Failed to get response body for ".concat(response.request.request, ": ").concat(err.message));
|
|
4323
4330
|
} finally {
|
|
4324
|
-
|
|
4331
|
+
__privateSet(this, _hasOneResponseCollected, true);
|
|
4332
|
+
__privateGet(this, _requestPostData).delete(response.request.request);
|
|
4325
4333
|
}
|
|
4326
4334
|
};
|
|
4327
4335
|
/**
|
package/build/node.js
CHANGED
|
@@ -1126,6 +1126,7 @@ var BaseAction = class {
|
|
|
1126
1126
|
this.#type = type;
|
|
1127
1127
|
this.#parameters = params?.parameters || {};
|
|
1128
1128
|
}
|
|
1129
|
+
instance;
|
|
1129
1130
|
#id;
|
|
1130
1131
|
#type;
|
|
1131
1132
|
#parameters;
|
|
@@ -3969,6 +3970,11 @@ var Timer = class {
|
|
|
3969
3970
|
});
|
|
3970
3971
|
this._start();
|
|
3971
3972
|
}
|
|
3973
|
+
_delay;
|
|
3974
|
+
_timeout;
|
|
3975
|
+
_fn;
|
|
3976
|
+
_leading;
|
|
3977
|
+
_signal;
|
|
3972
3978
|
#retPromise;
|
|
3973
3979
|
_conditionExecutedCnt = 0;
|
|
3974
3980
|
_resolve = NOOP;
|
|
@@ -4135,17 +4141,21 @@ var WebDriverInterception = class _WebDriverInterception {
|
|
|
4135
4141
|
#calls = [];
|
|
4136
4142
|
#overwrittenResponseBodies = /* @__PURE__ */ new Map();
|
|
4137
4143
|
#requestPostData = /* @__PURE__ */ new Map();
|
|
4138
|
-
|
|
4144
|
+
#isCollectingNetworkData;
|
|
4145
|
+
#hasOneResponseCollected = false;
|
|
4146
|
+
constructor(pattern, mockId, filterOptions, browser, isCollectingNetworkData = false) {
|
|
4139
4147
|
this.#pattern = pattern;
|
|
4140
4148
|
this.#mockId = mockId;
|
|
4141
4149
|
this.#filterOptions = filterOptions;
|
|
4142
4150
|
this.#browser = browser;
|
|
4151
|
+
this.#isCollectingNetworkData = isCollectingNetworkData;
|
|
4143
4152
|
browser.on("network.beforeRequestSent", this.#handleBeforeRequestSent.bind(this));
|
|
4144
4153
|
browser.on("network.responseStarted", this.#handleResponseStarted.bind(this));
|
|
4145
4154
|
browser.on("network.responseCompleted", this.#handleResponseCompleted.bind(this));
|
|
4146
4155
|
}
|
|
4147
4156
|
static async initiate(url2, filterOptions, browser) {
|
|
4148
4157
|
const pattern = parseUrlPattern(url2);
|
|
4158
|
+
const isCollectingNetworkData = browser.options.maxSpyCollectedBodySize !== 0;
|
|
4149
4159
|
if (!hasSubscribedToEvents) {
|
|
4150
4160
|
await browser.sessionSubscribe({
|
|
4151
4161
|
events: [
|
|
@@ -4155,7 +4165,7 @@ var WebDriverInterception = class _WebDriverInterception {
|
|
|
4155
4165
|
]
|
|
4156
4166
|
});
|
|
4157
4167
|
try {
|
|
4158
|
-
if (
|
|
4168
|
+
if (isCollectingNetworkData) {
|
|
4159
4169
|
await browser.networkAddDataCollector({
|
|
4160
4170
|
dataTypes: ["request", "response"],
|
|
4161
4171
|
maxEncodedDataSize: typeof browser.options.maxSpyCollectedBodySize === "number" ? browser.options.maxSpyCollectedBodySize : DEFAULT_SPY_COLLECTED_BODY_SIZE
|
|
@@ -4178,7 +4188,7 @@ var WebDriverInterception = class _WebDriverInterception {
|
|
|
4178
4188
|
search: getPatternParam(pattern, "search")
|
|
4179
4189
|
}]
|
|
4180
4190
|
});
|
|
4181
|
-
return new _WebDriverInterception(pattern, interception.intercept, filterOptions, browser);
|
|
4191
|
+
return new _WebDriverInterception(pattern, interception.intercept, filterOptions, browser, isCollectingNetworkData);
|
|
4182
4192
|
}
|
|
4183
4193
|
#emit(event, args) {
|
|
4184
4194
|
if (!this.#eventHandler.has(event)) {
|
|
@@ -4279,36 +4289,33 @@ var WebDriverInterception = class _WebDriverInterception {
|
|
|
4279
4289
|
request: request.request.request
|
|
4280
4290
|
}).catch(this.#handleNetworkProvideResponseError);
|
|
4281
4291
|
}
|
|
4282
|
-
async #handleResponseCompleted(
|
|
4283
|
-
if (this.#browser.options.maxSpyCollectedBodySize === 0 || !this.#pattern.test(
|
|
4292
|
+
async #handleResponseCompleted(response) {
|
|
4293
|
+
if (this.#browser.options.maxSpyCollectedBodySize === 0 || !this.#pattern.test(response.request.url) || !this.#matchesFilterOptions(response, { includePostData: false })) {
|
|
4284
4294
|
return;
|
|
4285
4295
|
}
|
|
4286
|
-
|
|
4287
|
-
return;
|
|
4288
|
-
}
|
|
4289
|
-
const requestWithPostData = await this.#populateRequestPostData(request);
|
|
4296
|
+
const requestWithPostData = await this.#populateRequestPostData(response);
|
|
4290
4297
|
if (!this.#matchesPostDataFilter(requestWithPostData)) {
|
|
4291
|
-
this.#requestPostData.delete(
|
|
4298
|
+
this.#requestPostData.delete(response.request.request);
|
|
4292
4299
|
return;
|
|
4293
4300
|
}
|
|
4294
|
-
const call2 = this.#getCall(
|
|
4295
|
-
if (call2) {
|
|
4296
|
-
|
|
4301
|
+
const call2 = this.#getCall(response.request.request);
|
|
4302
|
+
if (!call2) {
|
|
4303
|
+
return;
|
|
4297
4304
|
}
|
|
4305
|
+
this.#attachPostData(call2);
|
|
4298
4306
|
try {
|
|
4299
4307
|
const { bytes } = await this.#browser.networkGetData({
|
|
4300
|
-
request:
|
|
4308
|
+
request: response.request.request,
|
|
4301
4309
|
dataType: "response"
|
|
4302
4310
|
});
|
|
4303
4311
|
if (bytes) {
|
|
4304
|
-
|
|
4305
|
-
call2.body = bytes.value;
|
|
4306
|
-
}
|
|
4312
|
+
call2.body = bytes.value;
|
|
4307
4313
|
}
|
|
4308
4314
|
} catch (err) {
|
|
4309
|
-
log9.debug(`Failed to get response body for ${
|
|
4315
|
+
log9.debug(`Failed to get response body for ${response.request.request}: ${err.message}`);
|
|
4310
4316
|
} finally {
|
|
4311
|
-
this.#
|
|
4317
|
+
this.#hasOneResponseCollected = true;
|
|
4318
|
+
this.#requestPostData.delete(response.request.request);
|
|
4312
4319
|
}
|
|
4313
4320
|
}
|
|
4314
4321
|
/**
|
|
@@ -4447,6 +4454,10 @@ var WebDriverInterception = class _WebDriverInterception {
|
|
|
4447
4454
|
get calls() {
|
|
4448
4455
|
return this.#calls;
|
|
4449
4456
|
}
|
|
4457
|
+
get hasAtLeastOneResponseReceived() {
|
|
4458
|
+
const isResponseReceived = this.calls && this.calls.length > 0;
|
|
4459
|
+
return isResponseReceived && (!this.#isCollectingNetworkData || this.#hasOneResponseCollected);
|
|
4460
|
+
}
|
|
4450
4461
|
/**
|
|
4451
4462
|
* Resets all information stored in the `mock.calls` set.
|
|
4452
4463
|
*/
|
|
@@ -4454,6 +4465,7 @@ var WebDriverInterception = class _WebDriverInterception {
|
|
|
4454
4465
|
this.#calls = [];
|
|
4455
4466
|
this.#overwrittenResponseBodies.clear();
|
|
4456
4467
|
this.#requestPostData.clear();
|
|
4468
|
+
this.#hasOneResponseCollected = false;
|
|
4457
4469
|
return this;
|
|
4458
4470
|
}
|
|
4459
4471
|
/**
|
|
@@ -4574,8 +4586,8 @@ var WebDriverInterception = class _WebDriverInterception {
|
|
|
4574
4586
|
if (typeof interval !== "number") {
|
|
4575
4587
|
interval = this.#browser.options.waitforInterval;
|
|
4576
4588
|
}
|
|
4577
|
-
const
|
|
4578
|
-
const timer = new Timer_default(interval, timeout,
|
|
4589
|
+
const isResponseReceived = () => this.hasAtLeastOneResponseReceived;
|
|
4590
|
+
const timer = new Timer_default(interval, timeout, isResponseReceived, true);
|
|
4579
4591
|
return this.#browser.call(() => timer.catch((e) => {
|
|
4580
4592
|
if (e.message === "timeout") {
|
|
4581
4593
|
if (typeof timeoutMsg === "string") {
|
|
@@ -12,7 +12,7 @@ type RespondBody = string | JsonCompatible | Buffer;
|
|
|
12
12
|
*/
|
|
13
13
|
export default class WebDriverInterception {
|
|
14
14
|
#private;
|
|
15
|
-
constructor(pattern: URLPattern, mockId: string, filterOptions: MockFilterOptions, browser: WebdriverIO.Browser);
|
|
15
|
+
constructor(pattern: URLPattern, mockId: string, filterOptions: MockFilterOptions, browser: WebdriverIO.Browser, isCollectingNetworkData?: boolean);
|
|
16
16
|
static initiate(url: string, filterOptions: MockFilterOptions, browser: WebdriverIO.Browser): Promise<WebDriverInterception>;
|
|
17
17
|
/**
|
|
18
18
|
* Get the raw binary data for a mock response by request ID
|
|
@@ -30,6 +30,7 @@ export default class WebDriverInterception {
|
|
|
30
30
|
* allows access to all requests made with given pattern
|
|
31
31
|
*/
|
|
32
32
|
get calls(): Response[];
|
|
33
|
+
get hasAtLeastOneResponseReceived(): boolean;
|
|
33
34
|
/**
|
|
34
35
|
* Resets all information stored in the `mock.calls` set.
|
|
35
36
|
*/
|
|
@@ -93,7 +94,7 @@ export default class WebDriverInterception {
|
|
|
93
94
|
on(event: 'continue', callback: (requestId: string) => void): WebDriverInterception;
|
|
94
95
|
on(event: 'fail', callback: (requestId: string) => void): WebDriverInterception;
|
|
95
96
|
on(event: 'overwrite', callback: (response: Response) => void): WebDriverInterception;
|
|
96
|
-
waitForResponse({ timeout, interval, timeoutMsg, }?: WaitForOptions): Promise<
|
|
97
|
+
waitForResponse({ timeout, interval, timeoutMsg, }?: WaitForOptions): Promise<never> | Promise<Promise<never>>;
|
|
97
98
|
}
|
|
98
99
|
export declare function parseUrlPattern(url: string | URLPattern): URLPattern;
|
|
99
100
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/interception/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,MAAM,EAAE,MAAM,WAAW,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAKhD,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAQpD,KAAK,WAAW,GAAG,MAAM,GAAG,cAAc,GAAG,MAAM,CAAA;AAWnD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,OAAO,qBAAqB;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/interception/index.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webdriverio",
|
|
3
3
|
"description": "Next-gen browser and mobile automation test framework for Node.js",
|
|
4
|
-
"version": "9.
|
|
4
|
+
"version": "9.29.0",
|
|
5
5
|
"homepage": "https://webdriver.io",
|
|
6
6
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -77,12 +77,12 @@
|
|
|
77
77
|
"dependencies": {
|
|
78
78
|
"@types/node": "^20.11.30",
|
|
79
79
|
"@types/sinonjs__fake-timers": "^8.1.5",
|
|
80
|
-
"@wdio/config": "9.
|
|
80
|
+
"@wdio/config": "9.29.0",
|
|
81
81
|
"@wdio/logger": "9.18.0",
|
|
82
|
-
"@wdio/protocols": "9.
|
|
82
|
+
"@wdio/protocols": "9.29.0",
|
|
83
83
|
"@wdio/repl": "9.16.2",
|
|
84
|
-
"@wdio/types": "9.
|
|
85
|
-
"@wdio/utils": "9.
|
|
84
|
+
"@wdio/types": "9.29.0",
|
|
85
|
+
"@wdio/utils": "9.29.0",
|
|
86
86
|
"archiver": "^7.0.1",
|
|
87
87
|
"aria-query": "^5.3.0",
|
|
88
88
|
"cheerio": "^1.0.0-rc.12",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"rgb2hex": "0.2.5",
|
|
100
100
|
"serialize-error": "^12.0.0",
|
|
101
101
|
"urlpattern-polyfill": "^10.0.0",
|
|
102
|
-
"webdriver": "9.
|
|
102
|
+
"webdriver": "9.29.0"
|
|
103
103
|
},
|
|
104
104
|
"peerDependencies": {
|
|
105
105
|
"puppeteer-core": ">=22.x || <=24.x"
|
|
@@ -109,5 +109,5 @@
|
|
|
109
109
|
"optional": true
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "c7808c59ca3ab6a677230cebd688454426cba0f2"
|
|
113
113
|
}
|