ml-testing-toolkit 18.17.0-snapshot.2 → 18.17.0-snapshot.4
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
CHANGED
|
@@ -141,6 +141,7 @@ const handleTransferIlp = (context, response) => {
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
+
customLogger.logMessage('debug', 'Generated callback body', { additionalData: { context, response }, request: context.request })
|
|
144
145
|
if (context.request.method === 'get' && response.method === 'put' && pathMatch.test(response.path)) {
|
|
145
146
|
const transferId = response.path.match(pathMatch)[1]
|
|
146
147
|
const storedTransfer = context.storedTransfers?.[transferId]
|
|
@@ -321,6 +321,7 @@ const generateAsyncCallback = async (item, context, req) => {
|
|
|
321
321
|
// Store transfers early - right after validation
|
|
322
322
|
const transferPathMatch = /\/transfers\/([^/]+)$/
|
|
323
323
|
const fxTransferPathMatch = /\/fxTransfers\/([^/]+)$/
|
|
324
|
+
customLogger.logMessage('debug', 'Processing transfer request', { additionalData: { method: req.method, path: req.path }, request: req })
|
|
324
325
|
if (req.method === 'post' && (transferPathMatch.test(req.path) || fxTransferPathMatch.test(req.path))) {
|
|
325
326
|
if (!context.storedTransfers) {
|
|
326
327
|
context.storedTransfers = {}
|
|
@@ -443,7 +444,7 @@ const generateAsyncCallback = async (item, context, req) => {
|
|
|
443
444
|
return
|
|
444
445
|
}
|
|
445
446
|
}
|
|
446
|
-
|
|
447
|
+
customLogger.logMessage('debug', 'Generated callback body', { additionalData: { body: generatedCallback.body }, request: req })
|
|
447
448
|
if (generatedCallback.body) {
|
|
448
449
|
// Append ILP properties to callback
|
|
449
450
|
const fulfilment = IlpModel.handleQuoteIlp(context, generatedCallback)
|