Skip to content

Commit

Permalink
Updated dependencies and docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
igoramadas committed Jun 24, 2019
1 parent e074ac5 commit 12bc34b
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 54 deletions.
48 changes: 24 additions & 24 deletions docs/classes/_app_.app.html
Expand Up @@ -145,7 +145,7 @@ <h3>constructor</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/app.ts#L45">app.ts:45</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/app.ts#L45">app.ts:45</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -170,7 +170,7 @@ <h3>init</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/app.ts#L116">app.ts:116</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/app.ts#L110">app.ts:110</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -201,7 +201,7 @@ <h3>kill</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/app.ts#L326">app.ts:326</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/app.ts#L327">app.ts:327</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -223,7 +223,7 @@ <h3>start</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/app.ts#L266">app.ts:266</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/app.ts#L267">app.ts:267</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -248,7 +248,7 @@ <h3>events</h3>
<div class="tsd-signature tsd-kind-icon">events<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">EventEmitter</span><span class="tsd-signature-symbol"> =&nbsp;new EventEmitter()</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/app.ts#L76">app.ts:76</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/app.ts#L70">app.ts:70</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -263,7 +263,7 @@ <h3>express<wbr>App</h3>
<div class="tsd-signature tsd-kind-icon">express<wbr>App<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">express.Application</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/app.ts#L70">app.ts:70</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/app.ts#L64">app.ts:64</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -278,7 +278,7 @@ <h3>server</h3>
<div class="tsd-signature tsd-kind-icon">server<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/app.ts#L73">app.ts:73</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/app.ts#L67">app.ts:67</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -300,7 +300,7 @@ <h3>all</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/app.ts#L350">app.ts:350</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/app.ts#L351">app.ts:351</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -337,7 +337,7 @@ <h3>delete</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/app.ts#L400">app.ts:400</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/app.ts#L401">app.ts:401</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -374,7 +374,7 @@ <h3>get</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/app.ts#L360">app.ts:360</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/app.ts#L361">app.ts:361</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -411,7 +411,7 @@ <h3>new<wbr>Instance</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/app.ts#L43">app.ts:43</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/app.ts#L43">app.ts:43</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -433,7 +433,7 @@ <h3>off</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/app.ts#L104">app.ts:104</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/app.ts#L98">app.ts:98</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -470,7 +470,7 @@ <h3>on</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/app.ts#L86">app.ts:86</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/app.ts#L80">app.ts:80</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -507,7 +507,7 @@ <h3>once</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/app.ts#L95">app.ts:95</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/app.ts#L89">app.ts:89</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -544,7 +544,7 @@ <h3>patch</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/app.ts#L390">app.ts:390</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/app.ts#L391">app.ts:391</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -581,7 +581,7 @@ <h3>post</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/app.ts#L370">app.ts:370</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/app.ts#L371">app.ts:371</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -618,7 +618,7 @@ <h3>put</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/app.ts#L380">app.ts:380</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/app.ts#L381">app.ts:381</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -655,7 +655,7 @@ <h3>render<wbr>Error</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/app.ts#L596">app.ts:596</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/app.ts#L597">app.ts:597</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -712,7 +712,7 @@ <h3>render<wbr>Image</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/app.ts#L560">app.ts:560</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/app.ts#L561">app.ts:561</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -769,7 +769,7 @@ <h3>render<wbr>Json</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/app.ts#L501">app.ts:501</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/app.ts#L502">app.ts:502</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -818,7 +818,7 @@ <h3>render<wbr>Text</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/app.ts#L469">app.ts:469</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/app.ts#L470">app.ts:470</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -867,7 +867,7 @@ <h3>render<wbr>View</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/app.ts#L436">app.ts:436</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/app.ts#L437">app.ts:437</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -924,7 +924,7 @@ <h3>route</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/app.ts#L420">app.ts:420</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/app.ts#L421">app.ts:421</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -956,7 +956,7 @@ <h3>use</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/app.ts#L410">app.ts:410</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/app.ts#L411">app.ts:411</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
4 changes: 2 additions & 2 deletions docs/classes/_logger_.logger.html
Expand Up @@ -108,7 +108,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> args<wbr>Cleaner</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/logger.ts#L13">logger.ts:13</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/logger.ts#L13">logger.ts:13</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -139,7 +139,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> clean</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/logger.ts#L73">logger.ts:73</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/logger.ts#L73">logger.ts:73</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
4 changes: 2 additions & 2 deletions docs/interfaces/_app_.middlewaredefs.html
Expand Up @@ -104,7 +104,7 @@ <h3>append</h3>
<div class="tsd-signature tsd-kind-icon">append<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/app.ts#L31">app.ts:31</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/app.ts#L31">app.ts:31</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -119,7 +119,7 @@ <h3>prepend</h3>
<div class="tsd-signature tsd-kind-icon">prepend<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/app.ts#L29">app.ts:29</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/app.ts#L29">app.ts:29</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
6 changes: 3 additions & 3 deletions docs/modules/_index_.html
Expand Up @@ -85,7 +85,7 @@ <h3><span class="tsd-flag ts-flagLet">Let</span> <span class="tsd-flag ts-flagEx
<div class="tsd-signature tsd-kind-icon">index<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/index.ts#L14">index.ts:14</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/index.ts#L14">index.ts:14</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -99,7 +99,7 @@ <h3>app</h3>
<div class="tsd-signature tsd-kind-icon">app<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> =&nbsp;require(&quot;./app&quot;)</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/index.ts#L16">index.ts:16</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/index.ts#L16">index.ts:16</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -114,7 +114,7 @@ <h3>version</h3>
<div class="tsd-signature tsd-kind-icon">version<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> =&nbsp;version</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/5903898/src/index.ts#L18">index.ts:18</a></li>
<li>Defined in <a href="https://github.com/igoramadas/expresser/blob/e074ac5/src/index.ts#L18">index.ts:18</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
10 changes: 5 additions & 5 deletions lib/app.js
Expand Up @@ -239,12 +239,7 @@ class App {
}
// Load default settings.
setmeup.load(__dirname + "/../settings.default.json", { overwrite: false });
// Set preprocessor, if not set yet.
if (!logger.preprocessor) {
logger.preprocessor = require("./logger").clean;
}
settings = setmeup.settings;
logger.errorStack = settings.logger.errorStack;
}
/** @hidden */
static get Instance() {
Expand Down Expand Up @@ -289,6 +284,11 @@ class App {
*/
init(middlewares) {
let mw;
// Set preprocessor, if not set yet.
if (!logger.preprocessor) {
logger.preprocessor = require("./logger").clean;
}
logger.errorStack = settings.logger.errorStack;
// Create express v4 app.
this.expressApp = express();
middlewares = middlewares || { append: [], prepend: [] };
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

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

6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -26,13 +26,13 @@
"test": "make test-cover"
},
"dependencies": {
"anyhow": "^1.1.2",
"anyhow": "^1.1.3",
"eventemitter3": "^4.0.0",
"express": "^4.17.1",
"jaul": "^1.0.2",
"jaul": "^1.0.3",
"lodash": "^4.17.11",
"moment": "^2.24.0",
"setmeup": "^1.1.3"
"setmeup": "^1.1.4"
},
"devDependencies": {
"@types/express": "^4.17.0",
Expand Down
13 changes: 7 additions & 6 deletions src/app.ts
Expand Up @@ -54,13 +54,7 @@ class App {
// Load default settings.
setmeup.load(__dirname + "/../settings.default.json", {overwrite: false})

// Set preprocessor, if not set yet.
if (!logger.preprocessor) {
logger.preprocessor = require("./logger").clean
}

settings = setmeup.settings
logger.errorStack = settings.logger.errorStack
}

// PROPERTIES
Expand Down Expand Up @@ -116,6 +110,13 @@ class App {
init(middlewares?: MiddlewareDefs) {
let mw

// Set preprocessor, if not set yet.
if (!logger.preprocessor) {
logger.preprocessor = require("./logger").clean
}

logger.errorStack = settings.logger.errorStack

// Create express v4 app.
this.expressApp = express()

Expand Down

0 comments on commit 12bc34b

Please sign in to comment.