@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 +4 -2
- package/dist/browser.js.map +2 -2
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +4 -2
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1006,6 +1006,7 @@ var normalizeCookies = (value) => {
|
|
|
1006
1006
|
const expires = normalizeCookieExpires(raw);
|
|
1007
1007
|
const secure = Boolean(raw.secure);
|
|
1008
1008
|
const httpOnly = Boolean(raw.httpOnly);
|
|
1009
|
+
const partitionKey = typeof raw.partitionKey === "string" ? String(raw.partitionKey).trim() : "";
|
|
1009
1010
|
const normalized = {
|
|
1010
1011
|
name,
|
|
1011
1012
|
value: cookieValue,
|
|
@@ -1015,7 +1016,8 @@ var normalizeCookies = (value) => {
|
|
|
1015
1016
|
...sameSite ? { sameSite } : {},
|
|
1016
1017
|
...secure ? { secure: true } : {},
|
|
1017
1018
|
...httpOnly ? { httpOnly: true } : {},
|
|
1018
|
-
...expires !== null ? { expires } : {}
|
|
1019
|
+
...expires !== null ? { expires } : {},
|
|
1020
|
+
...partitionKey ? { partitionKey } : {}
|
|
1019
1021
|
};
|
|
1020
1022
|
if (!normalized.domain && !normalized.url) {
|
|
1021
1023
|
return null;
|
|
@@ -1514,7 +1516,7 @@ var RuntimeEnv = {
|
|
|
1514
1516
|
if (!normalized.path) {
|
|
1515
1517
|
normalized.path = "/";
|
|
1516
1518
|
}
|
|
1517
|
-
if (!normalized.domain) {
|
|
1519
|
+
if (!normalized.domain && !normalized.url) {
|
|
1518
1520
|
return null;
|
|
1519
1521
|
}
|
|
1520
1522
|
return normalized;
|