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

@neoskop/ethereal-secrets-middleware

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neoskop/ethereal-secrets-middleware - npm Package Compare versions

Comparing version 1.2.3 to 1.3.0

45

package.json
{
"name": "@neoskop/ethereal-secrets-middleware",
"version": "1.2.3",
"version": "1.3.0",
"main": "dist/index.js",

@@ -23,36 +23,37 @@ "typings": "dist/index.d.ts",

"devDependencies": {
"@types/chai": "4.2.7",
"@types/body-parser": "1.19.0",
"@types/chai": "4.2.11",
"@types/chai-http": "4.2.0",
"@types/connect-redis": "0.0.13",
"@types/cookie-parser": "1.4.2",
"@types/deepmerge": "2.2.0",
"@types/express": "4.17.2",
"@types/express-session": "1.15.16",
"@types/ioredis": "4.14.2",
"@types/mocha": "5.2.7",
"@types/sinon": "7.5.1",
"@types/uuid": "3.4.6",
"@types/validator": "12.0.1",
"@types/express-session": "1.17.0",
"@types/ioredis": "4.14.9",
"@types/mocha": "7.0.2",
"@types/redis": "2.8.17",
"@types/sinon": "9.0.0",
"@types/uuid": "7.0.2",
"@types/validator": "13.0.0",
"chai": "4.2.0",
"chai-http": "4.3.0",
"chai-uuid": "1.0.6",
"concurrently": "5.0.2",
"cookie-parser": "1.4.4",
"mocha": "6.2.2",
"nyc": "14.1.1",
"rimraf": "3.0.0",
"sinon": "7.5.0",
"ts-node": "8.5.4",
"typescript": "3.7.3"
"concurrently": "5.1.0",
"cookie-parser": "1.4.5",
"mocha": "7.1.1",
"nyc": "15.0.1",
"rimraf": "3.0.2",
"sinon": "9.0.2",
"ts-node": "8.8.2",
"typescript": "3.8.3"
},
"dependencies": {
"@types/body-parser": "1.17.1",
"@types/connect-redis": "0.0.13",
"body-parser": "1.19.0",
"connect-redis": "4.0.3",
"connect-redis": "4.0.4",
"deepmerge": "4.2.2",
"express": "4.17.1",
"express-session": "1.17.0",
"ioredis": "4.14.1",
"uuid": "3.3.3",
"validator": "12.1.0"
"ioredis": "4.16.2",
"uuid": "7.0.3",
"validator": "13.0.0"
},

@@ -59,0 +60,0 @@ "nyc": {

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

# Ethereal Secrets Middleware #
# Ethereal Secrets Middleware

@@ -9,17 +9,20 @@ An express middleware to expose a REST endpoint to issue secrets for

## Local mode ##
## Local mode
```typescript
let app = express();
app.use('/secrets', etherealSecrets({
local: {
ttl: 15 * 60,
cookie: {
secret: 'icanhazcheezburger?'
}
},
redis: {
host: 'localhost'
}
}));
app.use(
'/secrets',
etherealSecrets({
local: {
ttl: 15 * 60,
cookie: {
secret: 'icanhazcheezburger?',
},
},
redis: {
client: new IORedis(),
},
}),
);
```

@@ -40,14 +43,17 @@

## Remote mode ##
## Remote mode
```typescript
let app = express();
app.use('/secrets', etherealSecrets({
remote: {
defaultTtl: 24 * 60 * 60
},
redis: {
host: 'localhost'
}
}));
app.use(
'/secrets',
etherealSecrets({
remote: {
defaultTtl: 24 * 60 * 60,
},
redis: {
host: 'redis',
},
}),
);
```

@@ -72,2 +78,2 @@

}
```
```
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