@mtgame/core 0.1.4 → 0.1.6
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/bundles/mtgame-core.umd.js +29 -3
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/bundles/mtgame-core.umd.min.js +1 -1
- package/bundles/mtgame-core.umd.min.js.map +1 -1
- package/esm2015/models/league.js +15 -4
- package/esm2015/models/public-api.js +2 -1
- package/esm5/models/league.js +29 -4
- package/esm5/models/public-api.js +2 -1
- package/fesm2015/mtgame-core.js +15 -4
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +29 -4
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/league.d.ts +4 -0
- package/models/public-api.d.ts +1 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -1176,21 +1176,45 @@
|
|
|
1176
1176
|
League.toBack = function (data) { };
|
|
1177
1177
|
Object.defineProperty(League.prototype, "vkLink", {
|
|
1178
1178
|
get: function () {
|
|
1179
|
-
return this.socialLinks.find(function (link) { return link.
|
|
1179
|
+
return this.socialLinks.find(function (link) { return link.indexOf('vk.com/') > -1; });
|
|
1180
1180
|
},
|
|
1181
1181
|
enumerable: true,
|
|
1182
1182
|
configurable: true
|
|
1183
1183
|
});
|
|
1184
1184
|
Object.defineProperty(League.prototype, "fbLink", {
|
|
1185
1185
|
get: function () {
|
|
1186
|
-
return this.socialLinks.find(function (link) { return link.
|
|
1186
|
+
return this.socialLinks.find(function (link) { return link.indexOf('facebook.com/') > -1; });
|
|
1187
1187
|
},
|
|
1188
1188
|
enumerable: true,
|
|
1189
1189
|
configurable: true
|
|
1190
1190
|
});
|
|
1191
1191
|
Object.defineProperty(League.prototype, "instaLink", {
|
|
1192
1192
|
get: function () {
|
|
1193
|
-
return this.socialLinks.find(function (link) { return link.
|
|
1193
|
+
return this.socialLinks.find(function (link) { return link.indexOf('instagram.com/') > -1; });
|
|
1194
|
+
},
|
|
1195
|
+
enumerable: true,
|
|
1196
|
+
configurable: true
|
|
1197
|
+
});
|
|
1198
|
+
Object.defineProperty(League.prototype, "youtubeLink", {
|
|
1199
|
+
get: function () {
|
|
1200
|
+
return this.socialLinks.find(function (link) { return link.indexOf('youtube.com/') > -1; });
|
|
1201
|
+
},
|
|
1202
|
+
enumerable: true,
|
|
1203
|
+
configurable: true
|
|
1204
|
+
});
|
|
1205
|
+
Object.defineProperty(League.prototype, "telegramLink", {
|
|
1206
|
+
get: function () {
|
|
1207
|
+
return this.socialLinks.find(function (link) {
|
|
1208
|
+
return link.substr(0, 13) === 'https://t.me/' ||
|
|
1209
|
+
link.substr(0, 17) === 'https://www.t.me/';
|
|
1210
|
+
});
|
|
1211
|
+
},
|
|
1212
|
+
enumerable: true,
|
|
1213
|
+
configurable: true
|
|
1214
|
+
});
|
|
1215
|
+
Object.defineProperty(League.prototype, "tiktokLink", {
|
|
1216
|
+
get: function () {
|
|
1217
|
+
return this.socialLinks.find(function (link) { return link.indexOf('tiktok.com/') > -1; });
|
|
1194
1218
|
},
|
|
1195
1219
|
enumerable: true,
|
|
1196
1220
|
configurable: true
|
|
@@ -1216,6 +1240,7 @@
|
|
|
1216
1240
|
links: 'links',
|
|
1217
1241
|
organization: 'organization',
|
|
1218
1242
|
tournaments_count: 'tournamentsCount',
|
|
1243
|
+
documents_count: 'documentsCount',
|
|
1219
1244
|
closest_game_datetime: 'closestGameDatetime',
|
|
1220
1245
|
cover: 'cover',
|
|
1221
1246
|
about: 'about',
|
|
@@ -8983,6 +9008,7 @@
|
|
|
8983
9008
|
exports.LeagueApi = LeagueApi;
|
|
8984
9009
|
exports.LeagueBanner = LeagueBanner;
|
|
8985
9010
|
exports.LeagueCourt = LeagueCourt;
|
|
9011
|
+
exports.LeagueDocument = LeagueDocument;
|
|
8986
9012
|
exports.LeagueNews = LeagueNews;
|
|
8987
9013
|
exports.LeagueNewsApi = LeagueNewsApi;
|
|
8988
9014
|
exports.LeaguePartner = LeaguePartner;
|