New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

fn-tracker-api

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fn-tracker-api - npm Package Compare versions

Comparing version
1.1.2
to
1.1.3
+4
Examples/GetPowerRanking.js
const FortniteTracker = require ("fn-tracker-api")
const client = new FortniteTracker("Your fortnite-tracker api token")
client.getPowerRanking("Brxnson", "pc", "eu").then(data => console.log(data))
+1
-1
{
"name": "fn-tracker-api",
"version": "1.1.2",
"version": "1.1.3",
"description": "NPM package to ease the use of the fortnitetracker api",

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

@@ -18,3 +18,3 @@ # Fortnite Tracker api npm package

FNTrackerClient.getPowerRankings("Brxnson", "pc", "eu").then(async data => console.log(data))
FNTrackerClient.getPowerRanking("Brxnson", "pc", "eu").then(async data => console.log(data))
```

@@ -40,6 +40,6 @@

## getPowerRankings("EpicName", "Platform", "Region")
## getPowerRanking("EpicName", "Platform", "Region")
Get the power rankings of the provided user from the provided platform and region
```js
FNTrackerClient.getPowerRankings("Brxnson", "pc", "eu").then(async data => console.log(data))
FNTrackerClient.getPowerRanking("Brxnson", "pc", "eu").then(async data => console.log(data))
```

@@ -45,3 +45,3 @@ const { getStore, GetMatchHistory, GetPlayerStats, GetPowerRankings } = require ("./functions")

*/
async getPowerRankings(EpicName, Platform, Region) {
async getPowerRanking(EpicName, Platform, Region) {
if (!Platform || !Region || !EpicName) throw new TypeError("Make sure you provide a valid platform, region and epicname!")

@@ -48,0 +48,0 @@ if (typeof Platform !== "string" || typeof Region !== "string" || typeof EpicName !== "string") throw new TypeError("Make sure you provide a valid platform, region and epicname!")

const FortniteTracker = require ("fn-tracker-api")
const client = new FortniteTracker("Your fortnite-tracker api token")
client.getPowerRankings("Brxnson", "pc", "eu").then(data => console.log(data))