@xnestjs/mongodb 1.6.3 → 1.6.4

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.
@@ -7,7 +7,7 @@ const assert = tslib_1.__importStar(require("node:assert"));
7
7
  const crypto = tslib_1.__importStar(require("node:crypto"));
8
8
  const objects_1 = require("@jsopen/objects");
9
9
  const common_1 = require("@nestjs/common");
10
- const colors = tslib_1.__importStar(require("ansi-colors"));
10
+ const ansi_colors_1 = tslib_1.__importDefault(require("ansi-colors"));
11
11
  const mongodb_1 = require("mongodb");
12
12
  const constants_js_1 = require("./constants.js");
13
13
  const get_mongodb_config_js_1 = require("./get-mongodb-config.js");
@@ -104,7 +104,7 @@ let MongodbCoreModule = MongodbCoreModule_1 = class MongodbCoreModule {
104
104
  const options = this.connectionOptions;
105
105
  if (options.lazyConnect)
106
106
  return;
107
- this.logger?.log(`Connecting to MongoDB [${options.database}] at ${colors.blue(options.url)}`);
107
+ this.logger?.log(`Connecting to MongoDB [${options.database}] at ${ansi_colors_1.default.blue(options.url)}`);
108
108
  common_1.Logger.flush();
109
109
  return this.client.connect().catch(e => {
110
110
  this.logger?.error('MongoDB connection failed: ' + e.message);
@@ -4,7 +4,7 @@ import * as assert from 'node:assert';
4
4
  import * as crypto from 'node:crypto';
5
5
  import { omit } from '@jsopen/objects';
6
6
  import { Inject, Logger } from '@nestjs/common';
7
- import * as colors from 'ansi-colors';
7
+ import colors from 'ansi-colors';
8
8
  import { Db, MongoClient } from 'mongodb';
9
9
  import { MONGODB_CONNECTION_OPTIONS, MONGODB_MODULE_ID } from './constants.js';
10
10
  import { getMongodbConfig } from './get-mongodb-config.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xnestjs/mongodb",
3
- "version": "1.6.3",
3
+ "version": "1.6.4",
4
4
  "description": "NestJS extension library for MongoDb",
5
5
  "author": "Panates",
6
6
  "license": "MIT",