Commit Graph
42 Commits
Author SHA1 Message Date
Viet Huynh df2a2d7141 prefix node module import with node: 2023-11-21 03:00:35 +07:00
Viet Huynh 041970972a use more accurate domain regex pattern 2023-11-21 02:58:01 +07:00
Viet Huynh 8c8d5c70a6 fix list download 2023-11-21 02:57:10 +07:00
Viet Huynh 0478a2f957 use another domain regex pattern to fix domain validation 2023-11-20 08:25:01 +07:00
Viet Huynh 7189599019 implement memoization for domain normalization 2023-11-19 18:20:47 +07:00
Viet Huynh b364df7864 throw errors in utils and helpers 2023-11-19 17:48:37 +07:00
Viet Huynh 70a2dfa89f refactored domain processing code to improve performance and memory usage 2023-11-19 17:46:39 +07:00
Viet Huynh 6eb55bf6a1 refactored downloadFiles to a more efficient approach 2023-11-19 16:39:54 +07:00
mrrfv c91aea1b39 Disable doh_gambling recommended blocklist
Due to the 300,000 domain blocklist constraint
2023-11-09 18:36:21 +01:00
mrrfv cf941737d5 Improve compatibility with non-Discord webhooks 2023-11-09 17:04:28 +01:00
mrrfv 3b01badd8f Fix webhook validity checking logic 2023-11-08 22:44:19 +01:00
mrrfv e552a8730f Discord webhook notifications
Fixes #46
2023-11-08 22:42:02 +01:00
Viet Huynh cdcce5a939 remove sleep function 2023-11-02 02:58:24 +07:00
Viet Huynh 4f97b35b74 use API Token in favour of API Key for better security 2023-11-02 02:56:56 +07:00
Viet Huynh ac535c927a updated logging for API calls 2023-11-02 02:42:28 +07:00
Viet Huynh af24c152a8 throw error if required secrets have not been added 2023-09-29 06:51:13 +07:00
mrrfv 862dcb15bb Remove empty lines from the user-defined list URLs
Possible fix for #33
2023-09-27 14:10:12 +00:00
Viet Huynh 4135102371 fix node-fetch vs. fetch compatibility 2023-09-26 12:53:22 +07:00
Viet Huynh 870ca9d392 fixed cases where the lists are empty string 2023-09-21 23:59:40 +07:00
Viet Huynh 652101efaf added support for lists from environment variables 2023-09-18 13:42:09 +07:00
Viet Huynh fa279ee24f removed hardcoded strings and added constants 2023-09-18 04:47:26 +07:00
Viet Huynh e792bfd1e8 Merge branch 'upstream' into feature/node-download 2023-09-18 01:53:45 +07:00
mrrfv 8cb217adf7 Merge pull request #23 from hlqviet/refactor/domain-process
Domain process code refactor
2023-09-17 17:23:28 +02:00
Viet Huynh 245cc2e8cf ported list download code to JS 2023-09-17 16:48:34 +07:00
Viet Huynh 083335278c updated blocklist check logic to prevent adding a subdomain if a higher-level domain is already blocked 2023-09-15 05:36:19 +07:00
Viet Huynh 40772b567d refactored domain processing code 2023-09-12 16:35:16 +07:00
mrrfv aa7cec1e15 Warn if using an unsupported Node version 2023-09-11 18:42:36 +02:00
Viet Huynh 6185f9e223 added back node-fetch with dynamic import 2023-09-11 02:54:55 +07:00
mrrfv ba2db9e3d4 Wrap rule name in quotes when creating list 2023-09-10 12:54:52 +02:00
mrrfv 9299d69694 "Success" -> "HTTP request succeeded" 2023-09-10 12:25:10 +02:00
Viet Huynh 055ef5a548 added API docs 2023-09-09 23:56:47 +07:00
Viet Huynh ad84881921 fixed helper log 2023-09-09 23:25:05 +07:00
Viet Huynh 77b6ac7dfc fixed helper log 2023-09-09 23:23:26 +07:00
Viet Huynh faad7d12b3 refactored rule deletion 2023-09-09 23:17:32 +07:00
Viet Huynh 8e96c87c27 refactored rule creation 2023-09-09 23:12:22 +07:00
Viet Huynh b77da7b278 refactored list deletion 2023-09-09 22:26:57 +07:00
Viet Huynh ed5f24b6ec reorganized code 2023-09-09 21:43:57 +07:00
Viet Huynh 61d6c03704 handle API error 2023-09-09 21:24:02 +07:00
Viet Huynh 53803edc6e reorganized API code 2023-09-09 20:46:56 +07:00
Viet Huynh bc3b16f5fa removed list ID output 2023-09-09 19:54:44 +07:00
Viet Huynh 43bd87f2dd use native fetch and refactored list creation 2023-09-09 19:53:47 +07:00
Viet Huynh 86a0f87f6d moved helpers to lib directory 2023-09-08 18:06:43 +07:00