@ladjs/shared-config
Advanced tools
+1
-8
@@ -14,3 +14,2 @@ const fs = require('fs'); | ||
| // eslint-disable-next-line complexity | ||
| function sharedConfig(prefix, env = process.env.NODE_ENV || 'development') { | ||
@@ -152,9 +151,3 @@ prefix = prefix.toUpperCase(); | ||
| uri: process.env[`${prefix}_MONGO_URI`] | ||
| }, | ||
| reconnectTries: process.env[`${prefix}_MONGO_RECONNECT_TRIES`] | ||
| ? Number.parseInt(process.env[`${prefix}_MONGO_RECONNECT_TRIES`], 10) | ||
| : Number.MAX_VALUE, | ||
| reconnectInterval: process.env[`${prefix}_MONGO_RECONNECT_INTERVAL`] | ||
| ? Number.parseInt(process.env[`${prefix}_MONGO_RECONNECT_INTERVAL`], 10) | ||
| : 1000 | ||
| } | ||
| }, | ||
@@ -161,0 +154,0 @@ // <https://github.com/koajs/cors#corsoptions> |
+1
-1
| { | ||
| "name": "@ladjs/shared-config", | ||
| "description": "Shared configuration for Lad's API and Web servers", | ||
| "version": "8.0.0", | ||
| "version": "9.0.0", | ||
| "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
34
-10.53%9909
-3.75%150
-4.46%