Comparing version 0.8.4 to 0.8.5
@@ -31,5 +31,5 @@ var async = require('async'); | ||
*/ | ||
barrel.castOf = function( firestarter ){ | ||
this.logger.harconlog( null, 'CastOf', { name: firestarter.name, events: firestarter.event || firestarter.events } ); | ||
var index = this.firestarters.findIndex( function(element){ return element.name === firestarter.name; } ); | ||
barrel.castOf = function( name ){ | ||
this.logger.harconlog( null, 'CastOf', { name: name } ); | ||
var index = this.firestarters.findIndex( function(element){ return element.name === name; } ); | ||
if( index !== -1) { | ||
@@ -36,0 +36,0 @@ var fs = this.firestarters[ index ]; |
@@ -135,3 +135,2 @@ var Communication = require('./Communication'); | ||
this.logger.harconlog(null, 'Initiate ignition', {comm: comm} ); | ||
if( comm.callback ) | ||
@@ -138,0 +137,0 @@ this.comms[ comm.id ] = { comm: comm, callback: comm.callback }; |
@@ -99,4 +99,3 @@ var Communication = require('../lib/Communication'); | ||
inflicter.detracts = function( object ){ | ||
var fss = new Firestormstarter( this.barrel, object, this.logger ); | ||
return this.barrel.castOf( fss ); | ||
return this.barrel.castOf( object.name ); | ||
}; | ||
@@ -103,0 +102,0 @@ |
{ | ||
"name": "harcon", | ||
"version": "0.8.4", | ||
"version": "0.8.5", | ||
"description": "Messaging/Service Bus for the harmonic convergence of node-based enterprise entities.", | ||
@@ -46,3 +46,3 @@ "keywords": [ | ||
}, | ||
"_id": "harcon@0.8.4" | ||
"_id": "harcon@0.8.5" | ||
} |
@@ -35,7 +35,19 @@ var Inflicter = require('../lib/Inflicter'); | ||
var julieFS = inflicter.addicts( julie ); | ||
/* | ||
inflicter.ignite( 'morning.wakeup', function(err, res){ | ||
console.log( '>>>>>>>>>>', err, res ); | ||
} ); | ||
} );*/ | ||
var karl = { | ||
name: 'karl', | ||
context: 'morning', | ||
enter: function( ){ | ||
this.ignite( 'dire.bonjour', 'Ca vas?', function(err, res){ | ||
console.log( '>>>>>>', err, res ); | ||
} ); | ||
} | ||
}; | ||
var karlFS = inflicter.addicts( karl ); | ||
karl.enter(); | ||
/* | ||
@@ -42,0 +54,0 @@ inflicter.addict('peter', 'greet.*', function(greetings1, greetings2, callback){ |
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
414832
1594