Comparing version 1.1.2 to 1.1.3
@@ -0,1 +1,7 @@ | ||
1.1.3 / 2017-04-28 | ||
------------------ | ||
Upgrade Standard to `~10.0.2` in order for the build to pass node `0.1` and `0.12` | ||
Also removed depricated `fs.exists` and replaced with `fs.access` | ||
See: https://github.com/jprichardson/reload/pull/75 | ||
1.1.2 / 2017-04-16 | ||
@@ -2,0 +8,0 @@ ------------------ |
@@ -28,9 +28,9 @@ var express = require('express') | ||
fs.exists(startFile, function (itDoes) { | ||
// If the start page exists send the reload-client code to the HTML. | ||
if (itDoes) { | ||
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) | ||
} else { | ||
// Else the start page doesn't exist (whether it's the deault index.html or specified). | ||
res.status(404).send("Can't find " + startPage) | ||
} | ||
@@ -37,0 +37,0 @@ }) |
{ | ||
"name": "reload", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Node.js module to refresh and reload your code in your browser when your code changes. No browser plugins required.", | ||
@@ -32,3 +32,3 @@ "repository": { | ||
"devDependencies": { | ||
"standard": "^7.1.2" | ||
"standard": "^10.0.2" | ||
}, | ||
@@ -35,0 +35,0 @@ "main": "./lib/reload.js", |
22461