playwright-core 1.32.1 → 1.32.2

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.
@@ -218,8 +218,12 @@ class Tracing extends _instrumentation.SdkObject {
218
218
  if (params.mode === 'discard') return {};
219
219
 
220
220
  // Network file survives across chunks, make a snapshot before returning the resulting entries.
221
- const suffix = state.chunkOrdinal ? `-${state.chunkOrdinal}` : ``;
222
- const networkFile = _path.default.join(state.tracesDir, state.traceName + `${suffix}.network`);
221
+ // We should pick a name starting with "traceName" and ending with .network.
222
+ // Something like <traceName>someSuffixHere.network.
223
+ // However, this name must not clash with any other "traceName".network in the same tracesDir.
224
+ // We can use <traceName>-<guid>.network, but "-pwnetcopy-0" suffix is more readable
225
+ // and makes it easier to debug future issues.
226
+ const networkFile = _path.default.join(state.tracesDir, state.traceName + `-pwnetcopy-${state.chunkOrdinal}.network`);
223
227
  await _fs.default.promises.copyFile(state.networkFile, networkFile);
224
228
  const entries = [];
225
229
  entries.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playwright-core",
3
- "version": "1.32.1",
3
+ "version": "1.32.2",
4
4
  "description": "A high-level API to automate web browsers",
5
5
  "repository": "github:Microsoft/playwright",
6
6
  "homepage": "https://playwright.dev",