@mojaloop/sdk-scheme-adapter 17.0.2-snapshot.8 → 18.0.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/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
# Changelog: [mojaloop/thirdparty-api-svc](https://github.com/mojaloop/thirdparty-api-svc)
|
|
2
|
+
## [18.0.0](https://github.com/mojaloop/sdk-scheme-adapter/compare/v17.0.1...v18.0.0) (2022-07-11)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### ⚠ BREAKING CHANGES
|
|
6
|
+
|
|
7
|
+
* **mojaloop/#2811:** docker image now uses `/opt/app` instead of the root folder which will impact config mounts, and the secrets folder is no longer included in the docker image which aligns with best practices. Both these changes should NOT be a breaking change but I have marked them as such to make this change more obvious.
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **mojaloop/#2811:** sdk-scheme-adapter sending incorrect transferState on a PUT transfers Callback ([#331](https://github.com/mojaloop/sdk-scheme-adapter/issues/331)) ([f7e450c](https://github.com/mojaloop/sdk-scheme-adapter/commit/f7e450cc2568f70f6c9abbb39d9c2186787c31b7)), closes [mojaloop/#2811](https://github.com/mojaloop/sdk-scheme-adapter/issues/2811) [mojaloop/#2811](https://github.com/mojaloop/sdk-scheme-adapter/issues/2811) [mojaloop/#2816](https://github.com/mojaloop/sdk-scheme-adapter/issues/2816)
|
|
12
|
+
* updated dependencies ([6500476](https://github.com/mojaloop/sdk-scheme-adapter/commit/650047699ce7679d21a08daa1fb3cf2956b0e514))
|
|
13
|
+
|
|
2
14
|
### [17.0.1](https://github.com/mojaloop/sdk-scheme-adapter/compare/v17.0.0...v17.0.1) (2022-07-04)
|
|
3
15
|
|
|
4
16
|
|
package/audit-resolve.json
CHANGED
|
@@ -54,6 +54,11 @@
|
|
|
54
54
|
"decision": "ignore",
|
|
55
55
|
"madeAt": 1657188203603,
|
|
56
56
|
"expiresAt": 1659780190646
|
|
57
|
+
},
|
|
58
|
+
"1080969|@mojaloop/central-services-shared>@mojaloop/event-sdk>grpc>protobufjs>moment": {
|
|
59
|
+
"decision": "ignore",
|
|
60
|
+
"madeAt": 1657217280998,
|
|
61
|
+
"expiresAt": 1659809259103
|
|
57
62
|
}
|
|
58
63
|
},
|
|
59
64
|
"rules": {},
|
package/docker-compose.yml
CHANGED
|
@@ -23,7 +23,6 @@ services:
|
|
|
23
23
|
depends_on:
|
|
24
24
|
- redis
|
|
25
25
|
command: sh -c "/tmp/wait4/wait4.js sdk-scheme-adapter && npm run start"
|
|
26
|
-
# command: sh -c "/tmp/wait4/wait4.js sdk-scheme-adapter && sleep 999999"
|
|
27
26
|
volumes:
|
|
28
27
|
- ./docker/wait4:/tmp/wait4
|
|
29
28
|
- ./secrets:/opt/app/secrets
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mojaloop/sdk-scheme-adapter",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "18.0.0",
|
|
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",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"jest-junit": "^14.0.0",
|
|
99
99
|
"nock": "^13.2.8",
|
|
100
100
|
"npm-audit-resolver": "^3.0.0-7",
|
|
101
|
-
"npm-check-updates": "^15.2.
|
|
101
|
+
"npm-check-updates": "^15.2.6",
|
|
102
102
|
"openapi-response-validator": "^12.0.0",
|
|
103
103
|
"openapi-typescript": "^5.4.1",
|
|
104
104
|
"redis-mock": "^0.56.3",
|
|
@@ -651,7 +651,7 @@ class InboundTransfersModel {
|
|
|
651
651
|
if (individualTransferErrors.length) {
|
|
652
652
|
// TODO: Verify and align with actual schema for bulk transfers error endpoint
|
|
653
653
|
const mojaloopErrorResponse = {
|
|
654
|
-
bulkTransferState:
|
|
654
|
+
bulkTransferState: FSPIOPBulkTransferStateEnum.REJECTED,
|
|
655
655
|
// eslint-disable-next-line no-unused-vars
|
|
656
656
|
individualTransferResults: individualTransferErrors.map(({ transferId, transferError }) => ({
|
|
657
657
|
transferId,
|
|
@@ -681,7 +681,7 @@ class InboundTransfersModel {
|
|
|
681
681
|
// create a mojaloop transfer fulfil response
|
|
682
682
|
const mojaloopResponse = {
|
|
683
683
|
completedTimestamp: new Date(),
|
|
684
|
-
bulkTransferState: FSPIOPBulkTransferStateEnum.
|
|
684
|
+
bulkTransferState: FSPIOPBulkTransferStateEnum.COMPLETED,
|
|
685
685
|
};
|
|
686
686
|
|
|
687
687
|
if (response.individualTransferResults && response.individualTransferResults.length) {
|
|
@@ -26,8 +26,8 @@ JWS_SIGN=false
|
|
|
26
26
|
JWS_SIGN_PUT_PARTIES=false
|
|
27
27
|
|
|
28
28
|
# Path to JWS signing key (private key of THIS DFSP)
|
|
29
|
-
JWS_SIGNING_KEY_PATH
|
|
30
|
-
JWS_VERIFICATION_KEYS_DIRECTORY
|
|
29
|
+
JWS_SIGNING_KEY_PATH=secrets/jwsSigningKey.key
|
|
30
|
+
JWS_VERIFICATION_KEYS_DIRECTORY=secrets/jwsVerificationKeys
|
|
31
31
|
|
|
32
32
|
# Location of certs and key required for TLS
|
|
33
33
|
# IN_CA_CERT_PATH=./secrets/cacert.pem
|