@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
package/fesm5/mtgame-core.js
CHANGED
|
@@ -963,21 +963,45 @@ var League = /** @class */ (function (_super) {
|
|
|
963
963
|
League.toBack = function (data) { };
|
|
964
964
|
Object.defineProperty(League.prototype, "vkLink", {
|
|
965
965
|
get: function () {
|
|
966
|
-
return this.socialLinks.find(function (link) { return link.
|
|
966
|
+
return this.socialLinks.find(function (link) { return link.indexOf('vk.com/') > -1; });
|
|
967
967
|
},
|
|
968
968
|
enumerable: true,
|
|
969
969
|
configurable: true
|
|
970
970
|
});
|
|
971
971
|
Object.defineProperty(League.prototype, "fbLink", {
|
|
972
972
|
get: function () {
|
|
973
|
-
return this.socialLinks.find(function (link) { return link.
|
|
973
|
+
return this.socialLinks.find(function (link) { return link.indexOf('facebook.com/') > -1; });
|
|
974
974
|
},
|
|
975
975
|
enumerable: true,
|
|
976
976
|
configurable: true
|
|
977
977
|
});
|
|
978
978
|
Object.defineProperty(League.prototype, "instaLink", {
|
|
979
979
|
get: function () {
|
|
980
|
-
return this.socialLinks.find(function (link) { return link.
|
|
980
|
+
return this.socialLinks.find(function (link) { return link.indexOf('instagram.com/') > -1; });
|
|
981
|
+
},
|
|
982
|
+
enumerable: true,
|
|
983
|
+
configurable: true
|
|
984
|
+
});
|
|
985
|
+
Object.defineProperty(League.prototype, "youtubeLink", {
|
|
986
|
+
get: function () {
|
|
987
|
+
return this.socialLinks.find(function (link) { return link.indexOf('youtube.com/') > -1; });
|
|
988
|
+
},
|
|
989
|
+
enumerable: true,
|
|
990
|
+
configurable: true
|
|
991
|
+
});
|
|
992
|
+
Object.defineProperty(League.prototype, "telegramLink", {
|
|
993
|
+
get: function () {
|
|
994
|
+
return this.socialLinks.find(function (link) {
|
|
995
|
+
return link.substr(0, 13) === 'https://t.me/' ||
|
|
996
|
+
link.substr(0, 17) === 'https://www.t.me/';
|
|
997
|
+
});
|
|
998
|
+
},
|
|
999
|
+
enumerable: true,
|
|
1000
|
+
configurable: true
|
|
1001
|
+
});
|
|
1002
|
+
Object.defineProperty(League.prototype, "tiktokLink", {
|
|
1003
|
+
get: function () {
|
|
1004
|
+
return this.socialLinks.find(function (link) { return link.indexOf('tiktok.com/') > -1; });
|
|
981
1005
|
},
|
|
982
1006
|
enumerable: true,
|
|
983
1007
|
configurable: true
|