@bagelink/sdk 0.0.901 → 0.0.903
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/bin/authClientCode.ts +3 -3
- package/package.json +2 -2
package/bin/authClientCode.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AxiosInstance } from 'axios'
|
|
1
|
+
import type { AxiosInstance, AxiosResponse } from 'axios'
|
|
2
2
|
// @ts-expect-error - required for axios to work
|
|
3
3
|
import { axios } from './api'
|
|
4
4
|
|
|
@@ -39,12 +39,12 @@ export function logout() {
|
|
|
39
39
|
window.location.reload()
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
export async function passwordRecovery(email?: string) {
|
|
42
|
+
export async function passwordRecovery(email?: string): Promise<AxiosResponse> {
|
|
43
43
|
return ax.post(`/auth/password-recovery`, { email })
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
export async function resetPassword(
|
|
47
47
|
newPassword: NewPasswordPayload['new_password']
|
|
48
|
-
) {
|
|
48
|
+
): Promise<AxiosResponse> {
|
|
49
49
|
return ax.post('/auth/reset-password', { new_password: newPassword })
|
|
50
50
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bagelink/sdk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.903",
|
|
5
5
|
"description": "Bagel core sdk packages",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Neveh Allon",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"axios": "^1.7.
|
|
53
|
+
"axios": "^1.7.8"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@apidevtools/swagger-parser": "^10.1.0",
|