parsony 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -3
- package/lib/db/db.js +2 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -68,7 +68,7 @@ const parsony = {};
|
|
|
68
68
|
let instantiated = false;
|
|
69
69
|
let pFile;
|
|
70
70
|
let app;
|
|
71
|
-
|
|
71
|
+
let server;
|
|
72
72
|
const init = settings => {
|
|
73
73
|
try {
|
|
74
74
|
_init(settings);
|
|
@@ -399,7 +399,7 @@ function _startScheduledServices() {
|
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
function _startAppListening() {
|
|
402
|
-
app.listen(parsony.configs[HTTP_PORT]);
|
|
402
|
+
server = app.listen(parsony.configs[HTTP_PORT]);
|
|
403
403
|
}
|
|
404
404
|
|
|
405
405
|
async function _genInitialKeyPair() {
|
|
@@ -487,7 +487,8 @@ const getBundle = () => {
|
|
|
487
487
|
app,
|
|
488
488
|
api,
|
|
489
489
|
errors,
|
|
490
|
-
cache
|
|
490
|
+
cache,
|
|
491
|
+
server
|
|
491
492
|
};
|
|
492
493
|
};
|
|
493
494
|
|
package/lib/db/db.js
CHANGED