ReferenceError: getArgsVal is not defined
at checkParams (file:///C:/Users/xxxx/csgo-tradeup-cli/index.js:46:18)
at file:///C:/Users/xxxx/csgo-tradeup-cli/index.js:15:5
at NativeConnection. (file:///C:/Users/xxxx/csgo-tradeup-cli/db.js:24:9)
at Object.onceWrapper (node:events:627:28)
at NativeConnection.emit (node:events:513:28)
at NativeConnection.Connection.onOpen (C:\Users\xxxx\csgo-tradeup-cli\node_modules\mongoose\lib\connection.js:646:8)
at _setClient (C:\Users\xxxx\csgo-tradeup-cli\node_modules\mongoose\lib\connection.js:999:8)
at C:\Users\xxxx\csgo-tradeup-cli\node_modules\mongoose\lib\connection.js:841:7
at C:\Users\xxxx\csgo-tradeup-cli\node_modules\mongoose\node_modules\mongodb\lib\utils.js:704:5
at C:\Users\xxxx\csgo-tradeup-cli\node_modules\mongoose\node_modules\mongodb\lib\mongo_client.js:286:7
at connectCallback (C:\Users\xxxx\csgo-tradeup-cli\node_modules\mongoose\node_modules\mongodb\lib\operations\connect.js:367:5)
at C:\Users\xxxx\csgo-tradeup-cli\node_modules\mongoose\node_modules\mongodb\lib\operations\connect.js:557:5
at Object.connectHandler [as callback] (C:\Users\xxxx\csgo-tradeup-cli\node_modules\mongoose\node_modules\mongodb\lib\core\sdam\topology.js:298:43)
at processWaitQueue (C:\Users\xxxx\csgo-tradeup-cli\node_modules\mongoose\node_modules\mongodb\lib\core\sdam\topology.js:1066:21)
at NativeTopology.serverUpdateHandler (C:\Users\xxxx\csgo-tradeup-cli\node_modules\mongoose\node_modules\mongodb\lib\core\sdam\topology.js:571:7)
at Server.emit (node:events:513:28)
C:\Users\xxxx\csgo-tradeup-cli>node index --noLoss --sources 4 file:///C:/Users/xxxx/csgo-tradeup-cli/index.js:46 if(getArgs().includes('--noLoss') && getArgsVal('--profit', 'number') < 100) ^
ReferenceError: getArgsVal is not defined at checkParams (file:///C:/Users/xxxx/csgo-tradeup-cli/index.js:46:18) at file:///C:/Users/xxxx/csgo-tradeup-cli/index.js:15:5 at NativeConnection. (file:///C:/Users/xxxx/csgo-tradeup-cli/db.js:24:9)
at Object.onceWrapper (node:events:627:28)
at NativeConnection.emit (node:events:513:28)
at NativeConnection.Connection.onOpen (C:\Users\xxxx\csgo-tradeup-cli\node_modules\mongoose\lib\connection.js:646:8)
at _setClient (C:\Users\xxxx\csgo-tradeup-cli\node_modules\mongoose\lib\connection.js:999:8)
at C:\Users\xxxx\csgo-tradeup-cli\node_modules\mongoose\lib\connection.js:841:7
at C:\Users\xxxx\csgo-tradeup-cli\node_modules\mongoose\node_modules\mongodb\lib\utils.js:704:5
at C:\Users\xxxx\csgo-tradeup-cli\node_modules\mongoose\node_modules\mongodb\lib\mongo_client.js:286:7
at connectCallback (C:\Users\xxxx\csgo-tradeup-cli\node_modules\mongoose\node_modules\mongodb\lib\operations\connect.js:367:5)
at C:\Users\xxxx\csgo-tradeup-cli\node_modules\mongoose\node_modules\mongodb\lib\operations\connect.js:557:5
at Object.connectHandler [as callback] (C:\Users\xxxx\csgo-tradeup-cli\node_modules\mongoose\node_modules\mongodb\lib\core\sdam\topology.js:298:43)
at processWaitQueue (C:\Users\xxxx\csgo-tradeup-cli\node_modules\mongoose\node_modules\mongodb\lib\core\sdam\topology.js:1066:21)
at NativeTopology.serverUpdateHandler (C:\Users\xxxx\csgo-tradeup-cli\node_modules\mongoose\node_modules\mongodb\lib\core\sdam\topology.js:571:7)
at Server.emit (node:events:513:28)