millas 0.2.10 → 0.2.11
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/package.json +1 -1
- package/src/container/MillasApp.js +6 -14
package/package.json
CHANGED
|
@@ -226,29 +226,21 @@ class MillasApp {
|
|
|
226
226
|
/** The raw Express application instance. */
|
|
227
227
|
get express() { return this._expressApp; }
|
|
228
228
|
|
|
229
|
-
/** The underlying Application kernel. */
|
|
229
|
+
/** The underlying Application kernel (also accessible as .app for back-compat). */
|
|
230
230
|
get kernel() { return this._kernel; }
|
|
231
|
+
get app() { return this._kernel; }
|
|
231
232
|
|
|
232
233
|
/** The DI container. */
|
|
233
234
|
get container() { return this._kernel?._container; }
|
|
234
235
|
|
|
235
|
-
/** The Route instance
|
|
236
|
+
/** The Route instance — used by route:list command. */
|
|
236
237
|
get route() { return this._kernel?._route; }
|
|
237
238
|
|
|
238
|
-
// ─── module.exports helper ────────────────────────────────────────────────
|
|
239
|
-
|
|
240
239
|
/**
|
|
241
|
-
*
|
|
242
|
-
*
|
|
240
|
+
* The raw Express app — backward-compatible alias.
|
|
241
|
+
* Allows: const { expressApp } = require('./bootstrap/app')
|
|
243
242
|
*/
|
|
244
|
-
|
|
245
|
-
const self = this;
|
|
246
|
-
return {
|
|
247
|
-
app: this._kernel,
|
|
248
|
-
expressApp: this._expressApp,
|
|
249
|
-
get route() { return self._kernel?._route; },
|
|
250
|
-
};
|
|
251
|
-
}
|
|
243
|
+
get expressApp() { return this._expressApp; }
|
|
252
244
|
|
|
253
245
|
// ─── Internal ─────────────────────────────────────────────────────────────
|
|
254
246
|
|