@todoist/comms-sdk 5.0.1 → 5.0.2

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.
@@ -161,7 +161,9 @@ export class UsersClient extends BaseClient {
161
161
  * ```
162
162
  */
163
163
  update(args) {
164
- return this.post(`${ENDPOINT_USERS}/update`, args, UserSchema);
164
+ const { name, ...rest } = args;
165
+ const payload = name === undefined ? rest : { ...rest, fullName: name };
166
+ return this.post(`${ENDPOINT_USERS}/update`, payload, UserSchema);
165
167
  }
166
168
  /**
167
169
  * Creates or partially updates the session user's shared status.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todoist/comms-sdk",
3
- "version": "5.0.1",
3
+ "version": "5.0.2",
4
4
  "description": "A TypeScript wrapper for the Comms REST API.",
5
5
  "author": "Doist developers",
6
6
  "homepage": "https://doist.github.io/comms-sdk-typescript/",