remix-redis-session
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -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" |
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
6791
Updated@remix-run/node@^1.6.3