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",
|
"csso": "^5.0.5",
|
||||||
"eslint": "^9.24.0",
|
"eslint": "^9.24.0",
|
||||||
"express": "^4.21.2",
|
"express": "^4.21.2",
|
||||||
"express-rate-limit": "^7.5.0",
|
|
||||||
"express-session": "^1.18.1",
|
"express-session": "^1.18.1",
|
||||||
"glob": "^11.0.1",
|
"glob": "^11.0.1",
|
||||||
"globals": "^16.0.0",
|
"globals": "^16.0.0",
|
||||||
@ -1817,21 +1816,6 @@
|
|||||||
"url": "https://opencollective.com/express"
|
"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": {
|
"node_modules/express-session": {
|
||||||
"version": "1.18.1",
|
"version": "1.18.1",
|
||||||
"resolved": "https://registry.npmjs.org/express-session/-/express-session-1.18.1.tgz",
|
"resolved": "https://registry.npmjs.org/express-session/-/express-session-1.18.1.tgz",
|
||||||
|
@ -27,7 +27,6 @@
|
|||||||
"csso": "^5.0.5",
|
"csso": "^5.0.5",
|
||||||
"eslint": "^9.24.0",
|
"eslint": "^9.24.0",
|
||||||
"express": "^4.21.2",
|
"express": "^4.21.2",
|
||||||
"express-rate-limit": "^7.5.0",
|
|
||||||
"express-session": "^1.18.1",
|
"express-session": "^1.18.1",
|
||||||
"glob": "^11.0.1",
|
"glob": "^11.0.1",
|
||||||
"globals": "^16.0.0",
|
"globals": "^16.0.0",
|
||||||
|
143
src/js/index.d.ts
vendored
143
src/js/index.d.ts
vendored
@ -1,54 +1,81 @@
|
|||||||
declare enum platforms {
|
declare enum platforms {
|
||||||
All = "all",
|
All = 'all',
|
||||||
Activision = "acti",
|
Activision = 'acti',
|
||||||
Battlenet = "battle",
|
Battlenet = 'battle',
|
||||||
PSN = "psn",
|
PSN = 'psn',
|
||||||
Steam = "steam",
|
Steam = 'steam',
|
||||||
Uno = "uno",
|
Uno = 'uno',
|
||||||
XBOX = "xbl",
|
XBOX = 'xbl',
|
||||||
ios = "ios",
|
ios = 'ios',
|
||||||
NULL = "_"
|
NULL = '_',
|
||||||
}
|
}
|
||||||
declare enum games {
|
declare enum games {
|
||||||
ModernWarfare = "mw",
|
ModernWarfare = 'mw',
|
||||||
ModernWarfare2 = "mw2",
|
ModernWarfare2 = 'mw2',
|
||||||
Vanguard = "vg",
|
Vanguard = 'vg',
|
||||||
ColdWar = "cw",
|
ColdWar = 'cw',
|
||||||
NULL = "_"
|
NULL = '_',
|
||||||
}
|
}
|
||||||
declare enum friendActions {
|
declare enum friendActions {
|
||||||
Invite = "invite",
|
Invite = 'invite',
|
||||||
Uninvite = "uninvite",
|
Uninvite = 'uninvite',
|
||||||
Remove = "remove",
|
Remove = 'remove',
|
||||||
Block = "block",
|
Block = 'block',
|
||||||
Unblock = "unblock"
|
Unblock = 'unblock',
|
||||||
}
|
}
|
||||||
declare const enableDebugMode: () => boolean;
|
declare const enableDebugMode: () => boolean;
|
||||||
declare const disableDebugMode: () => boolean;
|
declare const disableDebugMode: () => boolean;
|
||||||
declare const login: (ssoToken: string) => 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 {
|
declare class WZ {
|
||||||
fullData: (gamertag: string, platform: platforms) => Promise<unknown>;
|
fullData: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||||
combatHistory: (gamertag: string, platform: platforms) => Promise<unknown>;
|
combatHistory: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||||
combatHistoryWithDate: (gamertag: string, startTime: number, endTime: number, platform: platforms) => Promise<unknown>;
|
combatHistoryWithDate: (
|
||||||
|
gamertag: string,
|
||||||
|
startTime: number,
|
||||||
|
endTime: number,
|
||||||
|
platform: platforms
|
||||||
|
) => Promise<unknown>;
|
||||||
breakdown: (gamertag: string, platform: platforms) => Promise<unknown>;
|
breakdown: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||||
breakdownWithDate: (gamertag: string, startTime: number, endTime: number, platform: platforms) => Promise<unknown>;
|
breakdownWithDate: (
|
||||||
|
gamertag: string,
|
||||||
|
startTime: number,
|
||||||
|
endTime: number,
|
||||||
|
platform: platforms
|
||||||
|
) => Promise<unknown>;
|
||||||
matchInfo: (matchId: string, platform: platforms) => Promise<unknown>;
|
matchInfo: (matchId: string, platform: platforms) => Promise<unknown>;
|
||||||
cleanGameMode: (mode: string) => Promise<string>;
|
cleanGameMode: (mode: string) => Promise<string>;
|
||||||
}
|
}
|
||||||
declare class MW {
|
declare class MW {
|
||||||
fullData: (gamertag: string, platform: platforms) => Promise<unknown>;
|
fullData: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||||
combatHistory: (gamertag: string, platform: platforms) => Promise<unknown>;
|
combatHistory: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||||
combatHistoryWithDate: (gamertag: string, startTime: number, endTime: number, platform: platforms) => Promise<unknown>;
|
combatHistoryWithDate: (
|
||||||
|
gamertag: string,
|
||||||
|
startTime: number,
|
||||||
|
endTime: number,
|
||||||
|
platform: platforms
|
||||||
|
) => Promise<unknown>;
|
||||||
breakdown: (gamertag: string, platform: platforms) => Promise<unknown>;
|
breakdown: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||||
breakdownWithDate: (gamertag: string, startTime: number, endTime: number, platform: platforms) => Promise<unknown>;
|
breakdownWithDate: (
|
||||||
|
gamertag: string,
|
||||||
|
startTime: number,
|
||||||
|
endTime: number,
|
||||||
|
platform: platforms
|
||||||
|
) => Promise<unknown>;
|
||||||
matchInfo: (matchId: string, platform: platforms) => Promise<unknown>;
|
matchInfo: (matchId: string, platform: platforms) => Promise<unknown>;
|
||||||
matchHeatMap: (matchId: string, platform: platforms) => Promise<unknown>;
|
matchHeatMap: (matchId: string, platform: platforms) => Promise<unknown>;
|
||||||
seasonloot: (gamertag: string, platform: platforms) => Promise<unknown>;
|
seasonloot: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||||
bpProg: (gamertag: string, platform: platforms) => Promise<unknown>;
|
bpProg: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||||
bundleInfo: (gamertag: string, platform: platforms) => Promise<unknown>;
|
bundleInfo: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||||
mapList: (platform: platforms) => Promise<unknown>;
|
mapList: (platform: platforms) => Promise<unknown>;
|
||||||
communityMapDataForMapMode: (mapId: string, gamemode: string, platform: platforms) => Promise<unknown>;
|
communityMapDataForMapMode: (
|
||||||
|
mapId: string,
|
||||||
|
gamemode: string,
|
||||||
|
platform: platforms
|
||||||
|
) => Promise<unknown>;
|
||||||
}
|
}
|
||||||
declare class MW2 {
|
declare class MW2 {
|
||||||
fullData: (unoId: string) => Promise<unknown>;
|
fullData: (unoId: string) => Promise<unknown>;
|
||||||
@ -73,9 +100,19 @@ declare class WZM {
|
|||||||
declare class CW {
|
declare class CW {
|
||||||
fullData: (gamertag: string, platform: platforms) => Promise<unknown>;
|
fullData: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||||
combatHistory: (gamertag: string, platform: platforms) => Promise<unknown>;
|
combatHistory: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||||
combatHistoryWithDate: (gamertag: string, startTime: number, endTime: number, platform: platforms) => Promise<unknown>;
|
combatHistoryWithDate: (
|
||||||
|
gamertag: string,
|
||||||
|
startTime: number,
|
||||||
|
endTime: number,
|
||||||
|
platform: platforms
|
||||||
|
) => Promise<unknown>;
|
||||||
breakdown: (gamertag: string, platform: platforms) => Promise<unknown>;
|
breakdown: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||||
breakdownWithDate: (gamertag: string, startTime: number, endTime: number, platform: platforms) => Promise<unknown>;
|
breakdownWithDate: (
|
||||||
|
gamertag: string,
|
||||||
|
startTime: number,
|
||||||
|
endTime: number,
|
||||||
|
platform: platforms
|
||||||
|
) => Promise<unknown>;
|
||||||
seasonloot: (gamertag: string, platform: platforms) => Promise<unknown>;
|
seasonloot: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||||
bpProg: (gamertag: string, platform: platforms) => Promise<unknown>;
|
bpProg: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||||
bundleInfo: (gamertag: string, platform: platforms) => Promise<unknown>;
|
bundleInfo: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||||
@ -86,9 +123,19 @@ declare class CW {
|
|||||||
declare class VG {
|
declare class VG {
|
||||||
fullData: (gamertag: string, platform: platforms) => Promise<unknown>;
|
fullData: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||||
combatHistory: (gamertag: string, platform: platforms) => Promise<unknown>;
|
combatHistory: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||||
combatHistoryWithDate: (gamertag: string, startTime: number, endTime: number, platform: platforms) => Promise<unknown>;
|
combatHistoryWithDate: (
|
||||||
|
gamertag: string,
|
||||||
|
startTime: number,
|
||||||
|
endTime: number,
|
||||||
|
platform: platforms
|
||||||
|
) => Promise<unknown>;
|
||||||
breakdown: (gamertag: string, platform: platforms) => Promise<unknown>;
|
breakdown: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||||
breakdownWithDate: (gamertag: string, startTime: number, endTime: number, platform: platforms) => Promise<unknown>;
|
breakdownWithDate: (
|
||||||
|
gamertag: string,
|
||||||
|
startTime: number,
|
||||||
|
endTime: number,
|
||||||
|
platform: platforms
|
||||||
|
) => Promise<unknown>;
|
||||||
seasonloot: (gamertag: string, platform: platforms) => Promise<unknown>;
|
seasonloot: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||||
bpProg: (gamertag: string, platform: platforms) => Promise<unknown>;
|
bpProg: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||||
bundleInfo: (gamertag: string, platform: platforms) => Promise<unknown>;
|
bundleInfo: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||||
@ -99,7 +146,11 @@ declare class VG {
|
|||||||
declare class SHOP {
|
declare class SHOP {
|
||||||
purchasableItems: (gameId: string) => Promise<unknown>;
|
purchasableItems: (gameId: string) => Promise<unknown>;
|
||||||
bundleInformation: (title: string, bundleId: string) => Promise<unknown>;
|
bundleInformation: (title: string, bundleId: string) => Promise<unknown>;
|
||||||
battlePassLoot: (title: games, season: number, platform: platforms) => Promise<unknown>;
|
battlePassLoot: (
|
||||||
|
title: games,
|
||||||
|
season: number,
|
||||||
|
platform: platforms
|
||||||
|
) => Promise<unknown>;
|
||||||
}
|
}
|
||||||
declare class USER {
|
declare class USER {
|
||||||
friendFeed: (gamertag: string, platform: platforms) => Promise<unknown>;
|
friendFeed: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||||
@ -107,9 +158,16 @@ declare class USER {
|
|||||||
loggedInIdentities: () => Promise<unknown>;
|
loggedInIdentities: () => Promise<unknown>;
|
||||||
userInfo: () => Promise<any>;
|
userInfo: () => Promise<any>;
|
||||||
codPoints: (gamertag: string, platform: platforms) => Promise<unknown>;
|
codPoints: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||||
connectedAccounts: (gamertag: string, platform: platforms) => Promise<unknown>;
|
connectedAccounts: (
|
||||||
|
gamertag: string,
|
||||||
|
platform: platforms
|
||||||
|
) => Promise<unknown>;
|
||||||
settings: (gamertag: string, platform: platforms) => Promise<unknown>;
|
settings: (gamertag: string, platform: platforms) => Promise<unknown>;
|
||||||
friendAction: (gamertag: string, platform: platforms, action: friendActions) => Promise<unknown>;
|
friendAction: (
|
||||||
|
gamertag: string,
|
||||||
|
platform: platforms,
|
||||||
|
action: friendActions
|
||||||
|
) => Promise<unknown>;
|
||||||
}
|
}
|
||||||
declare class DB {
|
declare class DB {
|
||||||
accolades: () => Promise<unknown>;
|
accolades: () => Promise<unknown>;
|
||||||
@ -131,4 +189,23 @@ declare const Store: SHOP;
|
|||||||
declare const Me: USER;
|
declare const Me: USER;
|
||||||
declare const CDN: DB;
|
declare const CDN: DB;
|
||||||
declare const Misc: ALT;
|
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,
|
||||||
|
};
|
||||||
|
1202
src/js/index.js
1202
src/js/index.js
File diff suppressed because it is too large
Load Diff
@ -12,10 +12,7 @@
|
|||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"typeRoots": [
|
"typeRoots": ["./@types", "./node_modules/@types"]
|
||||||
"./@types",
|
|
||||||
"./node_modules/@types"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"include": ["src/**/*"],
|
"include": ["src/**/*"],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user