diff --git a/index.ts b/index.ts index 38bf67a..9489b85 100644 --- a/index.ts +++ b/index.ts @@ -1,5 +1,9 @@ -"use strict"; - +/** + * @file Scrapes https://trendogate.com and creates a .csv of historical trending data + * @author Rekai Musuka + * @license MIT + * @version 2020.03.17 + */ import { addDays, format } from 'date-fns'; import cheerio from 'cheerio'; import axios from 'axios'; diff --git a/package.json b/package.json index 7ea51d5..ba11e83 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,13 @@ { "name": "trendogate_scraper", - "version": "1.0.0", + "version": "2020.03.17", "description": "Scrapes information from https://trendogate.com/ for CSCI 1107", "main": "index.js", "repository": "ssh://gitea@git.paoda.moe:31059/paoda/trendogate_scraper.git", "author": "paoda ", "scripts": { - "start": "node ./out/index.js" + "start": "node ./out/index.js", + "watch": "tsc --watch" }, "license": "MIT", "private": true, diff --git a/tsconfig.json b/tsconfig.json index 3f75783..7850c6c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,8 @@ "module": "CommonJS", "outDir": "out", "sourceMap": true, - "esModuleInterop": true + "esModuleInterop": true, + "alwaysStrict": true }, "compileOnSave": true } \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 1547648..cb8a2ab 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10,9 +10,9 @@ "@types/node" "*" "@types/node@*": - version "13.7.7" - resolved "https://registry.yarnpkg.com/@types/node/-/node-13.7.7.tgz#1628e6461ba8cc9b53196dfeaeec7b07fa6eea99" - integrity sha512-Uo4chgKbnPNlxQwoFmYIwctkQVkMMmsAoGGU4JKwLuvBefF0pCq4FybNSnfkfRCpC7ZW7kttcC/TrRtAJsvGtg== + version "13.9.1" + resolved "https://registry.yarnpkg.com/@types/node/-/node-13.9.1.tgz#96f606f8cd67fb018847d9b61e93997dabdefc72" + integrity sha512-E6M6N0blf/jiZx8Q3nb0vNaswQeEyn0XlupO+xN6DtJ6r6IT4nXrTry7zhIfYvFCl3/8Cu6WIysmUBKiqV0bqQ== axios@^0.19.2: version "0.19.2" @@ -54,9 +54,9 @@ css-what@2.1: integrity sha512-a+EPoD+uZiNfh+5fxw2nO9QwFa6nJe2Or35fGY6Ipw1R3R4AGz1d1TEZrCegvw2YTmZ0jXirGYlzxxpYSHwpEg== date-fns@^2.10.0: - version "2.10.0" - resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.10.0.tgz#abd10604d8bafb0bcbd2ba2e9b0563b922ae4b6b" - integrity sha512-EhfEKevYGWhWlZbNeplfhIU/+N+x0iCIx7VzKlXma2EdQyznVlZhCptXUY+BegNpPW2kjdx15Rvq503YcXXrcA== + version "2.11.0" + resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.11.0.tgz#ec2b44977465b9dcb370021d5e6c019b19f36d06" + integrity sha512-8P1cDi8ebZyDxUyUprBXwidoEtiQAawYPGvpfb+Dg0G6JrQ+VozwOmm91xYC0vAv1+0VmLehEPb+isg4BGUFfA== debug@=3.1.0: version "3.1.0"