fix
This commit is contained in:
parent
755a1b6990
commit
34e8c39dbe
3 changed files with 14 additions and 15 deletions
|
@ -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",
|
||||
|
|
12
src/config.ts
Normal file
12
src/config.ts
Normal file
|
@ -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 };
|
15
src/index.ts
15
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";
|
||||
|
|
Loading…
Reference in a new issue