chore: update config for fixed build
This commit is contained in:
parent
cdc3532690
commit
30ec61f44d
16
package-lock.json
generated
16
package-lock.json
generated
@ -13,7 +13,6 @@
|
||||
"csso": "^5.0.5",
|
||||
"eslint": "^9.24.0",
|
||||
"express": "^4.21.2",
|
||||
"express-rate-limit": "^7.5.0",
|
||||
"express-session": "^1.18.1",
|
||||
"glob": "^11.0.1",
|
||||
"globals": "^16.0.0",
|
||||
@ -1817,21 +1816,6 @@
|
||||
"url": "https://opencollective.com/express"
|
||||
}
|
||||
},
|
||||
"node_modules/express-rate-limit": {
|
||||
"version": "7.5.0",
|
||||
"resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-7.5.0.tgz",
|
||||
"integrity": "sha512-eB5zbQh5h+VenMPM3fh+nw1YExi5nMr6HUCR62ELSP11huvxm/Uir1H1QEyTkk5QX6A58pX6NmaTMceKZ0Eodg==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 16"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/express-rate-limit"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"express": "^4.11 || 5 || ^5.0.0-beta.1"
|
||||
}
|
||||
},
|
||||
"node_modules/express-session": {
|
||||
"version": "1.18.1",
|
||||
"resolved": "https://registry.npmjs.org/express-session/-/express-session-1.18.1.tgz",
|
||||
|
@ -27,7 +27,6 @@
|
||||
"csso": "^5.0.5",
|
||||
"eslint": "^9.24.0",
|
||||
"express": "^4.21.2",
|
||||
"express-rate-limit": "^7.5.0",
|
||||
"express-session": "^1.18.1",
|
||||
"glob": "^11.0.1",
|
||||
"globals": "^16.0.0",
|
||||
|
255
src/js/index.d.ts
vendored
255
src/js/index.d.ts
vendored
@ -1,123 +1,181 @@
|
||||
declare enum platforms {
|
||||
All = "all",
|
||||
Activision = "acti",
|
||||
Battlenet = "battle",
|
||||
PSN = "psn",
|
||||
Steam = "steam",
|
||||
Uno = "uno",
|
||||
XBOX = "xbl",
|
||||
ios = "ios",
|
||||
NULL = "_"
|
||||
All = 'all',
|
||||
Activision = 'acti',
|
||||
Battlenet = 'battle',
|
||||
PSN = 'psn',
|
||||
Steam = 'steam',
|
||||
Uno = 'uno',
|
||||
XBOX = 'xbl',
|
||||
ios = 'ios',
|
||||
NULL = '_',
|
||||
}
|
||||
declare enum games {
|
||||
ModernWarfare = "mw",
|
||||
ModernWarfare2 = "mw2",
|
||||
Vanguard = "vg",
|
||||
ColdWar = "cw",
|
||||
NULL = "_"
|
||||
ModernWarfare = 'mw',
|
||||
ModernWarfare2 = 'mw2',
|
||||
Vanguard = 'vg',
|
||||
ColdWar = 'cw',
|
||||
NULL = '_',
|
||||
}
|
||||
declare enum friendActions {
|
||||
Invite = "invite",
|
||||
Uninvite = "uninvite",
|
||||
Remove = "remove",
|
||||
Block = "block",
|
||||
Unblock = "unblock"
|
||||
Invite = 'invite',
|
||||
Uninvite = 'uninvite',
|
||||
Remove = 'remove',
|
||||
Block = 'block',
|
||||
Unblock = 'unblock',
|
||||
}
|
||||
declare const enableDebugMode: () => boolean;
|
||||
declare const disableDebugMode: () => boolean;
|
||||
declare const login: (ssoToken: string) => boolean;
|
||||
declare const telescopeLogin: (username: string, password: string) => Promise<boolean>;
|
||||
declare const telescopeLogin: (
|
||||
username: string,
|
||||
password: string
|
||||
) => Promise<boolean>;
|
||||
declare class WZ {
|
||||
fullData: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
combatHistory: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
combatHistoryWithDate: (gamertag: string, startTime: number, endTime: number, platform: platforms) => Promise<unknown>;
|
||||
breakdown: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
breakdownWithDate: (gamertag: string, startTime: number, endTime: number, platform: platforms) => Promise<unknown>;
|
||||
matchInfo: (matchId: string, platform: platforms) => Promise<unknown>;
|
||||
cleanGameMode: (mode: string) => Promise<string>;
|
||||
fullData: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
combatHistory: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
combatHistoryWithDate: (
|
||||
gamertag: string,
|
||||
startTime: number,
|
||||
endTime: number,
|
||||
platform: platforms
|
||||
) => Promise<unknown>;
|
||||
breakdown: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
breakdownWithDate: (
|
||||
gamertag: string,
|
||||
startTime: number,
|
||||
endTime: number,
|
||||
platform: platforms
|
||||
) => Promise<unknown>;
|
||||
matchInfo: (matchId: string, platform: platforms) => Promise<unknown>;
|
||||
cleanGameMode: (mode: string) => Promise<string>;
|
||||
}
|
||||
declare class MW {
|
||||
fullData: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
combatHistory: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
combatHistoryWithDate: (gamertag: string, startTime: number, endTime: number, platform: platforms) => Promise<unknown>;
|
||||
breakdown: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
breakdownWithDate: (gamertag: string, startTime: number, endTime: number, platform: platforms) => Promise<unknown>;
|
||||
matchInfo: (matchId: string, platform: platforms) => Promise<unknown>;
|
||||
matchHeatMap: (matchId: string, platform: platforms) => Promise<unknown>;
|
||||
seasonloot: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
bpProg: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
bundleInfo: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
mapList: (platform: platforms) => Promise<unknown>;
|
||||
communityMapDataForMapMode: (mapId: string, gamemode: string, platform: platforms) => Promise<unknown>;
|
||||
fullData: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
combatHistory: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
combatHistoryWithDate: (
|
||||
gamertag: string,
|
||||
startTime: number,
|
||||
endTime: number,
|
||||
platform: platforms
|
||||
) => Promise<unknown>;
|
||||
breakdown: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
breakdownWithDate: (
|
||||
gamertag: string,
|
||||
startTime: number,
|
||||
endTime: number,
|
||||
platform: platforms
|
||||
) => Promise<unknown>;
|
||||
matchInfo: (matchId: string, platform: platforms) => Promise<unknown>;
|
||||
matchHeatMap: (matchId: string, platform: platforms) => Promise<unknown>;
|
||||
seasonloot: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
bpProg: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
bundleInfo: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
mapList: (platform: platforms) => Promise<unknown>;
|
||||
communityMapDataForMapMode: (
|
||||
mapId: string,
|
||||
gamemode: string,
|
||||
platform: platforms
|
||||
) => Promise<unknown>;
|
||||
}
|
||||
declare class MW2 {
|
||||
fullData: (unoId: string) => Promise<unknown>;
|
||||
matches: (unoId: string) => Promise<unknown>;
|
||||
matchInfo: (unoId: string, matchId: string) => Promise<unknown>;
|
||||
fullData: (unoId: string) => Promise<unknown>;
|
||||
matches: (unoId: string) => Promise<unknown>;
|
||||
matchInfo: (unoId: string, matchId: string) => Promise<unknown>;
|
||||
}
|
||||
declare class WZ2 {
|
||||
fullData: (unoId: string) => Promise<unknown>;
|
||||
matches: (unoId: string) => Promise<unknown>;
|
||||
matchInfo: (unoId: string, matchId: string) => Promise<unknown>;
|
||||
fullData: (unoId: string) => Promise<unknown>;
|
||||
matches: (unoId: string) => Promise<unknown>;
|
||||
matchInfo: (unoId: string, matchId: string) => Promise<unknown>;
|
||||
}
|
||||
declare class MW3 {
|
||||
fullData: (unoId: string) => Promise<unknown>;
|
||||
matches: (unoId: string) => Promise<unknown>;
|
||||
matchInfo: (unoId: string, matchId: string) => Promise<unknown>;
|
||||
fullData: (unoId: string) => Promise<unknown>;
|
||||
matches: (unoId: string) => Promise<unknown>;
|
||||
matchInfo: (unoId: string, matchId: string) => Promise<unknown>;
|
||||
}
|
||||
declare class WZM {
|
||||
fullData: (unoId: string) => Promise<unknown>;
|
||||
matches: (unoId: string) => Promise<unknown>;
|
||||
matchInfo: (unoId: string, matchId: string) => Promise<unknown>;
|
||||
fullData: (unoId: string) => Promise<unknown>;
|
||||
matches: (unoId: string) => Promise<unknown>;
|
||||
matchInfo: (unoId: string, matchId: string) => Promise<unknown>;
|
||||
}
|
||||
declare class CW {
|
||||
fullData: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
combatHistory: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
combatHistoryWithDate: (gamertag: string, startTime: number, endTime: number, platform: platforms) => Promise<unknown>;
|
||||
breakdown: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
breakdownWithDate: (gamertag: string, startTime: number, endTime: number, platform: platforms) => Promise<unknown>;
|
||||
seasonloot: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
bpProg: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
bundleInfo: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
mapList: (platform: platforms) => Promise<unknown>;
|
||||
matchInfo: (matchId: string, platform: platforms) => Promise<unknown>;
|
||||
matchHeatMap: (matchId: string, platform: platforms) => Promise<unknown>;
|
||||
fullData: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
combatHistory: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
combatHistoryWithDate: (
|
||||
gamertag: string,
|
||||
startTime: number,
|
||||
endTime: number,
|
||||
platform: platforms
|
||||
) => Promise<unknown>;
|
||||
breakdown: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
breakdownWithDate: (
|
||||
gamertag: string,
|
||||
startTime: number,
|
||||
endTime: number,
|
||||
platform: platforms
|
||||
) => Promise<unknown>;
|
||||
seasonloot: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
bpProg: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
bundleInfo: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
mapList: (platform: platforms) => Promise<unknown>;
|
||||
matchInfo: (matchId: string, platform: platforms) => Promise<unknown>;
|
||||
matchHeatMap: (matchId: string, platform: platforms) => Promise<unknown>;
|
||||
}
|
||||
declare class VG {
|
||||
fullData: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
combatHistory: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
combatHistoryWithDate: (gamertag: string, startTime: number, endTime: number, platform: platforms) => Promise<unknown>;
|
||||
breakdown: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
breakdownWithDate: (gamertag: string, startTime: number, endTime: number, platform: platforms) => Promise<unknown>;
|
||||
seasonloot: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
bpProg: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
bundleInfo: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
mapList: (platform: platforms) => Promise<unknown>;
|
||||
matchInfo: (matchId: string, platform: platforms) => Promise<unknown>;
|
||||
matchHeatMap: (matchId: string, platform: platforms) => Promise<unknown>;
|
||||
fullData: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
combatHistory: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
combatHistoryWithDate: (
|
||||
gamertag: string,
|
||||
startTime: number,
|
||||
endTime: number,
|
||||
platform: platforms
|
||||
) => Promise<unknown>;
|
||||
breakdown: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
breakdownWithDate: (
|
||||
gamertag: string,
|
||||
startTime: number,
|
||||
endTime: number,
|
||||
platform: platforms
|
||||
) => Promise<unknown>;
|
||||
seasonloot: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
bpProg: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
bundleInfo: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
mapList: (platform: platforms) => Promise<unknown>;
|
||||
matchInfo: (matchId: string, platform: platforms) => Promise<unknown>;
|
||||
matchHeatMap: (matchId: string, platform: platforms) => Promise<unknown>;
|
||||
}
|
||||
declare class SHOP {
|
||||
purchasableItems: (gameId: string) => Promise<unknown>;
|
||||
bundleInformation: (title: string, bundleId: string) => Promise<unknown>;
|
||||
battlePassLoot: (title: games, season: number, platform: platforms) => Promise<unknown>;
|
||||
purchasableItems: (gameId: string) => Promise<unknown>;
|
||||
bundleInformation: (title: string, bundleId: string) => Promise<unknown>;
|
||||
battlePassLoot: (
|
||||
title: games,
|
||||
season: number,
|
||||
platform: platforms
|
||||
) => Promise<unknown>;
|
||||
}
|
||||
declare class USER {
|
||||
friendFeed: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
eventFeed: () => Promise<unknown>;
|
||||
loggedInIdentities: () => Promise<unknown>;
|
||||
userInfo: () => Promise<any>;
|
||||
codPoints: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
connectedAccounts: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
settings: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
friendAction: (gamertag: string, platform: platforms, action: friendActions) => Promise<unknown>;
|
||||
friendFeed: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
eventFeed: () => Promise<unknown>;
|
||||
loggedInIdentities: () => Promise<unknown>;
|
||||
userInfo: () => Promise<any>;
|
||||
codPoints: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
connectedAccounts: (
|
||||
gamertag: string,
|
||||
platform: platforms
|
||||
) => Promise<unknown>;
|
||||
settings: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
friendAction: (
|
||||
gamertag: string,
|
||||
platform: platforms,
|
||||
action: friendActions
|
||||
) => Promise<unknown>;
|
||||
}
|
||||
declare class DB {
|
||||
accolades: () => Promise<unknown>;
|
||||
allCDNData: () => Promise<unknown>;
|
||||
accolades: () => Promise<unknown>;
|
||||
allCDNData: () => Promise<unknown>;
|
||||
}
|
||||
declare class ALT {
|
||||
search: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
cleanWeapon: (weapon: string) => Promise<string>;
|
||||
search: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||
cleanWeapon: (weapon: string) => Promise<string>;
|
||||
}
|
||||
declare const Warzone: WZ;
|
||||
declare const ModernWarfare: MW;
|
||||
@ -131,4 +189,23 @@ declare const Store: SHOP;
|
||||
declare const Me: USER;
|
||||
declare const CDN: DB;
|
||||
declare const Misc: ALT;
|
||||
export { CDN, ColdWar, disableDebugMode, enableDebugMode, friendActions, login, Me, Misc, ModernWarfare, ModernWarfare2, ModernWarfare3, platforms, Store, telescopeLogin, Vanguard, Warzone, Warzone2, WarzoneMobile, };
|
||||
export {
|
||||
CDN,
|
||||
ColdWar,
|
||||
disableDebugMode,
|
||||
enableDebugMode,
|
||||
friendActions,
|
||||
login,
|
||||
Me,
|
||||
Misc,
|
||||
ModernWarfare,
|
||||
ModernWarfare2,
|
||||
ModernWarfare3,
|
||||
platforms,
|
||||
Store,
|
||||
telescopeLogin,
|
||||
Vanguard,
|
||||
Warzone,
|
||||
Warzone2,
|
||||
WarzoneMobile,
|
||||
};
|
||||
|
2286
src/js/index.js
2286
src/js/index.js
File diff suppressed because it is too large
Load Diff
@ -12,11 +12,8 @@
|
||||
"sourceMap": true,
|
||||
"declaration": true,
|
||||
"skipLibCheck": true,
|
||||
"typeRoots": [
|
||||
"./@types",
|
||||
"./node_modules/@types"
|
||||
]
|
||||
"typeRoots": ["./@types", "./node_modules/@types"]
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user