feat: start of monorepo

This commit is contained in:
TrèsAbhi committed 2024-09-06 21:45:58 -05:00
1 parent 14f39d71ac
commit 73c7bdf0c0
260 files changed
+1236 -1235

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
import { assertSecret } from '@blitzkit/core';
import { Region } from '../../constants/regions';
import { WARGAMING_APPLICATION_ID } from '../../constants/wargamingApplicationID';
import { EventManager } from '../blitzkit/eventManager';
import { patientFetch } from '../blitzkit/patientFetch';
@@ -73,7 +73,7 @@ export default function fetchBlitz<Data extends object>(
return new Promise<Data>((resolve) => {
queue.push({
url: `https://api.wotblitz.${region}/wotb/${path}/?${Object.entries({
application_id: WARGAMING_APPLICATION_ID,
application_id: assertSecret(process.env.WARGAMING_APPLICATION_ID),
...params,
})
.filter(([_, value]) => value !== undefined)