playwright-core 1.57.0-alpha-2025-11-20 → 1.57.0-beta-1763649092000
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/lib/client/network.js +0 -12
- package/lib/protocol/validator.js +0 -4
- package/lib/server/dispatchers/networkDispatchers.js +0 -4
- package/lib/utils/isomorphic/protocolMetainfo.js +0 -1
- package/lib/vite/htmlReport/index.html +1 -1
- package/lib/vite/traceViewer/assets/{codeMirrorModule-ou4i_sJZ.js → codeMirrorModule-Bucv2d7q.js} +1 -1
- package/lib/vite/traceViewer/assets/{defaultSettingsView-DpEoba28.js → defaultSettingsView-BEpdCv1S.js} +3 -3
- package/lib/vite/traceViewer/{index.grycPPT7.js → index.D69TkbyG.js} +1 -1
- package/lib/vite/traceViewer/index.html +2 -2
- package/lib/vite/traceViewer/{uiMode.BMFxBoQ6.js → uiMode.BWTwXl41.js} +1 -1
- package/lib/vite/traceViewer/uiMode.html +2 -2
- package/package.json +1 -1
- package/types/types.d.ts +5 -27
package/lib/client/network.js
CHANGED
|
@@ -85,15 +85,6 @@ class Request extends import_channelOwner.ChannelOwner {
|
|
|
85
85
|
method() {
|
|
86
86
|
return this._fallbackOverrides.method || this._initializer.method;
|
|
87
87
|
}
|
|
88
|
-
async body() {
|
|
89
|
-
return (this._fallbackOverrides.postDataBuffer || (await this._channel.body()).body)?.toString("utf-8") || null;
|
|
90
|
-
}
|
|
91
|
-
async bodyBuffer() {
|
|
92
|
-
return this._fallbackOverrides.postDataBuffer || (await this._channel.body()).body || null;
|
|
93
|
-
}
|
|
94
|
-
async bodyJSON() {
|
|
95
|
-
return this._postDataJSON(await this.body());
|
|
96
|
-
}
|
|
97
88
|
postData() {
|
|
98
89
|
return (this._fallbackOverrides.postDataBuffer || this._initializer.postData)?.toString("utf-8") || null;
|
|
99
90
|
}
|
|
@@ -102,9 +93,6 @@ class Request extends import_channelOwner.ChannelOwner {
|
|
|
102
93
|
}
|
|
103
94
|
postDataJSON() {
|
|
104
95
|
const postData = this.postData();
|
|
105
|
-
return this._postDataJSON(postData);
|
|
106
|
-
}
|
|
107
|
-
_postDataJSON(postData) {
|
|
108
96
|
if (!postData)
|
|
109
97
|
return null;
|
|
110
98
|
const contentType = this.headers()["content-type"];
|
|
@@ -2237,10 +2237,6 @@ import_validatorPrimitives.scheme.RequestInitializer = (0, import_validatorPrimi
|
|
|
2237
2237
|
hasResponse: import_validatorPrimitives.tBoolean
|
|
2238
2238
|
});
|
|
2239
2239
|
import_validatorPrimitives.scheme.RequestResponseEvent = (0, import_validatorPrimitives.tOptional)((0, import_validatorPrimitives.tObject)({}));
|
|
2240
|
-
import_validatorPrimitives.scheme.RequestBodyParams = (0, import_validatorPrimitives.tOptional)((0, import_validatorPrimitives.tObject)({}));
|
|
2241
|
-
import_validatorPrimitives.scheme.RequestBodyResult = (0, import_validatorPrimitives.tObject)({
|
|
2242
|
-
body: (0, import_validatorPrimitives.tOptional)(import_validatorPrimitives.tBinary)
|
|
2243
|
-
});
|
|
2244
2240
|
import_validatorPrimitives.scheme.RequestResponseParams = (0, import_validatorPrimitives.tOptional)((0, import_validatorPrimitives.tObject)({}));
|
|
2245
2241
|
import_validatorPrimitives.scheme.RequestResponseResult = (0, import_validatorPrimitives.tObject)({
|
|
2246
2242
|
response: (0, import_validatorPrimitives.tOptional)((0, import_validatorPrimitives.tChannel)(["Response"]))
|
|
@@ -61,10 +61,6 @@ class RequestDispatcher extends import_dispatcher.Dispatcher {
|
|
|
61
61
|
this._browserContextDispatcher = scope;
|
|
62
62
|
this.addObjectListener(import_network2.Request.Events.Response, () => this._dispatchEvent("response", {}));
|
|
63
63
|
}
|
|
64
|
-
async body(params, progress) {
|
|
65
|
-
const postData = this._object.postDataBuffer();
|
|
66
|
-
return { body: postData === null ? void 0 : postData };
|
|
67
|
-
}
|
|
68
64
|
async rawRequestHeaders(params, progress) {
|
|
69
65
|
return { headers: await progress.race(this._object.rawRequestHeaders()) };
|
|
70
66
|
}
|
|
@@ -241,7 +241,6 @@ const methodMetainfo = /* @__PURE__ */ new Map([
|
|
|
241
241
|
["ElementHandle.uncheck", { title: "Uncheck", slowMo: true, snapshot: true, pausesBeforeInput: true }],
|
|
242
242
|
["ElementHandle.waitForElementState", { title: "Wait for state", snapshot: true, pausesBeforeAction: true }],
|
|
243
243
|
["ElementHandle.waitForSelector", { title: "Wait for selector", snapshot: true }],
|
|
244
|
-
["Request.body", { title: "Get request body", group: "getter" }],
|
|
245
244
|
["Request.response", { internal: true }],
|
|
246
245
|
["Request.rawRequestHeaders", { internal: true }],
|
|
247
246
|
["Route.redirectNavigationRequest", { internal: true }],
|