playwright-core 1.57.0-alpha-2025-11-11 → 1.57.0-alpha-2025-11-12
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/locator.js +1 -1
- package/lib/client/network.js +12 -0
- package/lib/generated/injectedScriptSource.js +1 -1
- package/lib/protocol/validator.js +4 -0
- package/lib/server/dispatchers/networkDispatchers.js +4 -0
- package/lib/server/trace/recorder/tracing.js +2 -0
- package/lib/utils/isomorphic/protocolMetainfo.js +1 -0
- package/lib/vite/traceViewer/assets/{codeMirrorModule-DkXJfpLe.js → codeMirrorModule-Ck5HIitg.js} +1 -1
- package/lib/vite/traceViewer/assets/{defaultSettingsView-Cops2quV.js → defaultSettingsView-CyWysDR7.js} +108 -108
- package/lib/vite/traceViewer/{index.DmU-47tO.js → index.B1y5_oto.js} +1 -1
- package/lib/vite/traceViewer/index.html +2 -2
- package/lib/vite/traceViewer/sw.bundle.js +1 -1
- package/lib/vite/traceViewer/{uiMode.D1ZPG0EC.js → uiMode.Dsyy7Dkc.js} +1 -1
- package/lib/vite/traceViewer/uiMode.html +2 -2
- package/package.json +1 -1
- package/types/types.d.ts +30 -6
package/lib/client/locator.js
CHANGED
|
@@ -301,7 +301,7 @@ class Locator {
|
|
|
301
301
|
return this.toString();
|
|
302
302
|
}
|
|
303
303
|
toString() {
|
|
304
|
-
return (0, import_locatorGenerators.
|
|
304
|
+
return (0, import_locatorGenerators.asLocatorDescription)("javascript", this._selector);
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
307
|
class FrameLocator {
|
package/lib/client/network.js
CHANGED
|
@@ -85,6 +85,15 @@ 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
|
+
}
|
|
88
97
|
postData() {
|
|
89
98
|
return (this._fallbackOverrides.postDataBuffer || this._initializer.postData)?.toString("utf-8") || null;
|
|
90
99
|
}
|
|
@@ -93,6 +102,9 @@ class Request extends import_channelOwner.ChannelOwner {
|
|
|
93
102
|
}
|
|
94
103
|
postDataJSON() {
|
|
95
104
|
const postData = this.postData();
|
|
105
|
+
return this._postDataJSON(postData);
|
|
106
|
+
}
|
|
107
|
+
_postDataJSON(postData) {
|
|
96
108
|
if (!postData)
|
|
97
109
|
return null;
|
|
98
110
|
const contentType = this.headers()["content-type"];
|