Comparing version 2.9.1 to 2.9.2
@@ -76,7 +76,7 @@ "use strict"; | ||
}; | ||
achievements = mappers_1.toArray($('.achievement')).map(function (achEl) { return ({ | ||
place: $(achEl.contents().get(1)).text().split(' at')[0], | ||
achievements = mappers_1.toArray($('.achievement-table .team')).map(function (achEl) { return ({ | ||
place: achEl.find('.achievement').text(), | ||
event: { | ||
name: $(achEl.contents().get(2)).text(), | ||
id: Number($(achEl.contents().get(2)).attr('href').split('/')[2]) | ||
name: achEl.find('.tournament-name-cell a').text(), | ||
id: Number(achEl.find('.tournament-name-cell a').attr('href').split('/')[2]) | ||
} | ||
@@ -83,0 +83,0 @@ }); }); |
@@ -5,18 +5,18 @@ import HLTVConfig from './models/HLTVConfig'; | ||
constructor(config: HLTVConfig); | ||
connectToScorebot: ({ id, onScoreboardUpdate, onLogUpdate, onConnect, onDisconnect }: import("endpoints/connectToScorebot").ConnectToScorebotParams) => Promise<void>; | ||
connectToScorebot: ({ id, onScoreboardUpdate, onLogUpdate, onConnect, onDisconnect }: import("./endpoints/connectToScorebot").ConnectToScorebotParams) => Promise<void>; | ||
getMatch: ({ id }: { | ||
id: number; | ||
}) => Promise<import("models/FullMatch").default>; | ||
getMatches: () => Promise<(import("models/UpcomingMatch").default | import("models/LiveMatch").default)[]>; | ||
getMatchesStats: ({ startDate, endDate, matchType, maps }?: import("endpoints/getMatchesStats").GetMatchesStatsParams) => Promise<import("models/MatchStats").default[]>; | ||
}) => Promise<import("./models/FullMatch").default>; | ||
getMatches: () => Promise<(import("./models/UpcomingMatch").default | import("./models/LiveMatch").default)[]>; | ||
getMatchesStats: ({ startDate, endDate, matchType, maps }?: import("./endpoints/getMatchesStats").GetMatchesStatsParams) => Promise<import("./models/MatchStats").default[]>; | ||
getMatchMapStats: ({ id }: { | ||
id: number; | ||
}) => Promise<import("models/FullMatchMapStats").default>; | ||
getRecentThreads: () => Promise<import("models/Thread").default[]>; | ||
}) => Promise<import("./models/FullMatchMapStats").default>; | ||
getRecentThreads: () => Promise<import("./models/Thread").default[]>; | ||
getResults: ({ pages }?: { | ||
pages?: number | undefined; | ||
}) => Promise<import("models/MatchResult").default[]>; | ||
}) => Promise<import("./models/MatchResult").default[]>; | ||
getStreams: ({ loadLinks }?: { | ||
loadLinks?: boolean | undefined; | ||
}) => Promise<import("models/FullStream").default[]>; | ||
}) => Promise<import("./models/FullStream").default[]>; | ||
getTeamRanking: ({ year, month, day, country }?: { | ||
@@ -27,15 +27,15 @@ year?: string | undefined; | ||
country?: string | undefined; | ||
}) => Promise<import("models/TeamRanking").default[]>; | ||
}) => Promise<import("./models/TeamRanking").default[]>; | ||
getTeam: ({ id }: { | ||
id: number; | ||
}) => Promise<import("models/FullTeam").default>; | ||
}) => Promise<import("./models/FullTeam").default>; | ||
getTeamStats: ({ id }: { | ||
id: number; | ||
}) => Promise<import("models/FullTeamStats").default>; | ||
}) => Promise<import("./models/FullTeamStats").default>; | ||
getPlayer: ({ id }: { | ||
id: number; | ||
}) => Promise<import("models/FullPlayer").default>; | ||
}) => Promise<import("./models/FullPlayer").default>; | ||
getEvent: ({ id }: { | ||
id: number; | ||
}) => Promise<import("models/FullEvent").default>; | ||
}) => Promise<import("./models/FullEvent").default>; | ||
getPlayerStats: ({ id, startDate, endDate }: { | ||
@@ -45,7 +45,7 @@ id: number; | ||
endDate: string; | ||
}) => Promise<import("models/FullPlayerStats").default>; | ||
}) => Promise<import("./models/FullPlayerStats").default>; | ||
getPlayerRanking: ({ startDate, endDate }: { | ||
startDate: string; | ||
endDate: string; | ||
}) => Promise<import("models/PlayerRanking").default[]>; | ||
}) => Promise<import("./models/PlayerRanking").default[]>; | ||
createInstance(config: HLTVConfig): HLTVFactory; | ||
@@ -52,0 +52,0 @@ } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var index_1 = require("./index"); | ||
index_1.default.getPlayer({ id: 9216 }).then(function (res) { return console.dir(res, { depth: null }); }).catch(function (err) { return console.log(err); }); |
{ | ||
"name": "hltv", | ||
"version": "2.9.1", | ||
"version": "2.9.2", | ||
"description": "The unofficial HLTV Node.js API", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
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
312436
2615