@adaas/a-concept 0.1.5 → 0.1.7
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.
|
@@ -30,7 +30,7 @@ export declare class A_Container {
|
|
|
30
30
|
/**
|
|
31
31
|
* Configuration of the container that will be used to run it.
|
|
32
32
|
*/
|
|
33
|
-
config
|
|
33
|
+
config?: Partial<A_TYPES__Container_Init>);
|
|
34
34
|
/**
|
|
35
35
|
* Calls the feature with the given name in the given scope
|
|
36
36
|
*
|
|
@@ -17,7 +17,8 @@ class A_Container {
|
|
|
17
17
|
* Name of the container
|
|
18
18
|
*/
|
|
19
19
|
get name() {
|
|
20
|
-
|
|
20
|
+
var _a;
|
|
21
|
+
return ((_a = this.config) === null || _a === void 0 ? void 0 : _a.name) || this.constructor.name;
|
|
21
22
|
}
|
|
22
23
|
/**
|
|
23
24
|
* Returns the scope where the container is registered
|
|
@@ -42,7 +43,7 @@ class A_Container {
|
|
|
42
43
|
/**
|
|
43
44
|
* Configuration of the container that will be used to run it.
|
|
44
45
|
*/
|
|
45
|
-
config) {
|
|
46
|
+
config = {}) {
|
|
46
47
|
this.config = config;
|
|
47
48
|
A_Context_class_1.A_Context.allocate(this, this.config);
|
|
48
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A-Container.class.js","sourceRoot":"","sources":["../../../../src/global/A-Container/A-Container.class.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kEAAyD;AACzD,kEAAyD;AAMzD,MAAa,WAAW;IAMpB;;OAEG;IACH,IAAI,IAAI
|
|
1
|
+
{"version":3,"file":"A-Container.class.js","sourceRoot":"","sources":["../../../../src/global/A-Container/A-Container.class.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kEAAyD;AACzD,kEAAyD;AAMzD,MAAa,WAAW;IAMpB;;OAEG;IACH,IAAI,IAAI;;QACJ,OAAO,CAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,IAAI,KAAI,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACtD,CAAC;IACD;;OAEG;IACH,IAAI,KAAK;QACL,OAAO,2BAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;IAGD;;;;;;;;;;;;OAYG;IACH;IACI;;OAEG;IACH,SAA2C,EAAE;QAE7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QAErB,2BAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IAC1C,CAAC;IAGD;;;;;;;;OAQG;IACG,IAAI;IACN;;OAEG;IACH,OAAe;IACf;;OAEG;IACH,KAAe;;YAEf,MAAM,UAAU,GAAG,IAAI,2BAAS,CAAC;gBAC7B,IAAI,EAAE,OAAO;gBACb,SAAS,EAAE,IAAI;aAClB,CAAC,CAAC;YAEH,OAAO,MAAM,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAC3C,CAAC;KAAA;CACJ;AAvED,kCAuEC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaas/a-concept",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "A-Concept is a framework to build new Applications within or outside the ADAAS ecosystem. This framework is designed to be modular structure regardless environment and program goal.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -15,7 +15,7 @@ export class A_Container {
|
|
|
15
15
|
* Name of the container
|
|
16
16
|
*/
|
|
17
17
|
get name() {
|
|
18
|
-
return this.config
|
|
18
|
+
return this.config?.name || this.constructor.name;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Returns the scope where the container is registered
|
|
@@ -42,7 +42,7 @@ export class A_Container {
|
|
|
42
42
|
/**
|
|
43
43
|
* Configuration of the container that will be used to run it.
|
|
44
44
|
*/
|
|
45
|
-
config: Partial<A_TYPES__Container_Init>
|
|
45
|
+
config: Partial<A_TYPES__Container_Init> = {}
|
|
46
46
|
) {
|
|
47
47
|
this.config = config;
|
|
48
48
|
|