mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 07:07:33 +00:00
fix(games/asa): add wildcard option to eos usage (#739)
* fix(games/asa): add wildcard option to eos usage * docs: add CHANGELOG.md line
This commit is contained in:
parent
bff0c334e9
commit
b37acf062a
3 changed files with 8 additions and 1 deletions
|
|
@ -9,6 +9,7 @@
|
|||
* Feat: Squad - Replace Valve protocol with EOS protocol (By @k3ithos #731)
|
||||
* Feat: Clive Barker's Undying - Added support (By @dgibbs64 #733)
|
||||
* Chore: Update `iconv-lite` from `0.6.3` to `0.7.0` (#737)
|
||||
* Fix: ASA - change EOS usage (#739, thanks @mze9412)
|
||||
|
||||
## 5.3.1
|
||||
* Fix: HTTP requests would end up making more retries than needed due to got's internal retry mechanism (#690, thanks @RattleSN4K3)
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ export default class asa extends Epic {
|
|||
this.clientId = 'xyza7891muomRmynIIHaJB9COBKkwj6n'
|
||||
this.clientSecret = 'PP5UGxysEieNfSrEicaD1N2Bb3TdXuD7xHYcsdUHZ7s'
|
||||
this.deploymentId = 'ad9a8feffb3b4b2ca315546f038c3ae2'
|
||||
this.wildcardMatchmaking = true
|
||||
}
|
||||
|
||||
async run (state) {
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ export default class Epic extends Core {
|
|||
this.deploymentId = null
|
||||
this.epicApi = 'https://api.epicgames.dev'
|
||||
this.authByExternalToken = false // Some games require a client access token to POST to the matchmaking endpoint.
|
||||
this.wildcardMatchmaking = false
|
||||
|
||||
this.deviceIdAccessToken = null
|
||||
this.accessToken = null
|
||||
|
|
@ -96,7 +97,11 @@ export default class Epic extends Core {
|
|||
}
|
||||
|
||||
async queryInfo (state) {
|
||||
const url = `${this.epicApi}/matchmaking/v1/${this.deploymentId}/filter`
|
||||
let baseUrl = this.epicApi
|
||||
if (this.wildcardMatchmaking) {
|
||||
baseUrl = `${baseUrl}/wildcard`
|
||||
}
|
||||
const url = `${baseUrl}/matchmaking/v1/${this.deploymentId}/filter`
|
||||
const body = {
|
||||
criteria: [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue