steamutils 1.5.46 → 1.5.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +3 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -6208,6 +6208,9 @@ export default class SteamUser {
6208
6208
  const loginLinkBlock = $(".market_login_link_ctn").length;
6209
6209
  if (loginMsg1 || loginMsg2 || loginMsg3 || loginLinkBlock) return null;
6210
6210
 
6211
+ const tooManyRequestsMsg = $("body").find(':contains("You\'ve made too many requests recently. Please wait and try your request again later.")').length;
6212
+ if (tooManyRequestsMsg) return null; // or your desired error object
6213
+
6211
6214
  const warningContainer = $(".market_headertip_container_warning");
6212
6215
  const warningHeaderElement = warningContainer.find("#market_warning_header");
6213
6216
  if (!warningContainer.length || !warningHeaderElement.length) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.5.46",
3
+ "version": "1.5.47",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "alpha-common-utils": "^1.0.6",