@supacloud/elysia 0.5.1 → 0.6.0
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/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -143,7 +143,7 @@ export type ErrorMapper = (error: unknown, context: ErrorContext) => Response |
|
|
|
143
143
|
export interface ApplicationOptions {
|
|
144
144
|
name?: string;
|
|
145
145
|
/** Modules in topological import order. */
|
|
146
|
-
modules
|
|
146
|
+
modules?: CompiledModule[];
|
|
147
147
|
/** Platform-level dependencies (db client etc.), passed to createServices. */
|
|
148
148
|
deps?: Record<string, unknown>;
|
|
149
149
|
/** Builds the per-request context object. Defaults to { requestId, request }. */
|
package/dist/index.js
CHANGED
|
@@ -417,7 +417,7 @@ function createApplication(options) {
|
|
|
417
417
|
return pending;
|
|
418
418
|
};
|
|
419
419
|
const imported = {};
|
|
420
|
-
for (const module of options.modules) {
|
|
420
|
+
for (const module of options.modules ?? []) {
|
|
421
421
|
const services = module.createServices(options.deps ?? {}, imported);
|
|
422
422
|
imported[module.name] = services;
|
|
423
423
|
app.use(createModulePlugin(module, services, ctxFactory, {
|
package/package.json
CHANGED