next-session
Advanced tools
Comparing version 4.0.3 to 4.0.4
@@ -1,2 +0,2 @@ | ||
import { parse } from "cookie"; | ||
import c from "cookie"; | ||
import { nanoid } from "nanoid"; | ||
@@ -54,3 +54,3 @@ import MemoryStore from "./memory-store.js"; | ||
let sessionId = (_req$headers = req.headers) !== null && _req$headers !== void 0 && _req$headers.cookie ? parse(req.headers.cookie)[name] : null; | ||
let sessionId = (_req$headers = req.headers) !== null && _req$headers !== void 0 && _req$headers.cookie ? c.parse(req.headers.cookie)[name] : null; | ||
@@ -57,0 +57,0 @@ if (sessionId && decode) { |
@@ -1,2 +0,2 @@ | ||
import { serialize } from "cookie"; | ||
import c from "cookie"; | ||
export function hash(sess) { | ||
@@ -10,3 +10,3 @@ return JSON.stringify(sess, (key, val) => key === "cookie" ? undefined : val); | ||
if (res.headersSent) return; | ||
const cookieStr = serialize(name, encodeFn ? encodeFn(id) : id, { | ||
const cookieStr = c.serialize(name, encodeFn ? encodeFn(id) : id, { | ||
path: cookie.path, | ||
@@ -13,0 +13,0 @@ httpOnly: cookie.httpOnly, |
{ | ||
"type": "module", | ||
"name": "next-session", | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"description": "Simple promise-based session for Next.js", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
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
35326
526