@condor-labs/elasticsearch
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "@condor-labs/elasticsearch", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "This module provide and usefull helper to use Elasticsearch library", | ||
@@ -26,2 +26,3 @@ "main": "index.js", | ||
"@elastic/elasticsearch": "7.1.0", | ||
"@condor-labs/logger": "1.0.0", | ||
"joi": "10.5.2" | ||
@@ -28,0 +29,0 @@ }, |
@@ -148,5 +148,5 @@ This module provide and usefull helper to use Elasticsearch library. | ||
The original author and current lead maintainer of this module is the [@condor-labs development team](https://www.npmjs.com/settings/condor-labs/members). | ||
The original author and current lead maintainer of this module is the [@condor-labs development team](https://condorlabs.io/team). | ||
**[More about Condorlabs](https://condorlabs.io/about)** | ||
**More about Condorlabs [Here](https://condorlabs.io/about).** | ||
@@ -153,0 +153,0 @@ ## License |
@@ -6,2 +6,3 @@ 'use strict'; | ||
const { assert, expect } = require('chai'); | ||
const logger = require('@condor-labs/logger'); | ||
@@ -62,3 +63,3 @@ const invalidSettings = { | ||
beforeEach(() => { | ||
consoleErrorStub = sinon.stub(console, "error").callsFake(() => { }); | ||
consoleErrorStub = sinon.stub(logger, "error").callsFake(() => { }); | ||
}); | ||
@@ -65,0 +66,0 @@ |
const Joi = require('joi'); | ||
const logger = require('@condor-labs/logger'); | ||
const { Client } = require('@elastic/elasticsearch') | ||
@@ -10,3 +11,3 @@ | ||
_schema: { | ||
protocol: Joi.string().default('http').valid('http', 'https'), | ||
protocol: Joi.string().default('http').valid(null, '', 'http', 'https'), | ||
user: Joi.string().allow(null).allow(''), | ||
@@ -26,3 +27,3 @@ password: Joi.string().allow(null).allow(''), | ||
if (!settings) { | ||
console.error(self._errorMsgUndefinedSetting); | ||
logger.error(self._errorMsgUndefinedSetting); | ||
return false; | ||
@@ -34,3 +35,3 @@ } | ||
} else { | ||
console.error(`${error} - ${value}`); | ||
logger.error(`${error} - ${value}`); | ||
return false; | ||
@@ -37,0 +38,0 @@ } |
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
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
13169
169
3
+ Added@condor-labs/logger@1.0.0
+ Added@condor-labs/logger@1.0.0(transitive)