steamutils 1.4.22 → 1.4.23
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +4 -3
- 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
|
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");
|