flamerest 1.0.60 → 1.0.62
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/REST.d.ts +3 -1
- package/REST.js +2 -2
- package/package.json +1 -1
package/REST.d.ts
CHANGED
|
@@ -108,10 +108,12 @@ export function auth(username?: string, password?: string): Promise<Authorized>;
|
|
|
108
108
|
|
|
109
109
|
/**
|
|
110
110
|
* Зарегистрироваться с этим логином и паролем
|
|
111
|
+
* @param email
|
|
111
112
|
* @param username
|
|
112
113
|
* @param password
|
|
114
|
+
* @param name
|
|
113
115
|
*/
|
|
114
|
-
export function signup(email: string, username: string, password: string): Promise<Authorized>;
|
|
116
|
+
export function signup(email: string | null, username: string | null, password: string, name: string | null): Promise<Authorized>;
|
|
115
117
|
|
|
116
118
|
/**
|
|
117
119
|
* Результат авторизации
|
package/REST.js
CHANGED
|
@@ -479,9 +479,9 @@ class FLAMEREST {
|
|
|
479
479
|
|
|
480
480
|
}
|
|
481
481
|
|
|
482
|
-
async signup(email, username, password) {
|
|
482
|
+
async signup(email, username, password, name) {
|
|
483
483
|
|
|
484
|
-
let resp = await this.request(this.SERVER + '/auth/signup', JSON.stringify({ login: username, email: email, password: password }), 'POST');
|
|
484
|
+
let resp = await this.request(this.SERVER + '/auth/signup', JSON.stringify({ login: username, email: email, password: password, name: name }), 'POST');
|
|
485
485
|
|
|
486
486
|
if (resp.errors) return resp;
|
|
487
487
|
if (resp.data.length === 0) { resp.errors = []; return resp; }
|