Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade standard to version ~10.0.2 #75

Merged
merged 2 commits into from
Apr 28, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions lib/reload-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ router.get('/', function (req, res, next) {
// Create the start page path.
var startFile = path.join(dir, startPage)

fs.exists(startFile, function (itDoes) {
// If the start page exists send the reload-client code to the HTML.
if (itDoes) {
sendhtml(startFile, res)
} else {
// Else the start page doesn't exist (whether it's the deault index.html or specified).
fs.access(startFile, function (err) {
// If the start page doesn't exist (whether it's the deault index.html or specified).
if (err) {
res.status(404).send("Can't find " + startPage)
} else {
// Else the start page exists send the reload-client code to the HTML.
sendhtml(startFile, res)
}
})
})
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"minimist": "~1.2.0"
},
"devDependencies": {
"standard": "^7.1.2"
"standard": "^10.0.2"
},
"main": "./lib/reload.js",
"scripts": {
Expand Down