Comparing version 9.2.27 to 9.2.28
@@ -48,3 +48,3 @@ let Cerobee = require('clerobee') | ||
this.error = error | ||
if ( response ) | ||
if ( typeof (response) !== 'undefined' && response !== null ) | ||
this.response = response | ||
@@ -51,0 +51,0 @@ |
@@ -91,3 +91,3 @@ let Communication = require('./Communication') | ||
function responseAsArray ( responseComms, attribute ) { | ||
let res = responseComms.map( function (responseComm) { return responseComm[attribute || 'response'] } ).filter( function (resp) { return resp }) | ||
let res = responseComms.map( function (responseComm) { return responseComm[attribute || 'response'] } ).filter( function (resp) { return (typeof (resp) !== 'undefined' && resp !== null) }) | ||
return res.length === 0 ? null : res | ||
@@ -94,0 +94,0 @@ } |
{ | ||
"name": "harcon", | ||
"version": "9.2.27", | ||
"version": "9.2.28", | ||
"description": "Messaging/Service Bus for the harmonic convergence of node-based enterprise entities.", | ||
@@ -27,5 +27,5 @@ "keywords": [ | ||
"cron": "^1.8.2", | ||
"harcon-flow": "^2.7.2", | ||
"harcon-flow": "^2.7.3", | ||
"isa.js": "^2.2.12", | ||
"mkdirp": "^1.0.3", | ||
"mkdirp": "^1.0.4", | ||
"proback.js": "^2.1.10", | ||
@@ -37,3 +37,3 @@ "vindication.js": "^4.20.1" | ||
"pino": "~6", | ||
"pino-pretty": "~3", | ||
"pino-pretty": "~4", | ||
"@nlv8/signun": "^1.3.6" | ||
@@ -40,0 +40,0 @@ }, |
@@ -25,3 +25,6 @@ let Proback = require('proback.js') | ||
return 'ssss' | ||
}, | ||
async falsify () { | ||
return false | ||
} | ||
} |
@@ -109,2 +109,8 @@ const assert = require('assert') | ||
describe('simple messages', function () { | ||
it('Alize falsify', async function () { | ||
let res = await inflicter.request( clerobee.generate(), null, '', 'Alizee.falsify' ) | ||
console.log('!++++++++++>>>>>', res) | ||
expect(res).to.eql( false ) | ||
}) | ||
it('Alize dormir', async function () { | ||
@@ -111,0 +117,0 @@ let res = await inflicter.request( clerobee.generate(), null, '', 'Alizee.dormir' ) |
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
198903
3573
Updatedharcon-flow@^2.7.3
Updatedmkdirp@^1.0.4