New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

flea-killer

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flea-killer - npm Package Compare versions

Comparing version 0.0.4 to 0.1.0

5

lib/league.js

@@ -72,7 +72,8 @@ // League scraper

};
var row = $(this);
// Push on the stats for the entire team
league.stats.forEach(function(stat, index){
team.stats[stat] = {
points: $(this).find('td:nth-child(' + (3 * index + 1) + ')').text(),
value: $(this).find('td:nth-child(' + (3 * index + 2) + ')').text().replace(/,/g,'')
points: parseFloat(row.find('td:nth-child(' + (3 * index + 4) + ')').text()),
value: parseFloat(row.find('td:nth-child(' + (3 * index + 5) + ')').text().replace(/,/g,''))
}

@@ -79,0 +80,0 @@ });

2

package.json
{
"name": "flea-killer",
"version": "0.0.4",
"version": "0.1.0",
"description": "Fleaflicker Baseball API",

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

@@ -49,2 +49,5 @@ var expect = require('chai').expect,

expect(league.id).to.equal(15317);
// Cant test individual stats that well
// expect(league.teams[0].stats.HR.points).to.equal(14);
// expect(league.teams[0].stats.HR.value).to.equal(4);
done();

@@ -51,0 +54,0 @@ });

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