chore: update PE+ to 0.5.38 (#1048)

Fixess #1041

Reviewed-on: OpenWF/SpaceNinjaServer#1048
This commit is contained in:
Sainan 2025-02-28 03:04:59 -08:00
parent 28b9e35d8d
commit 1468c6b1d2
3 changed files with 11 additions and 7 deletions

8
package-lock.json generated
View File

@ -12,7 +12,7 @@
"copyfiles": "^2.4.1", "copyfiles": "^2.4.1",
"express": "^5", "express": "^5",
"mongoose": "^8.11.0", "mongoose": "^8.11.0",
"warframe-public-export-plus": "^0.5.37", "warframe-public-export-plus": "^0.5.38",
"warframe-riven-info": "^0.1.2", "warframe-riven-info": "^0.1.2",
"winston": "^3.17.0", "winston": "^3.17.0",
"winston-daily-rotate-file": "^5.0.0" "winston-daily-rotate-file": "^5.0.0"
@ -4083,9 +4083,9 @@
} }
}, },
"node_modules/warframe-public-export-plus": { "node_modules/warframe-public-export-plus": {
"version": "0.5.37", "version": "0.5.38",
"resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.37.tgz", "resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.38.tgz",
"integrity": "sha512-atpTQ0IV0HF17rO2+Z+Vdv8nnnUxh5HhkcXBjc5iwY8tlvRgRWwHemq4PdA1bxR4tYFU5xoYjlgDe5D8ZfM4ew==" "integrity": "sha512-yvc86eOmYPSnnU8LzLBhg/lR1AS1RHID24TqFHVcZuOzMYc934NL8Cv7rtllyefWAMyl7iA5x9tyXSuJWbi6CA=="
}, },
"node_modules/warframe-riven-info": { "node_modules/warframe-riven-info": {
"version": "0.1.2", "version": "0.1.2",

View File

@ -17,7 +17,7 @@
"copyfiles": "^2.4.1", "copyfiles": "^2.4.1",
"express": "^5", "express": "^5",
"mongoose": "^8.11.0", "mongoose": "^8.11.0",
"warframe-public-export-plus": "^0.5.37", "warframe-public-export-plus": "^0.5.38",
"warframe-riven-info": "^0.1.2", "warframe-riven-info": "^0.1.2",
"winston": "^3.17.0", "winston": "^3.17.0",
"winston-daily-rotate-file": "^5.0.0" "winston-daily-rotate-file": "^5.0.0"

View File

@ -29,9 +29,11 @@ import {
ExportWarframes, ExportWarframes,
ExportWeapons, ExportWeapons,
IInboxMessage, IInboxMessage,
IMissionReward,
IPowersuit, IPowersuit,
IRecipe, IRecipe,
IRegion IRegion,
TReward
} from "warframe-public-export-plus"; } from "warframe-public-export-plus";
import questCompletionItems from "@/static/fixed_responses/questCompletionRewards.json"; import questCompletionItems from "@/static/fixed_responses/questCompletionRewards.json";
@ -164,7 +166,9 @@ export const getKeyChainItems = ({ KeyChain, ChainStage }: IKeyChainRequest): st
return keyChainStage.itemsToGiveWhenTriggered; return keyChainStage.itemsToGiveWhenTriggered;
}; };
export const getLevelKeyRewards = (levelKey: string) => { export const getLevelKeyRewards = (
levelKey: string
): { levelKeyRewards?: IMissionReward; levelKeyRewards2?: TReward[] } => {
if (!(levelKey in ExportKeys)) { if (!(levelKey in ExportKeys)) {
throw new Error(`LevelKey ${levelKey} not found`); throw new Error(`LevelKey ${levelKey} not found`);
} }