Commit Graph

309 Commits

Author SHA1 Message Date
Jonathan Barrow
d6d92ca27c Added types to modules without types 2023-04-27 15:05:22 -04:00
Jonathan Barrow
84c2086da2 Updated build command 2023-04-27 14:39:02 -04:00
Jonathan Barrow
36bf30a64a Replace rm -rf with rimraf 2023-04-27 14:38:28 -04:00
Jonathan Barrow
bbf6a9340a Fix linting issues 2023-04-27 14:38:03 -04:00
Jonathan Barrow
2de196a649 Updated lint and build commands 2023-04-27 14:35:27 -04:00
Jonathan Barrow
55ee3ce18b Changed token format to be much smaller (thanks 3DS) 2023-04-01 11:15:59 -04:00
Jonathan Barrow
2e0bb207a9 Fixed bug where 0.0.0.0:0 NEX addresses were seen as invalid 2023-03-31 16:15:36 -04:00
Jonathan Barrow
b8f1486fbf Fixed NASC errors not being sent correctly in middleware 2023-03-31 12:11:36 -04:00
Jonathan Barrow
2b53c5d5a0 Fixed 3DS cert not being verified correctly 2023-03-31 12:09:12 -04:00
Jonathan Barrow
00b1aecd70 Fixed token generation for production users 2023-03-30 10:22:31 -04:00
Jonathan Barrow
7734879130 Fixed email secure boolean check/conversion 2023-03-19 16:34:14 -04:00
Jonathan Barrow
39ccd942cb Convert Maps to JSON objects on request body 2023-03-19 16:21:30 -04:00
Jonathan Barrow
f977d77c5c Renamed user functions to PNID for clarity 2023-03-19 13:46:29 -04:00
Jonathan Barrow
b89d3a15b0 Renamed user variables to better match their types 2023-03-19 13:42:08 -04:00
Jonathan Barrow
741e82daaf Removed all .set calls from documents 2023-03-19 13:36:01 -04:00
Jonathan Barrow
5b00bae36f Removed .get calls on documents 2023-03-19 13:27:28 -04:00
Jonathan Barrow
821ad69b47 Removed hard coded XML string responses 2023-03-19 11:59:44 -04:00
Jonathan Barrow
a95d4e10a6 Handle arrays and proper types on headers and query strings 2023-03-19 11:52:43 -04:00
Jonathan Barrow
b28aababbe Made logger object as const 2023-03-18 17:18:39 -04:00
Jonathan Barrow
a9de4d94dc Removed useless await in nasc middleware 2023-03-18 17:07:46 -04:00
Jonathan Barrow
5c7738d1d0 Changed ACCESS_LEVEL to enum 2023-03-18 17:04:32 -04:00
Jonathan Barrow
a2415faab8 Removed unnecessary regex escapes 2023-03-18 17:00:12 -04:00
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