31 lines
985 B
JavaScript
31 lines
985 B
JavaScript
/**
|
|
* 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';
|