@mtgame/core 0.1.5 → 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 +27 -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 +14 -4
- package/esm5/models/league.js +28 -4
- package/fesm2015/mtgame-core.js +13 -3
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +27 -3
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/league.d.ts +3 -0
- 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
|