covid19-api
Advanced tools
Comparing version 1.1.4 to 1.1.5
{ | ||
"name": "covid19-api", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "This API provides updated real-time data on coronavirus cases from the worldometers page and other important websites, provided by the most reputable organizations and statistical offices in the world.", | ||
@@ -5,0 +5,0 @@ "main": "./src/api/index.js", |
@@ -1,2 +0,2 @@ | ||
# **🐛 COVID19** (version 1.1.4) | ||
# **🐛 COVID19** (version 1.1.5) | ||
@@ -67,3 +67,4 @@ ![node version](https://img.shields.io/badge/node->=10.16.x-brightgreen.svg) | ||
## 🎉 COVID19 API - UPDATED v1.1.4 | ||
## 🎉 COVID19 API - UPDATED v1.1.5 | ||
- [x] *Reported1st case key renamed by FirstCase in reports function* | ||
- [x] *posinstall and start script removed due to an error about* | ||
@@ -70,0 +71,0 @@ |
@@ -85,3 +85,3 @@ const cloudscraper = require('cloudscraper'); | ||
doc.forEach((obj) => renameKey(obj , 'Deaths/1M pop' , 'Deaths_1M_pop')); | ||
doc.forEach((obj) => renameKey(obj , '1stcase' , 'FirstCase')); | ||
doc.forEach((obj) => renameKey(obj , 'Reported1st case' , 'FirstCase')); | ||
doc.forEach((obj) => renameKey(obj , 'Country,Other' , 'Country')); | ||
@@ -95,2 +95,7 @@ doc.forEach((obj) => renameKey(obj , 'Serious,Critical' , 'Serious_Critical')); | ||
reports() | ||
.then(res =>{ | ||
console.log(res[0].table) | ||
}) | ||
const reportsByCountries = async(country) =>{ | ||
@@ -97,0 +102,0 @@ const res = await cloudscraper(`${BASE_URL}/coronavirus/country/${country}` , { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
164044
668
1038
0