removed hardcoded strings and added constants

This commit is contained in:
Viet Huynh
2023-09-18 04:47:26 +07:00
parent 0657dc7e94
commit fa279ee24f
4 changed files with 40 additions and 15 deletions
+12
View File
@@ -19,3 +19,15 @@ export const API_HOST = "https://api.cloudflare.com/client/v4";
export const DRY_RUN = !!parseInt(process.env.DRY_RUN, 10);
export const FAST_MODE = !!parseInt(process.env.FAST_MODE, 10);
export const PROCESSING_FILENAME = {
ALLOWLIST: "allowlist.txt",
BLOCKLIST: "blocklist.txt",
OLD_ALLOWLIST: "whitelist.csv",
OLD_BLOCKLIST: "input.csv",
};
export const LIST_TYPE = {
ALLOWLIST: "allowlist",
BLOCKLIST: "blocklist",
};