Comparing version 9.2.1 to 9.2.3
@@ -203,3 +203,3 @@ let Cerobee = require('clerobee') | ||
c.valve = obj.valve || VALVE_DEFAULT | ||
c.terms = obj.terms | ||
c.terms = obj.terms || {} | ||
c.signature = obj.signature | ||
@@ -206,0 +206,0 @@ |
@@ -10,2 +10,5 @@ let Cerobee = require('clerobee') | ||
let Assigner = require('assign.js') | ||
let assigner = new Assigner() | ||
module.exports = function (self) { | ||
@@ -24,8 +27,12 @@ return { | ||
}, | ||
burst: self.auditor ? function ( comm, externalID, flowID, division, event, ...callParams ) { | ||
burst: self.auditor ? function ( comm, terms, externalID, flowID, division, event, ...callParams ) { | ||
comm = comm.burst ? comm : Communication.importCommunication( comm ) | ||
return comm.burst( externalID, flowID, self.division, self.name, self.barrel.nodeID, division, event, callParams, null ) | ||
} : function ( comm, division, event, ...callParams ) { | ||
let newComm = comm.burst( externalID, flowID, self.division, self.name, self.barrel.nodeID, division, event, callParams, null ) | ||
newComm.terms = assigner.assign( {}, comm.terms || {}, terms || {} ) | ||
return newComm | ||
} : function ( comm, terms, division, event, ...callParams ) { | ||
comm = comm.burst ? comm : Communication.importCommunication( comm ) | ||
return comm.burst( null, null, self.division, self.name, self.barrel.nodeID, division, event, callParams, null ) | ||
let newComm = comm.burst( null, null, self.division, self.name, self.barrel.nodeID, division, event, callParams, null ) | ||
newComm.terms = assigner.assign( {}, comm.terms || {}, terms || {} ) | ||
return newComm | ||
}, | ||
@@ -32,0 +39,0 @@ blow: async function (newComm) { |
@@ -209,3 +209,4 @@ let Communication = require('./Communication') | ||
*/ | ||
let terms = assigner.cloneObject( comm.terms ) || {} | ||
comm.terms = comm.terms || {} | ||
let terms = assigner.cloneObject( comm.terms ) | ||
terms.sourceComm = comm.shallow() | ||
@@ -212,0 +213,0 @@ |
{ | ||
"name": "harcon", | ||
"version": "9.2.1", | ||
"version": "9.2.3", | ||
"description": "Messaging/Service Bus for the harmonic convergence of node-based enterprise entities.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
647803
4232