@nattyjs/express 0.0.1-beta.35 → 0.0.1-beta.37
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/dist/index.cjs +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -51,7 +51,8 @@ function parseCookies(value) {
|
|
|
51
51
|
const cookies = value.split(";");
|
|
52
52
|
for (const cookie of cookies) {
|
|
53
53
|
const splitCookie = cookie.split("=");
|
|
54
|
-
|
|
54
|
+
if (splitCookie.length > 1)
|
|
55
|
+
jsonCookies.push({ name: splitCookie[0].trim(), value: splitCookie[1].trim() });
|
|
55
56
|
}
|
|
56
57
|
}
|
|
57
58
|
return jsonCookies;
|
package/dist/index.mjs
CHANGED
|
@@ -43,7 +43,8 @@ function parseCookies(value) {
|
|
|
43
43
|
const cookies = value.split(";");
|
|
44
44
|
for (const cookie of cookies) {
|
|
45
45
|
const splitCookie = cookie.split("=");
|
|
46
|
-
|
|
46
|
+
if (splitCookie.length > 1)
|
|
47
|
+
jsonCookies.push({ name: splitCookie[0].trim(), value: splitCookie[1].trim() });
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
50
|
return jsonCookies;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nattyjs/express",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.37",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "ajayojha <ojhaajay@outlook.com>",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"chokidar": "4.0.3",
|
|
20
20
|
"cors": "2.8.5",
|
|
21
21
|
"compression": "1.7.4",
|
|
22
|
-
"@nattyjs/core": "0.0.1-beta.
|
|
23
|
-
"@nattyjs/common": "0.0.1-beta.
|
|
24
|
-
"@nattyjs/types": "0.0.1-beta.
|
|
22
|
+
"@nattyjs/core": "0.0.1-beta.37",
|
|
23
|
+
"@nattyjs/common": "0.0.1-beta.37",
|
|
24
|
+
"@nattyjs/types": "0.0.1-beta.37"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "20.3.1",
|