refactor: Use node-fetch instead of xmlhttprequest (#130)

* deps: Add node-fetch, remove xmlhttprequest
* refactor: Use node-fetch instead of xmlhttprequest
This commit is contained in:
Shohei Ueda
2020-01-18 04:36:10 +09:00
committed by GitHub
parent 3130d100df
commit 4642226db0
5 changed files with 103 additions and 47 deletions

View File

@@ -16,7 +16,7 @@ if (!tempDir) {
tempDir = path.join(baseTempLocation, 'tmp');
}
export default async function installer(version: string) {
export async function installer(version: string) {
try {
const extended: string = core.getInput('extended');
console.log(`Hugo extended: ${extended}`);