Skip to content

Commit

Permalink
update dependencies, fix lint, require node 8
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Nov 24, 2018
1 parent f2aa0b0 commit de1f6fe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
language: node_js
node_js:
- '8'
- '6'
- '4'
- '10'
8 changes: 3 additions & 5 deletions browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ const URL = require('url-parse');
module.exports = hosts => {
return pAny(arrify(hosts).map(url => {
return new Promise(resolve => {
url = new URL(prependHttp(url));

const hostname = url.hostname;
const protocol = url.protocol || '';
const port = url.port ? `:${url.port}` : '';
let {hostname, protocol, port} = new URL(prependHttp(url));
protocol = protocol || '';
port = port ? `:${port}` : '';

const img = new Image();
img.addEventListener('load', () => resolve(true));
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"silverwind <me@silverwind.io> (github.com/silverwind)"
],
"engines": {
"node": ">=4"
"node": ">=8"
},
"scripts": {
"test": "xo && ava test.js"
Expand Down Expand Up @@ -42,15 +42,15 @@
],
"dependencies": {
"arrify": "^1.0.1",
"got": "^8.0.3",
"got": "^9.3.2",
"is-port-reachable": "^2.0.0",
"p-any": "^1.1.0",
"p-timeout": "^2.0.1",
"pify": "^3.0.0",
"port-numbers": "^2.0.20",
"pify": "^4.0.1",
"port-numbers": "^4.0.4",
"prepend-http": "^2.0.0",
"router-ips": "^1.0.0",
"url-parse": "^1.2.0"
"url-parse": "^1.4.4"
},
"devDependencies": {
"ava": "*",
Expand Down

0 comments on commit de1f6fe

Please sign in to comment.