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

ges-test-helper

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ges-test-helper - npm Package Compare versions

Comparing version 0.1.2 to 0.9.0

externalStore.js

57

ges-test-helper.js

@@ -1,53 +0,6 @@

var spawn = require('child_process').spawn
, path = require('path')
, cmdDir = process.env.ES_BIN || path.resolve(__dirname, 'EventStore')
, cmd = path.resolve(cmdDir, 'clusternode')
, opts = {
cwd: cmdDir
, env: {
'LD_LIBRARY_PATH': cmdDir + ':$LD_LIBRARY_PATH'
, 'MONO_GC_DEBUG': 'clear-at-gc'
}
}
var memory = require('./memoryStore')
, external = require('./externalStore')
//console.log('Environment: ', process.env.ES_BIN)
module.exports = function createMemoryEventStore(args, cb) {
if(!cb && typeof args === 'function') {
cb = args
args = {}
}
var es = spawn(cmd, getArgsArray(args), opts)
es.stdout.on('data', function(data) {
//console.log(data.toString())
//if(data.toString().indexOf('Starting Normal TCP listening on TCP endpoint:') !== -1) {
if(data.toString().indexOf("'$users' projection source has been written") !== -1) {
cb(null, es)
}
})
es.stderr.on('data', function(data) {
//console.log(data.toString())
cb(data.toString())
})
/*
es.on('close', function(err, signal) {
if(err) return console.log('ES process closed with error: ', err)
console.log('ES process closed with sig: ' + signal)
})
*/
es.on('error', function(err) {
cb(err)
})
}
function getArgsArray(args) {
var allArgs = ['--mem-db']
if(args.ip) allArgs.push('--ext-ip=' + args.ip)
if(args.tcpPort) allArgs.push('--ext-tcp-port=' + args.tcpPort)
return allArgs
}
module.exports = memory
module.exports.external = external
module.exports.memory = memory

@@ -25,3 +25,3 @@ {

"main": "./ges-test-helper.js",
"version": "0.1.2"
"version": "0.9.0"
}

Sorry, the diff of this file is not supported yet

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