@common-stack/core 0.6.1-alpha.0 → 0.6.1-alpha.4
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/lib/connectors/common-feature.d.ts +2 -2
- package/lib/connectors/common-feature.js +2 -1
- package/lib/connectors/common-feature.js.map +1 -1
- package/lib/connectors/feature.d.ts +1 -1
- package/lib/envalid.d.ts +1 -1
- package/lib/interfaces/common-feature.d.ts +2 -2
- package/lib/interfaces/feature.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { interfaces
|
|
1
|
+
import { interfaces } from 'inversify';
|
|
2
2
|
import { Feature2 } from './feature';
|
|
3
3
|
import { ICommonFeature, ICommonFeatureShape, ILocalization, ContainerFunc } from '../interfaces';
|
|
4
4
|
declare class CommonFeature<S = unknown> extends Feature2 implements ICommonFeature<S> {
|
|
@@ -14,7 +14,7 @@ declare class CommonFeature<S = unknown> extends Feature2 implements ICommonFeat
|
|
|
14
14
|
};
|
|
15
15
|
constructor(...modules: ICommonFeatureShape[]);
|
|
16
16
|
get localizations(): ILocalization[];
|
|
17
|
-
get container(): interfaces.Container
|
|
17
|
+
get container(): interfaces.Container;
|
|
18
18
|
get services(): {
|
|
19
19
|
[key: string]: S;
|
|
20
20
|
};
|
|
@@ -7,13 +7,14 @@ const feature_1 = require("./feature");
|
|
|
7
7
|
class CommonFeature extends feature_1.Feature2 {
|
|
8
8
|
constructor(...modules) {
|
|
9
9
|
super(...modules);
|
|
10
|
+
this._container = new inversify_1.Container();
|
|
10
11
|
(0, fractal_objects_1.foldTo)(this, modules);
|
|
11
12
|
}
|
|
12
13
|
get localizations() {
|
|
13
14
|
return this.localizationIn || [];
|
|
14
15
|
}
|
|
15
16
|
get container() {
|
|
16
|
-
return this._container
|
|
17
|
+
return this._container;
|
|
17
18
|
}
|
|
18
19
|
get services() {
|
|
19
20
|
return this._services;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-feature.js","sourceRoot":"","sources":["../../src/connectors/common-feature.ts"],"names":[],"mappings":";;;AAAA,qDAAyC;AACzC,yCAAkD;AAClD,uCAAqC;AAGrC,MAAM,aAAyB,SAAQ,kBAAQ;IAQ3C,YAAY,GAAG,OAA8B;QACzC,KAAK,CAAC,GAAG,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"common-feature.js","sourceRoot":"","sources":["../../src/connectors/common-feature.ts"],"names":[],"mappings":";;;AAAA,qDAAyC;AACzC,yCAAkD;AAClD,uCAAqC;AAGrC,MAAM,aAAyB,SAAQ,kBAAQ;IAQ3C,YAAY,GAAG,OAA8B;QACzC,KAAK,CAAC,GAAG,OAAO,CAAC,CAAC;QAJZ,eAAU,GAAyB,IAAI,qBAAS,EAAE,CAAC;QAKzD,IAAA,wBAAM,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC1B,CAAC;IAED,IAAI,aAAa;QACb,OAAO,IAAI,CAAC,cAAc,IAAI,EAAE,CAAC;IACrC,CAAC;IAED,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAED,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;CACJ;AACQ,sCAAa"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="
|
|
1
|
+
/// <reference types="node" />
|
|
2
2
|
import { IFeature2, IFeature2Shape } from '../interfaces';
|
|
3
3
|
declare class Feature2 implements IFeature2 {
|
|
4
4
|
readonly onAppCreate?: Array<(modules: IFeature2, entryModule: NodeModule) => Promise<any>>;
|
package/lib/envalid.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Resource } from 'i18next';
|
|
2
2
|
import { interfaces } from 'inversify';
|
|
3
3
|
import { IFeature2Shape } from './feature';
|
|
4
|
-
export
|
|
4
|
+
export type ILocalization = {
|
|
5
5
|
ns: string;
|
|
6
6
|
resources: Resource;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type ContainerFunc = (options?: any) => interfaces.ContainerModule;
|
|
9
9
|
/**
|
|
10
10
|
* Common Feature Shape
|
|
11
11
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common-stack/core",
|
|
3
|
-
"version": "0.6.1-alpha.
|
|
3
|
+
"version": "0.6.1-alpha.4",
|
|
4
4
|
"description": "Common core for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"typescript": {
|
|
28
28
|
"definition": "lib/index.d.ts"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "8f1002595ef0da183fc26d37a4a185b9c94cfc76"
|
|
31
31
|
}
|