steamutils 1.4.22 → 1.4.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +4 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -4912,11 +4912,12 @@ export default class SteamUser {
4912
4912
 
4913
4913
  async removePhoneNumber() {
4914
4914
  const result = await this._httpRequest(`https://help.steampowered.com/en/wizard/HelpRemovePhoneNumber?redir=store/account`);
4915
- if (result instanceof ResponseError) {
4916
- return result;
4915
+ if (!result?.data || typeof result.data !== "string" || result instanceof ResponseError) {
4916
+ return;
4917
4917
  }
4918
+
4918
4919
  let href = null;
4919
- const $ = result._$();
4920
+ const $ = cheerio.load(result.data);
4920
4921
  $("a").each(function (index, el) {
4921
4922
  if (!href) {
4922
4923
  const link = $(el).attr("href");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.4.22",
3
+ "version": "1.4.23",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "alpha-common-utils": "^1.0.6",