ag-common 0.0.214 → 0.0.215

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.
@@ -17,7 +17,7 @@ function setCookieRaw({ name, value, expiryDays = 1, }) {
17
17
  const d = new Date();
18
18
  d.setTime(d.getTime() + expiryDays * 24 * 60 * 60 * 1000);
19
19
  const expires = `expires=${!value || expiryDays < 0 ? const_1.expireDate : d.toUTCString()}`;
20
- document.cookie = `${name}=${!value ? '' : value};${expires};path=/`;
20
+ document.cookie = `${name}=${!value ? '' : value};${expires};path=/; SameSite=Strict; Secure`;
21
21
  }
22
22
  function wipeCookies(name) {
23
23
  if (typeof window === 'undefined') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ag-common",
3
- "version": "0.0.214",
3
+ "version": "0.0.215",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "author": "Andrei Gec <@andreigec> (https://gec.dev/)",