@checkly/playwright-core 1.54.2-beta.0 → 1.54.2-beta.1
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.
|
@@ -151,7 +151,7 @@ class ChannelOwner extends import_eventEmitter.EventEmitter {
|
|
|
151
151
|
const result = await this._platform.zones.current().push(apiZone).run(async () => await func(apiZone));
|
|
152
152
|
if (!options?.internal) {
|
|
153
153
|
logApiCall(this._platform, logger, `<= ${apiZone.apiName} succeeded`);
|
|
154
|
-
this._instrumentation.onApiCallEnd(apiZone);
|
|
154
|
+
this._instrumentation.onApiCallEnd(apiZone, result);
|
|
155
155
|
}
|
|
156
156
|
return result;
|
|
157
157
|
} catch (e) {
|
package/lib/client/fetch.js
CHANGED
|
@@ -152,7 +152,6 @@ class APIRequestContext extends import_channelOwner.ChannelOwner {
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
async _innerFetch(options = {}) {
|
|
155
|
-
await this.writeApiCallToDisk(options);
|
|
156
155
|
return await this._wrapApiCall(async () => {
|
|
157
156
|
if (this._closeReason)
|
|
158
157
|
throw new import_errors.TargetClosedError(this._closeReason);
|
|
@@ -160,6 +159,7 @@ class APIRequestContext extends import_channelOwner.ChannelOwner {
|
|
|
160
159
|
(0, import_assert.assert)((options.data === void 0 ? 0 : 1) + (options.form === void 0 ? 0 : 1) + (options.multipart === void 0 ? 0 : 1) <= 1, `Only one of 'data', 'form' or 'multipart' can be specified`);
|
|
161
160
|
(0, import_assert.assert)(options.maxRedirects === void 0 || options.maxRedirects >= 0, `'maxRedirects' must be greater than or equal to '0'`);
|
|
162
161
|
(0, import_assert.assert)(options.maxRetries === void 0 || options.maxRetries >= 0, `'maxRetries' must be greater than or equal to '0'`);
|
|
162
|
+
await this.writeApiCallToDisk(options);
|
|
163
163
|
const url = options.url !== void 0 ? options.url : options.request.url();
|
|
164
164
|
const method = options.method || options.request?.method();
|
|
165
165
|
let encodedParams = void 0;
|