Socket
Socket
Sign inDemoInstall

@brightcove/hono-sessions

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brightcove/hono-sessions - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

2

dist/cjs/index.d.ts

@@ -119,3 +119,3 @@ import hono from 'hono';

export declare const startSession: (c: hono.Context, data: any) => Promise<void>;
export declare const endSession: (c: hono.Context) => Promise<void>;
export declare const endSession: (c: hono.Context, token?: string) => Promise<void>;
export {};

@@ -302,6 +302,6 @@ /* eslint @typescript-eslint/no-explicit-any: 0 */

exports.startSession = startSession;
const endSession = (c) => __awaiter(void 0, void 0, void 0, function* () {
const endSession = (c, token) => __awaiter(void 0, void 0, void 0, function* () {
const manager = c.var.sessionManager;
if (manager) {
yield manager.endSession(c);
yield manager.endSession(c, token);
c.set('session', undefined);

@@ -308,0 +308,0 @@ c.set('sessionCookie', undefined);

{
"name": "@brightcove/hono-sessions",
"version": "1.0.7",
"version": "1.0.8",
"description": "A session manager for Hono that uses DynamoDB as session storage by default. Supports session retrieval by cookie or access token.",

@@ -5,0 +5,0 @@ "type": "commonjs",

@@ -408,7 +408,7 @@ /* eslint @typescript-eslint/no-explicit-any: 0 */

export const endSession = async (c: hono.Context) => {
export const endSession = async (c: hono.Context, token?: string) => {
const manager = c.var.sessionManager;
if (manager) {
await manager.endSession(c);
await manager.endSession(c, token);
c.set('session', undefined);

@@ -415,0 +415,0 @@ c.set('sessionCookie', undefined);

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