mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2026-08-19 05:03:28 +08:00
6e20fbe2999fa402247d9d06423f43e1f231ced5
CEconItem destructured the day-first date regex match without a null check, throwing 'match is not iterable' for CS2 items whose owner_descriptions use the legacy month-first format (e.g. 'Tradable/ Marketable After Jul 11, 2025 (2:00:00)'). Running in the constructor, this made getInventoryContents()/getUserInventoryContents() reject the whole inventory. Guard the null match, fall back to parsing the legacy month-first format, and only set cache_expiration for a valid date. Day-first strings are unchanged; backwards-compatible.
Steam Community for Node.js
This module provides an easy interface for the Steam Community website. This module can be used to simply login to steamcommunity.com for use with other libraries, or to interact with steamcommunity.com.
Have a question about the module or coding in general? Do not create a GitHub issue. GitHub issues are for feature requests and bug reports. Instead, post in the dedicated forum. Such issues may be ignored!
Documentation
Documentation is available on the GitHub wiki.
Support
Report bugs on the issue tracker or ask questions on the dedicated forum.
Languages
JavaScript
100%