Comparing version 2.0.2 to 2.0.3
{ | ||
"name": "fortnite", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Fortnite leaderboards.", | ||
@@ -28,4 +28,4 @@ "main": "index.js", | ||
"cheerio": "^1.0.0-rc.2", | ||
"snekfetch": "^3.5.2" | ||
"snekfetch": "^3.5.3" | ||
} | ||
} |
# Fortnite | ||
A simple to use module for interacting with the Fortnite API. | ||
A simple to use module for interacting with the FortniteTracker API. | ||
@@ -67,4 +67,4 @@ ## Install | ||
Data { stat: 'killsPerMatch', value: '3.93' } | ||
] | ||
] | ||
} | ||
``` |
const Info = require('./Info'); | ||
const Stat = require('./Stat'); | ||
const Data = require('./Data'); | ||
const { get } = require('snekfetch'); | ||
const { load } = require('cheerio'); | ||
const fetch = require('node-fetch'); | ||
@@ -17,3 +17,4 @@ /** | ||
const { text } = await get(`https://fortnitetracker.com/profile/${platform.toLowerCase()}/${username}`); | ||
const res = await fetch(`https://fortnitetracker.com/profile/${platform.toLowerCase()}/${username}`); | ||
const text = await res.text(); | ||
const $ = load(text); | ||
@@ -20,0 +21,0 @@ if (!$('#profile').length) throw new Error('404'); |
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
Network access
Supply chain riskThis module accesses the network.
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
5587
68
1
Updatedsnekfetch@^3.5.3