Socket
Socket
Sign inDemoInstall

covid19-api

Package Overview
Dependencies
110
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.4 to 1.1.5

2

package.json
{
"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}` , {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc