@common-stack/client-core 0.6.1-alpha.1 → 0.6.1-alpha.2
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.
|
@@ -22,14 +22,14 @@ import {merge}from'lodash';import {foldTo}from'fractal-objects';import {CommonFe
|
|
|
22
22
|
loadContainers(options, additionalContainerFunc) {
|
|
23
23
|
// only create once
|
|
24
24
|
if (this._isContainerLoaded) {
|
|
25
|
-
return this.
|
|
25
|
+
return this._container;
|
|
26
26
|
}
|
|
27
27
|
this.createContainerFuncIn.map(createModule => {
|
|
28
|
-
this.
|
|
28
|
+
this._container.load(createModule(options));
|
|
29
29
|
});
|
|
30
30
|
if (additionalContainerFunc) {
|
|
31
31
|
additionalContainerFunc.map(additionalModule => {
|
|
32
|
-
this.
|
|
32
|
+
this._container.load(additionalModule(options));
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
this._isContainerLoaded = true;
|
|
@@ -44,7 +44,7 @@ import {merge}from'lodash';import {foldTo}from'fractal-objects';import {CommonFe
|
|
|
44
44
|
if (!this._isContainerLoaded) {
|
|
45
45
|
this.loadContainers(options);
|
|
46
46
|
}
|
|
47
|
-
this._services = merge({}, ...this.createServiceFuncIn.map(serviceFunc => serviceFunc(this.
|
|
47
|
+
this._services = merge({}, ...this.createServiceFuncIn.map(serviceFunc => serviceFunc(this._container)));
|
|
48
48
|
return this.services;
|
|
49
49
|
}
|
|
50
50
|
catch (err) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-client-feature.js","sources":["../../src/connector/base-client-feature.ts"],"sourcesContent":[null],"names":[],"mappings":"+GAOM,MAAO,iBAAkB,SAAQ,aAAa,CAAA;AAQhD;;;;;AAKG;AACH,IAAA,WAAA,CAAY,GAAG,OAAkC,EAAA;AAC7C,QAAA,KAAK,CAAC,GAAG,OAAO,CAAC,CAAC;QARd,IAAkB,CAAA,kBAAA,GAAG,KAAK,CAAC;AAS/B,QAAA,MAA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AAG,CAAC,YAAY,IAAG;YAC1C,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC;AAChD,SAAC,CAAC,CAAC;AACH,QAAA,IAAG,uBAAuB,EAAC;AACvB,YAAA,uBAAuB,CAAC,GAAG,CAAC,gBAAgB,IAAG;gBAC3C,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC;AACpD,aAAC,CAAC,CAAC;AACN,SAAA;AACD,QAAA,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC;QAC/B,OAAO,IAAI,CAAC,UAAU,CAAC;KAC1B;IAEM,aAAa,CAAC,OAAO,EAAE,aAAmB,EAAA;;QAE7C,IAAI,IAAI,CAAC,QAAQ,EAAE;YACf,OAAO,IAAI,CAAC,QAAQ,CAAC;AACxB,SAAA;QACD,IAAI;AACA,YAAA,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE;AAC1B,gBAAA,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;AAChC,aAAA;YACD,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,WAAW,IAAI,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YACzG,OAAO,IAAI,CAAC,QAAQ,CAAC;AACxB,SAAA;AAAC,QAAA,OAAO,GAAG,EAAE;AACV,YAAA,MAAM,GAAG,CAAC;AACb,SAAA;KACJ;AACJ"}
|
|
@@ -92,7 +92,7 @@ export interface IApolloClientFeatureShape extends IBaseClientFeatureShape {
|
|
|
92
92
|
* @inheritdoc https://www.apollographql.com/docs/react/caching/cache-configuration/#dataidfromobject
|
|
93
93
|
*/
|
|
94
94
|
dataIdFromObjectIn?: {
|
|
95
|
-
[key: string]: (value
|
|
95
|
+
[key: string]: (value?: any) => string;
|
|
96
96
|
}[];
|
|
97
97
|
}
|
|
98
98
|
export interface IApolloClientFeature extends IApolloClientFeatureShape {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common-stack/client-core",
|
|
3
|
-
"version": "0.6.1-alpha.
|
|
3
|
+
"version": "0.6.1-alpha.2",
|
|
4
4
|
"description": "common core for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"typescript": {
|
|
32
32
|
"definition": "lib/index.d.ts"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "7ea27df9674fd1488ddc72eaec239b1242b63616"
|
|
35
35
|
}
|