playwright-core
Advanced tools
Comparing version 1.45.0-alpha-2024-05-20 to 1.45.0-alpha-2024-05-21
@@ -57,3 +57,2 @@ "use strict"; | ||
this._provisionalHeaders = new RawHeaders(initializer.headers); | ||
this._fallbackOverrides.postDataBuffer = initializer.postData; | ||
this._timing = { | ||
@@ -81,7 +80,7 @@ startTime: 0, | ||
postData() { | ||
var _this$_fallbackOverri; | ||
return ((_this$_fallbackOverri = this._fallbackOverrides.postDataBuffer) === null || _this$_fallbackOverri === void 0 ? void 0 : _this$_fallbackOverri.toString('utf-8')) || null; | ||
var _ref; | ||
return ((_ref = this._fallbackOverrides.postDataBuffer || this._initializer.postData) === null || _ref === void 0 ? void 0 : _ref.toString('utf-8')) || null; | ||
} | ||
postDataBuffer() { | ||
return this._fallbackOverrides.postDataBuffer || null; | ||
return this._fallbackOverrides.postDataBuffer || this._initializer.postData || null; | ||
} | ||
@@ -88,0 +87,0 @@ postDataJSON() { |
@@ -99,3 +99,3 @@ "use strict"; | ||
for (const reporter of options.reporter || []) params.append('reporter', reporter); | ||
const urlPath = `/trace/${options.webApp || 'index.html'}?${params.toString()}`; | ||
const urlPath = `./trace/${options.webApp || 'index.html'}?${params.toString()}`; | ||
server.routePath('/', (_, response) => { | ||
@@ -102,0 +102,0 @@ response.statusCode = 302; |
{ | ||
"name": "playwright-core", | ||
"version": "1.45.0-alpha-2024-05-20", | ||
"version": "1.45.0-alpha-2024-05-21", | ||
"description": "A high-level API to automate web browsers", | ||
@@ -5,0 +5,0 @@ "repository": { |
7130584
100180