Skip to content

Commit 387874d

Browse files
committed
Add password field to updateMe
1 parent a32952f commit 387874d

File tree

3 files changed

+19
-48
lines changed

3 files changed

+19
-48
lines changed

src/core/actions/user.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export function getMe(options) {
44
return this.api('/me', options);
55
}
66

7-
export function updateMe({ address, birthdate, country, firstName, identity, lastName, settings, state, username }, otp, options) {
7+
export function updateMe({ address, birthdate, country, firstName, identity, lastName, password, settings, state, username }, otp, options) {
88
options = merge({
99
body: {
1010
address,
@@ -13,6 +13,7 @@ export function updateMe({ address, birthdate, country, firstName, identity, las
1313
firstName,
1414
identity,
1515
lastName,
16+
password,
1617
settings,
1718
state,
1819
username

test/core/actions/user.spec.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ describe('UserActions', () => {
2626
firstName: 'boz',
2727
identity: 'buz',
2828
lastName: 'qax',
29-
settings: 'qex',
30-
state: 'qix',
31-
username: 'qox'
29+
password: 'qex',
30+
settings: 'qix',
31+
state: 'qox',
32+
username: 'qux'
3233
}, false, { fiz: 'faz' })
3334
.then(result => {
3435
expect(result).toBe('foo');
@@ -40,9 +41,10 @@ describe('UserActions', () => {
4041
firstName: 'boz',
4142
identity: 'buz',
4243
lastName: 'qax',
43-
settings: 'qex',
44-
state: 'qix',
45-
username: 'qox'
44+
password: 'qex',
45+
settings: 'qix',
46+
state: 'qox',
47+
username: 'qux'
4648
},
4749
fiz: 'faz',
4850
method: 'patch'

yarn.lock

Lines changed: 9 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,11 +1534,6 @@ ansi-escapes@^4.2.1:
15341534
dependencies:
15351535
type-fest "^0.11.0"
15361536

1537-
ansi-regex@*, ansi-regex@^5.0.0:
1538-
version "5.0.0"
1539-
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75"
1540-
integrity sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==
1541-
15421537
ansi-regex@^2.0.0:
15431538
version "2.1.1"
15441539
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df"
@@ -1554,6 +1549,11 @@ ansi-regex@^4.1.0:
15541549
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.0.tgz#8b9f8f08cf1acb843756a839ca8c7e3168c51997"
15551550
integrity sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==
15561551

1552+
ansi-regex@^5.0.0:
1553+
version "5.0.0"
1554+
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75"
1555+
integrity sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==
1556+
15571557
ansi-styles@^2.2.1:
15581558
version "2.2.1"
15591559
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe"
@@ -2869,7 +2869,7 @@ debug@^4.0.1, debug@^4.1.0, debug@^4.1.1:
28692869
dependencies:
28702870
ms "^2.1.1"
28712871

2872-
debuglog@*, debuglog@^1.0.1:
2872+
debuglog@^1.0.1:
28732873
version "1.0.1"
28742874
resolved "https://registry.yarnpkg.com/debuglog/-/debuglog-1.0.1.tgz#aa24ffb9ac3df9a2351837cfb2d279360cd78492"
28752875
integrity sha1-qiT/uaw9+aI1GDfPstJ5NgzXhJI=
@@ -4440,7 +4440,7 @@ import-local@^3.0.2:
44404440
pkg-dir "^4.2.0"
44414441
resolve-cwd "^3.0.0"
44424442

4443-
imurmurhash@*, imurmurhash@^0.1.4:
4443+
imurmurhash@^0.1.4:
44444444
version "0.1.4"
44454445
resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea"
44464446
integrity sha1-khi5srkoojixPcT7a21XbyMUU+o=
@@ -5573,11 +5573,6 @@ lodash-webpack-plugin@0.11.5:
55735573
dependencies:
55745574
lodash "^4.17.4"
55755575

5576-
lodash._baseindexof@*:
5577-
version "3.1.0"
5578-
resolved "https://registry.yarnpkg.com/lodash._baseindexof/-/lodash._baseindexof-3.1.0.tgz#fe52b53a1c6761e42618d654e4a25789ed61822c"
5579-
integrity sha1-/lK1OhxnYeQmGNZU5KJXie1hgiw=
5580-
55815576
lodash._baseuniq@~4.6.0:
55825577
version "4.6.0"
55835578
resolved "https://registry.yarnpkg.com/lodash._baseuniq/-/lodash._baseuniq-4.6.0.tgz#0ebb44e456814af7905c6212fa2c9b2d51b841e8"
@@ -5586,33 +5581,11 @@ lodash._baseuniq@~4.6.0:
55865581
lodash._createset "~4.0.0"
55875582
lodash._root "~3.0.0"
55885583

5589-
lodash._bindcallback@*:
5590-
version "3.0.1"
5591-
resolved "https://registry.yarnpkg.com/lodash._bindcallback/-/lodash._bindcallback-3.0.1.tgz#e531c27644cf8b57a99e17ed95b35c748789392e"
5592-
integrity sha1-5THCdkTPi1epnhftlbNcdIeJOS4=
5593-
5594-
lodash._cacheindexof@*:
5595-
version "3.0.2"
5596-
resolved "https://registry.yarnpkg.com/lodash._cacheindexof/-/lodash._cacheindexof-3.0.2.tgz#3dc69ac82498d2ee5e3ce56091bafd2adc7bde92"
5597-
integrity sha1-PcaayCSY0u5ePOVgkbr9Ktx73pI=
5598-
5599-
lodash._createcache@*:
5600-
version "3.1.2"
5601-
resolved "https://registry.yarnpkg.com/lodash._createcache/-/lodash._createcache-3.1.2.tgz#56d6a064017625e79ebca6b8018e17440bdcf093"
5602-
integrity sha1-VtagZAF2JeeevKa4AY4XRAvc8JM=
5603-
dependencies:
5604-
lodash._getnative "^3.0.0"
5605-
56065584
lodash._createset@~4.0.0:
56075585
version "4.0.3"
56085586
resolved "https://registry.yarnpkg.com/lodash._createset/-/lodash._createset-4.0.3.tgz#0f4659fbb09d75194fa9e2b88a6644d363c9fe26"
56095587
integrity sha1-D0ZZ+7CddRlPqeK4imZE02PJ/iY=
56105588

5611-
lodash._getnative@*, lodash._getnative@^3.0.0:
5612-
version "3.9.1"
5613-
resolved "https://registry.yarnpkg.com/lodash._getnative/-/lodash._getnative-3.9.1.tgz#570bc7dede46d61cdcde687d65d3eecbaa3aaff5"
5614-
integrity sha1-VwvH3t5G1hzc3mh9ZdPuy6o6r/U=
5615-
56165589
lodash._root@~3.0.0:
56175590
version "3.0.1"
56185591
resolved "https://registry.yarnpkg.com/lodash._root/-/lodash._root-3.0.1.tgz#fba1c4524c19ee9a5f8136b4609f017cf4ded692"
@@ -5648,11 +5621,6 @@ lodash.padstart@^4.1.0:
56485621
resolved "https://registry.yarnpkg.com/lodash.padstart/-/lodash.padstart-4.6.1.tgz#d2e3eebff0d9d39ad50f5cbd1b52a7bce6bb611b"
56495622
integrity sha1-0uPuv/DZ05rVD1y9G1KnvOa7YRs=
56505623

5651-
lodash.restparam@*:
5652-
version "3.6.1"
5653-
resolved "https://registry.yarnpkg.com/lodash.restparam/-/lodash.restparam-3.6.1.tgz#936a4e309ef330a7645ed4145986c85ae5b20805"
5654-
integrity sha1-k2pOMJ7zMKdkXtQUWYbIWuWyCAU=
5655-
56565624
lodash.set@^4.3.2:
56575625
version "4.3.2"
56585626
resolved "https://registry.yarnpkg.com/lodash.set/-/lodash.set-4.3.2.tgz#d8757b1da807dde24816b0d6a84bea1a76230b23"
@@ -7480,7 +7448,7 @@ readable-stream@~2.1.5:
74807448
string_decoder "~0.10.x"
74817449
util-deprecate "~1.0.1"
74827450

7483-
readdir-scoped-modules@*, readdir-scoped-modules@^1.0.0:
7451+
readdir-scoped-modules@^1.0.0:
74847452
version "1.1.0"
74857453
resolved "https://registry.yarnpkg.com/readdir-scoped-modules/-/readdir-scoped-modules-1.1.0.tgz#8d45407b4f870a0dcaebc0e28670d18e74514309"
74867454
integrity sha512-asaikDeqAQg7JifRsZn1NJZXo9E+VwlyCfbkZhwyISinqk5zNS6266HS5kah6P0SaQKGF6SkNnZVHUzHFYxYDw==
@@ -9052,7 +9020,7 @@ v8-to-istanbul@^4.1.3:
90529020
convert-source-map "^1.6.0"
90539021
source-map "^0.7.3"
90549022

9055-
validate-npm-package-license@*, validate-npm-package-license@^3.0.1, validate-npm-package-license@~3.0.1:
9023+
validate-npm-package-license@^3.0.1, validate-npm-package-license@~3.0.1:
90569024
version "3.0.4"
90579025
resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a"
90589026
integrity sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==

0 commit comments

Comments
 (0)