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.7.3 to 2.7.4

4

lib/endpoints/connectToScorebot.js

@@ -17,4 +17,4 @@ "use strict";

while (_) try {
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [0, t.value];
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {

@@ -21,0 +21,0 @@ case 0: case 1: t = op; break;

@@ -17,4 +17,4 @@ "use strict";

while (_) try {
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [0, t.value];
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {

@@ -81,3 +81,3 @@ case 0: case 1: t = op; break;

name: mappers_1.getMapSlug(mapEl.find('.mapname').text()),
result: mapEl.find('.results').text()
result: mapEl.find('.results span').text()
}); });

@@ -84,0 +84,0 @@ if (team1 && team2) {

@@ -17,4 +17,4 @@ "use strict";

while (_) try {
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [0, t.value];
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {

@@ -21,0 +21,0 @@ case 0: case 1: t = op; break;

@@ -17,4 +17,4 @@ "use strict";

while (_) try {
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [0, t.value];
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {

@@ -21,0 +21,0 @@ case 0: case 1: t = op; break;

@@ -25,4 +25,4 @@ "use strict";

while (_) try {
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [0, t.value];
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {

@@ -94,9 +94,9 @@ case 0: case 1: t = op; break;

teamStats = teamStatProperties.reduce(function (res, prop, i) {
var _a;
return (__assign({}, res, (_a = {}, _a[prop] = getMatchInfoRowValues(m$, i + 1), _a)));
var _a;
}, {});
mostXProperties = ['mostKills', 'mostDamage', 'mostAssists', 'mostAWPKills', 'mostFirstKills', 'bestRating'];
mostX = mostXProperties.reduce(function (res, prop, i) {
var _a;
return (__assign({}, res, (_a = {}, _a[prop] = getPlayerTopStat(m$, i), _a)));
var _a;
}, {});

@@ -129,2 +129,3 @@ overview = __assign({}, teamStats, mostX);

performanceOverview = mappers_1.toArray(p$('.overview-table tr')).slice(1).reduce(function (res, rowEl) {
var _a, _b;
var stat = rowEl.find('.name-column').text();

@@ -135,3 +136,2 @@ var team1Stat = Number(rowEl.find('.team1-column').text());

return { team1: __assign({}, res.team1, (_a = {}, _a[property] = team1Stat, _a)), team2: __assign({}, res.team2, (_b = {}, _b[property] = team2Stat, _b)) };
var _a, _b;
}, {});

@@ -138,0 +138,0 @@ return [2, {

@@ -17,4 +17,4 @@ "use strict";

while (_) try {
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [0, t.value];
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {

@@ -21,0 +21,0 @@ case 0: case 1: t = op; break;

@@ -17,4 +17,4 @@ "use strict";

while (_) try {
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [0, t.value];
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {

@@ -21,0 +21,0 @@ case 0: case 1: t = op; break;

@@ -17,4 +17,4 @@ "use strict";

while (_) try {
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [0, t.value];
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {

@@ -21,0 +21,0 @@ case 0: case 1: t = op; break;

@@ -25,4 +25,4 @@ "use strict";

while (_) try {
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [0, t.value];
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {

@@ -53,4 +53,4 @@ case 0: case 1: t = op; break;

return __awaiter(_this, void 0, void 0, function () {
var $, streams;
var _this = this;
var $, streams;
return __generator(this, function (_b) {

@@ -57,0 +57,0 @@ switch (_b.label) {

@@ -17,4 +17,4 @@ "use strict";

while (_) try {
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [0, t.value];
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {

@@ -54,3 +54,3 @@ case 0: case 1: t = op; break;

e$ = _b.sent();
name = t$('.team-name').text();
name = t$('.profile-team-name').text();
logo = config.hltvStaticUrl + "/images/team/logo/" + id;

@@ -57,0 +57,0 @@ coverImage = t$('.coverImage').attr('data-bg-image');

@@ -17,4 +17,4 @@ "use strict";

while (_) try {
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [0, t.value];
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {

@@ -21,0 +21,0 @@ case 0: case 1: t = op; break;

@@ -17,4 +17,4 @@ "use strict";

while (_) try {
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [0, t.value];
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {

@@ -21,0 +21,0 @@ case 0: case 1: t = op; break;

@@ -11,4 +11,4 @@ declare enum Map {

Overpass = "de_overpass",
Tuscan = "de_tuscan",
Tuscan = "de_tuscan"
}
export default Map;

@@ -13,4 +13,4 @@ declare enum MapSlug {

Season = "-",
Default = "-",
Default = "-"
}
export default MapSlug;

@@ -5,4 +5,4 @@ declare enum MatchType {

BigEvents = "BigEvents",
Majors = "Majors",
Majors = "Majors"
}
export default MatchType;
declare enum StreamCategory {
TopPlayer = "Top player",
Caster = "Caster",
FemalePlayer = "Female Player",
FemalePlayer = "Female Player"
}
export default StreamCategory;
declare enum ThreadCategory {
CS = "cs",
Match = "match",
News = "news",
News = "news"
}
export default ThreadCategory;

@@ -6,4 +6,4 @@ declare enum WinType {

TargetBombed = "Target_Bombed",
BombDefused = "Bomb_Defused",
BombDefused = "Bomb_Defused"
}
export default WinType;

@@ -5,9 +5,3 @@ import HLTVConfig from './models/HLTVConfig';

constructor(config: HLTVConfig);
connectToScorebot: ({ id, onScoreboardUpdate, onLogUpdate, onConnect, onDisconnect }: {
id: number;
onScoreboardUpdate?: ((data: ScoreboardUpdate) => any) | undefined;
onLogUpdate?: ((data: LogUpdate) => any) | undefined;
onConnect?: (() => any) | undefined;
onDisconnect?: (() => any) | undefined;
}) => Promise<void>;
connectToScorebot: ({ id, onScoreboardUpdate, onLogUpdate, onConnect, onDisconnect }: import("endpoints/connectToScorebot").ConnectToScorebotParams) => Promise<void>;
getMatch: ({ id }: {

@@ -17,8 +11,3 @@ id: number;

getMatches: () => Promise<(UpcomingMatch | LiveMatch)[]>;
getMatchesStats: ({ startDate, endDate, matchType, maps }?: {
startDate?: string | undefined;
endDate?: string | undefined;
matchType?: MatchType | undefined;
maps?: Map[] | undefined;
}) => Promise<MatchStats[]>;
getMatchesStats: ({ startDate, endDate, matchType, maps }?: import("endpoints/getMatchesStats").GetMatchesStatsParams) => Promise<MatchStats[]>;
getMatchMapStats: ({ id }: {

@@ -25,0 +14,0 @@ id: number;

@@ -5,3 +5,3 @@ export declare enum Outcome {

BombDefused = "bomb_defused",
BombExploded = "bomb_exploded",
BombExploded = "bomb_exploded"
}

@@ -8,0 +8,0 @@ export interface WeakRoundOutcome {

@@ -25,4 +25,4 @@ "use strict";

while (_) try {
if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [0, t.value];
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {

@@ -127,4 +127,4 @@ case 0: case 1: t = op; break;

return maps.reduce(function (stats, map, i) {
var _a;
return (__assign({}, stats, (_a = {}, _a[MapSlug_1.default[map]] = getStats(i), _a)));
var _a;
}, {});

@@ -131,0 +131,0 @@ };

{
"name": "hltv",
"version": "2.7.3",
"version": "2.7.4",
"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