@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 +3 -11
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +3 -11
- package/dist/index.js.map +2 -2
- package/package.json +5 -2
package/dist/index.js
CHANGED
|
@@ -1191,8 +1191,6 @@ var RuntimeEnv = {
|
|
|
1191
1191
|
...Object.keys(sessionStorage).length > 0 ? { session_storage: sessionStorage } : {},
|
|
1192
1192
|
...Object.keys(auth).length > 0 ? { auth } : {}
|
|
1193
1193
|
};
|
|
1194
|
-
delete normalizedRuntime.actor;
|
|
1195
|
-
delete normalizedRuntime.env_id;
|
|
1196
1194
|
if (Object.keys(browserProfile.payload).length > 0) {
|
|
1197
1195
|
normalizedRuntime.browser_profile = browserProfile.payload;
|
|
1198
1196
|
} else {
|
|
@@ -1320,9 +1318,7 @@ var RuntimeEnv = {
|
|
|
1320
1318
|
try {
|
|
1321
1319
|
const contextCookies = await page.context().cookies();
|
|
1322
1320
|
const normalizedCookies = normalizeCookies(contextCookies || []);
|
|
1323
|
-
|
|
1324
|
-
patch.cookies = normalizedCookies;
|
|
1325
|
-
}
|
|
1321
|
+
patch.cookies = normalizedCookies;
|
|
1326
1322
|
} catch (error) {
|
|
1327
1323
|
}
|
|
1328
1324
|
try {
|
|
@@ -1377,13 +1373,9 @@ var RuntimeEnv = {
|
|
|
1377
1373
|
};
|
|
1378
1374
|
});
|
|
1379
1375
|
const localStorage = normalizeLocalStorage(snapshot?.localStorage);
|
|
1380
|
-
|
|
1381
|
-
patch.local_storage = localStorage;
|
|
1382
|
-
}
|
|
1376
|
+
patch.local_storage = localStorage;
|
|
1383
1377
|
const sessionStorage = normalizeSessionStorage(snapshot?.sessionStorage);
|
|
1384
|
-
|
|
1385
|
-
patch.session_storage = sessionStorage;
|
|
1386
|
-
}
|
|
1378
|
+
patch.session_storage = sessionStorage;
|
|
1387
1379
|
const observedProfile = normalizeObservedBrowserProfile(snapshot?.browserProfileObserved);
|
|
1388
1380
|
const browserProfile = buildBrowserProfilePayload(state.browserProfileCore, observedProfile);
|
|
1389
1381
|
if (Object.keys(browserProfile).length > 0) {
|