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

harcon

Package Overview
Dependencies
Maintainers
1
Versions
326
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

harcon - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

test/CommTest.js

29

lib/Firestarter.js

@@ -146,5 +146,6 @@ var Communication = require('./Communication');

firestarter.burst = function( comm, params ){
var self = this;
var event = params[ 0 ];
var hasCallback = params.length>0 && isFunction( params[ params.length-1 ] );
var call_params = [].slice.call(params, 1, hasCallback ? params.length-1 : params.length );
var call_params = self.sliceArguments.apply( self, params ).slice( 1, hasCallback ? params.length-1 : params.length );
var callback = hasCallback ? params[ params.length-1 ] : null;

@@ -157,3 +158,3 @@

if( newComm.callback )
this.comms[ newComm.id ] = { comm: newComm, callback: newComm.callback };
this.comms[ newComm.id ] = { callback: newComm.callback };

@@ -215,26 +216,2 @@ this.barrel.intoxicate( newComm );

/**
* Distpaches the burst event to be emited within the flow of a previous event
*
* @method burst
* @param {Communication} comm The communication object representing the event to be emited.
* @param {Array} params Parameters associatd with the communication to send with
*/
firestarter.burst = function( comm, params ){
var self = this;
var event = params[ 0 ];
var hasCallback = params.length>0 && isFunction( params[ params.length-1 ] );
var call_params = self.sliceArguments.apply( self, arguments ).slice( 1, hasCallback ? params.length-1 : params.length );
var callback = hasCallback ? params[ params.length-1 ] : null;
var newComm = comm.burst( this.name, event, call_params, callback );
this.logger.harconlog( null, 'Igniting', {newComm: newComm.shallow(), comm: comm.shallow()} );
if( newComm.callback )
this.comms[ newComm.id ] = { callback: newComm.callback };
this.barrel.intoxicate( newComm );
};
firestarter.close = function( ){

@@ -241,0 +218,0 @@ };

@@ -8,3 +8,3 @@ var Communication = require('../lib/Communication');

var VERSION = exports.VERSION = '1.0.6';
var VERSION = exports.VERSION = '1.0.7';

@@ -11,0 +11,0 @@ var _ = require('lodash');

{
"name": "harcon",
"version": "1.0.6",
"version": "1.0.7",
"description": "Messaging/Service Bus for the harmonic convergence of node-based enterprise entities.",

@@ -49,3 +49,3 @@ "keywords": [

},
"_id": "harcon@1.0.6"
"_id": "harcon@1.0.7"
}
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