@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/index.cjs CHANGED
@@ -1034,6 +1034,7 @@ var normalizeCookies = (value) => {
1034
1034
  const expires = normalizeCookieExpires(raw);
1035
1035
  const secure = Boolean(raw.secure);
1036
1036
  const httpOnly = Boolean(raw.httpOnly);
1037
+ const partitionKey = typeof raw.partitionKey === "string" ? String(raw.partitionKey).trim() : "";
1037
1038
  const normalized = {
1038
1039
  name,
1039
1040
  value: cookieValue,
@@ -1043,7 +1044,8 @@ var normalizeCookies = (value) => {
1043
1044
  ...sameSite ? { sameSite } : {},
1044
1045
  ...secure ? { secure: true } : {},
1045
1046
  ...httpOnly ? { httpOnly: true } : {},
1046
- ...expires !== null ? { expires } : {}
1047
+ ...expires !== null ? { expires } : {},
1048
+ ...partitionKey ? { partitionKey } : {}
1047
1049
  };
1048
1050
  if (!normalized.domain && !normalized.url) {
1049
1051
  return null;
@@ -1542,7 +1544,7 @@ var RuntimeEnv = {
1542
1544
  if (!normalized.path) {
1543
1545
  normalized.path = "/";
1544
1546
  }
1545
- if (!normalized.domain) {
1547
+ if (!normalized.domain && !normalized.url) {
1546
1548
  return null;
1547
1549
  }
1548
1550
  return normalized;