@discue/mongodb-resource-client
Advanced tools
Comparing version 0.9.0 to 0.10.0
@@ -63,3 +63,3 @@ const { MongoClient, Timestamp } = require('mongodb') | ||
this._url = url | ||
this._databaseName = databaseName | ||
this._databaseName = process.env.MONGODB_RESOURCE_CLIENT_DB_NAME || databaseName | ||
this._collectionName = collectionName | ||
@@ -66,0 +66,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "0.9.0", | ||
"version": "0.10.0", | ||
"description": "Simple wrapper around mongodb client allowing easier managing of resources", | ||
@@ -8,0 +8,0 @@ "main": "lib/index", |
@@ -64,2 +64,6 @@ | ||
## Database name | ||
The database name can be configured via environment variable: `MONGODB_RESOURCE_CLIENT_DB_NAME` | ||
## Installation | ||
@@ -66,0 +70,0 @@ ```bash |
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 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
82069
85
2