Skip to content

Commit 58e7180

Browse files
committed
fix: throwing error on require nodemon
Fixes remy#1292 Null was not being checked on index.js
1 parent 8637e52 commit 58e7180

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

lib/utils/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var utils = (module.exports = {
2121
var p = module.parent;
2222
while (p) {
2323
// in electron.js engine it happens
24-
if (p.filename === undefined) {
24+
if (!p.filename) {
2525
return true;
2626
}
2727
if (p.filename.indexOf('bin' + path.sep + 'nodemon.js') !== -1) {

package-lock.json

+12-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/fork/config.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ describe('nodemon full config test', function () {
4141
}
4242
});
4343
});
44-
});
44+
});

0 commit comments

Comments
 (0)