Skip to content

Commit

Permalink
Replace unmaintained open package with opn.
Browse files Browse the repository at this point in the history
open is unmaintained and has a critical vulnerability issue: pwnall/node-open#67.
opn is pretty much a drop in replacement.
  • Loading branch information
Jezzamonn committed May 28, 2018
1 parent 0973dbb commit 19b79db
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/reload-server.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var http = require('http')
var reload = require('../lib/reload')
var fs = require('fs')
var open = require('open')
var opn = require('opn')
var clc = require('cli-color')
var argv = require('minimist')(process.argv.slice(2))

Expand Down Expand Up @@ -70,7 +70,7 @@ server.listen(port, function () {

// If openBrowser, open the browser with the given start page above, at a hostname (localhost default or specified).
if (openBrowser) {
open('http://' + hostname + ':' + port)
opn('http://' + hostname + ':' + port)
}
} else {
time = new Date()
Expand Down
16 changes: 12 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"commander": "~2.9.0",
"finalhandler": "^1.1.1",
"minimist": "~1.2.0",
"open": "~0.0.5",
"opn": "^5.3.0",
"serve-static": "^1.13.2",
"supervisor": "~0.12.0",
"url-parse": "~1.1.9",
Expand Down

0 comments on commit 19b79db

Please sign in to comment.