Comparing version 2.20.1 to 2.20.2
@@ -6,3 +6,3 @@ import { HLTVConfig } from '../config'; | ||
size?: EventSize | undefined; | ||
month?: 0 | 1 | 2 | 4 | 3 | 10 | 9 | 8 | 7 | 6 | 5 | 11 | undefined; | ||
month?: 0 | 1 | 2 | 4 | 3 | 10 | 5 | 9 | 8 | 7 | 6 | 11 | undefined; | ||
}) => Promise<EventResult[]>; |
@@ -59,3 +59,3 @@ "use strict"; | ||
var teamEls = matchEl.find('img.matchTeamLogo'); | ||
var stars = matchEl.find('.matchRating i').length; | ||
var stars = 5 - matchEl.find('.matchRating i.faded').length; | ||
var team1 = { | ||
@@ -81,3 +81,3 @@ name: teamEls.first().attr('title'), | ||
var title = matchEl.find('.matchInfoEmpty').text() || undefined; | ||
var stars = matchEl.find('.matchRating i').length; | ||
var stars = matchEl.find('.matchRating i:not(.faded)').length; | ||
var format = matchEl.find('.matchMeta').text(); | ||
@@ -84,0 +84,0 @@ var event; |
@@ -110,3 +110,3 @@ "use strict"; | ||
id: Number(eventEl.find('.image-and-label').first().attr('href').split('=')[1]), | ||
name: eventEl.find('.image-and-label').first().attr('title') | ||
name: eventEl.find('.image-and-label span').first().text() | ||
} | ||
@@ -113,0 +113,0 @@ }); }); |
@@ -69,3 +69,3 @@ import { HLTVConfig } from './config'; | ||
size?: EventSize | undefined; | ||
month?: 0 | 1 | 2 | 4 | 3 | 10 | 9 | 8 | 7 | 6 | 5 | 11 | undefined; | ||
month?: 0 | 1 | 2 | 4 | 3 | 10 | 5 | 9 | 8 | 7 | 6 | 11 | undefined; | ||
}) => Promise<import("./models/EventResult").EventResult[]>; | ||
@@ -72,0 +72,0 @@ getPlayerStats: ({ id, startDate, endDate, matchType, rankingFilter }: { |
{ | ||
"name": "hltv", | ||
"version": "2.20.1", | ||
"version": "2.20.2", | ||
"description": "The unofficial HLTV Node.js API", | ||
@@ -50,3 +50,3 @@ "main": "lib/index.js", | ||
"ts-jest": "^25.0.0", | ||
"ts-node": "^8.0.2", | ||
"ts-node": "^9.0.0", | ||
"typescript": "^3.5.2" | ||
@@ -53,0 +53,0 @@ }, |
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
197301