@trayio/falafel
Advanced tools
Comparing version 1.0.27 to 1.0.28
@@ -8,3 +8,3 @@ var camelCase = require('mout/string/camelCase'); | ||
// console.log(message); | ||
console.log('Adding connector message:', message.name); | ||
@@ -34,3 +34,3 @@ | ||
connector.on( | ||
message.name, | ||
message.name, | ||
connector.hasRequiredParams(requiredKeys, function (data, done, error) { | ||
@@ -42,3 +42,3 @@ | ||
// TODO - add some generic validations. E.g. can't | ||
// TODO - add some generic validations. E.g. can't | ||
// resolve with an array. | ||
@@ -49,11 +49,11 @@ .then(function (result) { | ||
// Pass data directly back to the | ||
// Pass data directly back to the | ||
.done(done, function (err) { | ||
// TODO - bugsnag in some form | ||
console.log(err.stack); | ||
console.log(err.stack); | ||
// Also add the data input for context | ||
err.input = data; | ||
error(err.code || 'api_error', err.message, err); | ||
error(err.code || 'api_error', err.message || 'API error', err); | ||
}); | ||
@@ -63,2 +63,2 @@ | ||
}; | ||
}; |
{ | ||
"name": "@trayio/falafel", | ||
"version": "1.0.27", | ||
"version": "1.0.28", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
56628
64
1713