Skip to content

Commit

Permalink
fixes bug in rc release
Browse files Browse the repository at this point in the history
  • Loading branch information
Manish Rawat committed Aug 12, 2020
1 parent 0e0f8ff commit add6b9a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/BaseResolver.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { HTTPError } from 'got';
const got = require('got');
const FormData = require('form-data');
import got, { HTTPError } from 'got';
// const got = require('got');
import FormData = require('form-data');

export abstract class BaseUrlResolver {
protected domains: RegExp[];
Expand Down Expand Up @@ -60,7 +60,7 @@ export abstract class BaseUrlResolver {
}

private setupEnvironment(): void {
let gotoptions: any;
let gotoptions: any = {};
this.useCookies && (gotoptions.cookieJar = new this.CookieJar.CookieJar());
gotoptions.headers = {
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0'
Expand Down
16 changes: 8 additions & 8 deletions src/app.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { UrlResolver } from "./UrlResolver";

//uncomment for testing
(async () => {
var instance = new UrlResolver();
var urlToResolve = "";
var results = await instance.resolveRecursive(urlToResolve, {
timeout: 30,
});
console.log(results);
})();
// (async () => {
// var instance = new UrlResolver();
// var urlToResolve = "";
// var results = await instance.resolveRecursive(urlToResolve, {
// timeout: 30,
// });
// console.log(results);
// })();

export = new UrlResolver();

0 comments on commit add6b9a

Please sign in to comment.