@stackfactor/client-api 1.1.113 → 1.1.114

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 (2) hide show
  1. package/lib/users.js +3 -1
  2. package/package.json +1 -1
package/lib/users.js CHANGED
@@ -630,14 +630,16 @@ const setUserInformation = (userId, category, data, token) => {
630
630
  /**
631
631
  * Update user email
632
632
  * @param {String} email The new email address
633
+ * @param {String} verificationCode The verification code
633
634
  * @param {String} password The current password
634
635
  * @param {String} token Authorization token
635
636
  * @returns {Promise}
636
637
  */
637
- const updateUserEmail = (email, password, token) => {
638
+ const updateUserEmail = (email, verificationCode, password, token) => {
638
639
  return new Promise(function (resolve, reject) {
639
640
  const requestData = {
640
641
  email: email,
642
+ verificationCode: verificationCode,
641
643
  password: password,
642
644
  };
643
645
  let confirmationRequest = client.post(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackfactor/client-api",
3
- "version": "1.1.113",
3
+ "version": "1.1.114",
4
4
  "description": "Node.js library for the StackFactor API",
5
5
  "main": "index.js",
6
6
  "exports": {