next-session
Advanced tools
Comparing version 4.0.2 to 4.0.3
@@ -82,2 +82,4 @@ import { parse } from "cookie"; | ||
} else { | ||
var _cookieOpts$httpOnly; | ||
sessionId = genId(); | ||
@@ -88,3 +90,3 @@ session = { | ||
path: cookieOpts.path || "/", | ||
httpOnly: cookieOpts.httpOnly || true, | ||
httpOnly: (_cookieOpts$httpOnly = cookieOpts.httpOnly) !== null && _cookieOpts$httpOnly !== void 0 ? _cookieOpts$httpOnly : true, | ||
domain: cookieOpts.domain || undefined, | ||
@@ -91,0 +93,0 @@ sameSite: cookieOpts.sameSite, |
{ | ||
"type": "module", | ||
"name": "next-session", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"description": "Simple promise-based session for Next.js", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
@@ -11,3 +11,3 @@ # next-session | ||
> Check out alternatives like [next-iron-session](https://github.com/vvo/next-iron-session) instead. Also check out [nextjs-mongodb-app](https://github.com/hoangvvo/nextjs-mongodb-app) to see this module in use. | ||
> Also check out alternatives like [next-iron-session](https://github.com/vvo/next-iron-session). Take a look at [nextjs-mongodb-app](https://github.com/hoangvvo/nextjs-mongodb-app) to see this module in use. | ||
@@ -14,0 +14,0 @@ ## Installation |
Sorry, the diff of this file is not supported yet
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
35189
525