playwright-core 1.57.0-alpha-2025-11-19 → 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.
@@ -260,7 +260,7 @@ Examples:
260
260
  import_utilsBundle.program.command("run-driver", { hidden: true }).action(function(options) {
261
261
  (0, import_driver.runDriver)();
262
262
  });
263
- import_utilsBundle.program.command("run-server").option("--port <port>", "Server port").option("--host <host>", "Server host").option("--path <path>", "Endpoint Path", "/").option("--max-clients <maxClients>", "Maximum clients").option("--mode <mode>", 'Server mode, either "default" or "extension"').action(function(options) {
263
+ import_utilsBundle.program.command("run-server", { hidden: true }).option("--port <port>", "Server port").option("--host <host>", "Server host").option("--path <path>", "Endpoint Path", "/").option("--max-clients <maxClients>", "Maximum clients").option("--mode <mode>", 'Server mode, either "default" or "extension"').action(function(options) {
264
264
  (0, import_driver.runServer)({
265
265
  port: options.port ? +options.port : void 0,
266
266
  host: options.host,
@@ -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
  }
@@ -98,7 +98,7 @@ function calculatePlatform() {
98
98
  if (distroInfo?.version === "")
99
99
  return { hostPlatform: "debian13" + archSuffix, isOfficiallySupportedPlatform: isOfficiallySupportedPlatform2 };
100
100
  }
101
- return { hostPlatform: "ubuntu20.04" + archSuffix, isOfficiallySupportedPlatform: false };
101
+ return { hostPlatform: "ubuntu24.04" + archSuffix, isOfficiallySupportedPlatform: false };
102
102
  }
103
103
  if (platform === "win32")
104
104
  return { hostPlatform: "win64", isOfficiallySupportedPlatform: true };
@@ -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 }],