Skip to content

Commit f5b3d3f

Browse files
author
craigparra
committed
1.0.11 / 2021-08-10
================== * Add Application cdi support - @craigparra
1 parent 1a528c6 commit f5b3d3f

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

Application.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
const { ApplicationContext } = require('@alt-javascript/cdi');
21
const Boot = require('./Boot');
32

43
module.exports = class Application {
@@ -7,6 +6,9 @@ module.exports = class Application {
76
if (!Boot.root('config')) {
87
Boot.boot(options);
98
}
9+
10+
const ApplicationContext = require('@alt-javascript/cdi/ApplicationContext');
11+
1012
options.config = options?.config || Boot.root('config');
1113
let applicationContext = options?.applicationContext || options;
1214
if (applicationContext.constructor.name !== 'ApplicationContext') {

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const Boot = require('./Boot');
22
const Application = require('./Application');
33

4-
module.exports.Application = Application;
4+
// module.exports.Application = Application;
55
module.exports.Boot = Boot;
66
module.exports.boot = Boot.boot;
77
module.exports.root = Boot.root;

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
},
3636
"license": "MIT",
3737
"dependencies": {
38-
"@alt-javascript/cdi": "^1.0.0",
38+
"@alt-javascript/cdi": "^1.0.1",
3939
"@alt-javascript/config": "^1.0.5",
4040
"@alt-javascript/logger": "^1.1.5",
4141
"lodash": "^4.17.21"

0 commit comments

Comments
 (0)