adonis-lucid-mongodb
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"scripts": { | ||
@@ -11,0 +11,0 @@ "lint": "standard", |
@@ -145,3 +145,3 @@ 'use strict' | ||
} | ||
const security = (config.connection.user !== '' || config.connection.password !== '') ? `${config.connection.user}:${config.connection.password}@` : '' | ||
const security = (process.env.DB_USER && process.env.DB_PASSWORD) ? `${process.env.DB_USER}:${process.env.DB_PASSWORD}@` : (process.env.DB_USER ? `${process.env.DB_USER}@` : '') | ||
const connectionString = `mongodb://${security}${config.connection.host}:${config.connection.port}/${config.connection.database}` | ||
@@ -148,0 +148,0 @@ const dbConnection = yield MongoClient.connect(connectionString) |
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
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
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
230679
9