xDimGG / node-steamapi

An object-oriented Steam API wrapper for Node.js developers.
https://www.npmjs.com/package/steamapi
183 stars 44 forks source link

Steam.resolve resolves non-resolvable profile links such as trade offer URLs to a random user named tradeoffer #24

Closed TechnoTew closed 3 years ago

TechnoTew commented 4 years ago
    console.log(await steamClient.resolve('https://steamcommunity.com/tradeoffer'));

gives a random profile ID: 76561198037182099

xDimGG commented 4 years ago

I actually don't remember the reason I made profile/ and id/ optional in my regexes. If someone can come up with the reason I did this, I'll keep them optional, otherwise, I'll make them required.