New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

elasticsearch-mock-js

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elasticsearch-mock-js - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

5

index.js

@@ -9,3 +9,3 @@ const { spawn } = require( 'child_process' );

spawn('curl', [`localhost:${PORT}`]).on('close', code => {
if (code === 0 || ct === 10) {
if (code === 0 || ct === 25) {
return done(code);

@@ -27,3 +27,4 @@ }

clearData.on('close', code => {
_ES = spawn(`${__dirname}/elasticsearch/bin/elasticsearch`);
const esPath = `${__dirname}/elasticsearch/bin/elasticsearch`;
_ES = spawn(esPath);
checkIfUp(done);

@@ -30,0 +31,0 @@ });

2

package.json
{
"name": "elasticsearch-mock-js",
"version": "1.0.3",
"version": "1.0.4",
"description": "Creates an elasticsearch server for mocking purposes",

@@ -5,0 +5,0 @@ "main": "index.js",

const ES = require('./');
ES.start(() => {
ES.start((err) => {
if (err) {
return console.log('Stopped due to error', err);
}
console.log('Started');
setTimeout(() => {
ES.stop(() => {
console.log('Stopped');
});
}, 8000);
});
setTimeout(() => {
ES.stop(() => {
console.log('Stopped');
});
}, 15000);
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