@wfcd/profile-parser 1.2.2 → 1.2.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wfcd/profile-parser",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Parser for Digital Extreme's profile data",
5
5
  "type": "module",
6
6
  "main": "src/ProfileParser.js",
package/src/Profile.js CHANGED
@@ -94,7 +94,7 @@ export default class Profile {
94
94
  * Alliance ID
95
95
  * @type {String}
96
96
  */
97
- this.allianceId = profile.AllianceId.$oid;
97
+ if (profile.AllianceId.$oid) this.allianceId = profile.AllianceId.$oid;
98
98
 
99
99
  /**
100
100
  * Assassins currently asfter the player
@@ -69,11 +69,7 @@ export default class Profile {
69
69
  * @type {String}
70
70
  */
71
71
  guildEmblem: string;
72
- /**
73
- * Alliance ID
74
- * @type {String}
75
- */
76
- allianceId: string;
72
+ allianceId: any;
77
73
  /**
78
74
  * Assassins currently asfter the player
79
75
  * @type {Array<String>}