@neoskop/ethereal-secrets-middleware
Advanced tools
Comparing version 1.2.3 to 1.3.0
{ | ||
"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 @@ | ||
} | ||
``` | ||
``` |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
140725
8
77
0
25
+ Addedconnect-redis@4.0.4(transitive)
+ Addedioredis@4.16.2(transitive)
+ Addeduuid@7.0.3(transitive)
+ Addedvalidator@13.0.0(transitive)
- Removed@types/body-parser@1.17.1
- Removed@types/connect-redis@0.0.13
- Removed@redis/bloom@1.2.0(transitive)
- Removed@redis/client@1.6.0(transitive)
- Removed@redis/graph@1.1.1(transitive)
- Removed@redis/json@1.0.7(transitive)
- Removed@redis/search@1.2.0(transitive)
- Removed@redis/time-series@1.1.0(transitive)
- Removed@types/body-parser@1.17.1(transitive)
- Removed@types/connect@3.4.38(transitive)
- Removed@types/connect-redis@0.0.13(transitive)
- Removed@types/express@5.0.0(transitive)
- Removed@types/express-serve-static-core@5.0.2(transitive)
- Removed@types/express-session@1.18.1(transitive)
- Removed@types/http-errors@2.0.4(transitive)
- Removed@types/ioredis@5.0.0(transitive)
- Removed@types/mime@1.3.5(transitive)
- Removed@types/node@22.10.1(transitive)
- Removed@types/qs@6.9.17(transitive)
- Removed@types/range-parser@1.2.7(transitive)
- Removed@types/redis@4.0.11(transitive)
- Removed@types/send@0.17.4(transitive)
- Removed@types/serve-static@1.15.7(transitive)
- Removedconnect-redis@4.0.3(transitive)
- Removedgeneric-pool@3.9.0(transitive)
- Removedioredis@4.14.1(transitive)
- Removedredis@4.7.0(transitive)
- Removedundici-types@6.20.0(transitive)
- Removeduuid@3.3.3(transitive)
- Removedvalidator@12.1.0(transitive)
- Removedyallist@4.0.0(transitive)
Updatedconnect-redis@4.0.4
Updatedioredis@4.16.2
Updateduuid@7.0.3
Updatedvalidator@13.0.0