diff --git a/package-lock.json b/package-lock.json index ed1ed42..c035002 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,21 +16,20 @@ "path-to-regexp": "^6.2.1" }, "devDependencies": { - "@types/ioredis": "^4.28.10", "@types/jest": "^29.5.5", "@types/node": "^20.8.2", "@types/node-fetch": "^2.6.6", - "@typescript-eslint/eslint-plugin": "^5.59.1", - "@typescript-eslint/parser": "^5.59.1", + "@typescript-eslint/eslint-plugin": "^6.7.4", + "@typescript-eslint/parser": "^6.7.4", "bottleneck": "^2.19.5", "eslint": "^8.50.0", - "eslint-config-prettier": "^8.8.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-config-prettier": "^9.0.0", + "eslint-plugin-prettier": "^5.0.0", "ioredis-mock": "^8.9.0", "jest": "^29.7.0", - "jest-extended": "^3.2.4", + "jest-extended": "^4.0.1", "jest-junit": "^16.0.0", - "prettier": "^2.8.8", + "prettier": "^3.0.3", "ts-jest": "^29.1.1", "ts-node": "^10.9.1", "typescript": "^5.2.2" @@ -1284,6 +1283,26 @@ "node": ">= 8" } }, + "node_modules/@pkgr/utils": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/@pkgr/utils/-/utils-2.4.2.tgz", + "integrity": "sha512-POgTXhjrTfbTV63DiFXav4lBHiICLKKwDeaKn9Nphwj7WH6m0hMMCaJkMyRWjgtPFyRKRVoMXXjczsTQRDEhYw==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "fast-glob": "^3.3.0", + "is-glob": "^4.0.3", + "open": "^9.1.0", + "picocolors": "^1.0.0", + "tslib": "^2.6.0" + }, + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts" + } + }, "node_modules/@sinclair/typebox": { "version": "0.27.8", "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", @@ -1382,15 +1401,6 @@ "@types/node": "*" } }, - "node_modules/@types/ioredis": { - "version": "4.28.10", - "resolved": "https://registry.npmjs.org/@types/ioredis/-/ioredis-4.28.10.tgz", - "integrity": "sha512-69LyhUgrXdgcNDv7ogs1qXZomnfOEnSmrmMFqKgt1XMJxmoOSG/u3wYy13yACIfKuMJ8IhKgHafDO3sx19zVQQ==", - "dev": true, - "dependencies": { - "@types/node": "*" - } - }, "node_modules/@types/ioredis-mock": { "version": "8.2.1", "resolved": "https://registry.npmjs.org/@types/ioredis-mock/-/ioredis-mock-8.2.1.tgz", @@ -1436,9 +1446,9 @@ } }, "node_modules/@types/json-schema": { - "version": "7.0.11", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", - "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", + "version": "7.0.13", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.13.tgz", + "integrity": "sha512-RbSSoHliUbnXj3ny0CNFOoxrIDV6SUGyStHsvDqosw6CkdPV8TtWGlfecuK4ToyMEAql6pzNxgCFKanovUzlgQ==", "dev": true }, "node_modules/@types/node": { @@ -1458,9 +1468,9 @@ } }, "node_modules/@types/semver": { - "version": "7.3.13", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz", - "integrity": "sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==", + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-OxepLK9EuNEIPxWNME+C6WwbRAOOI2o2BaQEGzz5Lu2e4Z5eDnEo+/aVEDMIXywoJitJ7xWd641wrGLZdtwRyw==", "dev": true }, "node_modules/@types/stack-utils": { @@ -1485,32 +1495,33 @@ "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.59.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.1.tgz", - "integrity": "sha512-AVi0uazY5quFB9hlp2Xv+ogpfpk77xzsgsIEWyVS7uK/c7MZ5tw7ZPbapa0SbfkqE0fsAMkz5UwtgMLVk2BQAg==", + "version": "6.7.4", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.7.4.tgz", + "integrity": "sha512-DAbgDXwtX+pDkAHwiGhqP3zWUGpW49B7eqmgpPtg+BKJXwdct79ut9+ifqOFPJGClGKSHXn2PTBatCnldJRUoA==", "dev": true, "dependencies": { - "@eslint-community/regexpp": "^4.4.0", - "@typescript-eslint/scope-manager": "5.59.1", - "@typescript-eslint/type-utils": "5.59.1", - "@typescript-eslint/utils": "5.59.1", + "@eslint-community/regexpp": "^4.5.1", + "@typescript-eslint/scope-manager": "6.7.4", + "@typescript-eslint/type-utils": "6.7.4", + "@typescript-eslint/utils": "6.7.4", + "@typescript-eslint/visitor-keys": "6.7.4", "debug": "^4.3.4", - "grapheme-splitter": "^1.0.4", - "ignore": "^5.2.0", - "natural-compare-lite": "^1.4.0", - "semver": "^7.3.7", - "tsutils": "^3.21.0" + "graphemer": "^1.4.0", + "ignore": "^5.2.4", + "natural-compare": "^1.4.0", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^5.0.0", - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + "@typescript-eslint/parser": "^6.0.0 || ^6.0.0-alpha", + "eslint": "^7.0.0 || ^8.0.0" }, "peerDependenciesMeta": { "typescript": { @@ -1519,25 +1530,26 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "5.59.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.59.1.tgz", - "integrity": "sha512-nzjFAN8WEu6yPRDizIFyzAfgK7nybPodMNFGNH0M9tei2gYnYszRDqVA0xlnRjkl7Hkx2vYrEdb6fP2a21cG1g==", + "version": "6.7.4", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.7.4.tgz", + "integrity": "sha512-I5zVZFY+cw4IMZUeNCU7Sh2PO5O57F7Lr0uyhgCJmhN/BuTlnc55KxPonR4+EM3GBdfiCyGZye6DgMjtubQkmA==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "5.59.1", - "@typescript-eslint/types": "5.59.1", - "@typescript-eslint/typescript-estree": "5.59.1", + "@typescript-eslint/scope-manager": "6.7.4", + "@typescript-eslint/types": "6.7.4", + "@typescript-eslint/typescript-estree": "6.7.4", + "@typescript-eslint/visitor-keys": "6.7.4", "debug": "^4.3.4" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + "eslint": "^7.0.0 || ^8.0.0" }, "peerDependenciesMeta": { "typescript": { @@ -1546,16 +1558,16 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "5.59.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.59.1.tgz", - "integrity": "sha512-mau0waO5frJctPuAzcxiNWqJR5Z8V0190FTSqRw1Q4Euop6+zTwHAf8YIXNwDOT29tyUDrQ65jSg9aTU/H0omA==", + "version": "6.7.4", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.7.4.tgz", + "integrity": "sha512-SdGqSLUPTXAXi7c3Ob7peAGVnmMoGzZ361VswK2Mqf8UOYcODiYvs8rs5ILqEdfvX1lE7wEZbLyELCW+Yrql1A==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.59.1", - "@typescript-eslint/visitor-keys": "5.59.1" + "@typescript-eslint/types": "6.7.4", + "@typescript-eslint/visitor-keys": "6.7.4" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", @@ -1563,25 +1575,25 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "5.59.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.59.1.tgz", - "integrity": "sha512-ZMWQ+Oh82jWqWzvM3xU+9y5U7MEMVv6GLioM3R5NJk6uvP47kZ7YvlgSHJ7ERD6bOY7Q4uxWm25c76HKEwIjZw==", + "version": "6.7.4", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.7.4.tgz", + "integrity": "sha512-n+g3zi1QzpcAdHFP9KQF+rEFxMb2KxtnJGID3teA/nxKHOVi3ylKovaqEzGBbVY2pBttU6z85gp0D00ufLzViQ==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "5.59.1", - "@typescript-eslint/utils": "5.59.1", + "@typescript-eslint/typescript-estree": "6.7.4", + "@typescript-eslint/utils": "6.7.4", "debug": "^4.3.4", - "tsutils": "^3.21.0" + "ts-api-utils": "^1.0.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "*" + "eslint": "^7.0.0 || ^8.0.0" }, "peerDependenciesMeta": { "typescript": { @@ -1590,12 +1602,12 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "5.59.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.59.1.tgz", - "integrity": "sha512-dg0ICB+RZwHlysIy/Dh1SP+gnXNzwd/KS0JprD3Lmgmdq+dJAJnUPe1gNG34p0U19HvRlGX733d/KqscrGC1Pg==", + "version": "6.7.4", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.7.4.tgz", + "integrity": "sha512-o9XWK2FLW6eSS/0r/tgjAGsYasLAnOWg7hvZ/dGYSSNjCh+49k5ocPN8OmG5aZcSJ8pclSOyVKP2x03Sj+RrCA==", "dev": true, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", @@ -1603,21 +1615,21 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.59.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.1.tgz", - "integrity": "sha512-lYLBBOCsFltFy7XVqzX0Ju+Lh3WPIAWxYpmH/Q7ZoqzbscLiCW00LeYCdsUnnfnj29/s1WovXKh2gwCoinHNGA==", + "version": "6.7.4", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.7.4.tgz", + "integrity": "sha512-ty8b5qHKatlNYd9vmpHooQz3Vki3gG+3PchmtsA4TgrZBKWHNjWfkQid7K7xQogBqqc7/BhGazxMD5vr6Ha+iQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.59.1", - "@typescript-eslint/visitor-keys": "5.59.1", + "@typescript-eslint/types": "6.7.4", + "@typescript-eslint/visitor-keys": "6.7.4", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", - "semver": "^7.3.7", - "tsutils": "^3.21.0" + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", @@ -1630,42 +1642,41 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "5.59.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.59.1.tgz", - "integrity": "sha512-MkTe7FE+K1/GxZkP5gRj3rCztg45bEhsd8HYjczBuYm+qFHP5vtZmjx3B0yUCDotceQ4sHgTyz60Ycl225njmA==", + "version": "6.7.4", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.7.4.tgz", + "integrity": "sha512-PRQAs+HUn85Qdk+khAxsVV+oULy3VkbH3hQ8hxLRJXWBEd7iI+GbQxH5SEUSH7kbEoTp6oT1bOwyga24ELALTA==", "dev": true, "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@types/json-schema": "^7.0.9", - "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.59.1", - "@typescript-eslint/types": "5.59.1", - "@typescript-eslint/typescript-estree": "5.59.1", - "eslint-scope": "^5.1.1", - "semver": "^7.3.7" + "@eslint-community/eslint-utils": "^4.4.0", + "@types/json-schema": "^7.0.12", + "@types/semver": "^7.5.0", + "@typescript-eslint/scope-manager": "6.7.4", + "@typescript-eslint/types": "6.7.4", + "@typescript-eslint/typescript-estree": "6.7.4", + "semver": "^7.5.4" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + "eslint": "^7.0.0 || ^8.0.0" } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.59.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.1.tgz", - "integrity": "sha512-6waEYwBTCWryx0VJmP7JaM4FpipLsFl9CvYf2foAE8Qh/Y0s+bxWysciwOs0LTBED4JCaNxTZ5rGadB14M6dwA==", + "version": "6.7.4", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.7.4.tgz", + "integrity": "sha512-pOW37DUhlTZbvph50x5zZCkFn3xzwkGtNoJHzIM3svpiSkJzwOYr/kVBaXmf+RAQiUDs1AHEZVNPg6UJCJpwRA==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.59.1", - "eslint-visitor-keys": "^3.3.0" + "@typescript-eslint/types": "6.7.4", + "eslint-visitor-keys": "^3.4.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^16.0.0 || >=18.0.0" }, "funding": { "type": "opencollective", @@ -1906,11 +1917,32 @@ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", "dev": true }, + "node_modules/big-integer": { + "version": "1.6.51", + "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.51.tgz", + "integrity": "sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg==", + "dev": true, + "engines": { + "node": ">=0.6" + } + }, "node_modules/bottleneck": { "version": "2.19.5", "resolved": "https://registry.npmjs.org/bottleneck/-/bottleneck-2.19.5.tgz", "integrity": "sha512-VHiNCbI1lKdl44tGrhNfU3lup0Tj/ZBMJB5/2ZbNXRCPuRCO7ed2mgcK4r17y+KB2EfuYuRaVlwNbAeaWGSpbw==" }, + "node_modules/bplist-parser": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.2.0.tgz", + "integrity": "sha512-z0M+byMThzQmD9NILRniCUXYsYpjwnlO8N5uCFaCqIOpqRsJCrQL9NK3JsD67CN5a08nF5oIL2bD6loTdHOuKw==", + "dev": true, + "dependencies": { + "big-integer": "^1.6.44" + }, + "engines": { + "node": ">= 5.10.0" + } + }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -1988,6 +2020,21 @@ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", "dev": true }, + "node_modules/bundle-name": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-3.0.0.tgz", + "integrity": "sha512-PKA4BeSvBpQKQ8iPOGCSiell+N8P+Tf1DlwqmYhpe2gAhKPHn8EYOxVT+ShuGmhg8lN8XiSlS80yiExKXrURlw==", + "dev": true, + "dependencies": { + "run-applescript": "^5.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", @@ -2238,6 +2285,162 @@ "node": ">=0.10.0" } }, + "node_modules/default-browser": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-4.0.0.tgz", + "integrity": "sha512-wX5pXO1+BrhMkSbROFsyxUm0i/cJEScyNhA4PPxc41ICuv05ZZB/MX28s8aZx6xjmatvebIapF6hLEKEcpneUA==", + "dev": true, + "dependencies": { + "bundle-name": "^3.0.0", + "default-browser-id": "^3.0.0", + "execa": "^7.1.1", + "titleize": "^3.0.0" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser-id": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-3.0.0.tgz", + "integrity": "sha512-OZ1y3y0SqSICtE8DE4S8YOE9UZOJ8wO16fKWVP5J1Qz42kV9jcnMVFrEE/noXb/ss3Q4pZIH79kxofzyNNtUNA==", + "dev": true, + "dependencies": { + "bplist-parser": "^0.2.0", + "untildify": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser/node_modules/execa": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-7.2.0.tgz", + "integrity": "sha512-UduyVP7TLB5IcAQl+OzLyLcS/l32W/GLg+AhHJ+ow40FOk2U3SAllPwR44v4vmdFwIWqpdwxxpQbF1n5ta9seA==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.1", + "human-signals": "^4.3.0", + "is-stream": "^3.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^5.1.0", + "onetime": "^6.0.0", + "signal-exit": "^3.0.7", + "strip-final-newline": "^3.0.0" + }, + "engines": { + "node": "^14.18.0 || ^16.14.0 || >=18.0.0" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/default-browser/node_modules/human-signals": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-4.3.1.tgz", + "integrity": "sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==", + "dev": true, + "engines": { + "node": ">=14.18.0" + } + }, + "node_modules/default-browser/node_modules/is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser/node_modules/mimic-fn": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", + "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser/node_modules/npm-run-path": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.1.0.tgz", + "integrity": "sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==", + "dev": true, + "dependencies": { + "path-key": "^4.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser/node_modules/onetime": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", + "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", + "dev": true, + "dependencies": { + "mimic-fn": "^4.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser/node_modules/path-key": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", + "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser/node_modules/strip-final-newline": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", + "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/define-lazy-prop": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", + "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", @@ -2412,9 +2615,9 @@ } }, "node_modules/eslint-config-prettier": { - "version": "8.8.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz", - "integrity": "sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA==", + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.0.0.tgz", + "integrity": "sha512-IcJsTkJae2S35pRsRAwoCE+925rJJStOdkKnLVgtE+tEpqU0EVVM7OqrwxqgptKdX29NUwC82I5pXsGFIgSevw==", "dev": true, "bin": { "eslint-config-prettier": "bin/cli.js" @@ -2424,39 +2627,34 @@ } }, "node_modules/eslint-plugin-prettier": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", - "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.0.0.tgz", + "integrity": "sha512-AgaZCVuYDXHUGxj/ZGu1u8H8CYgDY3iG6w5kUFw4AzMVXzB7VvbKgYR4nATIN+OvUrghMbiDLeimVjVY5ilq3w==", "dev": true, "dependencies": { - "prettier-linter-helpers": "^1.0.0" + "prettier-linter-helpers": "^1.0.0", + "synckit": "^0.8.5" }, "engines": { - "node": ">=12.0.0" + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/prettier" }, "peerDependencies": { - "eslint": ">=7.28.0", - "prettier": ">=2.0.0" + "@types/eslint": ">=8.0.0", + "eslint": ">=8.0.0", + "prettier": ">=3.0.0" }, "peerDependenciesMeta": { + "@types/eslint": { + "optional": true + }, "eslint-config-prettier": { "optional": true } } }, - "node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "dev": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, "node_modules/eslint-visitor-keys": { "version": "3.4.3", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", @@ -2578,15 +2776,6 @@ "node": ">=4.0" } }, - "node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, "node_modules/esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", @@ -2657,9 +2846,9 @@ "dev": true }, "node_modules/fast-glob": { - "version": "3.2.12", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", - "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", + "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", "dev": true, "dependencies": { "@nodelib/fs.stat": "^2.0.2", @@ -2945,12 +3134,6 @@ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", "dev": true }, - "node_modules/grapheme-splitter": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", - "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", - "dev": true - }, "node_modules/graphemer": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", @@ -3120,6 +3303,21 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-docker": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", + "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==", + "dev": true, + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", @@ -3159,6 +3357,24 @@ "node": ">=0.10.0" } }, + "node_modules/is-inside-container": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", + "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==", + "dev": true, + "dependencies": { + "is-docker": "^3.0.0" + }, + "bin": { + "is-inside-container": "cli.js" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-number": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", @@ -3189,6 +3405,33 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "dev": true, + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-wsl/node_modules/is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "dev": true, + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", @@ -3480,9 +3723,9 @@ } }, "node_modules/jest-extended": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/jest-extended/-/jest-extended-3.2.4.tgz", - "integrity": "sha512-lSEYhSmvXZG/7YXI7KO3LpiUiQ90gi5giwCJNDMMsX5a+/NZhdbQF2G4ALOBN+KcXVT3H6FPVPohAuMXooaLTQ==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/jest-extended/-/jest-extended-4.0.1.tgz", + "integrity": "sha512-KM6dwuBUAgy6QONuR19CGubZB9Hkjqvl/d5Yc/FXsdB8+gsGxB2VQ+NEdOrr95J4GMPeLnDoPOKyi6+mKCCnZQ==", "dev": true, "dependencies": { "jest-diff": "^29.0.0", @@ -4130,12 +4373,6 @@ "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", "dev": true }, - "node_modules/natural-compare-lite": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", - "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", - "dev": true - }, "node_modules/node-fetch": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", @@ -4212,6 +4449,24 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/open": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/open/-/open-9.1.0.tgz", + "integrity": "sha512-OS+QTnw1/4vrf+9hh1jc1jnYjzSG4ttTBB8UxOwAnInG3Uo4ssetzC1ihqaIHjLJnA5GGlRl6QlZXOTQhRBUvg==", + "dev": true, + "dependencies": { + "default-browser": "^4.0.0", + "define-lazy-prop": "^3.0.0", + "is-inside-container": "^1.0.0", + "is-wsl": "^2.2.0" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/optionator": { "version": "0.9.3", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", @@ -4455,15 +4710,15 @@ } }, "node_modules/prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz", + "integrity": "sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==", "dev": true, "bin": { - "prettier": "bin-prettier.js" + "prettier": "bin/prettier.cjs" }, "engines": { - "node": ">=10.13.0" + "node": ">=14" }, "funding": { "url": "https://github.com/prettier/prettier?sponsor=1" @@ -4689,6 +4944,21 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/run-applescript": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-5.0.0.tgz", + "integrity": "sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg==", + "dev": true, + "dependencies": { + "execa": "^5.0.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", @@ -4904,6 +5174,22 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/synckit": { + "version": "0.8.5", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.5.tgz", + "integrity": "sha512-L1dapNV6vu2s/4Sputv8xGsCdAVlb5nRDMFU/E27D44l5U6cw1g0dGd45uLc+OXjNMmF4ntiMdCimzcjFKQI8Q==", + "dev": true, + "dependencies": { + "@pkgr/utils": "^2.3.1", + "tslib": "^2.5.0" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts" + } + }, "node_modules/test-exclude": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", @@ -4924,6 +5210,18 @@ "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", "dev": true }, + "node_modules/titleize": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/titleize/-/titleize-3.0.0.tgz", + "integrity": "sha512-KxVu8EYHDPBdUYdKZdKtU2aj2XfEx9AfjXxE/Aj0vT06w2icA09Vus1rh6eSu1y01akYg6BjIK/hxyLJINoMLQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/tmp": { "version": "0.0.33", "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", @@ -4968,6 +5266,18 @@ "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" }, + "node_modules/ts-api-utils": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.3.tgz", + "integrity": "sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg==", + "dev": true, + "engines": { + "node": ">=16.13.0" + }, + "peerDependencies": { + "typescript": ">=4.2.0" + } + }, "node_modules/ts-jest": { "version": "29.1.1", "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.1.1.tgz", @@ -5055,26 +5365,11 @@ } }, "node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", "dev": true }, - "node_modules/tsutils": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", - "dev": true, - "dependencies": { - "tslib": "^1.8.1" - }, - "engines": { - "node": ">= 6" - }, - "peerDependencies": { - "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" - } - }, "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", @@ -5121,6 +5416,15 @@ "node": ">=14.17" } }, + "node_modules/untildify": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz", + "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/update-browserslist-db": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz", diff --git a/package.json b/package.json index 7391a65..3f6a0d9 100644 --- a/package.json +++ b/package.json @@ -37,21 +37,20 @@ "path-to-regexp": "^6.2.1" }, "devDependencies": { - "@types/ioredis": "^4.28.10", "@types/jest": "^29.5.5", "@types/node": "^20.8.2", "@types/node-fetch": "^2.6.6", - "@typescript-eslint/eslint-plugin": "^5.59.1", - "@typescript-eslint/parser": "^5.59.1", + "@typescript-eslint/eslint-plugin": "^6.7.4", + "@typescript-eslint/parser": "^6.7.4", "bottleneck": "^2.19.5", "eslint": "^8.50.0", - "eslint-config-prettier": "^8.8.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-config-prettier": "^9.0.0", + "eslint-plugin-prettier": "^5.0.0", "ioredis-mock": "^8.9.0", "jest": "^29.7.0", - "jest-extended": "^3.2.4", + "jest-extended": "^4.0.1", "jest-junit": "^16.0.0", - "prettier": "^2.8.8", + "prettier": "^3.0.3", "ts-jest": "^29.1.1", "ts-node": "^10.9.1", "typescript": "^5.2.2" diff --git a/src/@types/index.ts b/src/@types/index.ts index cb1b757..ebf6d9e 100644 --- a/src/@types/index.ts +++ b/src/@types/index.ts @@ -1111,6 +1111,7 @@ export namespace RiotAPITypes { gameId: number; gameMode: string; gameName: string; + gameEndTimestamp: number; gameStartTimestamp: number; gameType: string; gameVersion: string; diff --git a/src/cache.ts b/src/cache.ts index 852e0fd..98b244f 100644 --- a/src/cache.ts +++ b/src/cache.ts @@ -17,7 +17,7 @@ export class RedisCache { return await this.client.setex( this.keyPrefix + key, ttl / 1000, - JSON.stringify(value) + JSON.stringify(value), ); } diff --git a/src/ddragon.ts b/src/ddragon.ts index 125e85a..1f7b823 100644 --- a/src/ddragon.ts +++ b/src/ddragon.ts @@ -55,7 +55,7 @@ export class DDragon { if (!championName) throw new Error("championName is required"); const v = version || (await this.versions.latest()); return await this.request( - `/cdn/${v}/data/${locale}/champion/${championName}.json` + `/cdn/${v}/data/${locale}/champion/${championName}.json`, ); }, }; diff --git a/src/index.ts b/src/index.ts index 28046a8..067bd39 100644 --- a/src/index.ts +++ b/src/index.ts @@ -95,7 +95,7 @@ export class RiotAPI { id: string; priority?: number; expiration?: number; - } = { id: new Date().toString() } + } = { id: new Date().toString() }, ) { return { id, priority, expiration }; } @@ -112,7 +112,7 @@ export class RiotAPI { private async setCache( key: string, url: string, - data: object + data: object, ): Promise { if (this.cache && this.config.cache?.ttls?.byMethod[key]) { debugCache("Setting", key, url, this.config.cache.ttls.byMethod[key]); @@ -124,7 +124,7 @@ export class RiotAPI { platformId: PlatformId, methodKey: Leaves, pathData: { [key: string]: string | number }, - options?: RiotAPITypes.RequestOptions + options?: RiotAPITypes.RequestOptions, ): Promise { const path = getPath(methodKey); const createPath = compile(path, { encode: encodeURIComponent }); @@ -137,7 +137,7 @@ export class RiotAPI { const resp = await this.riotRateLimiter.execute( { url, options: this.getOptions(options) }, - this.getJobOptions(options) + this.getJobOptions(options), ); await this.setCache(methodKey, url, resp); @@ -157,7 +157,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.ACCOUNT.GET_BY_PUUID, { puuid }, - { id: `${region}.account.getByPUUID.${puuid}`, priority: 4 } + { id: `${region}.account.getByPUUID.${puuid}`, priority: 4 }, ), getByRiotId: ({ region, @@ -175,7 +175,7 @@ export class RiotAPI { { id: `${region}.account.getByRiotId.${gameName}.${tagLine}`, priority: 4, - } + }, ), getByAccessToken: ({ region, @@ -191,7 +191,7 @@ export class RiotAPI { { id: `${region}.account.getByAccessToken`, headers: { Authorization: `Bearer ${accessToken}` }, - } + }, ), getActiveShardForPlayer: ({ region, @@ -206,7 +206,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.ACCOUNT.GET_ACTIVE_SHARD_FOR_PLAYER, { game, puuid }, - { id: `${region}.account.getActiveShardForPlayer.${game}.${puuid}` } + { id: `${region}.account.getActiveShardForPlayer.${game}.${puuid}` }, ), }; } @@ -224,7 +224,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.CHAMPION_MASTERY.GET_ALL_CHAMPIONS, { summonerId }, - { id: `${region}.championMastery.getAllChampions.${summonerId}` } + { id: `${region}.championMastery.getAllChampions.${summonerId}` }, ), getChampion: ({ region, @@ -241,7 +241,7 @@ export class RiotAPI { { championId, summonerId }, { id: `${region}.championMastery.getChampion.${championId}.${summonerId}`, - } + }, ), getTopChampions: ({ region, @@ -261,7 +261,7 @@ export class RiotAPI { { id: `${region}.championMastery.getTopChampions.${summonerId}`, params, - } + }, ), getMasteryScore: ({ region, @@ -274,7 +274,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.CHAMPION_MASTERY.GET_CHAMPION_MASTERY_SCORE, { summonerId }, - { id: `${region}.championMastery.getMasteryScore.${summonerId}` } + { id: `${region}.championMastery.getMasteryScore.${summonerId}` }, ), }; } @@ -290,7 +290,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.CHAMPION.GET_CHAMPION_ROTATIONS, {}, - { id: `${region}.champion.getRotations` } + { id: `${region}.champion.getRotations` }, ), }; } @@ -308,7 +308,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.CLASH.GET_PLAYERS_BY_PUUID, { puuid }, - { id: `${region}.clash.getPlayersByPUUID.${puuid}` } + { id: `${region}.clash.getPlayersByPUUID.${puuid}` }, ), getPlayersBySummonerId: ({ region, @@ -321,7 +321,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.CLASH.GET_PLAYERS_BY_SUMMONER, { summonerId }, - { id: `${region}.clash.getPlayersBySummonerId.${summonerId}` } + { id: `${region}.clash.getPlayersBySummonerId.${summonerId}` }, ), getTeamById: ({ region, @@ -334,7 +334,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.CLASH.GET_TEAM, { teamId }, - { id: `${region}.clash.getTeamById.${teamId}` } + { id: `${region}.clash.getTeamById.${teamId}` }, ), getTournaments: ({ region, @@ -345,7 +345,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.CLASH.GET_TOURNAMENTS, {}, - { id: `${region}.clash.getTournaments` } + { id: `${region}.clash.getTournaments` }, ), getTournamentById: ({ region, @@ -358,7 +358,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.CLASH.GET_TOURNAMENT, { tournamentId }, - { id: `${region}.clash.getTournamentById.${tournamentId}` } + { id: `${region}.clash.getTournamentById.${tournamentId}` }, ), getTournamentByTeamId: ({ region, @@ -371,7 +371,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.CLASH.GET_TOURNAMENT_TEAM, { teamId }, - { id: `${region}.clash.getTournamentByTeamId.${teamId}` } + { id: `${region}.clash.getTournamentByTeamId.${teamId}` }, ), }; } @@ -395,7 +395,7 @@ export class RiotAPI { { queue, tier, division }, { id: `${region}.leagueExp.getLeagueEntries.${queue}.${tier}.${division}`, - } + }, ), }; } @@ -415,7 +415,7 @@ export class RiotAPI { { queue }, { id: `${region}.league.getChallengerByQueue.${queue}`, - } + }, ), getEntriesBySummonerId: ({ region, @@ -430,7 +430,7 @@ export class RiotAPI { { summonerId }, { id: `${region}.league.getEntriesBySummonerId.${summonerId}`, - } + }, ), getAllEntries: ({ region, @@ -449,7 +449,7 @@ export class RiotAPI { { queue, tier, division }, { id: `${region}.league.getAllEntries.${queue}.${tier}.${division}`, - } + }, ), getGrandmasterByQueue: ({ region, @@ -464,7 +464,7 @@ export class RiotAPI { { queue }, { id: `${region}.league.getGrandmasterByQueue.${queue}`, - } + }, ), getById: ({ region, @@ -479,7 +479,7 @@ export class RiotAPI { { leagueId }, { id: `${region}.league.getById.${leagueId}`, - } + }, ), getMasterByQueue: ({ region, @@ -494,7 +494,7 @@ export class RiotAPI { { queue }, { id: `${region}.league.getMasterByQueue.${queue}`, - } + }, ), }; } @@ -510,7 +510,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.LOL_CHALLENGES.GET_CONFIG, {}, - { id: `${region}.lolChallenges.getConfig` } + { id: `${region}.lolChallenges.getConfig` }, ), getPercentiles: ({ region, @@ -521,7 +521,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.LOL_CHALLENGES.GET_PERCENTILES, {}, - { id: `${region}.lolChallenges.getPercentiles` } + { id: `${region}.lolChallenges.getPercentiles` }, ), getConfigById: ({ region, @@ -534,7 +534,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.LOL_CHALLENGES.GET_CONFIG_BY_ID, { challengeId }, - { id: `${region}.lolChallenges.getConfigById.${challengeId}` } + { id: `${region}.lolChallenges.getConfigById.${challengeId}` }, ), getLeaderboardById: ({ region, @@ -554,7 +554,7 @@ export class RiotAPI { { id: `${region}.lolChallenges.getLeaderboardById.${challengeId}`, params, - } + }, ), getPercentilesById: ({ region, @@ -567,7 +567,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.LOL_CHALLENGES.GET_PERCENTILES_BY_ID, { challengeId }, - { id: `${region}.lolChallenges.getPercentilesById.${challengeId}` } + { id: `${region}.lolChallenges.getPercentilesById.${challengeId}` }, ), getPlayerDataByPUUID: ({ region, @@ -580,7 +580,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.LOL_CHALLENGES.GET_PLAYER_DATA_BY_PUUID, { puuid }, - { id: `${region}.lolChallenges.getPlayerDataByPUUID.${puuid}` } + { id: `${region}.lolChallenges.getPlayerDataByPUUID.${puuid}` }, ), }; } @@ -604,7 +604,7 @@ export class RiotAPI { { id: `${region}.lorDeck.getDecksForPlayer`, headers: { Authorization: `Bearer ${accessToken}` }, - } + }, ), createDeck: ({ region, @@ -624,7 +624,7 @@ export class RiotAPI { body, method: "POST", headers: { Authorization: `Bearer ${accessToken}` }, - } + }, ), }; } @@ -648,7 +648,7 @@ export class RiotAPI { { id: `${region}.lorInventory.getCardsOwnedByPlayer`, headers: { Authorization: `Bearer ${accessToken}` }, - } + }, ), }; } @@ -666,7 +666,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.LOR_MATCH.GET_MATCH_IDS_BY_PUUID, { puuid }, - { id: `${region}.lorMatch.getMatchIdsByPUUID.${puuid}` } + { id: `${region}.lorMatch.getMatchIdsByPUUID.${puuid}` }, ), getById: ({ region, @@ -679,7 +679,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.LOR_MATCH.GET_MATCH_BY_ID, { matchId }, - { id: `${region}.lorMatch.getById.${matchId}` } + { id: `${region}.lorMatch.getById.${matchId}` }, ), }; } @@ -698,7 +698,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.LOR_RANKED.GET_MASTER_TIER, {}, - { id: `${region}.lorRanked.getMasterTier` } + { id: `${region}.lorRanked.getMasterTier` }, ), }; } @@ -716,7 +716,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.MATCH.GET_IDS_BY_TOURNAMENT_CODE, { tournamentCode }, - { id: `${region}.match.getIdsByTournamentCode.${tournamentCode}` } + { id: `${region}.match.getIdsByTournamentCode.${tournamentCode}` }, ), getById: ({ region, @@ -729,7 +729,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.MATCH.GET_MATCH_BY_ID, { matchId }, - { id: `${region}.match.getById.${matchId}` } + { id: `${region}.match.getById.${matchId}` }, ), getByIdAndTournamentCode: ({ region, @@ -746,7 +746,7 @@ export class RiotAPI { { matchId, tournamentCode }, { id: `${region}.match.getByIdAndTournamentCode.${matchId}.${tournamentCode}`, - } + }, ), getMatchlistByAccount: ({ region, @@ -772,7 +772,7 @@ export class RiotAPI { { id: `${region}.match.getMatchlistByAccount.${accountId}`, params, - } + }, ), getTimelineById: ({ region, @@ -787,7 +787,7 @@ export class RiotAPI { { matchId }, { id: `${region}.match.getTimelineById.${matchId}`, - } + }, ), }; } @@ -817,7 +817,7 @@ export class RiotAPI { { id: `${cluster}.matchv5.getIdsByPuuid.${puuid}`, params, - } + }, ), getMatchById: ({ cluster, @@ -832,7 +832,7 @@ export class RiotAPI { { matchId }, { id: `${cluster}.matchv5.getMatchById.${matchId}`, - } + }, ), getMatchTimelineById: ({ cluster, @@ -847,7 +847,7 @@ export class RiotAPI { { matchId }, { id: `${cluster}.matchv5.getMatchTimelineById.${matchId}`, - } + }, ), }; } @@ -865,7 +865,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.SPECTATOR.GET_GAME_BY_SUMMONER_ID, { summonerId }, - { id: `${region}.spectator.getBySummonerId.${summonerId}` } + { id: `${region}.spectator.getBySummonerId.${summonerId}` }, ), getFeaturedGames: ({ region, @@ -876,7 +876,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.SPECTATOR.GET_FEATURED_GAMES, {}, - { id: `${region}.spectator.getFeaturedGames` } + { id: `${region}.spectator.getFeaturedGames` }, ), }; } @@ -894,7 +894,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.SUMMONER.GET_BY_RSO_PUUID, { rsoPuuid }, - { id: `${region}.summoner.getByRsoPUUID.${rsoPuuid}` } + { id: `${region}.summoner.getByRsoPUUID.${rsoPuuid}` }, ), getByAccountId: ({ region, @@ -907,7 +907,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.SUMMONER.GET_BY_ACCOUNT_ID, { accountId }, - { id: `${region}.summoner.getByAccountId.${accountId}` } + { id: `${region}.summoner.getByAccountId.${accountId}` }, ), getBySummonerName: ({ region, @@ -920,7 +920,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.SUMMONER.GET_BY_SUMMONER_NAME, { summonerName }, - { id: `${region}.summoner.getBySummonerName.${summonerName}` } + { id: `${region}.summoner.getBySummonerName.${summonerName}` }, ), getByPUUID: ({ region, @@ -933,7 +933,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.SUMMONER.GET_BY_PUUID, { puuid }, - { id: `${region}.summoner.getByPUUID.${puuid}` } + { id: `${region}.summoner.getByPUUID.${puuid}` }, ), getBySummonerId: ({ region, @@ -946,7 +946,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.SUMMONER.GET_BY_SUMMONER_ID, { summonerId }, - { id: `${region}.summoner.getBySummonerId.${summonerId}` } + { id: `${region}.summoner.getBySummonerId.${summonerId}` }, ), getByAccessToken: ({ region, @@ -962,7 +962,7 @@ export class RiotAPI { { id: `${region}.summoner.getByAccessToken`, headers: { Authorization: `Bearer ${accessToken}` }, - } + }, ), }; } @@ -978,7 +978,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.TFT_LEAGUE.GET_CHALLENGER, {}, - { id: `${region}.tftLeague.getChallenger` } + { id: `${region}.tftLeague.getChallenger` }, ), getEntriesBySummonerId: ({ region, @@ -991,7 +991,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.TFT_LEAGUE.GET_ENTRIES_BY_SUMMONER, { summonerId }, - { id: `${region}.tftLeague.getEntriesBySummonerId.${summonerId}` } + { id: `${region}.tftLeague.getEntriesBySummonerId.${summonerId}` }, ), getAllEntries: ({ region, @@ -1013,7 +1013,7 @@ export class RiotAPI { { id: `${region}.tftLeague.getAllEntries.${tier}.${division}`, params, - } + }, ), getGrandmaster: ({ region, @@ -1024,7 +1024,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.TFT_LEAGUE.GET_GRANDMASTER, {}, - { id: `${region}.tftLeague.getGrandmaster` } + { id: `${region}.tftLeague.getGrandmaster` }, ), getLeagueById: ({ region, @@ -1037,7 +1037,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.TFT_LEAGUE.GET_LEAGUE_BY_ID, { leagueId }, - { id: `${region}.tftLeague.getLeagueById.${leagueId}` } + { id: `${region}.tftLeague.getLeagueById.${leagueId}` }, ), getMaster: ({ region, @@ -1048,7 +1048,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.TFT_LEAGUE.GET_MASTER, {}, - { id: `${region}.tftLeague.getMaster` } + { id: `${region}.tftLeague.getMaster` }, ), getTopRatedLadderByQueue: ({ region, @@ -1061,7 +1061,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.TFT_LEAGUE.GET_TOP_RATED_LADDER_BY_QUEUE, { queue }, - { id: `${region}.tftLeague.getTopRatedLadderByQueue.${queue}` } + { id: `${region}.tftLeague.getTopRatedLadderByQueue.${queue}` }, ), }; } @@ -1086,7 +1086,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.TFT_MATCH.GET_MATCH_IDS_BY_PUUID, { puuid }, - { id: `${region}.tftMatch.getMatchIdsByPUUID.${puuid}`, params } + { id: `${region}.tftMatch.getMatchIdsByPUUID.${puuid}`, params }, ), getById: ({ region, @@ -1099,7 +1099,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.TFT_MATCH.GET_MATCH_BY_ID, { matchId }, - { id: `${region}.tftMatch.getById.${matchId}` } + { id: `${region}.tftMatch.getById.${matchId}` }, ), }; } @@ -1117,7 +1117,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.TFT_SUMMONER.GET_BY_ACCOUNT_ID, { accountId }, - { id: `${region}.tftSummoner.getByAccountId.${accountId}` } + { id: `${region}.tftSummoner.getByAccountId.${accountId}` }, ), getBySummonerName: ({ region, @@ -1130,7 +1130,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.TFT_SUMMONER.GET_BY_SUMMONER_NAME, { summonerName }, - { id: `${region}.tftSummoner.getBySummonerName.${summonerName}` } + { id: `${region}.tftSummoner.getBySummonerName.${summonerName}` }, ), getByAccessToken: ({ region, @@ -1146,7 +1146,7 @@ export class RiotAPI { { id: `${region}.tftSummoner.getByAccessToken`, headers: { Authorization: `Bearer ${accessToken}` }, - } + }, ), getByPUUID: ({ region, @@ -1159,7 +1159,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.TFT_SUMMONER.GET_BY_PUUID, { puuid }, - { id: `${region}.tftSummoner.getByPUUID.${puuid}` } + { id: `${region}.tftSummoner.getByPUUID.${puuid}` }, ), getBySummonerId: ({ region, @@ -1172,7 +1172,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.TFT_SUMMONER.GET_BY_SUMMONER_ID, { summonerId }, - { id: `${region}.tftSummoner.getBySummonerId.${summonerId}` } + { id: `${region}.tftSummoner.getBySummonerId.${summonerId}` }, ), }; } @@ -1190,7 +1190,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.THIRD_PARTY_CODE.GET_BY_SUMMONER_ID, { summonerId }, - { id: `${region}.thirdPartyCode.getBySummonerId.${summonerId}` } + { id: `${region}.thirdPartyCode.getBySummonerId.${summonerId}` }, ), }; } @@ -1216,7 +1216,7 @@ export class RiotAPI { params, body, method: "POST", - } + }, ), getLobbyEventsByTournamentCode: ({ tournamentCode, @@ -1230,7 +1230,7 @@ export class RiotAPI { { tournamentCode }, { id: `${PlatformId.AMERICAS}.tournamentStub.getLobbyEventsByTournamentCode.${tournamentCode}`, - } + }, ), createProvider: ({ body, @@ -1246,7 +1246,7 @@ export class RiotAPI { body, method: "POST", - } + }, ), createTournament: ({ body, @@ -1261,7 +1261,7 @@ export class RiotAPI { id: `${PlatformId.AMERICAS}.tournamentStub.createTournament`, body, method: "POST", - } + }, ), }; } @@ -1288,7 +1288,7 @@ export class RiotAPI { params, body, method: "POST", - } + }, ), getByTournamentCode: ({ tournamentCode, @@ -1302,7 +1302,7 @@ export class RiotAPI { { id: `${PlatformId.AMERICAS}.tournament.getByTournamentCode.${tournamentCode}`, priority: 0, - } + }, ), updateByTournamentCode: ({ tournamentCode, @@ -1320,7 +1320,7 @@ export class RiotAPI { priority: 0, body, method: "POST", - } + }, ), getLobbyEventsByTournamentCode: ({ tournamentCode, @@ -1335,7 +1335,7 @@ export class RiotAPI { { id: `${PlatformId.AMERICAS}.tournament.getLobbyEventsByTournamentCode.${tournamentCode}`, priority: 0, - } + }, ), createProvider: ({ body, @@ -1351,7 +1351,7 @@ export class RiotAPI { priority: 0, body, method: "POST", - } + }, ), createTournament: ({ body, @@ -1367,7 +1367,7 @@ export class RiotAPI { priority: 0, body, method: "POST", - } + }, ), }; } @@ -1393,7 +1393,7 @@ export class RiotAPI { params, body, method: "POST", - } + }, ), getByTournamentCode: ({ tournamentCode, @@ -1407,7 +1407,7 @@ export class RiotAPI { { id: `${PlatformId.AMERICAS}.tournamentStubV5.getByTournamentCode.${tournamentCode}`, priority: 0, - } + }, ), getLobbyEventsByTournamentCode: ({ tournamentCode, @@ -1421,7 +1421,7 @@ export class RiotAPI { { tournamentCode }, { id: `${PlatformId.AMERICAS}.tournamentStubV5.getLobbyEventsByTournamentCode.${tournamentCode}`, - } + }, ), createProvider: ({ body, @@ -1437,7 +1437,7 @@ export class RiotAPI { body, method: "POST", - } + }, ), createTournament: ({ body, @@ -1452,7 +1452,7 @@ export class RiotAPI { id: `${PlatformId.AMERICAS}.tournamentStubV5.createTournament`, body, method: "POST", - } + }, ), }; } @@ -1479,7 +1479,7 @@ export class RiotAPI { params, body, method: "POST", - } + }, ), getByTournamentCode: ({ tournamentCode, @@ -1493,7 +1493,7 @@ export class RiotAPI { { id: `${PlatformId.AMERICAS}.tournamentV5.getByTournamentCode.${tournamentCode}`, priority: 0, - } + }, ), updateByTournamentCode: ({ tournamentCode, @@ -1511,7 +1511,7 @@ export class RiotAPI { priority: 0, body, method: "POST", - } + }, ), getLobbyEventsByTournamentCode: ({ tournamentCode, @@ -1526,7 +1526,7 @@ export class RiotAPI { { id: `${PlatformId.AMERICAS}.tournamentV5.getLobbyEventsByTournamentCode.${tournamentCode}`, priority: 0, - } + }, ), createProvider: ({ body, @@ -1542,7 +1542,7 @@ export class RiotAPI { priority: 0, body, method: "POST", - } + }, ), createTournament: ({ body, @@ -1558,7 +1558,7 @@ export class RiotAPI { priority: 0, body, method: "POST", - } + }, ), }; } @@ -1578,7 +1578,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.VAL_CONTENT.GET_CONTENT, {}, - { id: `${region}.valContent.getContent`, params } + { id: `${region}.valContent.getContent`, params }, ), }; } @@ -1596,7 +1596,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.VAL_MATCH.GET_MATCH_BY_ID, { matchId }, - { id: `${region}.valMatch.getById.${matchId}` } + { id: `${region}.valMatch.getById.${matchId}` }, ), getMatchlistByPUUID: ({ region, @@ -1609,7 +1609,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.VAL_MATCH.GET_MATCHLIST_BY_PUUID, { puuid }, - { id: `${region}.valMatch.getMatchlistByPUUID.${puuid}` } + { id: `${region}.valMatch.getMatchlistByPUUID.${puuid}` }, ), getRecentMatchesByQueue: ({ region, @@ -1622,7 +1622,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.VAL_MATCH.GET_RECENT_MATCHES_BY_QUEUE, { queue }, - { id: `${region}.valMatch.getRecentMatchesByQueue.${queue}` } + { id: `${region}.valMatch.getRecentMatchesByQueue.${queue}` }, ), }; } @@ -1645,7 +1645,7 @@ export class RiotAPI { region, RiotAPITypes.METHOD_KEY.VAL_RANKED.GET_LEADERBOARD_BY_QUEUE, { actId: queue }, - { id: `${region}.valRanked.getLeaderboardByQueue.${queue}`, params } + { id: `${region}.valRanked.getLeaderboardByQueue.${queue}`, params }, ), }; }