mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 07:07:33 +00:00
feat(games/satisfactory): pass optional token, make http query not required (#653)
* feat: let the user provide a token to skip PasswordlessLogin * feat: make querying the HTTP api not required * docs: add to changelog, note query priority * fix: passing rejectUnauthorized as arg made it string, ignoring its value
This commit is contained in:
parent
5b1da1ad71
commit
f5899fd54d
4 changed files with 33 additions and 21 deletions
|
|
@ -6,7 +6,7 @@ import Minimist from 'minimist'
|
|||
import { GameDig } from './../lib/index.js'
|
||||
|
||||
const argv = Minimist(process.argv.slice(2), {
|
||||
boolean: ['pretty', 'debug', 'givenPortOnly', 'requestRules', 'requestPlayers', 'requestRulesRequired', 'requestPlayersRequired', 'stripColors', 'portCache', 'noBreadthOrder', 'checkOldIDs'],
|
||||
boolean: ['pretty', 'debug', 'givenPortOnly', 'requestRules', 'requestPlayers', 'requestRulesRequired', 'requestPlayersRequired', 'stripColors', 'portCache', 'noBreadthOrder', 'checkOldIDs', 'rejectUnauthorized'],
|
||||
string: ['guildId', 'serverId', 'listenUdpPort', 'ipFamily', 'token'],
|
||||
default: {
|
||||
stripColors: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue