🎨 Improve code readability by reformatting and updating function definitions and comments

This commit is contained in:
2026-01-28 18:18:55 +00:00
parent 1944b43af8
commit a24f766e37
154 changed files with 7261 additions and 117 deletions

View File

@@ -0,0 +1,30 @@
/**
* Challonge Service - Backwards Compatibility Wrapper
*
* This file maintains backwards compatibility by re-exporting both API versions.
*
* For new code, import directly from:
* - './challonge-v1.service.js' for legacy API (deprecated)
* - './challonge-v2.1.service.js' for current API (recommended)
*
* @example Using v2.1 (recommended)
* import { createChallongeV2Client, AuthType } from './challonge.service.js';
* const client = createChallongeV2Client({ token: apiKey, type: AuthType.API_KEY });
*
* @example Using v1 (backwards compatibility)
* import { createChallongeClient } from './challonge.service.js';
* const client = createChallongeClient(apiKey);
*/
// Primary exports (v2.1 - recommended for new code)
export {
createChallongeV2Client,
AuthType,
ScopeType
} from './challonge-v2.1.service.js';
// Legacy exports (v1 - backwards compatibility)
export {
createChallongeV1Client,
createChallongeClient
} from './challonge-v1.service.js';