@mojaloop/sdk-scheme-adapter 13.0.2 → 13.0.3

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,11 @@
1
1
  # Changelog: [mojaloop/thirdparty-api-svc](https://github.com/mojaloop/thirdparty-api-svc)
2
+ ### [13.0.3](https://github.com/mojaloop/sdk-scheme-adapter/compare/v13.0.2...v13.0.3) (2022-05-12)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * correct party outbound response ([#317](https://github.com/mojaloop/sdk-scheme-adapter/issues/317)) ([752e8b4](https://github.com/mojaloop/sdk-scheme-adapter/commit/752e8b4d315a6e9c3b8ad4ff1b65761c41e3d721))
8
+
2
9
  ### [13.0.2](https://github.com/mojaloop/sdk-scheme-adapter/compare/v13.0.1...v13.0.2) (2022-05-12)
3
10
 
4
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/sdk-scheme-adapter",
3
- "version": "13.0.2",
3
+ "version": "13.0.3",
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",
@@ -66,7 +66,10 @@ function argsValidation({ type, id, subId }) {
66
66
  */
67
67
  function reformatMessage(message) {
68
68
  return {
69
- party: { ...message }
69
+ party: {
70
+ body: { ...message.body.party },
71
+ headers: { ...message.headers }
72
+ }
70
73
  };
71
74
  }
72
75
 
@@ -178,7 +178,10 @@ describe('PartiesModel', () => {
178
178
 
179
179
  // check that this.context.data is updated
180
180
  expect(model.context.data).toEqual({
181
- party: { ...message },
181
+ party: {
182
+ body: { ...message.body.party },
183
+ headers: { ...message.headers }
184
+ },
182
185
  // current state will be updated by onAfterTransition which isn't called
183
186
  // when manual invocation of transition handler happens
184
187
  currentState: 'start'