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

remix-redis-session

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remix-redis-session - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

2

dist/index.d.ts

@@ -1,2 +0,2 @@

import { SessionIdStorageStrategy, SessionStorage } from "@remix-run/server-runtime/sessions";
import { SessionIdStorageStrategy, SessionStorage } from "@remix-run/server-runtime";
import Redis from "ioredis";

@@ -3,0 +3,0 @@ declare type redisSessionArguments = {

@@ -16,3 +16,3 @@ "use strict";

exports.createRedisSessionStorage = void 0;
const sessions_1 = require("@remix-run/server-runtime/sessions");
const server_runtime_1 = require("@remix-run/server-runtime");
const node_1 = require("@remix-run/node");

@@ -28,3 +28,3 @@ const crypto_1 = require("crypto");

const expiresDate = new Date(expires);
const secondsDelta = expiresDate.getSeconds() - now.getSeconds();
const secondsDelta = (expiresDate.getTime() - now.getTime()) / 1000;
return secondsDelta < 0 ? 0 : secondsDelta;

@@ -43,3 +43,3 @@ };

}
const createSessionStorage = (0, sessions_1.createSessionStorageFactory)(node_1.createCookie);
const createSessionStorage = (0, server_runtime_1.createSessionStorageFactory)(node_1.createCookie);
return createSessionStorage({

@@ -46,0 +46,0 @@ cookie,

{
"name": "remix-redis-session",
"version": "0.0.10",
"version": "0.0.11",
"description": "Redis session storage for Remix",

@@ -16,8 +16,8 @@ "main": "dist/index.js",

"devDependencies": {
"typescript": "^4.6.2",
"@types/ioredis": "^4.28.8"
"@types/ioredis": "^4.28.8",
"typescript": "^4.6.2"
},
"dependencies": {
"@remix-run/server-runtime": "^1.3.3",
"@remix-run/node": "^1.3.3",
"@remix-run/node": "^1.6.3",
"@remix-run/server-runtime": "^1.6.3",
"ioredis": "^4.28.5",

@@ -24,0 +24,0 @@ "remix": "^1.3.3"

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