Comparing version 1.2.1 to 1.2.2
@@ -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)' |
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
17058
0