@xnestjs/elasticsearch 1.6.3 → 1.7.0

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 node_assert_1 = tslib_1.__importDefault(require("node:assert"));
7
7
  const crypto = tslib_1.__importStar(require("node:crypto"));
8
8
  const common_1 = require("@nestjs/common");
9
9
  const elasticsearch_1 = require("@nestjs/elasticsearch");
10
- const colors = tslib_1.__importStar(require("ansi-colors"));
10
+ const ansi_colors_1 = tslib_1.__importDefault(require("ansi-colors"));
11
11
  const constants_js_1 = require("./constants.js");
12
12
  const get_elasticsearch_config_js_1 = require("./get-elasticsearch-config.js");
13
13
  const CLIENT_TOKEN = Symbol('CLIENT_TOKEN');
@@ -110,7 +110,7 @@ let ElasticsearchCoreModule = ElasticsearchCoreModule_1 = class ElasticsearchCor
110
110
  if (options.lazyConnect)
111
111
  return;
112
112
  const nodes = options.node || options.nodes;
113
- this.logger?.log(`Connecting to ElasticSearch at ${colors.blue(String(nodes))}`);
113
+ this.logger?.log(`Connecting to ElasticSearch at ${ansi_colors_1.default.blue(String(nodes))}`);
114
114
  common_1.Logger.flush();
115
115
  await this.client.ping({}).catch(e => {
116
116
  this.logger.error('ElasticSearch connection failed: ' + e.message);
@@ -4,7 +4,7 @@ import assert from 'node:assert';
4
4
  import * as crypto from 'node:crypto';
5
5
  import { Inject, Logger } from '@nestjs/common';
6
6
  import { ElasticsearchModule, ElasticsearchService } from '@nestjs/elasticsearch';
7
- import * as colors from 'ansi-colors';
7
+ import colors from 'ansi-colors';
8
8
  import { ELASTICSEARCH_CONNECTION_OPTIONS, ELASTICSEARCH_MODULE_ID } from './constants.js';
9
9
  import { getElasticsearchConfig } from './get-elasticsearch-config.js';
10
10
  const CLIENT_TOKEN = Symbol('CLIENT_TOKEN');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xnestjs/elasticsearch",
3
- "version": "1.6.3",
3
+ "version": "1.7.0",
4
4
  "description": "NestJS extension library for ElasticSearch",
5
5
  "author": "Panates",
6
6
  "license": "MIT",