hydra-express
Advanced tools
Comparing version 1.2.18-experimental to 1.2.19-experimental
11
index.js
@@ -141,2 +141,13 @@ /** | ||
init(config) { | ||
if (typeof config === 'string') { | ||
const configHelper = hydra.getConfigHelper(); | ||
return configHelper.init(config) | ||
.then(() => { | ||
return this.init(configHelper.getObject()); | ||
}) | ||
.catch((_err) => { | ||
throw new Error(`Unable to load config from ${config}`); | ||
}); | ||
} | ||
return new Promise((resolve, reject) => { | ||
@@ -143,0 +154,0 @@ if (!config.hydra) { |
{ | ||
"name": "hydra-express", | ||
"version": "1.2.18-experimental", | ||
"version": "1.2.19-experimental", | ||
"description": "A module which wraps Hydra and ExpressJS to provide an out of the box microservice which can support API routes and handlers.", | ||
@@ -5,0 +5,0 @@ "author": { |
904487
853