Commit Graph
133 Commits
Author SHA1 Message Date
Viet Huynh c2b0510cfc remove existing lists before downloading 2023-09-29 06:44:19 +07:00
Viet Huynh e03695beb9 wording 2023-09-29 06:32:17 +07:00
Viet Huynh 190a97bc0f fix command 2023-09-29 06:22:14 +07:00
Viet Huynh da02a966fb add npm scripts 2023-09-29 06:18:30 +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
mrrfv 5977de1b95 Merge pull request #32 from hlqviet/fix/node-fetch-vs-fetch-compatibility
Fix `node-fetch` vs. `fetch` compatibility
2023-09-26 17:31:57 +02:00
Viet Huynh 4135102371 fix node-fetch vs. fetch compatibility 2023-09-26 12:53:22 +07:00
mrrfv a521b13323 Merge pull request #30 from hlqviet/fix/empty-list-environment-variables
Fix cases where the lists are empty string
2023-09-21 20:10:39 +02:00
Viet Huynh 870ca9d392 fixed cases where the lists are empty string 2023-09-21 23:59:40 +07:00
mrrfv 2047063746 Merge pull request #26 from hlqviet/feature/lists-as-environment-variables
Support allowlists and blocklists from environment variables
2023-09-18 20:46:23 +02:00
Viet Huynh f4868b5946 log the lists to be used 2023-09-19 01:32:01 +07:00
Viet Huynh ae9afe3b61 updated defaults 2023-09-19 01:31:30 +07:00
Viet Huynh b20befbe31 updated instructions on ALLOWLIST_URLS and BLOCKLIST_URLS 2023-09-18 13:51:57 +07:00
Viet Huynh 3cf872f262 updated .env example 2023-09-18 13:42:26 +07:00
Viet Huynh 652101efaf added support for lists from environment variables 2023-09-18 13:42:09 +07:00
mrrfv dce617302e Merge pull request #25 from hlqviet/feature/node-download 2023-09-18 06:12:11 +02:00
Viet Huynh d059c57587 cosmetic 2023-09-18 04:51:18 +07:00
Viet Huynh fa279ee24f removed hardcoded strings and added constants 2023-09-18 04:47:26 +07:00
Viet Huynh 0657dc7e94 added the ability to download both blocklist and allowlist for download script execution without arguments 2023-09-18 03:28:35 +07:00
Viet Huynh 033fe73827 fixed wording 2023-09-18 03:13:12 +07:00
Viet Huynh 565e2e6d4d added checks for old filenames 2023-09-18 02:51:49 +07:00
Viet Huynh abd7d1c852 removed pretty much every piece of shell script 2023-09-18 02:40:58 +07:00
mrrfv 88a2daee13 Merge pull request #24 from hlqviet/feature/workflow-concurrency
Add the ability to cancel previous workflow
2023-09-17 21:15:29 +02:00
Viet Huynh e792bfd1e8 Merge branch 'upstream' into feature/node-download 2023-09-18 01:53:45 +07:00
Viet Huynh 669b6ec36b Merge branch 'upstream' into feature/workflow-concurrency 2023-09-18 01:53:30 +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 27f6e9f0d3 added code comments 2023-09-17 19:55:43 +07:00
Viet Huynh 0828fd3352 updated remaining list terms 2023-09-17 16:52:03 +07:00
Viet Huynh 245cc2e8cf ported list download code to JS 2023-09-17 16:48:34 +07:00
Viet Huynh 63e597d15a added concurrency to workflow 2023-09-17 16:20:48 +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 695d7c7f5a fixed to count allowed domains correctly 2023-09-12 20:19:09 +07:00
Viet Huynh 811205ccc2 trim before processing domain 2023-09-12 17:32:05 +07:00
Viet Huynh fccfdaba00 fixed last chunk expression 2023-09-12 17:19:32 +07:00
Viet Huynh cc3ebd147a cleaned up code 2023-09-12 17:06:11 +07:00
Viet Huynh 9c4ce9c759 cleaned up rules code 2023-09-12 17:04:28 +07:00
Viet Huynh 40772b567d refactored domain processing code 2023-09-12 16:35:16 +07:00
Viet Huynh e96d0f719a added .editorconfig 2023-09-12 16:28:10 +07:00
Viet Huynh f103f839e6 set NODE_ENV to production 2023-09-12 03:39:15 +07:00
mrrfv 401f4d34f0 Merge pull request #22 from hlqviet/refactor/api-request
API request code refactor
2023-09-11 18:46:28 +02: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 ac9c6925a1 Wrap rule name in quotes when deleting 2023-09-10 12:30:00 +02:00
mrrfv 025d705efa Use await with functions that return a promise 2023-09-10 12:27:58 +02:00
mrrfv 9299d69694 "Success" -> "HTTP request succeeded" 2023-09-10 12:25:10 +02:00
mrrfv 40a3c96a7d Require Node 18 or above in package.json 2023-09-10 12:24:34 +02:00
Viet Huynh cd91b32d4d moved environment variables in workflow to job level 2023-09-10 06:47:46 +07:00
Viet Huynh 185e30fa31 updated DRY_RUN instruction 2023-09-10 03:58:31 +07:00
Viet Huynh 055ef5a548 added API docs 2023-09-09 23:56:47 +07:00