@go-avro/avro-js 0.0.2-beta.91 → 0.0.2-beta.92

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.
@@ -120,7 +120,7 @@ export class AvroQueryClient {
120
120
  const queryClient = useQueryClient();
121
121
  return useMutation({
122
122
  mutationFn: async ({ username, email, code, newPassword, cancelToken }) => {
123
- await this.post('/update-password', JSON.stringify({ username, email, code, password: newPassword }), cancelToken, { 'Content-Type': 'application/json' });
123
+ await this.post(`/user/${username ?? email}/password`, JSON.stringify({ code, password: newPassword }), cancelToken, { 'Content-Type': 'application/json' });
124
124
  },
125
125
  onSettled: () => {
126
126
  queryClient.invalidateQueries();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-avro/avro-js",
3
- "version": "0.0.2-beta.91",
3
+ "version": "0.0.2-beta.92",
4
4
  "description": "JS client for Avro backend integration.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",