From 92cb93b4cb3ab5858b2181fca6b9203df6410e27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Th=E1=BA=BF=20H=C6=B0ng?= Date: Mon, 14 Apr 2025 01:10:52 +0700 Subject: [PATCH] chore: version in constants --- src/constants.ts | 3 ++- src/index.ts | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/constants.ts b/src/constants.ts index 52c301b..60ac170 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,3 +1,4 @@ +const VERSION = "0.1.0"; const REFLECT4_SERVERS = [ "https://www.blockaway.net", "https://www.croxyproxy.com", @@ -9,4 +10,4 @@ const REFLECT4_SERVERS = [ "https://proxyium.com" ]; -export { REFLECT4_SERVERS }; \ No newline at end of file +export { REFLECT4_SERVERS, VERSION }; \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index a75bfa2..0f58979 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,10 +3,9 @@ import fs from 'node:fs'; import * as reflect4 from "./proxy/reflect4.js"; import logger from "./logger.js"; import Config from "./config.js"; +import { VERSION } from "./constants.js"; -const version = "0.1.0"; - -logger.info(`Castorsrm v${version} - https://github.com/teppyboy/castorsrm`) +logger.info(`Castorsrm v${VERSION}`) logger.warn("This software is provided by the author as is, without any warranty. Use at your own risk."); let config = new Config();