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

oversmash

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oversmash - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

8

build/scraper.js

@@ -78,3 +78,3 @@ 'use strict';

// Handle floating-point values
return parseFloat(value);
return parseFloat(value.replace(',', ''));
}

@@ -121,4 +121,4 @@

// correct parent element
function extractStatGroups(options, p, container) {
const groups = {};
function extractStatGroups(options, name, p, container) {
const groups = { name };

@@ -162,3 +162,3 @@ container.find('.data-table').each((i, e) => {

heroStats[heroName] = extractStatGroups(options, p, elem);
heroStats[heroName] = extractStatGroups(options, heroName, p, elem);

@@ -165,0 +165,0 @@ log('scrape', careerType, heroName);

{
"name": "oversmash",
"version": "1.2.1",
"version": "1.2.2",
"license": "MIT",
"homepage": "https://github.com/filp/oversmash",
"description": "API wrapper for Blizzard's Overwatch player data",

@@ -5,0 +7,0 @@ "main": "./build/index.js",

@@ -40,3 +40,3 @@ # oversmash [![npm version](https://badge.fury.io/js/oversmash.svg)](https://badge.fury.io/js/oversmash)

// Get basic details about a user, including their platform/region accounts
api.player('bob-12345').then(player => {
ow.player('bob-12345').then(player => {
console.log(player)

@@ -57,3 +57,3 @@ })

// current competitive rank
api.playerStats('bob-12345', 'us', 'pc').then(player => {
ow.playerStats('bob-12345', 'us', 'pc').then(player => {
console.log(player)

@@ -115,3 +115,3 @@ })

requestOptions: {
baseUrl: 'https://playoverwatch.com/en-us',
baseURL: 'https://playoverwatch.com/en-us',
headers: {

@@ -118,0 +118,0 @@ 'User-Agent': 'https://github.com/filp/oversmash (hi jeff)'

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