chore: update TypeScript to 5.5 #458
							
								
								
									
										94
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										94
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							@ -20,8 +20,8 @@
 | 
				
			|||||||
      "devDependencies": {
 | 
					      "devDependencies": {
 | 
				
			||||||
        "@types/express": "^4.17.20",
 | 
					        "@types/express": "^4.17.20",
 | 
				
			||||||
        "@types/morgan": "^1.9.7",
 | 
					        "@types/morgan": "^1.9.7",
 | 
				
			||||||
        "@typescript-eslint/eslint-plugin": "^7.13.1",
 | 
					        "@typescript-eslint/eslint-plugin": "^7.14",
 | 
				
			||||||
        "@typescript-eslint/parser": "^7.13.1",
 | 
					        "@typescript-eslint/parser": "^7.14",
 | 
				
			||||||
        "eslint": "^8.56.0",
 | 
					        "eslint": "^8.56.0",
 | 
				
			||||||
        "eslint-plugin-prettier": "^5.1.3",
 | 
					        "eslint-plugin-prettier": "^5.1.3",
 | 
				
			||||||
        "morgan": "^1.10.0",
 | 
					        "morgan": "^1.10.0",
 | 
				
			||||||
@ -440,16 +440,16 @@
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/@typescript-eslint/eslint-plugin": {
 | 
					    "node_modules/@typescript-eslint/eslint-plugin": {
 | 
				
			||||||
      "version": "7.13.1",
 | 
					      "version": "7.15.0",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.13.1.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.15.0.tgz",
 | 
				
			||||||
      "integrity": "sha512-kZqi+WZQaZfPKnsflLJQCz6Ze9FFSMfXrrIOcyargekQxG37ES7DJNpJUE9Q/X5n3yTIP/WPutVNzgknQ7biLg==",
 | 
					      "integrity": "sha512-uiNHpyjZtFrLwLDpHnzaDlP3Tt6sGMqTCiqmxaN4n4RP0EfYZDODJyddiFDF44Hjwxr5xAcaYxVKm9QKQFJFLA==",
 | 
				
			||||||
      "dev": true,
 | 
					      "dev": true,
 | 
				
			||||||
      "dependencies": {
 | 
					      "dependencies": {
 | 
				
			||||||
        "@eslint-community/regexpp": "^4.10.0",
 | 
					        "@eslint-community/regexpp": "^4.10.0",
 | 
				
			||||||
        "@typescript-eslint/scope-manager": "7.13.1",
 | 
					        "@typescript-eslint/scope-manager": "7.15.0",
 | 
				
			||||||
        "@typescript-eslint/type-utils": "7.13.1",
 | 
					        "@typescript-eslint/type-utils": "7.15.0",
 | 
				
			||||||
        "@typescript-eslint/utils": "7.13.1",
 | 
					        "@typescript-eslint/utils": "7.15.0",
 | 
				
			||||||
        "@typescript-eslint/visitor-keys": "7.13.1",
 | 
					        "@typescript-eslint/visitor-keys": "7.15.0",
 | 
				
			||||||
        "graphemer": "^1.4.0",
 | 
					        "graphemer": "^1.4.0",
 | 
				
			||||||
        "ignore": "^5.3.1",
 | 
					        "ignore": "^5.3.1",
 | 
				
			||||||
        "natural-compare": "^1.4.0",
 | 
					        "natural-compare": "^1.4.0",
 | 
				
			||||||
@ -473,15 +473,15 @@
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/@typescript-eslint/parser": {
 | 
					    "node_modules/@typescript-eslint/parser": {
 | 
				
			||||||
      "version": "7.13.1",
 | 
					      "version": "7.15.0",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.13.1.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.15.0.tgz",
 | 
				
			||||||
      "integrity": "sha512-1ELDPlnLvDQ5ybTSrMhRTFDfOQEOXNM+eP+3HT/Yq7ruWpciQw+Avi73pdEbA4SooCawEWo3dtYbF68gN7Ed1A==",
 | 
					      "integrity": "sha512-k9fYuQNnypLFcqORNClRykkGOMOj+pV6V91R4GO/l1FDGwpqmSwoOQrOHo3cGaH63e+D3ZiCAOsuS/D2c99j/A==",
 | 
				
			||||||
      "dev": true,
 | 
					      "dev": true,
 | 
				
			||||||
      "dependencies": {
 | 
					      "dependencies": {
 | 
				
			||||||
        "@typescript-eslint/scope-manager": "7.13.1",
 | 
					        "@typescript-eslint/scope-manager": "7.15.0",
 | 
				
			||||||
        "@typescript-eslint/types": "7.13.1",
 | 
					        "@typescript-eslint/types": "7.15.0",
 | 
				
			||||||
        "@typescript-eslint/typescript-estree": "7.13.1",
 | 
					        "@typescript-eslint/typescript-estree": "7.15.0",
 | 
				
			||||||
        "@typescript-eslint/visitor-keys": "7.13.1",
 | 
					        "@typescript-eslint/visitor-keys": "7.15.0",
 | 
				
			||||||
        "debug": "^4.3.4"
 | 
					        "debug": "^4.3.4"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "engines": {
 | 
					      "engines": {
 | 
				
			||||||
@ -524,13 +524,13 @@
 | 
				
			|||||||
      "dev": true
 | 
					      "dev": true
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/@typescript-eslint/scope-manager": {
 | 
					    "node_modules/@typescript-eslint/scope-manager": {
 | 
				
			||||||
      "version": "7.13.1",
 | 
					      "version": "7.15.0",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.13.1.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.15.0.tgz",
 | 
				
			||||||
      "integrity": "sha512-adbXNVEs6GmbzaCpymHQ0MB6E4TqoiVbC0iqG3uijR8ZYfpAXMGttouQzF4Oat3P2GxDVIrg7bMI/P65LiQZdg==",
 | 
					      "integrity": "sha512-Q/1yrF/XbxOTvttNVPihxh1b9fxamjEoz2Os/Pe38OHwxC24CyCqXxGTOdpb4lt6HYtqw9HetA/Rf6gDGaMPlw==",
 | 
				
			||||||
      "dev": true,
 | 
					      "dev": true,
 | 
				
			||||||
      "dependencies": {
 | 
					      "dependencies": {
 | 
				
			||||||
        "@typescript-eslint/types": "7.13.1",
 | 
					        "@typescript-eslint/types": "7.15.0",
 | 
				
			||||||
        "@typescript-eslint/visitor-keys": "7.13.1"
 | 
					        "@typescript-eslint/visitor-keys": "7.15.0"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "engines": {
 | 
					      "engines": {
 | 
				
			||||||
        "node": "^18.18.0 || >=20.0.0"
 | 
					        "node": "^18.18.0 || >=20.0.0"
 | 
				
			||||||
@ -541,13 +541,13 @@
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/@typescript-eslint/type-utils": {
 | 
					    "node_modules/@typescript-eslint/type-utils": {
 | 
				
			||||||
      "version": "7.13.1",
 | 
					      "version": "7.15.0",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.13.1.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.15.0.tgz",
 | 
				
			||||||
      "integrity": "sha512-aWDbLu1s9bmgPGXSzNCxELu+0+HQOapV/y+60gPXafR8e2g1Bifxzevaa+4L2ytCWm+CHqpELq4CSoN9ELiwCg==",
 | 
					      "integrity": "sha512-SkgriaeV6PDvpA6253PDVep0qCqgbO1IOBiycjnXsszNTVQe5flN5wR5jiczoEoDEnAqYFSFFc9al9BSGVltkg==",
 | 
				
			||||||
      "dev": true,
 | 
					      "dev": true,
 | 
				
			||||||
      "dependencies": {
 | 
					      "dependencies": {
 | 
				
			||||||
        "@typescript-eslint/typescript-estree": "7.13.1",
 | 
					        "@typescript-eslint/typescript-estree": "7.15.0",
 | 
				
			||||||
        "@typescript-eslint/utils": "7.13.1",
 | 
					        "@typescript-eslint/utils": "7.15.0",
 | 
				
			||||||
        "debug": "^4.3.4",
 | 
					        "debug": "^4.3.4",
 | 
				
			||||||
        "ts-api-utils": "^1.3.0"
 | 
					        "ts-api-utils": "^1.3.0"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
@ -591,9 +591,9 @@
 | 
				
			|||||||
      "dev": true
 | 
					      "dev": true
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/@typescript-eslint/types": {
 | 
					    "node_modules/@typescript-eslint/types": {
 | 
				
			||||||
      "version": "7.13.1",
 | 
					      "version": "7.15.0",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.13.1.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.15.0.tgz",
 | 
				
			||||||
      "integrity": "sha512-7K7HMcSQIAND6RBL4kDl24sG/xKM13cA85dc7JnmQXw2cBDngg7c19B++JzvJHRG3zG36n9j1i451GBzRuHchw==",
 | 
					      "integrity": "sha512-aV1+B1+ySXbQH0pLK0rx66I3IkiZNidYobyfn0WFsdGhSXw+P3YOqeTq5GED458SfB24tg+ux3S+9g118hjlTw==",
 | 
				
			||||||
      "dev": true,
 | 
					      "dev": true,
 | 
				
			||||||
      "engines": {
 | 
					      "engines": {
 | 
				
			||||||
        "node": "^18.18.0 || >=20.0.0"
 | 
					        "node": "^18.18.0 || >=20.0.0"
 | 
				
			||||||
@ -604,13 +604,13 @@
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/@typescript-eslint/typescript-estree": {
 | 
					    "node_modules/@typescript-eslint/typescript-estree": {
 | 
				
			||||||
      "version": "7.13.1",
 | 
					      "version": "7.15.0",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.13.1.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.15.0.tgz",
 | 
				
			||||||
      "integrity": "sha512-uxNr51CMV7npU1BxZzYjoVz9iyjckBduFBP0S5sLlh1tXYzHzgZ3BR9SVsNed+LmwKrmnqN3Kdl5t7eZ5TS1Yw==",
 | 
					      "integrity": "sha512-gjyB/rHAopL/XxfmYThQbXbzRMGhZzGw6KpcMbfe8Q3nNQKStpxnUKeXb0KiN/fFDR42Z43szs6rY7eHk0zdGQ==",
 | 
				
			||||||
      "dev": true,
 | 
					      "dev": true,
 | 
				
			||||||
      "dependencies": {
 | 
					      "dependencies": {
 | 
				
			||||||
        "@typescript-eslint/types": "7.13.1",
 | 
					        "@typescript-eslint/types": "7.15.0",
 | 
				
			||||||
        "@typescript-eslint/visitor-keys": "7.13.1",
 | 
					        "@typescript-eslint/visitor-keys": "7.15.0",
 | 
				
			||||||
        "debug": "^4.3.4",
 | 
					        "debug": "^4.3.4",
 | 
				
			||||||
        "globby": "^11.1.0",
 | 
					        "globby": "^11.1.0",
 | 
				
			||||||
        "is-glob": "^4.0.3",
 | 
					        "is-glob": "^4.0.3",
 | 
				
			||||||
@ -658,9 +658,9 @@
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": {
 | 
					    "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": {
 | 
				
			||||||
      "version": "9.0.4",
 | 
					      "version": "9.0.5",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",
 | 
				
			||||||
      "integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==",
 | 
					      "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",
 | 
				
			||||||
      "dev": true,
 | 
					      "dev": true,
 | 
				
			||||||
      "dependencies": {
 | 
					      "dependencies": {
 | 
				
			||||||
        "brace-expansion": "^2.0.1"
 | 
					        "brace-expansion": "^2.0.1"
 | 
				
			||||||
@ -679,15 +679,15 @@
 | 
				
			|||||||
      "dev": true
 | 
					      "dev": true
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/@typescript-eslint/utils": {
 | 
					    "node_modules/@typescript-eslint/utils": {
 | 
				
			||||||
      "version": "7.13.1",
 | 
					      "version": "7.15.0",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.13.1.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.15.0.tgz",
 | 
				
			||||||
      "integrity": "sha512-h5MzFBD5a/Gh/fvNdp9pTfqJAbuQC4sCN2WzuXme71lqFJsZtLbjxfSk4r3p02WIArOF9N94pdsLiGutpDbrXQ==",
 | 
					      "integrity": "sha512-hfDMDqaqOqsUVGiEPSMLR/AjTSCsmJwjpKkYQRo1FNbmW4tBwBspYDwO9eh7sKSTwMQgBw9/T4DHudPaqshRWA==",
 | 
				
			||||||
      "dev": true,
 | 
					      "dev": true,
 | 
				
			||||||
      "dependencies": {
 | 
					      "dependencies": {
 | 
				
			||||||
        "@eslint-community/eslint-utils": "^4.4.0",
 | 
					        "@eslint-community/eslint-utils": "^4.4.0",
 | 
				
			||||||
        "@typescript-eslint/scope-manager": "7.13.1",
 | 
					        "@typescript-eslint/scope-manager": "7.15.0",
 | 
				
			||||||
        "@typescript-eslint/types": "7.13.1",
 | 
					        "@typescript-eslint/types": "7.15.0",
 | 
				
			||||||
        "@typescript-eslint/typescript-estree": "7.13.1"
 | 
					        "@typescript-eslint/typescript-estree": "7.15.0"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "engines": {
 | 
					      "engines": {
 | 
				
			||||||
        "node": "^18.18.0 || >=20.0.0"
 | 
					        "node": "^18.18.0 || >=20.0.0"
 | 
				
			||||||
@ -701,12 +701,12 @@
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/@typescript-eslint/visitor-keys": {
 | 
					    "node_modules/@typescript-eslint/visitor-keys": {
 | 
				
			||||||
      "version": "7.13.1",
 | 
					      "version": "7.15.0",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.13.1.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.15.0.tgz",
 | 
				
			||||||
      "integrity": "sha512-k/Bfne7lrP7hcb7m9zSsgcBmo+8eicqqfNAJ7uUY+jkTFpKeH2FSkWpFRtimBxgkyvqfu9jTPRbYOvud6isdXA==",
 | 
					      "integrity": "sha512-Hqgy/ETgpt2L5xueA/zHHIl4fJI2O4XUE9l4+OIfbJIRSnTJb/QscncdqqZzofQegIJugRIF57OJea1khw2SDw==",
 | 
				
			||||||
      "dev": true,
 | 
					      "dev": true,
 | 
				
			||||||
      "dependencies": {
 | 
					      "dependencies": {
 | 
				
			||||||
        "@typescript-eslint/types": "7.13.1",
 | 
					        "@typescript-eslint/types": "7.15.0",
 | 
				
			||||||
        "eslint-visitor-keys": "^3.4.3"
 | 
					        "eslint-visitor-keys": "^3.4.3"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "engines": {
 | 
					      "engines": {
 | 
				
			||||||
 | 
				
			|||||||
@ -24,8 +24,8 @@
 | 
				
			|||||||
  "devDependencies": {
 | 
					  "devDependencies": {
 | 
				
			||||||
    "@types/express": "^4.17.20",
 | 
					    "@types/express": "^4.17.20",
 | 
				
			||||||
    "@types/morgan": "^1.9.7",
 | 
					    "@types/morgan": "^1.9.7",
 | 
				
			||||||
    "@typescript-eslint/eslint-plugin": "^7.13.1",
 | 
					    "@typescript-eslint/eslint-plugin": "^7.14",
 | 
				
			||||||
    "@typescript-eslint/parser": "^7.13.1",
 | 
					    "@typescript-eslint/parser": "^7.14",
 | 
				
			||||||
    "eslint": "^8.56.0",
 | 
					    "eslint": "^8.56.0",
 | 
				
			||||||
    "eslint-plugin-prettier": "^5.1.3",
 | 
					    "eslint-plugin-prettier": "^5.1.3",
 | 
				
			||||||
    "morgan": "^1.10.0",
 | 
					    "morgan": "^1.10.0",
 | 
				
			||||||
 | 
				
			|||||||
@ -72,14 +72,14 @@ export const combineInventoryChanges = (InventoryChanges: IInventoryChanges, del
 | 
				
			|||||||
            InventoryChanges[key] = delta[key];
 | 
					            InventoryChanges[key] = delta[key];
 | 
				
			||||||
        } else if (Array.isArray(delta[key])) {
 | 
					        } else if (Array.isArray(delta[key])) {
 | 
				
			||||||
            const left = InventoryChanges[key] as object[];
 | 
					            const left = InventoryChanges[key] as object[];
 | 
				
			||||||
            const right = delta[key] as object[];
 | 
					            const right: object[] = delta[key];
 | 
				
			||||||
            for (const item of right) {
 | 
					            for (const item of right) {
 | 
				
			||||||
                left.push(item);
 | 
					                left.push(item);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            console.assert(key.substring(-3) == "Bin");
 | 
					            console.assert(key.substring(-3) == "Bin");
 | 
				
			||||||
            const left = InventoryChanges[key] as IBinChanges;
 | 
					            const left = InventoryChanges[key] as IBinChanges;
 | 
				
			||||||
            const right = delta[key] as IBinChanges;
 | 
					            const right: IBinChanges = delta[key];
 | 
				
			||||||
            left.count += right.count;
 | 
					            left.count += right.count;
 | 
				
			||||||
            left.platinum += right.platinum;
 | 
					            left.platinum += right.platinum;
 | 
				
			||||||
            left.Slots += right.Slots;
 | 
					            left.Slots += right.Slots;
 | 
				
			||||||
 | 
				
			|||||||
@ -187,7 +187,7 @@ const addRewardResponse = (
 | 
				
			|||||||
        InventoryChanges[InventoryCategory] = [];
 | 
					        InventoryChanges[InventoryCategory] = [];
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const existReward = InventoryChanges[InventoryCategory]!.find(item => item.ItemType === ItemType);
 | 
					    const existReward = InventoryChanges[InventoryCategory].find(item => item.ItemType === ItemType);
 | 
				
			||||||
    if (existReward) {
 | 
					    if (existReward) {
 | 
				
			||||||
        existReward.ItemCount += ItemCount;
 | 
					        existReward.ItemCount += ItemCount;
 | 
				
			||||||
        const missionReward = MissionRewards.find(missionReward => missionReward.TypeName === ItemType);
 | 
					        const missionReward = MissionRewards.find(missionReward => missionReward.TypeName === ItemType);
 | 
				
			||||||
@ -195,7 +195,7 @@ const addRewardResponse = (
 | 
				
			|||||||
            missionReward.ItemCount += ItemCount;
 | 
					            missionReward.ItemCount += ItemCount;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
        InventoryChanges[InventoryCategory]!.push({ ItemType, ItemCount });
 | 
					        InventoryChanges[InventoryCategory].push({ ItemType, ItemCount });
 | 
				
			||||||
        MissionRewards.push({
 | 
					        MissionRewards.push({
 | 
				
			||||||
            ItemCount,
 | 
					            ItemCount,
 | 
				
			||||||
            TweetText: ItemType, // ensure if/how this even still used, or if it's needed at all
 | 
					            TweetText: ItemType, // ensure if/how this even still used, or if it's needed at all
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user