Skip to content

Commit

Permalink
Update dependencies (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladikoff authored May 15, 2021
1 parent dc9b6fc commit b81ca89
Show file tree
Hide file tree
Showing 3 changed files with 673 additions and 671 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
var os = require('os');
var fs = require('fs');
var path = require('path');
var url = require('url');

var got = require('got');
var tar = require('tar');
Expand Down Expand Up @@ -60,7 +59,7 @@ if (CACHED_ARCHIVE) {
extract(CACHED_ARCHIVE);
} else {
process.stdout.write('Downloading geckodriver... ');
got.stream(url.parse(downloadUrl), downloadOptions)
got.stream(new URL(downloadUrl), downloadOptions)
.pipe(fs.createWriteStream(outFile))
.on('close', function () {
extract(path.join(__dirname, outFile));
Expand Down
Loading

0 comments on commit b81ca89

Please sign in to comment.