@kavach/cookie 1.1.3 → 1.3.0
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/package.json +2 -1
- package/src/index.js +1 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kavach/cookie",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Cookie serialize/deserialize forked from jshttp/cookie",
|
|
5
5
|
"author": "Jerry Thomas <me@jerrythomas.name>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"url": "https://github.com/jerrythomas/kavach",
|
|
17
17
|
"directory": "packages/cookie"
|
|
18
18
|
},
|
|
19
|
+
"homepage": "https://kavach.sensei-hq.com",
|
|
19
20
|
"prettier": "@jerrythomas/prettier-config",
|
|
20
21
|
"publishConfig": {
|
|
21
22
|
"access": "public"
|
package/src/index.js
CHANGED
|
@@ -171,10 +171,7 @@ export function serialize(name, val, options) {
|
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
if (opt.sameSite) {
|
|
174
|
-
const sameSite =
|
|
175
|
-
typeof opt.sameSite === 'string'
|
|
176
|
-
? opt.sameSite.toLowerCase()
|
|
177
|
-
: opt.sameSite
|
|
174
|
+
const sameSite = typeof opt.sameSite === 'string' ? opt.sameSite.toLowerCase() : opt.sameSite
|
|
178
175
|
|
|
179
176
|
switch (sameSite) {
|
|
180
177
|
case true:
|