@mojaloop/central-services-shared 18.1.1 → 18.1.2-snapshot.0
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/package.json +3 -3
- package/src/util/kafka/index.js +10 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mojaloop/central-services-shared",
|
|
3
|
-
"version": "18.1.
|
|
3
|
+
"version": "18.1.2-snapshot.0",
|
|
4
4
|
"description": "Shared code for mojaloop central services",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "ModusBox",
|
|
@@ -76,13 +76,13 @@
|
|
|
76
76
|
"audit-ci": "^6.6.1",
|
|
77
77
|
"base64url": "3.0.1",
|
|
78
78
|
"chance": "1.1.11",
|
|
79
|
-
"npm-check-updates": "16.
|
|
79
|
+
"npm-check-updates": "16.14.2",
|
|
80
80
|
"nyc": "15.1.0",
|
|
81
81
|
"pre-commit": "1.2.2",
|
|
82
82
|
"proxyquire": "2.1.3",
|
|
83
83
|
"replace": "^1.2.2",
|
|
84
84
|
"rewire": "7.0.0",
|
|
85
|
-
"sinon": "
|
|
85
|
+
"sinon": "16.0.0",
|
|
86
86
|
"standard": "17.1.0",
|
|
87
87
|
"standard-version": "9.5.0",
|
|
88
88
|
"tap-spec": "^5.0.0",
|
package/src/util/kafka/index.js
CHANGED
|
@@ -159,8 +159,9 @@ const getKafkaConfig = (kafkaConfig, flow, functionality, action) => {
|
|
|
159
159
|
* @param {string} participantName - The participant name
|
|
160
160
|
* @param {string} functionality - the functionality flow. Example: 'transfer' ie: note the case of text
|
|
161
161
|
* @param {string} action - the action that applies to the flow. Example: 'prepare' ie: note the case of text
|
|
162
|
-
* @param {
|
|
163
|
-
* @param {
|
|
162
|
+
* @param {string} [key] - optional key that allows partitioning it occur
|
|
163
|
+
* @param {number} [partition] - optional partition to produce to
|
|
164
|
+
* @param {*} [opaqueKey] - optional opaque token, which gets passed along to your delivery reports
|
|
164
165
|
*
|
|
165
166
|
* @returns {object} - Returns newly created participant topicConfig
|
|
166
167
|
*/
|
|
@@ -179,10 +180,10 @@ const createParticipantTopicConf = (template, participantName, functionality, ac
|
|
|
179
180
|
* @param {string} template - The template for that needs to be populated
|
|
180
181
|
* @param {string} functionality - the functionality flow. Example: 'transfer' ie: note the case of text
|
|
181
182
|
* @param {string} action - the action that applies to the flow. Example: 'prepare' ie: note the case of text
|
|
182
|
-
* @param {string} key - optional key that allows partitioning it occur
|
|
183
|
-
* @param {number} partition - optional partition to produce to
|
|
184
|
-
* @param {*} opaqueKey - optional opaque token, which gets passed along to your delivery reports
|
|
185
|
-
* @param {string} topicNameOverride - optional topic name override that skips topic name rendering
|
|
183
|
+
* @param {string} [key] - optional key that allows partitioning it occur
|
|
184
|
+
* @param {number} [partition] - optional partition to produce to
|
|
185
|
+
* @param {*} [opaqueKey] - optional opaque token, which gets passed along to your delivery reports
|
|
186
|
+
* @param {string} [topicNameOverride] - optional topic name override that skips topic name rendering
|
|
186
187
|
*
|
|
187
188
|
* @returns {object} - Returns newly created general topicConfig
|
|
188
189
|
*/
|
|
@@ -222,9 +223,9 @@ const getFunctionalityAction = (functionality, action) => {
|
|
|
222
223
|
* @param {string} action - the action that applies to the flow. Example: 'prepare' ie: note the case of text
|
|
223
224
|
* @param {object} message - a list of messages to consume for the relevant topic
|
|
224
225
|
* @param {object} state - state of the message being produced
|
|
225
|
-
* @param {string} key - optional key that allows partitioning it occur
|
|
226
|
-
* @param {object} span - the span for event logging
|
|
227
|
-
* @param {string} topicNameOverride - optional topic name override that skips topic name rendering
|
|
226
|
+
* @param {string} [key] - optional key that allows partitioning it occur
|
|
227
|
+
* @param {object} [span] - the span for event logging
|
|
228
|
+
* @param {string} [topicNameOverride] - optional topic name override that skips topic name rendering
|
|
228
229
|
*
|
|
229
230
|
* @returns {object} - Returns a boolean: true if successful, or throws and error if failed
|
|
230
231
|
*/
|