@okf/ootils 1.4.2 → 1.4.3

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.
package/dist/node.js CHANGED
@@ -348,10 +348,10 @@ var require_MongoConnector = __commonJS({
348
348
  this.env = options.env;
349
349
  this.dbConfigs = options.dbConfigs;
350
350
  this.mongoOptions = options.mongoOptions || {
351
- maxPoolSize: 20,
352
- serverSelectionTimeoutMS: 5e3,
353
- socketTimeoutMS: 45e3,
354
- family: 4
351
+ // maxPoolSize: 40,
352
+ // serverSelectionTimeoutMS: 5000,
353
+ // socketTimeoutMS: 45000,
354
+ // family: 4,
355
355
  };
356
356
  _MongoConnector.instance = this;
357
357
  if (!this.env) {
@@ -422,7 +422,7 @@ var require_MongoConnector = __commonJS({
422
422
  this.clusterConnections[CLUSTER_NAME] = await mongoose5.createConnection(
423
423
  DB_URI,
424
424
  this.mongoOptions
425
- );
425
+ ).asPromise();
426
426
  console.log(`Connected to MongoDB: ${CLUSTER_NAME}`);
427
427
  })
428
428
  );
package/dist/node.mjs CHANGED
@@ -353,10 +353,10 @@ var require_MongoConnector = __commonJS({
353
353
  this.env = options.env;
354
354
  this.dbConfigs = options.dbConfigs;
355
355
  this.mongoOptions = options.mongoOptions || {
356
- maxPoolSize: 20,
357
- serverSelectionTimeoutMS: 5e3,
358
- socketTimeoutMS: 45e3,
359
- family: 4
356
+ // maxPoolSize: 40,
357
+ // serverSelectionTimeoutMS: 5000,
358
+ // socketTimeoutMS: 45000,
359
+ // family: 4,
360
360
  };
361
361
  _MongoConnector.instance = this;
362
362
  if (!this.env) {
@@ -427,7 +427,7 @@ var require_MongoConnector = __commonJS({
427
427
  this.clusterConnections[CLUSTER_NAME] = await mongoose5.createConnection(
428
428
  DB_URI,
429
429
  this.mongoOptions
430
- );
430
+ ).asPromise();
431
431
  console.log(`Connected to MongoDB: ${CLUSTER_NAME}`);
432
432
  })
433
433
  );
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.4.2",
6
+ "version": "1.4.3",
7
7
  "description": "Utility functions for both browser and Node.js",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.mjs",