@hemia/db-connector 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -77,6 +77,7 @@ class MongoDBConnector extends NoSQLConnector {
77
77
  user: this.config.user,
78
78
  pass: this.config.password,
79
79
  dbName: this.config.database,
80
+ authSource: this.config.authSource
80
81
  });
81
82
  this.mongooseConnection = mongoose.connection;
82
83
  console.log('Connected to MongoDB');
@@ -77,6 +77,7 @@ class MongoDBConnector extends NoSQLConnector {
77
77
  user: this.config.user,
78
78
  pass: this.config.password,
79
79
  dbName: this.config.database,
80
+ authSource: this.config.authSource
80
81
  });
81
82
  this.mongooseConnection = mongoose.connection;
82
83
  console.log('Connected to MongoDB');
@@ -9,4 +9,5 @@ export interface CredentialsConnection {
9
9
  instance?: string;
10
10
  dialect?: 'mysql' | 'postgres' | 'sqlite' | 'mariadb' | 'mssql';
11
11
  logging?: boolean;
12
+ authSource?: string;
12
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hemia/db-connector",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Hemia Database Conector",
5
5
  "main": "dist/hemia-db-connector.js",
6
6
  "module": "dist/hemia-db-connector.esm.js",
@@ -41,8 +41,7 @@
41
41
  "license": "MIT",
42
42
  "dependencies": {
43
43
  "eslint": "^9.21.0",
44
- "mongoose": "^8.8.2",
45
- "rollup-plugin-visualizer": "^5.12.0"
44
+ "mongoose": "^8.8.2"
46
45
  },
47
46
  "devDependencies": {
48
47
  "@rollup/plugin-commonjs": "^26.0.1",