@smartico/public-api 0.0.277 → 0.0.278
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/dist/MiniGames/SAWTemplate.d.ts +1 -0
- package/dist/WSAPI/WSAPITypes.d.ts +6 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +1 -1
- package/dist/index.modern.mjs.map +1 -1
- package/docs/interfaces/TMiniGameTemplate.md +4 -1
- package/package.json +1 -1
- package/src/MiniGames/SAWTemplate.ts +1 -0
- package/src/SmarticoAPI.ts +1 -1
- package/src/WSAPI/WSAPITypes.ts +6 -1
package/dist/index.modern.mjs
CHANGED
|
@@ -3507,7 +3507,7 @@ class SmarticoAPI {
|
|
|
3507
3507
|
include_users: true
|
|
3508
3508
|
});
|
|
3509
3509
|
const response = await this.send(message, ClassId.GET_LEADERS_BOARD_RESPONSE, force_language);
|
|
3510
|
-
const boardKey = Object.keys(response.map).find(k => period_type_id === undefined || k === (period_type_id == null ? void 0 : period_type_id.toString()));
|
|
3510
|
+
const boardKey = Object.keys(response.map || {}).find(k => period_type_id === undefined || k === (period_type_id == null ? void 0 : period_type_id.toString()));
|
|
3511
3511
|
if (boardKey === undefined) {
|
|
3512
3512
|
return undefined;
|
|
3513
3513
|
}
|