@notchjs/core 0.4.0 → 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/constants.d.ts +1 -1
- package/dist/constants.js +2 -2
- package/dist/notch.module.js +3 -3
- package/package.json +6 -5
package/dist/constants.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const HTTP_ADAPTER = "HTTP_ADAPTER";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const APP_LOGGER = "APP_LOGGER";
|
package/dist/constants.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.APP_LOGGER = exports.HTTP_ADAPTER = void 0;
|
|
4
4
|
exports.HTTP_ADAPTER = 'HTTP_ADAPTER';
|
|
5
|
-
exports.
|
|
5
|
+
exports.APP_LOGGER = 'APP_LOGGER';
|
package/dist/notch.module.js
CHANGED
|
@@ -28,8 +28,8 @@ class NotchModule {
|
|
|
28
28
|
{
|
|
29
29
|
provide: logger_host_1.LoggerHost.name,
|
|
30
30
|
useFactory: (container) => {
|
|
31
|
-
const logger = container.has(constants_1.
|
|
32
|
-
? container.get(constants_1.
|
|
31
|
+
const logger = container.has(constants_1.APP_LOGGER)
|
|
32
|
+
? container.get(constants_1.APP_LOGGER)
|
|
33
33
|
: new util_1.NoopLogger();
|
|
34
34
|
return new logger_host_1.LoggerHost(logger);
|
|
35
35
|
},
|
|
@@ -65,7 +65,7 @@ class NotchModule {
|
|
|
65
65
|
const loggerHost = container.get(logger_host_1.LoggerHost.name);
|
|
66
66
|
const hooks = container.get(hook_collector_1.HookCollector.name);
|
|
67
67
|
return new application_1.Application(httpAdapterHost.httpAdapter, hooks, {
|
|
68
|
-
log: loggerHost.logger
|
|
68
|
+
log: loggerHost.logger,
|
|
69
69
|
config: config.notch,
|
|
70
70
|
});
|
|
71
71
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@notchjs/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "A dependency injection based web framework (Node.js)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Augustus Kamau",
|
|
@@ -18,13 +18,14 @@
|
|
|
18
18
|
"test": "jest --detectOpenHandles"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@notchjs/util": "^0.
|
|
21
|
+
"@notchjs/util": "^0.6.0",
|
|
22
22
|
"iterare": "1.2.1",
|
|
23
23
|
"tslib": "2.6.2"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@notchjs/express": "^0.
|
|
27
|
-
"@notchjs/
|
|
26
|
+
"@notchjs/express": "^0.6.0",
|
|
27
|
+
"@notchjs/http": "^0.6.0",
|
|
28
|
+
"@notchjs/types": "^0.6.0"
|
|
28
29
|
},
|
|
29
30
|
"homepage": "https://github.com/notchjs/notch",
|
|
30
31
|
"bugs": {
|
|
@@ -40,5 +41,5 @@
|
|
|
40
41
|
"publishConfig": {
|
|
41
42
|
"access": "public"
|
|
42
43
|
},
|
|
43
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "875bb8f1d2cdbf055c2be4f221e35c70f660bd87"
|
|
44
45
|
}
|