next-persist
Advanced tools
Comparing version 1.0.7 to 1.0.8
{ | ||
"name": "next-persist", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Bridging the gap between client-side persistence and server-side rendering", | ||
@@ -5,0 +5,0 @@ "main": "src/next-persist.js", |
@@ -24,3 +24,3 @@ /* eslint-disable prettier/prettier */ | ||
if (req) { | ||
return cookie.parse(req.headers.cookie || ''); | ||
return cookie.parse(req ? req.ctx.req.headers.cookie || "" : global.cookie); | ||
} | ||
@@ -27,0 +27,0 @@ return cookie.parse(document.cookie); |
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
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
8129