@mojaloop/sdk-scheme-adapter 24.0.7-snapshot.7 → 24.0.8

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.
Files changed (24) hide show
  1. package/.circleci/config.yml +1 -1
  2. package/.yarn/cache/@babel-compat-data-npm-7.26.8-fb802c4940-1bb04c6860.zip +0 -0
  3. package/.yarn/cache/@babel-core-npm-7.26.8-54ef19fd50-9d83fb7ad3.zip +0 -0
  4. package/.yarn/cache/@babel-generator-npm-7.26.8-dfc15b983a-15ef65699a.zip +0 -0
  5. package/.yarn/cache/@babel-parser-npm-7.26.8-5116d8ce65-2ede62d245.zip +0 -0
  6. package/.yarn/cache/{@babel-plugin-transform-async-generator-functions-npm-7.25.9-1ff81d4ef7-41e02c18c2.zip → @babel-plugin-transform-async-generator-functions-npm-7.26.8-f03543b358-10424a1bbf.zip} +0 -0
  7. package/.yarn/cache/{@babel-plugin-transform-template-literals-npm-7.25.9-181964c580-92eb1d6e2d.zip → @babel-plugin-transform-template-literals-npm-7.26.8-70e8885568-65874c8844.zip} +0 -0
  8. package/.yarn/cache/{@babel-preset-env-npm-7.26.7-6a4ab3e02b-980bd2980c.zip → @babel-preset-env-npm-7.26.8-aa759ac29f-409066e5ab.zip} +0 -0
  9. package/.yarn/cache/@babel-template-npm-7.26.8-9bdae70850-dfa79b33d4.zip +0 -0
  10. package/.yarn/cache/@babel-traverse-npm-7.26.8-616e5e7b7f-f8b2f4d994.zip +0 -0
  11. package/.yarn/cache/@babel-types-npm-7.26.8-a2ea1f87c1-8f0f3bac37.zip +0 -0
  12. package/.yarn/cache/@types-gensync-npm-1.0.4-5007ea58f7-99c3aa0d3f.zip +0 -0
  13. package/.yarn/cache/babel-plugin-polyfill-corejs3-npm-0.11.1-89f3309381-ee39440475.zip +0 -0
  14. package/.yarn/install-state.gz +0 -0
  15. package/CHANGELOG.md +14 -0
  16. package/modules/api-svc/package.json +3 -3
  17. package/modules/api-svc/src/index.js +17 -1
  18. package/modules/api-svc/src/lib/model/OutboundTransfersModel.js +0 -6
  19. package/modules/outbound-command-event-handler/package.json +1 -1
  20. package/modules/outbound-domain-event-handler/package.json +1 -1
  21. package/modules/private-shared-lib/package-lock.json +2 -2
  22. package/modules/private-shared-lib/package.json +1 -1
  23. package/package.json +1 -1
  24. package/.yarn/cache/babel-plugin-polyfill-corejs3-npm-0.10.6-066bf0a146-f762f29f7a.zip +0 -0
@@ -1,7 +1,7 @@
1
1
  version: 2.1
2
2
  setup: true
3
3
  orbs:
4
- build: mojaloop/build@1.0.53
4
+ build: mojaloop/build@1.0.55
5
5
  workflows:
6
6
  setup:
7
7
  jobs:
Binary file
package/CHANGELOG.md CHANGED
@@ -1,4 +1,18 @@
1
1
  # Changelog: [mojaloop/sdk-scheme-adapter](https://github.com/mojaloop/sdk-scheme-adapter)
