From 07af562d9f82be4de34bfd78c8ca5adccf503e18 Mon Sep 17 00:00:00 2001 From: GardZock Date: Mon, 20 Jun 2022 11:03:15 -0300 Subject: [PATCH] Updates --- dist/README.md | 3 ++- dist/index.d.ts | 18 ++++++++---------- dist/index.js | 2 +- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/dist/README.md b/dist/README.md index d636930..424f374 100644 --- a/dist/README.md +++ b/dist/README.md @@ -2,8 +2,9 @@ This is a package to simplify use of Wargaming API. +[![BUILD](https://img.shields.io/github/workflow/status/Warcord/WarCord-Lib/CodeQL)](https://github.com/Warcord/WarCord-Lib/actions/workflows/codeql-analysis.yml) [![NPM_DOWNLOADS](https://img.shields.io/npm/dm/warcord)](https://nodei.co/npm/warcord/) [![NPM_LICENSE](https://img.shields.io/npm/l/warcord)](https://nodei.co/npm/warcord/) [![NPM_VERSION](https://img.shields.io/npm/v/warcord)](https://nodei.co/npm/warcord/) [![PULL_REQUESTS](https://img.shields.io/github/issues-pr/Warcord/WarCord-Lib)](https://github.com/Warcord/WarCord-Lib/pulls) + [![NPM](https://nodei.co/npm/warcord.png)](https://nodei.co/npm/warcord/) -[![BUILD](https://img.shields.io/appveyor/build/Warcord/WarCord-Lib)](https://github.com/Warcord/WarCord-Lib) ## Initial Files: ```js diff --git a/dist/index.d.ts b/dist/index.d.ts index 313a43a..127ddad 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1,9 +1,3 @@ -import { WOTClanResolve } from './packages/wargaming/world-of-tanks/src/interfaces/clan/clan-resolve'; -import { WOTClanSearchResolve } from './packages/wargaming/world-of-tanks/src/interfaces/clan/search-resolve'; -import { WOTTanksResolve } from './packages/wargaming/world-of-tanks/src/interfaces/tank/tank-resolve'; -import { WOTTopTanksResolve } from './packages/wargaming/world-of-tanks/src/interfaces/tank/top-tanks'; -import { WOTUserResolve } from './packages/wargaming/world-of-tanks/src/interfaces/user/user-return'; -import { UserSearchResolve } from './packages/wargaming/build/interfaces/search-resolve'; import { BaseClass } from './builds/class/base'; import { WOTUser } from './packages/wargaming/world-of-tanks/src/functions/user'; import { WOTTankopedia } from './packages/wargaming/world-of-tanks/src/functions/tank'; @@ -18,8 +12,14 @@ import { WOWSClans } from './packages/wargaming/world-of-warships/src/functions/ import { WOTCUser } from './packages/wargaming/world-of-tanks-console/src/functions/user'; import { WOTCClan } from './packages/wargaming/world-of-tanks-console/src/functions/clan'; import { WOTCTankopedia } from './packages/wargaming/world-of-tanks-console/src/functions/tankopedia'; -declare type AllRealms = 'na' | 'eu' | 'ru' | 'asia'; -declare class WarCord extends BaseClass { +import { WOTClanResolve } from './packages/wargaming/world-of-tanks/src/interfaces/clan/clan-resolve'; +import { WOTClanSearchResolve } from './packages/wargaming/world-of-tanks/src/interfaces/clan/search-resolve'; +import { WOTTanksResolve } from './packages/wargaming/world-of-tanks/src/interfaces/tank/tank-resolve'; +import { WOTTopTanksResolve } from './packages/wargaming/world-of-tanks/src/interfaces/tank/top-tanks'; +import { WOTUserResolve } from './packages/wargaming/world-of-tanks/src/interfaces/user/user-return'; +import { UserSearchResolve } from './packages/wargaming/build/interfaces/search-resolve'; +export declare type AllRealms = 'na' | 'eu' | 'ru' | 'asia'; +export declare class WarCord extends BaseClass { app: { id: string; realm?: AllRealms; @@ -53,6 +53,4 @@ declare class WarCord extends BaseClass { private idChecker; private realmChecker; } -export { WarCord }; export { WOTClanResolve, WOTClanSearchResolve, WOTTanksResolve, WOTTopTanksResolve, WOTUserResolve, UserSearchResolve }; -export { AllRealms }; diff --git a/dist/index.js b/dist/index.js index b712b2b..e5a0e2c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -64,7 +64,7 @@ class WarCord extends base_1.BaseClass { 'asia' ]; if (!realms.includes(realm)) { - (0, console_1.warn)('[WarCord] Your API Lang is not valid. Now, the default is in use.'); + (0, console_1.warn)('[WarCord] Your API Lang is not valid. Using default...'); return 'com'; } if (realm == 'na') {