Trim21
2a0d29c1f5
style: add new rule for imports ( #785 )
2024-08-13 22:31:39 +00:00
Jesse Chan
9c9675df34
dependencies: bump (major)
2021-10-23 20:52:11 -07:00
Jesse Chan
abf99ba52b
shared: schema: explicitly use "strictObject"
2021-05-20 23:17:53 +08:00
Jesse Chan
00ab541701
API: torrents: add /reannounce
2021-02-21 23:47:45 +08:00
Jesse Chan
1d1a478391
server: redirect to a portable link for /data endpoint
2021-01-28 17:17:25 +08:00
Jesse Chan
26c9987355
server: support initial seeding (aka superseeding)
...
https://www.bittorrent.org/beps/bep_0016.html
2020-12-26 13:49:55 +08:00
Jesse Chan
61b6b61569
API: torrents: add "isSequential" torrent property
2020-12-26 11:07:30 +08:00
Jesse Chan
20fc3ac6a8
server: torrents: disallow comma in tag
2020-12-15 20:57:36 +08:00
Jesse Chan
929141912a
schema: api: torrents: add-urls: remove URL validation
...
"Add by URLs" also accepts local file path.
2020-11-17 00:33:14 +08:00
Jesse Chan
1a878d5423
flood: rearrange, remove misc files and reformat
2020-11-15 23:03:47 +08:00
Jesse Chan
aeefd6954d
server: allow fallback to default or last destination
2020-11-13 13:28:11 +08:00
Jesse Chan
80ffb24d8d
API: torrents: schema validate add-urls and add-files endpoints
...
Those endpoints use extensive amount of user-provided properties
and will be frequently used by third party developers. With Node
15, unhandled promise rejections directly crash the server, as
such, it is safer to schema validate the request before processing
it.
This change also prepares the code paths for later change that adds
destination fallbacks.
2020-11-13 13:27:31 +08:00
Jesse Chan
ccb410d2e5
config: switch to authMethod config for auth method selection
2020-10-31 20:48:55 +08:00
Jesse Chan
9e03d2a385
shared: schema: split enums from schemas
...
Otherwise zod will be included in client dependency graph and
increase the bundle size by 10kB unnecessarily.
2020-10-28 12:34:52 +08:00
Jesse Chan
6c41c764f1
API: auth: preload server configs along with /verify response
...
Get rid of last build-time config dependency and allows easier
switching of client modes.
2020-10-26 20:40:59 +08:00
Jesse Chan
306ff79182
API: auth: don't include token in JSON objects
...
Token is already sent by Set-Cookie. It is unneccessary and
insecure to include them in JSON response. Doing so also
introduce the token into Javascript VM which is not protected
as well as the httpOnly cookies.
2020-10-26 20:40:59 +08:00
Jesse Chan
cf08d68c92
auth, Users: initial preparation for multi client support
...
BREAKING CHANGE
2020-10-14 10:58:52 +08:00