2
+ ### [24.0.8](https://github.com/mojaloop/sdk-scheme-adapter/compare/v24.0.7...v24.0.8) (2025-02-12)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * **csi-1170:** fix fxQuote with RECEIVE amountType ([#542](https://github.com/mojaloop/sdk-scheme-adapter/issues/542)) ([b9b1c8e](https://github.com/mojaloop/sdk-scheme-adapter/commit/b9b1c8e8c4d1decbd624cbd20534f069b4f25952))
8
+
9
+ ### [24.0.7](https://github.com/mojaloop/sdk-scheme-adapter/compare/v24.0.6...v24.0.7) (2025-02-10)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * **csi-1191:** log server restarts more accurately ([#543](https://github.com/mojaloop/sdk-scheme-adapter/issues/543)) ([c325ed0](https://github.com/mojaloop/sdk-scheme-adapter/commit/c325ed0d8a0902831f3f1b2dc5868d76025faa33))
15
+
2
16
  ### [24.0.6](https://github.com/mojaloop/sdk-scheme-adapter/compare/v24.0.5...v24.0.6) (2025-02-04)
3
17
 
4
18
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/sdk-scheme-adapter-api-svc",
3
- "version": "21.0.0-snapshot.17",
3
+ "version": "21.0.0-snapshot.19",
4
4
  "description": "An adapter for connecting to Mojaloop API enabled switches.",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -100,8 +100,8 @@
100
100
  "ws": "^8.18.0"
101
101
  },
102
102
  "devDependencies": {
103
- "@babel/core": "^7.26.7",
104
- "@babel/preset-env": "^7.26.7",
103
+ "@babel/core": "^7.26.8",
104
+ "@babel/preset-env": "^7.26.8",
105
105
  "@redocly/openapi-cli": "^1.0.0-beta.95",
106
106
  "@types/jest": "^29.5.14",
107
107
  "axios-mock-adapter": "^2.1.0",
@@ -202,10 +202,13 @@ class Server extends EventEmitter {
202
202
  }
203
203
 
204
204
  async restart(newConf) {
205
+ const restartActionsTaken = {};
206
+
205
207
  this.logger.isDebugEnabled && this.logger.debug('Server is restarting...');
206
208
  const updateLogger = !_.isEqual(newConf.isJsonOutput, this.conf.isJsonOutput);
207
209
  if (updateLogger) {
208
210
  this.logger = createLogger(newConf);
211
+ restartActionsTaken.updateLogger = true;
209
212
  }
210
213
 
211
214
  let oldCache;
@@ -216,6 +219,7 @@ class Server extends EventEmitter {
216
219
  await this.cache.disconnect();
217
220
  this.cache = createCache(newConf, this.logger);
218
221
  await this.cache.connect();
222
+ restartActionsTaken.updateCache = true;
219
223
  }
220
224
 
221
225
  const updateWSO2 = !_.isEqual(this.conf.wso2, newConf.wso2)
@@ -227,6 +231,7 @@ class Server extends EventEmitter {
227
231
  this.emit('error', 'WSO2 auth error in InboundApi', msg);
228
232
  });
229
233
  await this.wso2.auth.start();
234
+ restartActionsTaken.updateWSO2 = true;
230
235
  }
231
236
 
232
237
  this.logger.isDebugEnabled && this.logger.push({ oldConf: this.conf.inbound, newConf: newConf.inbound }).debug('Inbound server configuration');
@@ -246,6 +251,7 @@ class Server extends EventEmitter {
246
251
  this.emit('error', errMessage);
247
252
  });
248
253
  await this.inboundServer.start();
254
+ restartActionsTaken.updateInboundServer = true;
249
255
  }
250
256
 
251
257
  this.logger.isDebugEnabled && this.logger.push({ oldConf: this.conf.outbound, newConf: newConf.outbound }).debug('Outbound server configuration');
@@ -265,6 +271,7 @@ class Server extends EventEmitter {
265
271
  this.emit('error', errMessage);
266
272
  });
267
273
  await this.outboundServer.start();
274
+ restartActionsTaken.updateOutboundServer = true;
268
275
  }
269
276
 
270
277
  const updateFspiopEventHandler = !_.isEqual(this.conf.outbound, newConf.outbound)
@@ -278,6 +285,7 @@ class Server extends EventEmitter {
278
285
  wso2: this.wso2,
279
286
  });
280
287
  await this.fspiopEventHandler.start();
