@mojaloop/central-services-shared 18.22.4-snapshot.0 → 18.22.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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [18.22.4](https://github.com/mojaloop/central-services-shared/compare/v18.22.3...v18.22.4) (2025-03-13)
6
+
7
+
8
+ ### Chore
9
+
10
+ * **csi-1233:** improved participantEndpointCache logging ([#440](https://github.com/mojaloop/central-services-shared/issues/440)) ([94eb898](https://github.com/mojaloop/central-services-shared/commit/94eb898a0d3cb9152390162d5fefca24a6c6082e))
11
+
5
12
  ### [18.22.3](https://github.com/mojaloop/central-services-shared/compare/v18.22.2...v18.22.3) (2025-03-12)
6
13
 
7
14
 
package/audit-ci.jsonc CHANGED
@@ -5,6 +5,6 @@
5
5
  "moderate": true,
6
6
  "allowlist": [ // NOTE: Please add as much information as possible to any items added to the allowList
7
7
  // e.g. Currently no fixes available for the following
8
- "GHSA-jr5f-v2jv-69x6" // https://github.com/advisories/GHSA-jr5f-v2jv-69x6
8
+ "GHSA-968p-4wvh-cqc8" // https://github.com/advisories/GHSA-968p-4wvh-cqc8
9
9
  ]
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/central-services-shared",
3
- "version": "18.22.4-snapshot.0",
3
+ "version": "18.22.4",
4
4
  "description": "Shared code for mojaloop central services",
5
5
  "license": "Apache-2.0",
6
6
  "author": "ModusBox",
@@ -85,7 +85,7 @@
85
85
  "yaml": "2.7.0"
86
86
  },
87
87
  "devDependencies": {
88
- "@mojaloop/sdk-standard-components": "19.10.1",
88
+ "@mojaloop/sdk-standard-components": "19.10.3",
89
89
  "@types/hapi__joi": "17.1.15",
90
90
  "audit-ci": "7.1.0",
91
91
  "base64url": "3.0.1",
@@ -96,12 +96,12 @@ const fetchEndpoints = async (fsp) => {
96
96
  endpointMap[item.type] = item.value
97
97
  })
98
98
  }
99
- log.debug('returning the endpoints:', { endpointMap })
99
+ log.verbose('fetchEndpoints is done', { endpointMap })
100
100
  histTimer({ success: true })
101
101
 
102
102
  return endpointMap
103
103
  } catch (err) {
104
- log.error(`error in fetchEndpoints: ${err?.message}`, err)
104
+ log.error('error in fetchEndpoints: ', err)
105
105
  }
106
106
  }
107
107
 
@@ -129,7 +129,7 @@ exports.initializeCache = async (policyOptions, config) => {
129
129
  logger.verbose('initializeCache is done successfully', { hubName, hubNameRegex })
130
130
  return true
131
131
  } catch (err) {
132
- logger.error(`error in initializeCache: ${err?.message}`, err)
132
+ logger.error('error in initializeCache: ', err)
133
133
  throw ErrorHandler.Factory.reformatFSPIOPError(err)
134
134
  }
135
135
  }
@@ -199,7 +199,7 @@ exports.getEndpoint = async (switchUrl, fsp, endpointType, options = {}, renderO
199
199
  return result(Mustache.render(endpoint, options))
200
200
  } catch (err) {
201
201
  histTimer({ success: false, hit: false })
202
- log.error(`error in getEndpoint: ${err?.message}`, err)
202
+ log.error('error in getEndpoint: ', err)
203
203
  throw ErrorHandler.Factory.reformatFSPIOPError(err)
204
204
  }
205
205
  }
@@ -233,7 +233,7 @@ exports.getEndpointAndRender = async (switchUrl, fsp, endpointType, path = '', o
233
233
  return endpoint
234
234
  } catch (err) {
235
235
  histTimer({ success: false })
236
- log.error(`error in getEndpointAndRender: ${err?.message}`, err)
236
+ log.error('error in getEndpointAndRender: ', err)
237
237
  throw ErrorHandler.Factory.reformatFSPIOPError(err)
238
238
  }
239
239
  }
@@ -85,14 +85,14 @@ const fetchParticipant = async (fsp) => {
85
85
  hubNameRegex
86
86
  })
87
87
  const participant = response.data
88
- log.verbose('returning the participant', { participant })
88
+ log.verbose('fetchParticipant is done', { participant })
89
89
  histTimer({ success: true })
90
90
 
91
91
  return participant
92
92
  } catch (err) {
93
93
  histTimer({ success: false })
94
94
  // We're logging this as a "warning" rather than "error" because the participant might be a proxied participant
95
- log.warn(`error in fetchParticipants: ${err?.message}'`, err)
95
+ log.warn('error in fetchParticipants: ', err)
96
96
  }
97
97
  }
98
98
 
@@ -168,7 +168,7 @@ exports.getParticipant = async (switchUrl, fsp) => {
168
168
  return participant
169
169
  } catch (err) {
170
170
  histTimer({ success: false, hit: false })
171
- log.error(`error in getParticipant: ${err?.message}`, err)
171
+ log.error('error in getParticipant: ', err)
172
172
  throw ErrorHandler.Factory.reformatFSPIOPError(err)
173
173
  }
174
174
  }