Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svelte-kit-sessions

Package Overview
Dependencies
Maintainers
0
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-kit-sessions - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

4

dist/index.js
import Session from './session.js';
import MemoryStore from './memory-store.js';
const memoryStore = new MemoryStore();
const sveltekitSessionHandle = (options) => async ({ event, resolve }) => {
const sveltekitSessionHandle = (options) =>
// eslint-disable-next-line @typescript-eslint/unbound-method
async ({ event, resolve }) => {
const { locals } = event;

@@ -6,0 +8,0 @@ locals.session = await Session.initialize({ cookies: event.cookies }, { store: memoryStore, ...options });

@@ -31,3 +31,3 @@ import { sign, unsign } from './cookie-signature.js';

if (expires) {
const ms = Number(expires) - Date.now();
const ms = new Date(expires).getTime() - Date.now();
return Math.ceil(ms / 1000) * 1000;

@@ -34,0 +34,0 @@ }

{
"name": "svelte-kit-sessions",
"description": "User-friendly session management module for SvelteKit. Effortlessly integrate efficient session handling into your projects. Session is stored in the store (ex. Redis, Cloudflare KV, etc.), not in a cookie.",
"version": "0.3.1",
"version": "0.3.2",
"author": "yutak23 <yuta.katayama.23+github@gmail.com> (https://github.com/yutak23)",

@@ -35,4 +35,4 @@ "repository": {

"peerDependencies": {
"svelte": "^4.2.12",
"@sveltejs/kit": "^1.0.0 || ^2.0.0"
"@sveltejs/kit": "^1.0.0 || ^2.0.0",
"svelte": "^4.2.18"
},

@@ -43,19 +43,19 @@ "dependencies": {

"devDependencies": {
"@playwright/test": "^1.42.1",
"@sveltejs/adapter-auto": "^3.1.1",
"@sveltejs/adapter-cloudflare": "^4.1.0",
"@sveltejs/adapter-netlify": "^4.1.0",
"@sveltejs/adapter-node": "^5.0.1",
"@sveltejs/adapter-vercel": "^5.1.0",
"@sveltejs/kit": "^2.5.2",
"@sveltejs/package": "^2.2.7",
"@sveltejs/vite-plugin-svelte": "^3.0.2",
"@playwright/test": "^1.46.1",
"@sveltejs/adapter-auto": "^3.2.4",
"@sveltejs/adapter-cloudflare": "^4.7.2",
"@sveltejs/adapter-netlify": "^4.3.3",
"@sveltejs/adapter-node": "^5.2.2",
"@sveltejs/adapter-vercel": "^5.4.3",
"@sveltejs/kit": "^2.5.22",
"@sveltejs/package": "^2.3.4",
"@sveltejs/vite-plugin-svelte": "^3.1.1",
"@types/cookie": "^0.6.0",
"@types/lodash": "^4.14.202",
"@types/lodash": "^4.17.7",
"@types/luxon": "^3.4.2",
"@types/node": "^20.11.24",
"@types/node": "^20.16.0",
"@types/uid-safe": "^2.1.5",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"@vitest/coverage-v8": "^1.3.1",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vitest/coverage-v8": "^2.0.5",
"cookie": "^0.6.0",

@@ -67,15 +67,16 @@ "eslint": "^8.57.0",

"eslint-plugin-import": "^2.29.1",
"eslint-plugin-svelte": "^2.35.1",
"eslint-plugin-svelte": "^2.43.0",
"lodash": "^4.17.21",
"luxon": "^3.4.4",
"npm-check-updates": "^16.14.15",
"prettier": "^3.2.5",
"prettier-plugin-svelte": "^3.2.2",
"publint": "^0.2.7",
"svelte": "^4.2.12",
"svelte-check": "^3.6.6",
"tslib": "^2.6.2",
"typescript": "^5.3.3",
"luxon": "^3.5.0",
"npm-check-updates": "^17.0.6",
"prettier": "^3.3.3",
"prettier-plugin-svelte": "^3.2.6",
"publint": "^0.2.10",
"svelte": "^4.2.18",
"svelte-check": "^3.8.5",
"tslib": "^2.6.3",
"typescript": "^5.5.4",
"vite": "^5.1.4",
"vitest": "^1.3.1"
"vitest": "^2.0.5",
"wrangler": "^3.72.0"
},

@@ -82,0 +83,0 @@ "svelte": "./dist/index.js",

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