@common-stack/client-core
Advanced tools
Comparing version 0.6.1-alpha.1 to 0.6.1-alpha.2
@@ -25,10 +25,10 @@ import {merge}from'lodash';import {foldTo}from'fractal-objects';import {CommonFeature}from'@common-stack/core';class BaseClientFeature extends CommonFeature { | ||
if (this._isContainerLoaded) { | ||
return this.container; | ||
return this._container; | ||
} | ||
this.createContainerFuncIn.map(createModule => { | ||
this.container.load(createModule(options)); | ||
this._container.load(createModule(options)); | ||
}); | ||
if (additionalContainerFunc) { | ||
additionalContainerFunc.map(additionalModule => { | ||
this.container.load(additionalModule(options)); | ||
this._container.load(additionalModule(options)); | ||
}); | ||
@@ -48,3 +48,3 @@ } | ||
} | ||
this._services = merge({}, ...this.createServiceFuncIn.map(serviceFunc => serviceFunc(this.container))); | ||
this._services = merge({}, ...this.createServiceFuncIn.map(serviceFunc => serviceFunc(this._container))); | ||
return this.services; | ||
@@ -51,0 +51,0 @@ } |
@@ -95,3 +95,3 @@ import { Cache } from '@apollo/client/cache'; | ||
dataIdFromObjectIn?: { | ||
[key: string]: (value: any) => string; | ||
[key: string]: (value?: any) => string; | ||
}[]; | ||
@@ -98,0 +98,0 @@ } |
{ | ||
"name": "@common-stack/client-core", | ||
"version": "0.6.1-alpha.1", | ||
"version": "0.6.1-alpha.2", | ||
"description": "common core for higher packages to depend on", | ||
@@ -34,3 +34,3 @@ "license": "ISC", | ||
}, | ||
"gitHead": "0132952f3b5dfce22ef8f93af87ed6d70f85ed7f" | ||
"gitHead": "7ea27df9674fd1488ddc72eaec239b1242b63616" | ||
} |
Sorry, the diff of this file is not supported yet
36566