-
-
Notifications
You must be signed in to change notification settings - Fork 141
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
+7,620
−197
Closed
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 df09670
AccountsServer : ServerHooks object relocation under src/utils/server…
Aetherall 134a5ff
Password : relocate isEmail() to src/utils/isEmail
Aetherall 5b0cf05
Password : relocate encryption.ts to src/utils/encription
Aetherall 972f666
Password : relocating types to src/types/[typeName]
Aetherall 69ca551
OAuthTwitter : relocating types to src/types/[typeName]
Aetherall 755c0d6
OAuth : relocating types to src/types/[typeName]
Aetherall adc2e83
AccountsServer : revert to kebab-case
Aetherall b0b8d6a
Password : revert to kebab-case
Aetherall 8a8507c
OAuth & OAuthTwitter : revert to kebab-case
Aetherall e018874
Password : fix typo PasswordType
Aetherall 4bf7d37
AccountsServer : fix server-hooks kebeb-case
Aetherall 6f7ecdd
OAuthProviderTwitter: options => config POC
Aetherall 0c7f7b4
Copy rest/packages/client => accounts/packages/rest-client
Aetherall 56480b3
TSLint : allow tests to use dependencies listed only in devDependencies
Aetherall b88caab
Copy rest/packages/express => accounts/packages/rest-express
Aetherall ae7b809
rest-express : remove conflicting devDependencies
Aetherall 26b5701
Fix bootstraping : prepublish => prepublishOnly
Aetherall 4e70296
rest-express : revert devDependencies
Aetherall d4ac424
Merge pull request #169 from accounts-js/monorepo/rest
pradel e120cf5
Update dependency @accounts/tslint-config-accounts to v0.0.8
renovate-bot e56e753
Update dependency @accounts/tslint-config-accounts to v0.0.9
renovate-bot a35aa0a
Add README.md
pradel 4d5d04b
Setup repo (#2)
pradel f2c3372
Don't run test twice
pradel 8205296
Add flowconfig file
pradel 4b7c8fd
Merge pull request #3 from js-accounts/interface
pradel 1c685b6
Merge pull request #5 from js-accounts/sessions
TimMikeladze 1e74631
setProfile and compile with babel
pradel c525f07
Merge pull request #8 from js-accounts/fix-profile
TimMikeladze cda17ab
Update yarn lock
TimMikeladze 634d869
0.0.1
TimMikeladze 86a353f
0.0.2
pradel f18ba72
Merge pull request #9 from js-accounts/add-missing-profile
TimMikeladze 1e027aa
Merge pull request #11 from dotansimha/bugfix/object-id
pradel 24bff3c
0.0.3
davidyaha c4d2761
Don't compile the tests
pradel 1f0cecc
0.0.4
pradel e641e1e
Merge pull request #12 from js-accounts/update-readme
pradel 7133f12
Merge pull request #14 from js-accounts/fix-user-id
TimMikeladze 5106fb9
don't check constructor.define.name on db object
pradel 9ddc374
0.0.5
pradel dfd69b3
Merge pull request #15 from js-accounts/verify-email
pradel 7a2c222
Merge pull request #17 from js-accounts/reset-reason
pradel b632c21
0.0.6
pradel adae171
Merge pull request #18 from js-accounts/feat/umd
dotansimha eea8062
Merge pull request #19 from js-accounts/no-auto-convert
davidyaha 77dc1d5
0.0.8
davidyaha 727f6e3
Merge pull request #21 from js-accounts/set-reset-password
davidyaha cd831fd
0.0.9
davidyaha 49557be
0.0.10
davidyaha b455426
Merge pull request #23 from mdemri/caseinsensitiveusername
pradel 264a3e3
v0.0.11
pradel 6f3cb07
Merge pull request #24 from js-accounts/fix-caseinsensitive-vulnerabi…
davidyaha b2890e0
Merge pull request #26 from stephschuster/master
davidyaha 36f5933
0.0.12
davidyaha f18d6a8
Merge pull request #25 from js-accounts/migrate-next
davidyaha 3590738
Merge pull request #28 from js-accounts/fix-password-name
pradel 2544e1e
Merge pull request #30 from accounts-js/circle-ci-2
pradel 0fdf4a2
Merge pull request #29 from accounts-js/verify-email
pradel 2f38921
Add folder to publish
pradel 9d947cd
FIx README links
pradel 7311af2
Add options to README
pradel 73ce7d6
Fix README formatting
pradel 2f6ddb1
Merge pull request #33 from accounts-js/codecov
pradel f2c4d02
Merge pull request #34 from accounts-js/separate-file
pradel f3e0c77
Merge pull request #31 from accounts-js/services-oauth
pradel 4cc0c93
use 0.1.0-beta.0
pradel ff288d6
Merge pull request #32 from accounts-js/renovate/configure
pradel 8101ac3
Merge pull request #35 from accounts-js/renovate/pin-dependencies
pradel 78fd740
move renovate to package.json
pradel d5c2e66
Merge pull request #36 from accounts-js/renovate/accounts-tslint-conf…
pradel 3f7b02f
0.1.0-beta.0
pradel 53ccda6
renovate auto merge minor and patch
pradel 6be6591
Merge pull request #37 from accounts-js/renovate/jest-21.x
pradel 9e44d94
Update dependency @types/mongodb to v2.2.20
renovate-bot d6914da
Update dependency @types/node to v8.9.4
renovate-bot 574eec9
Update dependency pretty-quick to v1.4.1
renovate-bot e895c6d
Update dependency tslint to v5.9.1
renovate-bot d16d591
Merge pull request #45 from accounts-js/renovate/jest-22.x
pradel d58e035
Merge pull request #42 from accounts-js/renovate/ts-jest-21.x
pradel cbfbe2b
Update dependency typescript to v2.7.2
renovate-bot e2ab580
Update dependency @types/jest to v22.1.4
renovate-bot 7b6f07b
Merge pull request #50 from accounts-js/feature/export-named-default
pradel 14d3315
0.1.0-beta.1
pradel f389867
Update dependency @accounts/common to v0.1.0-beta.2
renovate-bot 9b64622
Merge pull request #52 from accounts-js/renovate/accounts-server-0.x
pradel cec1949
Merge pull request #48 from accounts-js/renovate/ts-jest-22.x
pradel 1d2c180
Merge pull request #40 from accounts-js/renovate/prettier-1.x
pradel eb77478
Merge pull request #46 from accounts-js/renovate/jest-monorepo
pradel a81517e
Merge pull request #47 from accounts-js/renovate/mongodb-3.x
pradel 47aa8b5
README mongodb 3.x example
pradel f24a93c
REAME update
pradel 71f26f4
README example with latest server
pradel 0e9f597
pretttier
pradel 1c3a29b
0.1.0-beta.2
pradel ff53189
Update dependency ts-jest to v22.4.1
renovate-bot 3e547d1
Update dependency @types/mongodb to v3.0.6
renovate-bot 02df789
Update dependency @types/jest to v22.2.0
renovate-bot c69aaaf
Update dependency @types/mongodb to v3.0.7
renovate-bot a7d1541
update README to show how to pass options
pradel dde6efb
Merge pull request #57 from accounts-js/feature/token-session
pradel 5af4816
0.1.0-beta.3
pradel e0436b3
Update dependency @types/node to v9.4.7
renovate-bot ac96c25
Update dependency @accounts/tslint-config-accounts to v0.0.8
renovate-bot faf8484
Merge pull request #61 from accounts-js/feature/unset-service
pradel d31f86f
Update dependency @accounts/tslint-config-accounts to v0.0.9
renovate-bot d337241
@accounts/database-mongo : Rename folder + added circleCI mongo image
Aetherall 26a3a56
@accounts/mongo : package.json lerna ready
Aetherall d1fcd05
@accounts/mongo : tsconfig.json lerna ready
Aetherall 5fc0a30
set dep tslint-config-accounts to ^0.0.9
Aetherall 97cf808
yarn format
Aetherall 857ba77
package.json tslint-config-accounts set to strict 0.0.9
Aetherall b4c6b6b
updated yarn lockfile
Aetherall 1fb9ffb
@accounts/mongo : removed renovate config + removed .gitignore + remo…
Aetherall 4709486
Merge pull request #176 from accounts-js/package/database-mongo
Aetherall 4dbad78
AccountsServer : File Structure Changes ( types relocation and utils …
Aetherall 9451458
AccountsServer : ServerHooks object relocation under src/utils/server…
Aetherall 35a4679
Password : relocate isEmail() to src/utils/isEmail
Aetherall 508d8e7
Password : relocate encryption.ts to src/utils/encription
Aetherall 30da5f8
Password : relocating types to src/types/[typeName]
Aetherall acff24b
OAuthTwitter : relocating types to src/types/[typeName]
Aetherall d256d4f
OAuth : relocating types to src/types/[typeName]
Aetherall 977ae07
AccountsServer : revert to kebab-case
Aetherall 2ee784b
Password : revert to kebab-case
Aetherall 646cfed
OAuth & OAuthTwitter : revert to kebab-case
Aetherall eb3a76b
Password : fix typo PasswordType
Aetherall b4acef9
AccountsServer : fix server-hooks kebeb-case
Aetherall 944cea6
OAuthProviderTwitter: options => config POC
Aetherall e6bdcbf
yarn format
Aetherall 16d09ff
Merge branch 'code-cleanup' of https://github.com/accounts-js/account…
Aetherall File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export interface Configuration { | ||
key: string; | ||
secret: string; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>; | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ export interface OAuthUser { | |
id: string; | ||
email?: string; | ||
profile?: object; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ export type PasswordType = | |
| { | ||
digest: string; | ||
algorithm: HashAlgorithm; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export interface ConnectionInformationsType { | ||
ip?: string; | ||
userAgent?: string; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export interface JwtData { | ||
token: string; | ||
isImpersonated: boolean; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ export interface TokenRecord { | |
address: string; | ||
when: number; | ||
reason: string; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes sure !