flamerest 1.0.110 → 1.0.112

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.
Files changed (3) hide show
  1. package/REST.d.ts +1 -1
  2. package/REST.js +2 -2
  3. package/package.json +1 -1
package/REST.d.ts CHANGED
@@ -137,7 +137,7 @@ interface IREST {
137
137
  * @param password
138
138
  * @param name
139
139
  */
140
- signup(email: string | null, username: string | null, password: string, name: string | null, pushNotificationToken: object | null): Promise<Authorized>,
140
+ signup(email: string | null, username: string | null, password: string, name: string | null, pushNotificationToken: object | null, data: any): Promise<Authorized>,
141
141
 
142
142
 
143
143
  /**
package/REST.js CHANGED
@@ -574,9 +574,9 @@ class FLAMEREST {
574
574
 
575
575
  }
576
576
 
577
- async signup(email, username, password, name, pushNotificationToken) {
577
+ async signup(email, username, password, name, pushNotificationToken, data = null) {
578
578
 
579
- let resp = await this.request(this.SERVER + '/auth/signup', JSON.stringify({ login: username, email: email, password: password, name: name, pushNotificationToken: (pushNotificationToken ?? this.pushNotificationToken ?? null) }), 'POST', 'json', false);
579
+ let resp = await this.request(this.SERVER + '/auth/signup', JSON.stringify({ login: username, email: email, password: password, name: name, data: data, pushNotificationToken: (pushNotificationToken ?? this.pushNotificationToken ?? null) }), 'POST', 'json', false);
580
580
 
581
581
  if (resp.errors) return resp;
582
582
  if (resp.data.length === 0) { resp.errors = []; return resp; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flamerest",
3
- "version": "1.0.110",
3
+ "version": "1.0.112",
4
4
  "description": "",
5
5
  "main": "REST.js",
6
6
  "typings": "./REST.d.ts",