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

fortnite-basic-api

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fortnite-basic-api - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

package.json
{
"name": "fortnite-basic-api",
"version": "1.0.5",
"version": "1.0.6",
"description": "basic fortnite api and other things, supporting both v1 and v2, using request-promises",

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

@@ -169,4 +169,6 @@ const GameModes = require('../../enums/GameModes');

static assignExtraStats(obj) {
const winrate = Number(this.winrate(obj.placetop1, obj.matchesplayed));
const kdr = Number(this.ratio(obj.kills, (obj.matchesplayed - obj.placetop1)));
if (!obj.placetop1) Object.assign(obj, { placetop1: 0 });
if (!obj.kills) Object.assign(obj, { kills: 0 });
const winrate = Number(this.winrate(obj.placetop, obj.matchesplayed));
const kdr = Number(this.ratio(obj.kills, obj.matchesplayed - obj.placetop1));
const killsPerMatch = Number(this.ratio(obj.kills, obj.matchesplayed));

@@ -173,0 +175,0 @@ Object.assign(obj, { winrate, kdr, killsPerMatch });

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