@mojaloop/sdk-scheme-adapter 24.10.9-snapshot.0 → 24.10.9-snapshot.1

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.
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "k6-tests",
3
+ "version": "1.0.0",
4
+ "description": "```bash docker run --rm -i grafana/k6 run --vus 1 --duration 10s - <./src/test.js ```",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "author": "Eugen Klymniuk",
10
+ "license": "MIT",
11
+ "dependencies": {
12
+ "k6": "0.0.0"
13
+ },
14
+ "devDependencies": {
15
+ "@types/k6": "1.1.1"
16
+ }
17
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/sdk-scheme-adapter-api-svc",
3
- "version": "21.0.0-snapshot.52",
3
+ "version": "21.0.0-snapshot.53",
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",
@@ -996,7 +996,11 @@ class InboundTransfersModel {
996
996
  }
997
997
 
998
998
  // tag the final notification body on to the state
999
- this.data.finalNotification = body;
999
+ // According to the backend api it expects extensionList to be an array (see CSI-1680)
1000
+ this.data.finalNotification = {
1001
+ ...body,
1002
+ ...(body.extensionList && { extensionList: body.extensionList.extension })
1003
+ };
1000
1004
 
1001
1005
  if(body.transferState === FSPIOPTransferStateEnum.COMMITTED) {
1002
1006
  // if the transfer was successful in the switch, set the overall transfer state to COMPLETED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/sdk-scheme-adapter-outbound-command-event-handler",
3
- "version": "0.3.0-snapshot.48",
3
+ "version": "0.3.0-snapshot.49",
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.48",
3
+ "version": "0.3.0-snapshot.49",
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/sdk-scheme-adapter-private-shared-lib",
3
- "version": "0.4.0-snapshot.48",
3
+ "version": "0.4.0-snapshot.49",
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.10.9-snapshot.0",
3
+ "version": "24.10.9-snapshot.1",
4
4
  "description": "mojaloop sdk-scheme-adapter",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/mojaloop/sdk-scheme-adapter",
@@ -1,43 +0,0 @@
1
- import http from 'k6/http';
2
- import { sleep } from 'k6';
3
- // import { Options } from 'k6/options';
4
-
5
- export const options = {
6
- vus: 3,
7
- iterations: 10,
8
- duration: '3s'
9
- };
10
-
11
- // // The default exported function is gonna be picked up by k6 as the entry point for the test script. It will be executed repeatedly in "iterations" for the whole duration of the test.
12
- // export default function () {
13
- // // Make a GET request to the target URL
14
- // http.get('https://quickpizza.grafana.com');
15
- //
16
- // // Sleep for 1 second to simulate real-world usage
17
- // sleep(1);
18
- // }
19
-
20
-
21
- // const url = 'http://localhost:4000/parties/MSISDN/1233641534556178';
22
- const url = 'https://quickpizza.grafana.com/api/put';
23
-
24
- export default function () {
25
- // const headers = {
26
- // 'Content-Type': 'application/json',
27
- // Accept: 'application/vnd.interoperability.iso20022.parties+json;version=2.0'
28
- // };
29
- // const data = {};
30
- const headers = { 'Content-Type': 'application/json' };
31
- const data = { name: 'Bert' };
32
-
33
- const res = http.put(url, JSON.stringify(data), { headers });
34
-
35
- let body = {};
36
- try {
37
- body = JSON.parse(res.body)
38
- } catch {}
39
-
40
- console.log(body);
41
-
42
- sleep(0.5)
43
- }
File without changes