@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.
@@ -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.substr(0, 15) === 'https://vk.com/'; });
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.substr(0, 25) === 'https://www.facebook.com/'; });
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.substr(0, 25) === 'https://www.instagram.com'; });
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;