steamutils 1.4.79 → 1.4.80

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 +3 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -7111,11 +7111,9 @@ export default class SteamUser {
7111
7111
  return result;
7112
7112
  }
7113
7113
 
7114
- try {
7115
- new SteamProto(SteamProtoType.CPlayer_GetFriendsGameplayInfo_Response).protoDecode(result.data);
7116
- } catch (e) {
7117
- console.error(e);
7118
- console.error(result);
7114
+ if (!result || result.status === 401) {
7115
+ //Unauthorized
7116
+ return;
7119
7117
  }
7120
7118
 
7121
7119
  const data = new SteamProto(SteamProtoType.CPlayer_GetFriendsGameplayInfo_Response).protoDecode(result.data);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.4.79",
3
+ "version": "1.4.80",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "alpha-common-utils": "^1.0.6",