@js-smart/react-cookie-service
Advanced tools
Comparing version 2.4.0 to 3.0.0-rc.0
@@ -99,2 +99,3 @@ /** | ||
* secure Secure flag | ||
* partitioned Partitioned flag | ||
* sameSite OWASP same site token `Lax`, `None`, or `Strict`. Defaults to `Lax` | ||
@@ -131,2 +132,6 @@ * </pre> | ||
} | ||
// If `partitioned` flag is `true`, then set cookie partitioned flag | ||
if (options?.partitioned) { | ||
cookieString += 'Partitioned;'; | ||
} | ||
// Set cookie sameSite attribute | ||
@@ -133,0 +138,0 @@ cookieString += 'sameSite=' + (options?.sameSite ?? 'Lax') + ';'; |
{ | ||
"name": "@js-smart/react-cookie-service", | ||
"version": "2.4.0", | ||
"version": "3.0.0-rc.0", | ||
"private": false, | ||
@@ -17,2 +17,3 @@ "repository": { | ||
"react18", | ||
"react19", | ||
"react-hooks", | ||
@@ -34,12 +35,2 @@ "typescript", | ||
}, | ||
"browserslist": { | ||
"production": [ | ||
"last 10 chrome versions", | ||
"last 10 ChromeAndroid versions", | ||
"last 10 Firefox versions", | ||
"last 10 Edge major versions", | ||
"last 3 Safari major versions", | ||
"last 3 iOS major versions" | ||
] | ||
}, | ||
"module": "./index.esm.js", | ||
@@ -46,0 +37,0 @@ "type": "module", |
@@ -19,2 +19,3 @@ /** | ||
sameSite?: 'Lax' | 'None' | 'Strict'; | ||
partitioned?: boolean; | ||
}) => void; | ||
@@ -21,0 +22,0 @@ deleteCookie: (name: string, path?: string, domain?: string, secure?: boolean, sameSite?: 'Lax' | 'None' | 'Strict') => void; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
230
0
11850
2