Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@condor-labs/elasticsearch

Package Overview
Dependencies
Maintainers
5
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@condor-labs/elasticsearch - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

3

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc