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";