@ladjs/shared-config
Advanced tools
+4
-0
@@ -14,2 +14,3 @@ const fs = require('fs'); | ||
| // eslint-disable-next-line complexity | ||
| function sharedConfig(prefix, env = process.env.NODE_ENV || 'development') { | ||
@@ -109,2 +110,5 @@ prefix = prefix.toUpperCase(); | ||
| redis: { | ||
| username: process.env[`${prefix}_REDIS_USERNAME`] | ||
| ? process.env[`${prefix}_REDIS_USERNAME`] | ||
| : null, | ||
| port: process.env[`${prefix}_REDIS_PORT`] | ||
@@ -111,0 +115,0 @@ ? Number.parseInt(process.env[`${prefix}_REDIS_PORT`], 10) |
+1
-1
| { | ||
| "name": "@ladjs/shared-config", | ||
| "description": "Shared configuration for Lad's API and Web servers", | ||
| "version": "9.1.0", | ||
| "version": "9.1.1", | ||
| "author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)", | ||
@@ -6,0 +6,0 @@ "bugs": { |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
9837
1.66%147
2.8%34
6.25%