Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Structure Change + Code Cleanup #167

Closed
wants to merge 131 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
131 commits
Select commit Hold shift + click to select a range
9d19a86
AccountsServer : File Structure Changes ( types relocation and utils …
Aetherall Mar 10, 2018
df09670
AccountsServer : ServerHooks object relocation under src/utils/server…
Aetherall Mar 10, 2018
134a5ff
Password : relocate isEmail() to src/utils/isEmail
Aetherall Mar 10, 2018
5b0cf05
Password : relocate encryption.ts to src/utils/encription
Aetherall Mar 10, 2018
972f666
Password : relocating types to src/types/[typeName]
Aetherall Mar 10, 2018
69ca551
OAuthTwitter : relocating types to src/types/[typeName]
Aetherall Mar 10, 2018
755c0d6
OAuth : relocating types to src/types/[typeName]
Aetherall Mar 10, 2018
adc2e83
AccountsServer : revert to kebab-case
Aetherall Mar 10, 2018
b0b8d6a
Password : revert to kebab-case
Aetherall Mar 10, 2018
8a8507c
OAuth & OAuthTwitter : revert to kebab-case
Aetherall Mar 10, 2018
e018874
Password : fix typo PasswordType
Aetherall Mar 10, 2018
4bf7d37
AccountsServer : fix server-hooks kebeb-case
Aetherall Mar 10, 2018
6f7ecdd
OAuthProviderTwitter: options => config POC
Aetherall Mar 10, 2018
0c7f7b4
Copy rest/packages/client => accounts/packages/rest-client
Aetherall Mar 11, 2018
56480b3
TSLint : allow tests to use dependencies listed only in devDependencies
Aetherall Mar 11, 2018
b88caab
Copy rest/packages/express => accounts/packages/rest-express
Aetherall Mar 11, 2018
ae7b809
rest-express : remove conflicting devDependencies
Aetherall Mar 11, 2018
26b5701
Fix bootstraping : prepublish => prepublishOnly
Aetherall Mar 11, 2018
4e70296
rest-express : revert devDependencies
Aetherall Mar 11, 2018
d4ac424
Merge pull request #169 from accounts-js/monorepo/rest
pradel Mar 12, 2018
e120cf5
Update dependency @accounts/tslint-config-accounts to v0.0.8
renovate-bot Mar 12, 2018
e56e753
Update dependency @accounts/tslint-config-accounts to v0.0.9
renovate-bot Mar 13, 2018
a35aa0a
Add README.md
pradel Dec 20, 2016
4d5d04b
Setup repo (#2)
pradel Dec 21, 2016
f2c3372
Don't run test twice
pradel Dec 22, 2016
8205296
Add flowconfig file
pradel Dec 23, 2016
4b7c8fd
Merge pull request #3 from js-accounts/interface
pradel Jan 20, 2017
1c685b6
Merge pull request #5 from js-accounts/sessions
TimMikeladze Jan 21, 2017
1e74631
setProfile and compile with babel
pradel Jan 31, 2017
c525f07
Merge pull request #8 from js-accounts/fix-profile
TimMikeladze Jan 31, 2017
cda17ab
Update yarn lock
TimMikeladze Feb 2, 2017
634d869
0.0.1
TimMikeladze Feb 2, 2017
86a353f
0.0.2
pradel Feb 3, 2017
f18ba72
Merge pull request #9 from js-accounts/add-missing-profile
TimMikeladze Feb 4, 2017
1e027aa
Merge pull request #11 from dotansimha/bugfix/object-id
pradel Feb 7, 2017
24bff3c
0.0.3
davidyaha Feb 7, 2017
c4d2761
Don't compile the tests
pradel Feb 7, 2017
1f0cecc
0.0.4
pradel Feb 7, 2017
e641e1e
Merge pull request #12 from js-accounts/update-readme
pradel Feb 8, 2017
7133f12
Merge pull request #14 from js-accounts/fix-user-id
TimMikeladze Feb 8, 2017
5106fb9
don't check constructor.define.name on db object
pradel Feb 9, 2017
9ddc374
0.0.5
pradel Feb 9, 2017
dfd69b3
Merge pull request #15 from js-accounts/verify-email
pradel Feb 15, 2017
7a2c222
Merge pull request #17 from js-accounts/reset-reason
pradel Feb 24, 2017
b632c21
0.0.6
pradel Feb 24, 2017
adae171
Merge pull request #18 from js-accounts/feat/umd
dotansimha Mar 7, 2017
eea8062
Merge pull request #19 from js-accounts/no-auto-convert
davidyaha Mar 9, 2017
77dc1d5
0.0.8
davidyaha Mar 10, 2017
727f6e3
Merge pull request #21 from js-accounts/set-reset-password
davidyaha Mar 19, 2017
cd831fd
0.0.9
davidyaha Mar 29, 2017
49557be
0.0.10
davidyaha Mar 29, 2017
b455426
Merge pull request #23 from mdemri/caseinsensitiveusername
pradel May 18, 2017
264a3e3
v0.0.11
pradel May 18, 2017
6f3cb07
Merge pull request #24 from js-accounts/fix-caseinsensitive-vulnerabi…
davidyaha May 24, 2017
b2890e0
Merge pull request #26 from stephschuster/master
davidyaha Jul 18, 2017
36f5933
0.0.12
davidyaha Jul 20, 2017
f18d6a8
Merge pull request #25 from js-accounts/migrate-next
davidyaha Sep 16, 2017
3590738
Merge pull request #28 from js-accounts/fix-password-name
pradel Sep 23, 2017
2544e1e
Merge pull request #30 from accounts-js/circle-ci-2
pradel Nov 15, 2017
0fdf4a2
Merge pull request #29 from accounts-js/verify-email
pradel Nov 15, 2017
2f38921
Add folder to publish
pradel Nov 15, 2017
9d947cd
FIx README links
pradel Nov 15, 2017
7311af2
Add options to README
pradel Nov 17, 2017
73ce7d6
Fix README formatting
pradel Nov 17, 2017
2f6ddb1
Merge pull request #33 from accounts-js/codecov
pradel Jan 15, 2018
f2c4d02
Merge pull request #34 from accounts-js/separate-file
pradel Jan 15, 2018
f3e0c77
Merge pull request #31 from accounts-js/services-oauth
pradel Feb 28, 2018
4cc0c93
use 0.1.0-beta.0
pradel Feb 28, 2018
ff288d6
Merge pull request #32 from accounts-js/renovate/configure
pradel Feb 28, 2018
8101ac3
Merge pull request #35 from accounts-js/renovate/pin-dependencies
pradel Feb 28, 2018
78fd740
move renovate to package.json
pradel Feb 28, 2018
d5c2e66
Merge pull request #36 from accounts-js/renovate/accounts-tslint-conf…
pradel Feb 28, 2018
3f7b02f
0.1.0-beta.0
pradel Feb 28, 2018
53ccda6
renovate auto merge minor and patch
pradel Feb 28, 2018
6be6591
Merge pull request #37 from accounts-js/renovate/jest-21.x
pradel Feb 28, 2018
9e44d94
Update dependency @types/mongodb to v2.2.20
renovate-bot Feb 28, 2018
d6914da
Update dependency @types/node to v8.9.4
renovate-bot Feb 28, 2018
574eec9
Update dependency pretty-quick to v1.4.1
renovate-bot Feb 28, 2018
e895c6d
Update dependency tslint to v5.9.1
renovate-bot Feb 28, 2018
d16d591
Merge pull request #45 from accounts-js/renovate/jest-22.x
pradel Feb 28, 2018
d58e035
Merge pull request #42 from accounts-js/renovate/ts-jest-21.x
pradel Feb 28, 2018
cbfbe2b
Update dependency typescript to v2.7.2
renovate-bot Feb 28, 2018
e2ab580
Update dependency @types/jest to v22.1.4
renovate-bot Feb 28, 2018
7b6f07b
Merge pull request #50 from accounts-js/feature/export-named-default
pradel Mar 1, 2018
14d3315
0.1.0-beta.1
pradel Mar 1, 2018
f389867
Update dependency @accounts/common to v0.1.0-beta.2
renovate-bot Mar 1, 2018
9b64622
Merge pull request #52 from accounts-js/renovate/accounts-server-0.x
pradel Mar 1, 2018
cec1949
Merge pull request #48 from accounts-js/renovate/ts-jest-22.x
pradel Mar 1, 2018
1d2c180
Merge pull request #40 from accounts-js/renovate/prettier-1.x
pradel Mar 1, 2018
eb77478
Merge pull request #46 from accounts-js/renovate/jest-monorepo
pradel Mar 1, 2018
a81517e
Merge pull request #47 from accounts-js/renovate/mongodb-3.x
pradel Mar 1, 2018
47aa8b5
README mongodb 3.x example
pradel Mar 1, 2018
f24a93c
REAME update
pradel Mar 1, 2018
71f26f4
README example with latest server
pradel Mar 1, 2018
0e9f597
pretttier
pradel Mar 1, 2018
1c3a29b
0.1.0-beta.2
pradel Mar 1, 2018
ff53189
Update dependency ts-jest to v22.4.1
renovate-bot Mar 2, 2018
3e547d1
Update dependency @types/mongodb to v3.0.6
renovate-bot Mar 5, 2018
02df789
Update dependency @types/jest to v22.2.0
renovate-bot Mar 6, 2018
c69aaaf
Update dependency @types/mongodb to v3.0.7
renovate-bot Mar 6, 2018
a7d1541
update README to show how to pass options
pradel Mar 7, 2018
dde6efb
Merge pull request #57 from accounts-js/feature/token-session
pradel Mar 7, 2018
5af4816
0.1.0-beta.3
pradel Mar 7, 2018
e0436b3
Update dependency @types/node to v9.4.7
renovate-bot Mar 8, 2018
ac96c25
Update dependency @accounts/tslint-config-accounts to v0.0.8
renovate-bot Mar 12, 2018
faf8484
Merge pull request #61 from accounts-js/feature/unset-service
pradel Mar 12, 2018
d31f86f
Update dependency @accounts/tslint-config-accounts to v0.0.9
renovate-bot Mar 13, 2018
d337241
@accounts/database-mongo : Rename folder + added circleCI mongo image
Aetherall Mar 13, 2018
26a3a56
@accounts/mongo : package.json lerna ready
Aetherall Mar 13, 2018
d1fcd05
@accounts/mongo : tsconfig.json lerna ready
Aetherall Mar 13, 2018
5fc0a30
set dep tslint-config-accounts to ^0.0.9
Aetherall Mar 13, 2018
97cf808
yarn format
Aetherall Mar 13, 2018
857ba77
package.json tslint-config-accounts set to strict 0.0.9
Aetherall Mar 13, 2018
b4c6b6b
updated yarn lockfile
Aetherall Mar 13, 2018
1fb9ffb
@accounts/mongo : removed renovate config + removed .gitignore + remo…
Aetherall Mar 13, 2018
4709486
Merge pull request #176 from accounts-js/package/database-mongo
Aetherall Mar 13, 2018
4dbad78
AccountsServer : File Structure Changes ( types relocation and utils …
Aetherall Mar 10, 2018
9451458
AccountsServer : ServerHooks object relocation under src/utils/server…
Aetherall Mar 10, 2018
35a4679
Password : relocate isEmail() to src/utils/isEmail
Aetherall Mar 10, 2018
508d8e7
Password : relocate encryption.ts to src/utils/encription
Aetherall Mar 10, 2018
30da5f8
Password : relocating types to src/types/[typeName]
Aetherall Mar 10, 2018
acff24b
OAuthTwitter : relocating types to src/types/[typeName]
Aetherall Mar 10, 2018
d256d4f
OAuth : relocating types to src/types/[typeName]
Aetherall Mar 10, 2018
977ae07
AccountsServer : revert to kebab-case
Aetherall Mar 10, 2018
2ee784b
Password : revert to kebab-case
Aetherall Mar 10, 2018
646cfed
OAuth & OAuthTwitter : revert to kebab-case
Aetherall Mar 10, 2018
eb3a76b
Password : fix typo PasswordType
Aetherall Mar 10, 2018
b4acef9
AccountsServer : fix server-hooks kebeb-case
Aetherall Mar 10, 2018
944cea6
OAuthProviderTwitter: options => config POC
Aetherall Mar 10, 2018
e6bdcbf
yarn format
Aetherall Mar 13, 2018
16d09ff
Merge branch 'code-cleanup' of https://github.com/accounts-js/account…
Aetherall Mar 14, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"license": "MIT",
"devDependencies": {
"@accounts/tslint-config-accounts": "0.0.6",
"@accounts/tslint-config-accounts": "^0.0.9",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you keep strict deps?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes sure !

"@types/jest": "22.2.0",
"@types/node": "9.4.6",
"codecov": "3.0.0",
Expand Down
1 change: 0 additions & 1 deletion packages/oauth-twitter/src/accounts-oauth-twitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import * as oauth from 'oauth';

import { Configuration } from './types/configuration';


export class AccountsOAuthTwitter {
private config: Configuration;
private oauth: any;
Expand Down
2 changes: 1 addition & 1 deletion packages/oauth-twitter/src/types/configuration.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface Configuration {
key: string;
secret: string;
}
}
4 changes: 2 additions & 2 deletions packages/oauth/__tests__/accounts-oauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe('AccountsOauth', () => {
}
});

it('should call provider\'s authenticate method in order to get the user itself', async () => {
it("should call provider's authenticate method in order to get the user itself", async () => {
const authSpy = jest.fn(() => ({
id: '312312',
name: 'Mr. Anderson',
Expand Down Expand Up @@ -150,7 +150,7 @@ describe('AccountsOauth', () => {
});
});

it('should update the user\'s profile if logged in after change in profile', async () => {
it("should update the user's profile if logged in after change in profile", async () => {
const userChanged = {
id: '312312',
name: 'Mr. Anderson',
Expand Down
2 changes: 1 addition & 1 deletion packages/oauth/src/accounts-oauth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { UserObjectType } from '@accounts/common';
import { AccountsServer, DBInterface, AuthService } from '@accounts/server';
import * as requestPromise from 'request-promise';

import { OAuthOptions } from './types/oauth-options'
import { OAuthOptions } from './types/oauth-options';

export class AccountsOauth implements AuthService {
public server: AccountsServer;
Expand Down
4 changes: 2 additions & 2 deletions packages/oauth/src/types/oauth-options.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { OAuthUser } from './oauth-user'
import { OAuthUser } from './oauth-user';

export interface OAuthOptions {
[provider: string]: {
authenticate: (params: any) => Promise<OAuthUser>;
};
}
}
2 changes: 1 addition & 1 deletion packages/oauth/src/types/oauth-user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ export interface OAuthUser {
id: string;
email?: string;
profile?: object;
}
}
6 changes: 5 additions & 1 deletion packages/password/__tests__/utils/encryption.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { bcryptPassword, hashPassword, verifyPassword } from '../../src/utils/encryption';
import {
bcryptPassword,
hashPassword,
verifyPassword,
} from '../../src/utils/encryption';

describe('encryption', () => {
describe('bcryptPassword', () => {
Expand Down
17 changes: 10 additions & 7 deletions packages/password/src/accounts-password.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,19 @@ import {
AccountsServer,
generateRandomToken,
AuthService,
getFirstUserEmail
getFirstUserEmail,
} from '@accounts/server';
import { hashPassword, bcryptPassword, verifyPassword } from './utils/encryption';

import {
hashPassword,
bcryptPassword,
verifyPassword,
} from './utils/encryption';

import { PasswordCreateUserType } from './types/password-create-user-type'
import { PasswordLoginType } from './types/password-login-type'
import { PasswordType } from './types/password-type'
import { PasswordCreateUserType } from './types/password-create-user-type';
import { PasswordLoginType } from './types/password-login-type';
import { PasswordType } from './types/password-type';

import { isEmail } from './utils/isEmail'
import { isEmail } from './utils/isEmail';

export interface AccountsPasswordOptions {
passwordHashAlgorithm?: HashAlgorithm;
Expand Down
4 changes: 2 additions & 2 deletions packages/password/src/types/password-login-type.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { LoginUserIdentityType } from '@accounts/common';
import { PasswordType } from './password-type'
import { PasswordType } from './password-type';

export interface PasswordLoginType {
user: string | LoginUserIdentityType;
password: PasswordType;
}
}
2 changes: 1 addition & 1 deletion packages/password/src/types/password-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ export type PasswordType =
| {
digest: string;
algorithm: HashAlgorithm;
};
};
2 changes: 1 addition & 1 deletion packages/password/src/utils/isEmail.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const isEmail = (email?: string) => {
const re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
return email && re.test(email);
};
};
2 changes: 1 addition & 1 deletion packages/server/__tests__/account-server.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as jwtDecode from 'jwt-decode';
import { AccountsServer } from '../src/accounts-server';
import { JwtData } from '../src/types/jwt-data'
import { JwtData } from '../src/types/jwt-data';
import {
bcryptPassword,
hashPassword,
Expand Down
16 changes: 8 additions & 8 deletions packages/server/src/accounts-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ import {
import { emailTemplates, sendMail } from './utils/email';
import { ServerHooks } from './utils/server-hooks';

import { AccountsServerOptions } from './types/accounts-server-options'
import { ConnectionInformationsType } from './types/connection-informations-type'
import { AuthService } from './types/auth-service'
import { DBInterface } from './types/db-interface'
import { TokenRecord } from './types/token-record'
import { JwtData } from './types/jwt-data'
import { RemoveListenerHandle } from './types/remove-listener-handle'
import { EmailTemplateType } from './types/email-template-type'
import { AccountsServerOptions } from './types/accounts-server-options';
import { ConnectionInformationsType } from './types/connection-informations-type';
import { AuthService } from './types/auth-service';
import { DBInterface } from './types/db-interface';
import { TokenRecord } from './types/token-record';
import { JwtData } from './types/jwt-data';
import { RemoveListenerHandle } from './types/remove-listener-handle';
import { EmailTemplateType } from './types/email-template-type';

const defaultOptions = {
tokenSecret: 'secret',
Expand Down
8 changes: 4 additions & 4 deletions packages/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import * as encryption from './utils/encryption';
import { generateRandomToken } from './utils/tokens';
import { getFirstUserEmail } from './utils/get-first-user-email';

import { ConnectionInformationsType } from './types/connection-informations-type'
import { AuthService } from './types/auth-service'
import { DBInterface } from './types/db-interface'
import { ConnectionInformationsType } from './types/connection-informations-type';
import { AuthService } from './types/auth-service';
import { DBInterface } from './types/db-interface';

export default AccountsServer;
export {
Expand All @@ -15,5 +15,5 @@ export {
DBInterface,
generateRandomToken,
ConnectionInformationsType,
getFirstUserEmail
getFirstUserEmail,
};
8 changes: 4 additions & 4 deletions packages/server/src/types/accounts-server-options.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { UserObjectType } from '@accounts/common';
import { DBInterface } from './db-interface'
import { EmailTemplateType } from './email-template-type'
import { EmailTemplatesType } from './email-templates-type'
import { DBInterface } from './db-interface';
import { EmailTemplateType } from './email-template-type';
import { EmailTemplatesType } from './email-templates-type';
import { UserObjectSanitizerFunction } from './user-object-sanitizer-function';
import { ResumeSessionValidator } from './resume-session-validator';
import { PrepareMailFunction } from './prepare-mail-function';
Expand Down Expand Up @@ -31,4 +31,4 @@ export interface AccountsServerOptions {
sendMail?: SendMailType;
// https://github.com/eleith/emailjs#emailserverconnectoptions
email?: object;
}
}
4 changes: 2 additions & 2 deletions packages/server/src/types/auth-service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { UserObjectType } from '@accounts/common';
import { DBInterface } from './db-interface'
import { DBInterface } from './db-interface';

import { AccountsServer } from '../accounts-server';

Expand All @@ -8,4 +8,4 @@ export interface AuthService {
serviceName: string;
setStore(store: DBInterface): void;
authenticate(params: any): Promise<UserObjectType | null>;
}
}
2 changes: 1 addition & 1 deletion packages/server/src/types/connection-informations-type.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface ConnectionInformationsType {
ip?: string;
userAgent?: string;
}
}
2 changes: 1 addition & 1 deletion packages/server/src/types/db-interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ export interface DBInterface {
): Promise<void>;
invalidateSession(sessionId: string): Promise<void>;
invalidateAllSessions(userId: string): Promise<void>;
}
}
2 changes: 1 addition & 1 deletion packages/server/src/types/email-template-type.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { UserObjectType } from '@accounts/common';

export interface EmailTemplateType {
from?: string;
subject: (user?: UserObjectType) => string;
Expand Down
4 changes: 2 additions & 2 deletions packages/server/src/types/email-templates-type.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { EmailTemplateType } from './email-template-type'
import { EmailTemplateType } from './email-template-type';

export interface EmailTemplatesType {
from: string;
verifyEmail: EmailTemplateType;
resetPassword: EmailTemplateType;
enrollAccount: EmailTemplateType;
}
}
4 changes: 2 additions & 2 deletions packages/server/src/types/email-type.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { EmailTemplateType } from './email-template-type'
import { EmailTemplateType } from './email-template-type';

export type EmailType = EmailTemplateType & { to: string };
export type EmailType = EmailTemplateType & { to: string };
2 changes: 1 addition & 1 deletion packages/server/src/types/jwt-data.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface JwtData {
token: string;
isImpersonated: boolean;
}
}
2 changes: 1 addition & 1 deletion packages/server/src/types/resume-session-validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ import { UserObjectType, SessionType } from '@accounts/common';
export type ResumeSessionValidator = (
user: UserObjectType,
session: SessionType
) => Promise<any>;
) => Promise<any>;
2 changes: 1 addition & 1 deletion packages/server/src/types/send-mail-type.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export type SendMailType = (mail: object) => Promise<void>;
export type SendMailType = (mail: object) => Promise<void>;
2 changes: 1 addition & 1 deletion packages/server/src/types/token-record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ export interface TokenRecord {
address: string;
when: number;
reason: string;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ export type UserObjectSanitizerFunction = (
userObject: UserObjectType,
omitFunction: (userDoc: object, fields: string[]) => UserObjectType,
pickFunction: (userDoc: object, fields: string[]) => UserObjectType
) => any;
) => any;
2 changes: 1 addition & 1 deletion packages/server/src/utils/server-hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ export const ServerHooks = {
RefreshTokensError: 'RefreshTokensError',
ImpersonationSuccess: 'ImpersonationSuccess',
ImpersonationError: 'ImpersonationError',
};
};
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# yarn lockfile v1


"@accounts/[email protected].6":
version "0.0.6"
resolved "https://registry.yarnpkg.com/@accounts/tslint-config-accounts/-/tslint-config-accounts-0.0.6.tgz#d2ab1480f0aff7c911b2bea9fb924d7f04328931"
"@accounts/tslint-config-accounts@^0.0.9":
version "0.0.9"
resolved "https://registry.yarnpkg.com/@accounts/tslint-config-accounts/-/tslint-config-accounts-0.0.9.tgz#a2073361c4127ba7c8662cd72e08a28a794a44df"
dependencies:
tslint-config-prettier "^1.1.0"
tslint-eslint-rules "^4.1.1"
Expand Down