nodecaf-run
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -8,2 +8,10 @@ # Nodecaf Run Changelog | ||
## [v0.0.3] - 2020-04-24 | ||
### Added | ||
- log dump of erros when loading the app | ||
### Fixed | ||
- bug with reload flag that wouldn't reload app sub-modules | ||
## [v0.0.2] - 2020-04-17 | ||
@@ -19,1 +27,3 @@ | ||
[v0.0.1]: https://gitlab.com/nodecaf/run/-/tags/v0.0.1 | ||
[v0.0.2]: https://gitlab.com/nodecaf/run/-/tags/v0.0.2 | ||
[v0.0.3]: https://gitlab.com/nodecaf/run/-/tags/v0.0.3 |
@@ -49,4 +49,5 @@ const path = require('path'); | ||
function load(opts){ | ||
delete require.cache[opts.path]; | ||
let mainPath = module.children[module.children.length -1].id; | ||
delete require.cache[mainPath]; | ||
try{ | ||
@@ -56,2 +57,3 @@ var app = require(opts.path)(); | ||
catch(e){ | ||
console.log(e); | ||
throw new TypeError('App Path must be a valid nodecaf app path'); | ||
@@ -58,0 +60,0 @@ } |
{ | ||
"name": "nodecaf-run", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "A module to run standalone Nodecaf apps as opposed to requiring them.", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
13218
175