Comparing version 2.20.3 to 2.20.4
@@ -75,10 +75,8 @@ "use strict"; | ||
var team1 = { | ||
id: Number(parsing_1.popSlashSource(matchEl.find('img.team-logo').first())) || | ||
undefined, | ||
name: matchEl.find('div.team').first().text() | ||
name: matchEl.find('div.team').first().text(), | ||
logo: matchEl.find('img.team-logo').first().attr('src') | ||
}; | ||
var team2 = { | ||
id: Number(parsing_1.popSlashSource(matchEl.find('img.team-logo').last())) || | ||
undefined, | ||
name: matchEl.find('div.team').last().text() | ||
name: matchEl.find('div.team').last().text(), | ||
logo: matchEl.find('img.team-logo').last().attr('src') | ||
}; | ||
@@ -85,0 +83,0 @@ var result = matchEl.find('.result-score').text(); |
@@ -41,3 +41,2 @@ "use strict"; | ||
var mappers_1 = require("../utils/mappers"); | ||
var parsing_1 = require("../utils/parsing"); | ||
exports.getTeam = function (config) { return function (_a) { | ||
@@ -79,3 +78,3 @@ var id = _a.id; | ||
enemyTeam: { | ||
id: Number(parsing_1.popSlashSource(matchEl.find('.team-2 .team-logo-container img'))), | ||
id: Number(matchEl.find('.team-2').attr('href').split('/')[2]), | ||
name: matchEl.find('span.team-2').text() | ||
@@ -82,0 +81,0 @@ }, |
{ | ||
"name": "hltv", | ||
"version": "2.20.3", | ||
"version": "2.20.4", | ||
"description": "The unofficial HLTV Node.js API", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
137
3615
197206