@blazedpath/commons 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blz-base/index.js +4 -4
- package/blz-kafka/index.js +1 -1
- package/package.json +1 -1
package/blz-base/index.js
CHANGED
|
@@ -579,7 +579,7 @@ module.exports = {
|
|
|
579
579
|
writer: function (callContext, functionName, extraArgs) {
|
|
580
580
|
let fn
|
|
581
581
|
try {
|
|
582
|
-
fn = require(Path.join(_metadata.appPath,'../sources/',module.exports.ensureDashedFormat(functionName) + '.js'))
|
|
582
|
+
fn = require(Path.join(_metadata.appPath,'../sources/',module.exports.Dual.ensureDashedFormat(functionName) + '.js'))
|
|
583
583
|
}
|
|
584
584
|
catch (err) {
|
|
585
585
|
throw this.error('InvalidFunction', { functionName: functionName });
|
|
@@ -742,7 +742,7 @@ module.exports = {
|
|
|
742
742
|
internalCall: async function (callContext, functionName, args) {
|
|
743
743
|
let fn = null;
|
|
744
744
|
try {
|
|
745
|
-
fn = require(Path.join(_metadata.appPath,'../sources/', module.exports.ensureDashedFormat(functionName) + '.js'))
|
|
745
|
+
fn = require(Path.join(_metadata.appPath,'../sources/', module.exports.Dual.ensureDashedFormat(functionName) + '.js'))
|
|
746
746
|
}
|
|
747
747
|
catch (err) {
|
|
748
748
|
throw this.error('InvalidFunction', { functionName: functionName });
|
|
@@ -755,11 +755,11 @@ module.exports = {
|
|
|
755
755
|
externalCall: async function (callContext, connection, functionName, values) {
|
|
756
756
|
if (connection.type === 'Microservice' || connection.type === 'RestApi' || connection.type === 'ProcessEngine') {
|
|
757
757
|
let restMappings = _metadata['_rest_mappings'];
|
|
758
|
-
return await module.exports.callRest(connection, restMappings[connection.name], functionName, values, null, _configParameters, callContext);
|
|
758
|
+
return await module.exports.Dual.callRest(connection, restMappings[connection.name], functionName, values, null, _configParameters, callContext);
|
|
759
759
|
}
|
|
760
760
|
else if (connection.type === 'SoapApi') {
|
|
761
761
|
let soapMappings = _metadata['_soap_mappings'];
|
|
762
|
-
return await module.exports.callSoap(connection, soapMappings[connection.name], functionName, values, null, _configParameters, callContext);
|
|
762
|
+
return await module.exports.Dual.callSoap(connection, soapMappings[connection.name], functionName, values, null, _configParameters, callContext);
|
|
763
763
|
}
|
|
764
764
|
},
|
|
765
765
|
error: function (code, data, innerError) {
|
package/blz-kafka/index.js
CHANGED
|
@@ -404,7 +404,7 @@ async function startKafkaConsumers(kafkas, config, kafkaConsumers, connections,
|
|
|
404
404
|
}
|
|
405
405
|
if (kafkaErrorOptions.retryTopic && kafkaErrorOptions.retryTopic !== '') {
|
|
406
406
|
// sends message with error to retry topic
|
|
407
|
-
await module.exports.kafkaSend(connection, kafkaErrorOptions.retryTopic, [message]);
|
|
407
|
+
await module.exports.Backend.kafkaSend(connection, kafkaErrorOptions.retryTopic, [message]);
|
|
408
408
|
// marks the message as read on original topic
|
|
409
409
|
await consumer.commitOffsets([{ topic, partition, offset: (Number(message.offset) + 1).toString() }]);
|
|
410
410
|
}
|