Comparing version 3.0.11 to 3.0.12
@@ -14,3 +14,3 @@ import UserBadge from './UserBadge.js'; | ||
constructor(data) { | ||
this.badges = data.badges.map((badge) => new UserBadge(badge)); | ||
this.badges = data.badges ? data.badges.map((badge) => new UserBadge(badge)) : []; | ||
this.xp = data.player_xp; | ||
@@ -17,0 +17,0 @@ this.xpRemaining = data.player_xp_needed_to_level_up; |
@@ -7,3 +7,3 @@ { | ||
"types": "dist/index.d.ts", | ||
"version": "3.0.11", | ||
"version": "3.0.12", | ||
"license": "MIT", | ||
@@ -10,0 +10,0 @@ "type": "module", |
@@ -20,3 +20,3 @@ import UserBadge from './UserBadge.js'; | ||
constructor(data: any) { | ||
this.badges = data.badges.map((badge: any) => new UserBadge(badge)); | ||
this.badges = data.badges ? data.badges.map((badge: any) => new UserBadge(badge)) : []; | ||
@@ -23,0 +23,0 @@ this.xp = data.player_xp; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
237362
120
3327