Socket
Socket
Sign inDemoInstall

next-session

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-session - npm Package Compare versions

Comparing version 4.0.2 to 4.0.3

4

lib/session.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc