bkper-js 1.29.0 → 1.29.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.
package/lib/model/Book.js CHANGED
@@ -430,7 +430,8 @@ export class Book {
430
430
  */
431
431
  batchReplayEvents(events, errorOnly) {
432
432
  return __awaiter(this, void 0, void 0, function* () {
433
- const eventPayloads = events.map(event => event.json());
433
+ const eventIds = events.map(event => event.getId());
434
+ const eventPayloads = eventIds.map(id => ({ id: id }));
434
435
  const eventList = { items: eventPayloads };
435
436
  yield EventService.replayEventsBatch(this, eventList, errorOnly);
436
437
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkper-js",
3
- "version": "1.29.0",
3
+ "version": "1.29.1",
4
4
  "description": "Javascript client for Bkper REST API",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",