@skrillex1224/playwright-toolkit 2.1.186 → 2.1.187

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/browser.js CHANGED
@@ -1415,6 +1415,7 @@ var normalizeCookies = (value) => {
1415
1415
  const expires = normalizeCookieExpires(raw);
1416
1416
  const secure = Boolean(raw.secure);
1417
1417
  const httpOnly = Boolean(raw.httpOnly);
1418
+ const partitionKey = typeof raw.partitionKey === "string" ? String(raw.partitionKey).trim() : "";
1418
1419
  const normalized = {
1419
1420
  name,
1420
1421
  value: cookieValue,
@@ -1424,7 +1425,8 @@ var normalizeCookies = (value) => {
1424
1425
  ...sameSite ? { sameSite } : {},
1425
1426
  ...secure ? { secure: true } : {},
1426
1427
  ...httpOnly ? { httpOnly: true } : {},
1427
- ...expires !== null ? { expires } : {}
1428
+ ...expires !== null ? { expires } : {},
1429
+ ...partitionKey ? { partitionKey } : {}
1428
1430
  };
1429
1431
  if (!normalized.domain && !normalized.url) {
1430
1432
  return null;
@@ -1926,7 +1928,7 @@ var RuntimeEnv = {
1926
1928
  if (!normalized.path) {
1927
1929
  normalized.path = "/";
1928
1930
  }
1929
- if (!normalized.domain) {
1931
+ if (!normalized.domain && !normalized.url) {
1930
1932
  return null;
1931
1933
  }
1932
1934
  return normalized;