@xata.io/client 0.23.0 → 0.23.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/dist/index.mjs CHANGED
@@ -459,7 +459,7 @@ function defaultOnOpen(response) {
459
459
  }
460
460
  }
461
461
 
462
- const VERSION = "0.23.0";
462
+ const VERSION = "0.23.1";
463
463
 
464
464
  class ErrorWithCause extends Error {
465
465
  constructor(message, options) {
@@ -3024,7 +3024,7 @@ class RestRepository extends Query {
3024
3024
  url: "/db/{dbBranchName}/tables/{tableName}/ask",
3025
3025
  method: "POST",
3026
3026
  onMessage: (message) => {
3027
- options.onMessage?.({ answer: message.text });
3027
+ options.onMessage?.({ answer: message.text, records: message.records });
3028
3028
  },
3029
3029
  ...params
3030
3030
  });