288
+ restartActionsTaken.updateFspiopEventHandler = true;
281
289
  }
282
290
 
283
291
  const updateControlClient = !_.isEqual(this.conf.control, newConf.control);
@@ -298,6 +306,7 @@ class Server extends EventEmitter {
298
306
  control: { stopped: Date.now() }
299
307
  }));
300
308
  }, RESTART_INTERVAL_MS));
309
+ restartActionsTaken.updateControlClient = true;
301
310
  }
302
311
  }
303
312
 
@@ -312,6 +321,7 @@ class Server extends EventEmitter {
312
321
  logger: this.logger.push(LOG_ID.OAUTHTEST),
313
322
  });
314
323
  await this.oauthTestServer.start();
324
+ restartActionsTaken.updateOAuthTestServer = true;
315
325
  }
316
326
  }
317
327
 
@@ -325,6 +335,7 @@ class Server extends EventEmitter {
325
335
  cache: this.cache,
326
336
  });
327
337
  await this.testServer.start();
338
+ restartActionsTaken.updateTestServer = true;
328
339
  }
329
340
  }
330
341
 
@@ -333,7 +344,12 @@ class Server extends EventEmitter {
333
344
  await Promise.all([
334
345
  oldCache?.disconnect(),
335
346
  ]);
336
- this.logger.isDebugEnabled && this.logger.debug('Server is restarted');
347
+
348
+ if (Object.keys(restartActionsTaken).length > 0) {
349
+ this.logger.isDebugEnabled && this.logger.debug('Server is restarted', { restartActionsTaken });
350
+ } else {
351
+ this.logger.isDebugEnabled && this.logger.debug('Server not restarted, no config changes detected');
352
+ }
337
353
  }
338
354
 
339
355
  stop() {
@@ -400,12 +400,6 @@ class OutboundTransfersModel {
400
400
 
401
401
  this.data.needFx = this._isFxNeeded(this._supportedCurrencies, payee.supportedCurrencies, this.data.currency, this.data.amountType);
402
402
  this.data.supportedCurrencies = payee.supportedCurrencies;
403
-
404
- // if (this.data.amountType == AmountTypes.RECEIVE) {
405
- // if ( !this._supportedCurrencies.includes(this.data.currency) ) {
406
- // this.data.supportedCurrencies = this._supportedCurrencies;
407
- // }
408
- // }
409
403
  }
410
404
 
411
405
  this._logger.isVerboseEnabled && this._logger.push({
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/sdk-scheme-adapter-outbound-command-event-handler",
3
- "version": "0.3.0-snapshot.16",
3
+ "version": "0.3.0-snapshot.18",
4
4
  "description": "Mojaloop sdk scheme adapter command event handler",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/mojaloop/sdk-scheme-adapter/",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/sdk-scheme-adapter-outbound-domain-event-handler",
3
- "version": "0.3.0-snapshot.16",
3
+ "version": "0.3.0-snapshot.18",
4
4
  "description": "mojaloop sdk scheme adapter outbound domain event handler",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/mojaloop/sdk-scheme-adapter/",
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@mojaloop/sdk-scheme-adapter-private-shared-lib",
3
- "version": "0.4.0-snapshot.15",
3
+ "version": "0.4.0-snapshot.17",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@mojaloop/sdk-scheme-adapter-private-shared-lib",
9
- "version": "0.4.0-snapshot.15",
9
+ "version": "0.4.0-snapshot.17",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "@mojaloop/api-snippets": "17.7.9",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/sdk-scheme-adapter-private-shared-lib",
3
- "version": "0.4.0-snapshot.16",
3
+ "version": "0.4.0-snapshot.18",
4
4
  "description": "SDK Scheme Adapter private shared library.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/mojaloop/accounts-and-balances-bc/tree/main/modules/private-types",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/sdk-scheme-adapter",
3
- "version": "24.0.7-snapshot.7",
3
+ "version": "24.0.8",
4
4
  "description": "mojaloop sdk-scheme-adapter",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/mojaloop/sdk-scheme-adapter",