Commit Graph

287 Commits

Author SHA1 Message Date
Jonathan Barrow
b309eecff9 Finish strict mode errors 2023-03-18 16:58:20 -04:00
Jonathan Barrow
0d3d6fcce7 Stubbed missing types from 3rd party modules 2023-03-18 10:12:37 -04:00
Jonathan Barrow
dd952954fd Enable strict mode in TS and fix most issues with it 2023-03-17 17:39:46 -04:00
Jonathan Barrow
e508dd95d4 Removed unneccesary casts 2023-03-17 16:18:18 -04:00
Jonathan Barrow
9f3d5c4a35 Removed default exports in favor of named exports 2023-03-17 16:16:10 -04:00
Jonathan Barrow
15042f3ee5 Removed RegExp from getUserByEmailAddress 2023-03-17 15:02:20 -04:00
Jonathan Barrow
c7626de1f1 Revert "revert me"
This reverts commit 928e6f6701.
2023-03-08 17:11:26 -05:00
Jonathan Barrow
928e6f6701 revert me 2023-03-08 17:11:17 -05:00
Jonathan Barrow
bebae96f92 Removed HydratedPNIDDocument casting 2023-03-07 17:55:51 -05:00
Jonathan Barrow
4f134fed7d Removed useless type check in getUserByUsername 2023-03-07 17:54:24 -05:00
Jonathan Barrow
b01ef39fb2 Added missing types 2023-03-06 21:16:44 -05:00
Jonathan Barrow
19a695af3f DeviceAttribute was defined but not used 2023-03-06 21:08:32 -05:00
Jonathan Barrow
7660b9134c Removed unused exports 2023-03-06 21:07:35 -05:00
Jonathan Barrow
9fafca77fd Typed literally everything and eslint is happy 2023-03-06 21:01:15 -05:00
Jonathan Barrow
d23a8b7c21 Remade config manager. Removed JSON file support 2023-03-05 20:14:31 -05:00
Jonathan Barrow
bfba5a0259 Migrate to TS imports in util.ts (forgot, oops) 2023-03-04 22:50:43 -05:00
Jonathan Barrow
e438253d3b Moved types folder into src and changed alias root to @/ 2023-03-04 20:25:01 -05:00
Jonathan Barrow
55c9bff862 Replaced jsdoc with TS types 2023-03-04 16:01:01 -05:00
Jonathan Barrow
498d3838a3 Added nexUser to express.Request type 2023-03-04 15:51:28 -05:00
Jonathan Barrow
ffc4e783a8 Removed unused variables from NASC 2023-03-04 15:48:08 -05:00
Jonathan Barrow
66f6dfc5df Return DB connection from function 2023-03-04 12:41:53 -05:00
Jonathan Barrow
6f570f6c2b Disable id virtual getter on mongoose documents 2023-03-04 11:29:48 -05:00
Jonathan Barrow
c73b820342 Removed PNID.deleteOne from deletion endpoint. Does not actually delete a NNID 2023-03-04 10:42:13 -05:00
Jonathan Barrow
706435ed7a Fixed cryptoPath checks in provider NNID endpoint 2023-03-04 10:41:27 -05:00
Jonathan Barrow
a836f67b47 Bump mongoose to 7 and use mongoose-unique-validator fork 2023-03-04 10:03:06 -05:00
Jonathan Barrow
45a5fd9862 Add import aliases 2023-03-04 09:45:12 -05:00
Jonathan Barrow
d05a1eed91 Better typed Mongoose models 2023-03-03 20:59:05 -05:00
Jonathan Barrow
75de643ac5 Bump version to 2.0.0 2023-03-03 12:45:49 -05:00
Jonathan Barrow
a75769a326 First steps to TypeScript 2023-03-03 12:38:36 -05:00
Jonathan Barrow
3ef40c64cd Updated packages 2023-03-03 12:37:50 -05:00
Jonathan Barrow
84bf498d48 Enable "resolveJsonModule": true in tsconfig 2023-03-03 00:29:12 -05:00
Jonathan Barrow
8bb3d600c4 Add types folder to ts includes 2023-03-03 00:28:08 -05:00
Jonathan Barrow
bf3e357bc1 Set tsconfig target to es2022 2023-03-02 19:37:17 -05:00
Jonathan Barrow
68a0fa8193 Added es2021 lib to compilerOptions (needed for replaceAll) 2023-03-02 19:29:09 -05:00
Jonathan Barrow
bcbf403aba Set module to commonjs in tsconfig 2023-03-01 17:53:14 -05:00
Jonathan Barrow
b4980e942d Set moduleResolution to node in tsconfig 2023-03-01 16:36:21 -05:00
Jonathan Barrow
0543bd45c8 Enabled esModuleInterop in tsconfig 2023-03-01 16:34:17 -05:00
Jonathan Barrow
ff69ac3cea Added tsconfig and start of TypeScript migration 2023-02-28 21:08:52 -05:00
Jonathan Barrow
868a8ed9bb Pull logger path from env directly 2023-02-28 20:58:51 -05:00
Jonathan Barrow
6787361ee4 Remove unused modules 2023-02-28 20:44:01 -05:00
Jonathan Barrow
e164950390 Make logger path configurable 2023-02-28 20:27:59 -05:00
Jonathan Barrow
b655fec99a Move logger to src folder 2023-02-28 20:25:27 -05:00
Jonathan Barrow
536b227cdb Update .gitignore 2023-02-28 20:23:51 -05:00
Jonathan Barrow
05bd48eac0 Merge pull request #63 from ashmonty/patch-1 2023-02-26 17:12:03 -05:00
ash
07d28c1979 feat: send mail from config-definable email 2023-02-26 21:20:50 +00:00
Jonathan Barrow
3954d7588b Ignore case in getUserByEmailAddress 2023-02-15 16:26:15 -05:00
Jonathan Barrow
314833e3b3 Added start of the README 2023-02-12 09:34:48 -05:00
Jonathan Barrow
9801c8b59e Merge branch 'dev' of https://github.com/PretendoNetwork/account into dev 2023-02-12 09:27:39 -05:00
Jonathan Barrow
4868596b71 Set memory cache default to null when not using redis 2023-02-12 09:25:12 -05:00
Jonathan Barrow
37caa67851 Updated cdn config in manager 2023-02-12 09:23:53 -05:00