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.20.3 to 2.20.4

lib/models/ResultTeam.d.ts

10

lib/endpoints/getResults.js

@@ -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();

3

lib/endpoints/getTeam.js

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

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