@skrillex1224/playwright-toolkit 2.1.181 → 2.1.183

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/dist/index.cjs CHANGED
@@ -1219,8 +1219,6 @@ var RuntimeEnv = {
1219
1219
  ...Object.keys(sessionStorage).length > 0 ? { session_storage: sessionStorage } : {},
1220
1220
  ...Object.keys(auth).length > 0 ? { auth } : {}
1221
1221
  };
1222
- delete normalizedRuntime.actor;
1223
- delete normalizedRuntime.env_id;
1224
1222
  if (Object.keys(browserProfile.payload).length > 0) {
1225
1223
  normalizedRuntime.browser_profile = browserProfile.payload;
1226
1224
  } else {
@@ -1348,9 +1346,7 @@ var RuntimeEnv = {
1348
1346
  try {
1349
1347
  const contextCookies = await page.context().cookies();
1350
1348
  const normalizedCookies = normalizeCookies(contextCookies || []);
1351
- if (normalizedCookies.length > 0) {
1352
- patch.cookies = normalizedCookies;
1353
- }
1349
+ patch.cookies = normalizedCookies;
1354
1350
  } catch (error) {
1355
1351
  }
1356
1352
  try {
@@ -1405,13 +1401,9 @@ var RuntimeEnv = {
1405
1401
  };
1406
1402
  });
1407
1403
  const localStorage = normalizeLocalStorage(snapshot?.localStorage);
1408
- if (Object.keys(localStorage).length > 0) {
1409
- patch.local_storage = localStorage;
1410
- }
1404
+ patch.local_storage = localStorage;
1411
1405
  const sessionStorage = normalizeSessionStorage(snapshot?.sessionStorage);
1412
- if (Object.keys(sessionStorage).length > 0) {
1413
- patch.session_storage = sessionStorage;
1414
- }
1406
+ patch.session_storage = sessionStorage;
1415
1407
  const observedProfile = normalizeObservedBrowserProfile(snapshot?.browserProfileObserved);
1416
1408
  const browserProfile = buildBrowserProfilePayload(state.browserProfileCore, observedProfile);
1417
1409
  if (Object.keys(browserProfile).length > 0) {