@carno.js/core 0.2.9 → 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/dist/Carno.d.ts +6 -2
- package/dist/Carno.js +104 -85
- package/dist/container/InjectorService.js +6 -4
- package/dist/container/middleware.resolver.js +6 -6
- package/dist/domain/BaseContext.d.ts +15 -0
- package/dist/domain/BaseContext.js +2 -0
- package/dist/domain/Context.d.ts +46 -24
- package/dist/domain/Context.js +116 -89
- package/dist/domain/FastContext.d.ts +34 -0
- package/dist/domain/FastContext.js +59 -0
- package/dist/domain/cors-headers-cache.d.ts +2 -0
- package/dist/domain/cors-headers-cache.js +44 -0
- package/dist/route/FastPathExecutor.d.ts +10 -2
- package/dist/route/FastPathExecutor.js +43 -12
- package/dist/route/JITCompiler.d.ts +25 -1
- package/dist/route/JITCompiler.js +205 -98
- package/dist/route/Matcher.d.ts +4 -9
- package/dist/route/Matcher.js +10 -10
- package/dist/route/RouteCompiler.d.ts +0 -1
- package/dist/route/RouteCompiler.js +1 -44
- package/dist/route/RouteExecutor.d.ts +0 -2
- package/dist/route/RouteExecutor.js +19 -13
- package/dist/route/memoirist.d.ts +2 -0
- package/dist/route/memoirist.js +33 -3
- package/dist/services/logger.service.js +0 -7
- package/dist/testing/core-testing.js +5 -1
- package/package.json +2 -2
|
@@ -4,7 +4,11 @@ exports.createCoreTestHarness = createCoreTestHarness;
|
|
|
4
4
|
exports.withCoreApplication = withCoreApplication;
|
|
5
5
|
const Carno_1 = require("../Carno");
|
|
6
6
|
async function createCoreTestHarness(options = {}) {
|
|
7
|
-
const
|
|
7
|
+
const config = { ...options.config };
|
|
8
|
+
if (config.disableStartupLog === undefined) {
|
|
9
|
+
config.disableStartupLog = true;
|
|
10
|
+
}
|
|
11
|
+
const app = new Carno_1.Carno(config);
|
|
8
12
|
applyPlugins(app, options.plugins);
|
|
9
13
|
const boot = await bootApplication(app, options);
|
|
10
14
|
const injector = app.getInjector();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carno.js/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.11",
|
|
4
4
|
"description": "Carno.js is a framework for building web applications object oriented with TypeScript and Bun.sh",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bun",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "495ba33561d058107b1bb76d737a0d38a361f5b2"
|
|
66
66
|
}
|