Skip to content

Commit 6ef2d99

Browse files
committed
fix: update accounts-js
1 parent de36773 commit 6ef2d99

5 files changed

Lines changed: 253 additions & 90 deletions

File tree

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929
- run: yarn run lerna bootstrap
3030
- run: yarn lint:ci
3131
- run: yarn compile
32-
- run: yarn coverage:ci
3332
- run: yarn test:prettier
33+
- run: yarn coverage:ci
3434
- run: yarn codecov
3535
- run:
3636
name: Copy artifacts

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
"git add"
4747
]
4848
},
49+
"resolutions": {
50+
"typeorm": "0.2.25"
51+
},
4952
"prettier": {
5053
"singleQuote": true,
5154
"trailingComma": "es5",
@@ -89,4 +92,4 @@
8992
"typedoc-plugin-lerna": "0.1.0",
9093
"typescript": "3.7.4"
9194
}
92-
}
95+
}

packages/prime-core/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
"coverage": "yarn testonly --coverage"
3737
},
3838
"dependencies": {
39-
"@accounts/database-manager": "^0.19.0",
40-
"@accounts/graphql-api": "^0.19.0",
41-
"@accounts/password": "^0.19.0",
42-
"@accounts/server": "^0.19.0",
43-
"@accounts/typeorm": "^0.19.0",
39+
"@accounts/database-manager": "^0.27.0",
40+
"@accounts/graphql-api": "^0.27.0",
41+
"@accounts/password": "^0.27.0",
42+
"@accounts/server": "^0.27.0",
43+
"@accounts/typeorm": "^0.27.0",
4444
"@casl/ability": "3.4.0",
4545
"@graphql-modules/core": "^0.7.0",
4646
"@primecms/field": "^0.3.4-beta.1",

packages/prime-core/src/modules/accounts/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { AccountsModule } from '@accounts/graphql-api';
22
import { AccountsPassword } from '@accounts/password';
33
import { AccountsServer } from '@accounts/server';
4-
import { AccountsTypeorm } from '@accounts/typeorm';
4+
import { AccountsTypeorm, User } from '@accounts/typeorm';
55
import Mailgun from 'mailgun-js';
66
import { Connection } from 'typeorm';
77

@@ -23,7 +23,7 @@ export const createAccounts = async (connection: Connection) => {
2323
cache: 1000,
2424
});
2525

26-
const password = new AccountsPassword({
26+
const password = new AccountsPassword<User>({
2727
twoFactor: {
2828
appName: 'Prime',
2929
},

0 commit comments

Comments
 (0)