Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hltv

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hltv - npm Package Compare versions

Comparing version 2.9.1 to 2.9.2

8

lib/endpoints/getPlayer.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc