Skip to content

Commit cc7e2d2

Browse files
committed
update redux
1 parent ce5fef5 commit cc7e2d2

File tree

5 files changed

+21
-34
lines changed

5 files changed

+21
-34
lines changed

packages/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"immutable": "^3.8.1",
6363
"jwt-decode": "^2.1.0",
6464
"lodash": "^4.16.4",
65-
"redux": "^3.6.0",
65+
"redux": "^3.7.2",
6666
"redux-immutable": "^3.0.8"
6767
}
6868
}

packages/client/src/accounts-client.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ import reducer, {
2626
} from './module';
2727
import { TransportInterface } from './transport-interface';
2828

29-
const isValidUserObject = (user: LoginUserIdentityType) =>
30-
has(user, 'username') || has(user, 'email') || has(user, 'id');
31-
3229
const ACCESS_TOKEN = 'accounts:accessToken';
3330
const REFRESH_TOKEN = 'accounts:refreshToken';
3431
const ORIGINAL_ACCESS_TOKEN = 'accounts:originalAccessToken';
@@ -314,8 +311,6 @@ export class AccountsClient {
314311
throw new AccountsError('Username or Email is required');
315312
}
316313

317-
const hashAlgorithm = this.options.passwordHashAlgorithm;
318-
319314
const userToCreate = {
320315
...user,
321316
};

packages/client/src/config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import {
55
PasswordSignupFields,
66
} from '@accounts/common';
77
import { Store, Middleware } from 'redux';
8-
import AccountsClient from './accounts-client';
9-
import redirect from './redirect';
108

119
export interface TokenStorage {
1210
getItem(key: string): Promise<string>;

packages/client/src/encryption.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
import { HashAlgorithm } from '@accounts/common';
2-
import * as isString from 'lodash/isString';
3-
import * as CryptoJS from 'crypto-js';
1+
// import { HashAlgorithm } from '@accounts/common';
2+
// import * as isString from 'lodash/isString';
3+
// import * as CryptoJS from 'crypto-js';
44

5-
const mapHashConstant = {
6-
sha: 'SHA',
7-
sha1: 'SHA1',
8-
sha224: 'SHA224',
9-
sha256: 'SHA256',
10-
sha384: 'SHA384',
11-
sha512: 'SHA512',
12-
md5: 'MD5',
13-
ripemd160: 'RIPEMD160',
14-
};
5+
// const mapHashConstant = {
6+
// sha: 'SHA',
7+
// sha1: 'SHA1',
8+
// sha224: 'SHA224',
9+
// sha256: 'SHA256',
10+
// sha384: 'SHA384',
11+
// sha512: 'SHA512',
12+
// md5: 'MD5',
13+
// ripemd160: 'RIPEMD160',
14+
// };
1515

1616
// export const hashPassword = (
1717
// password: PasswordType,

packages/client/yarn.lock

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22
# yarn lockfile v1
33

44

5-
"@accounts/common@^0.1.0":
6-
version "0.1.0-alpha.04203cca"
7-
resolved "https://registry.yarnpkg.com/@accounts/common/-/common-0.1.0-alpha.04203cca.tgz#916199792e47ca5afcb6ebe2f513ac226096e10b"
8-
dependencies:
9-
lodash "^4.16.4"
10-
115
"@types/jest@^20.0.2":
126
version "20.0.2"
137
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-20.0.2.tgz#86c751121fb53dbd39bb1a08c45083da13f2dc67"
@@ -1933,14 +1927,14 @@ redux-immutable@^3.0.8:
19331927
dependencies:
19341928
immutable "^3.8.1"
19351929

1936-
redux@^3.6.0:
1937-
version "3.6.0"
1938-
resolved "https://registry.yarnpkg.com/redux/-/redux-3.6.0.tgz#887c2b3d0b9bd86eca2be70571c27654c19e188d"
1930+
redux@^3.7.2:
1931+
version "3.7.2"
1932+
resolved "https://registry.yarnpkg.com/redux/-/redux-3.7.2.tgz#06b73123215901d25d065be342eb026bc1c8537b"
19391933
dependencies:
19401934
lodash "^4.2.1"
19411935
lodash-es "^4.2.1"
19421936
loose-envify "^1.1.0"
1943-
symbol-observable "^1.0.2"
1937+
symbol-observable "^1.0.3"
19441938

19451939
regenerator-runtime@^0.10.0:
19461940
version "0.10.3"
@@ -2208,9 +2202,9 @@ supports-color@^3.1.2:
22082202
dependencies:
22092203
has-flag "^1.0.0"
22102204

2211-
symbol-observable@^1.0.2:
2212-
version "1.0.4"
2213-
resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.0.4.tgz#29bf615d4aa7121bdd898b22d4b3f9bc4e2aa03d"
2205+
symbol-observable@^1.0.3:
2206+
version "1.2.0"
2207+
resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.2.0.tgz#c22688aed4eab3cdc2dfeacbb561660560a00804"
22142208

22152209
symbol-tree@^3.2.1:
22162210
version "3.2.2"

0 commit comments

Comments
 (0)