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

chain-smoker

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chain-smoker - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

21

lib/chain-smoker.js

@@ -5,7 +5,12 @@ var Promise = require('bluebird');

var redisClient = redis.createClient();
function init(suite, options, readyCb) {
options = setOptions(options);
function init(suite, options, readyCb) {
redisClient.onAsync('connect').then(function() {
redis.client = redisClient;
Promise.resolve().bind({}).then(function() {
this.redisClient = redis.createClient(options.redis_port, options.redis_host);
return this.redisClient;
}).then(function(redisClient) {
return this.redisClient.onAsync('connect');
}).then(function(redisClient) {
redis.client = this.redisClient;
return require('./api')(suite, options);

@@ -30,4 +35,12 @@ }).then(function() {

function setOptions(options) {
options = options || {};
options.redis_port = 6379;
options.redis_host = '127.0.0.1';
return options;
}
module.exports = init;

2

package.json
{
"name": "chain-smoker",
"version": "0.1.0",
"version": "0.1.1",
"description": "Smokes a suite of tests a day (at least)",

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

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