Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@js-smart/react-cookie-service

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@js-smart/react-cookie-service - npm Package Compare versions

Comparing version 2.4.0 to 3.0.0-rc.0

5

index.esm.js

@@ -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') + ';';

13

package.json
{
"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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc