steamcommunity-inventory
Version:
A rate limit and response handler for steamcommunity inventories. - It's functional. - Will appreciate all feedback I can get
19 lines (18 loc) • 545 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.fetchMore = void 0;
/**
* Checks if we can fetch more items.
* @param {number} desiredAmount Specifies the actual amount we want to get. Over 2000.
* @return {boolean}
*/
function fetchMore({ desiredMoreAmount, currentAmount, moreItems, }) {
if (!desiredMoreAmount || !moreItems) {
return false;
}
if (desiredMoreAmount <= currentAmount) {
return false;
}
return true;
}
exports.fetchMore = fetchMore;