@neoskop/ethereal-secrets-middleware
Advanced tools
Comparing version 3.0.1 to 3.0.3
@@ -1,3 +0,3 @@ | ||
import { RedisStoreOptions } from 'connect-redis'; | ||
import { NextFunction, Request, Response } from 'express-serve-static-core'; | ||
import { RedisOptions } from 'ioredis'; | ||
export interface EtherealSecretsConfig { | ||
@@ -21,4 +21,6 @@ local?: { | ||
trustProxy?: boolean; | ||
redis?: RedisStoreOptions; | ||
redis?: { | ||
client?: any; | ||
} & RedisOptions; | ||
} | ||
export declare function etherealSecrets(config: EtherealSecretsConfig): (req: Request, res: Response, next: NextFunction) => void; |
@@ -7,3 +7,3 @@ "use strict"; | ||
const bodyParser = require("body-parser"); | ||
const RedisStore = require("connect-redis"); | ||
const RedisStore = require('connect-redis').default; | ||
const crypto = require("crypto"); | ||
@@ -77,3 +77,3 @@ const deepmerge = require("deepmerge"); | ||
} | ||
var expiryDate = new Date(); | ||
const expiryDate = new Date(); | ||
expiryDate.setSeconds(expiryDate.getSeconds() + ttl); | ||
@@ -80,0 +80,0 @@ res.status(201).send({ |
{ | ||
"name": "@neoskop/ethereal-secrets-middleware", | ||
"version": "3.0.1", | ||
"version": "3.0.3", | ||
"main": "dist/index.js", | ||
@@ -25,5 +25,5 @@ "typings": "dist/index.d.ts", | ||
"@types/chai": "4.3.4", | ||
"@types/connect-redis": "0.0.20", | ||
"@types/cookie-parser": "1.4.3", | ||
"@types/express": "4.17.17", | ||
"@types/express-session": "1.17.6", | ||
"@types/ioredis": "4.28.10", | ||
@@ -30,0 +30,0 @@ "@types/mocha": "10.0.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
70139
642