@tramvai/module-cookie 2.104.2 → 2.104.4
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.
|
@@ -2,7 +2,7 @@ import { Cookies } from '@tinkoff/browser-cookies';
|
|
|
2
2
|
import { prepareCookieOptions } from './utils.browser.js';
|
|
3
3
|
|
|
4
4
|
const checkCookieEnabled = (setSameSiteNone = false) => {
|
|
5
|
-
const testCookieName = 'testcookiesenabled';
|
|
5
|
+
const testCookieName = 'testcookiesenabled=';
|
|
6
6
|
// В cross-site iframe нельзя записать куки без явного указания SameSite=None
|
|
7
7
|
// источник: https://bugs.chromium.org/p/chromium/issues/detail?id=1062162#c3
|
|
8
8
|
const testCookie = setSameSiteNone ? `${testCookieName}; SameSite=None; Secure` : testCookieName;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-cookie",
|
|
3
|
-
"version": "2.104.
|
|
3
|
+
"version": "2.104.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"browser": "lib/browser.js",
|
|
6
6
|
"main": "lib/server.js",
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@tinkoff/browser-cookies": "2.0.7",
|
|
22
|
-
"@tramvai/tokens-cookie": "2.104.
|
|
23
|
-
"@tramvai/module-client-hints": "2.104.
|
|
22
|
+
"@tramvai/tokens-cookie": "2.104.4",
|
|
23
|
+
"@tramvai/module-client-hints": "2.104.4",
|
|
24
24
|
"cookie": "^0.5.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"@tinkoff/utils": "^2.1.2",
|
|
28
|
-
"@tramvai/core": "2.104.
|
|
29
|
-
"@tramvai/state": "2.104.
|
|
30
|
-
"@tramvai/tokens-common": "2.104.
|
|
28
|
+
"@tramvai/core": "2.104.4",
|
|
29
|
+
"@tramvai/state": "2.104.4",
|
|
30
|
+
"@tramvai/tokens-common": "2.104.4",
|
|
31
31
|
"@tinkoff/dippy": "0.8.15",
|
|
32
32
|
"tslib": "^2.4.0"
|
|
33
33
|
},
|