@novasamatech/statement-store 0.5.0-15 → 0.5.0-17

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.
@@ -103,6 +103,12 @@ export function createSession({ localAccount, remoteAccount, statementStore, enc
103
103
  if (messages.length > 0) {
104
104
  callback(messages);
105
105
  }
106
+ })
107
+ // TODO rework
108
+ .andTee(messages => {
109
+ const requests = messages.filter(m => m.type === 'request').map(m => m.requestId);
110
+ const responses = requests.map(requestId => session.submitResponseMessage(requestId, 'success'));
111
+ return ResultAsync.combine(responses);
106
112
  });
107
113
  });
108
114
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@novasamatech/statement-store",
3
3
  "type": "module",
4
- "version": "0.5.0-15",
4
+ "version": "0.5.0-17",
5
5
  "description": "Statement store integration",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {