From 34e8c39dbed7b956bca67cca18e58e69aaca0ef8 Mon Sep 17 00:00:00 2001 From: NK Date: Sun, 30 Apr 2023 19:25:29 +0100 Subject: [PATCH] fix --- package.json | 2 +- src/config.ts | 12 ++++++++++++ src/index.ts | 15 +-------------- 3 files changed, 14 insertions(+), 15 deletions(-) create mode 100644 src/config.ts diff --git a/package.json b/package.json index ca7f475..e1fa0b8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cath", - "version": "1.5.21", + "version": "1.5.22", "description": "A powerful package that can interact with Cath API", "main": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/src/config.ts b/src/config.ts new file mode 100644 index 0000000..1a2aad9 --- /dev/null +++ b/src/config.ts @@ -0,0 +1,12 @@ +const config: ConfigURLS = { + api: "https://api.night0721.me", + code: "https://cdn.night0721.me/api/paste", + url: "https://cdn.night0721.me/api/url", +}; + +interface ConfigURLS { + api: string; + code: string; + url: string; +} +export { config, ConfigURLS }; diff --git a/src/index.ts b/src/index.ts index ded6167..fd3b8ff 100644 --- a/src/index.ts +++ b/src/index.ts @@ -52,17 +52,4 @@ export { export { getLilaseDownloads } from "./functions/getLilaseDownloads"; export { emojify } from "./functions/emojify"; export { obama } from "./functions/obama"; - -const config: ConfigURLS = { - api: "https://api.night0721.me", - code: "https://cdn.night0721.me/api/paste", - url: "https://cdn.night0721.me/api/url", -}; - -interface ConfigURLS { - api: string; - code: string; - url: string; -} - -export { config }; +export { ConfigURLS, config } from "./config";