@modular-rest/server 1.17.0 → 1.17.1
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/dist/application.js
CHANGED
|
@@ -213,7 +213,7 @@ async function createRest(options) {
|
|
|
213
213
|
}
|
|
214
214
|
// 4. Setting up default services
|
|
215
215
|
try {
|
|
216
|
-
await require('./helper/presetup_services').setup(
|
|
216
|
+
await require('./helper/presetup_services').setup(config_1.config);
|
|
217
217
|
}
|
|
218
218
|
catch (e) {
|
|
219
219
|
return Promise.reject(e);
|
|
@@ -94,7 +94,7 @@ async function setup({ keypair, adminUser, uploadDirectory, uploadDirectoryConfi
|
|
|
94
94
|
}
|
|
95
95
|
JWT.main.setKies(keyPairToUse.private, keyPairToUse.public);
|
|
96
96
|
if (!adminUser) {
|
|
97
|
-
throw new Error('Admin user is
|
|
97
|
+
throw new Error('Admin user configuration is required. Please provide adminUser in your createRest() options.');
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
100
100
|
* Data Insertion
|
package/package.json
CHANGED
package/src/application.ts
CHANGED
|
@@ -212,7 +212,7 @@ export async function createRest(options: RestOptions): Promise<{ app: Koa; serv
|
|
|
212
212
|
|
|
213
213
|
// 4. Setting up default services
|
|
214
214
|
try {
|
|
215
|
-
await require('./helper/presetup_services').setup(
|
|
215
|
+
await require('./helper/presetup_services').setup(config);
|
|
216
216
|
} catch (e) {
|
|
217
217
|
return Promise.reject(e);
|
|
218
218
|
}
|
|
@@ -91,7 +91,7 @@ export async function setup({
|
|
|
91
91
|
JWT.main.setKies(keyPairToUse.private, keyPairToUse.public);
|
|
92
92
|
|
|
93
93
|
if (!adminUser) {
|
|
94
|
-
throw new Error('Admin user is
|
|
94
|
+
throw new Error('Admin user configuration is required. Please provide adminUser in your createRest() options.');
|
|
95
95
|
}
|
|
96
96
|
/**
|
|
97
97
|
* Data Insertion
|