Skip to content

Commit

Permalink
Added polyfill for fetch on aws lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaRonin committed Mar 2, 2020
1 parent 21586d5 commit cf71f4a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crawler.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"use strict";

const fetch = require('node-fetch')

const CONFIRMED_TIME_SERIES = "https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_19-covid-Confirmed.csv"
const RECOVERED_TIME_SERIES = "https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_19-covid-Recovered.csv"
const DEATHS_TIME_SERIES = "https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_19-covid-Deaths.csv"
Expand Down
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"homepage": "https://github.com/LucaRonin/covid19-data-crawler#readme",
"dependencies": {
"node-fetch": "^2.6.0",
"serverless-offline": "^5.12.1"
}
}

0 comments on commit cf71f4a

Please sign in to comment.