@common-stack/client-core
Advanced tools
Comparing version 0.5.19 to 0.5.21
@@ -64,2 +64,3 @@ import { IdGetterObj } from '@apollo/client/core'; | ||
resolverContex?: any; | ||
container?: interfaces.Container; | ||
reqHeaders?: any; | ||
@@ -66,0 +67,0 @@ }): IClientState; |
@@ -1,2 +0,5 @@ | ||
import*as React from'react';import {merge,without,union,map,castArray}from'lodash';import {Container}from'inversify';const combine = (features, extractor) => without(union(...map(features, (res) => castArray(extractor(res)))), undefined); | ||
import*as React from'react';import {merge,without,union,map,castArray}from'lodash';import {Container}from'inversify';/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
/* eslint-disable no-nested-ternary */ | ||
/* eslint-disable no-use-before-define */ | ||
const combine = (features, extractor) => without(union(...map(features, (res) => castArray(extractor(res)))), undefined); | ||
const featureCatalog = {}; | ||
@@ -112,3 +115,3 @@ class AbstractFeature { | ||
getStateParams(args = {}) { | ||
const cn = this.container; | ||
const cn = args.container || this.container; | ||
const headers = args.reqHeaders; // Use headers as needed in the function | ||
@@ -115,0 +118,0 @@ return this.clientStateParams.reduce((acc, curr) => { |
@@ -46,2 +46,3 @@ import { Resolvers, IdGetterObj, PossibleTypesMap, TypePolicies, Operation, ApolloLink } from '@apollo/client/core'; | ||
export interface IClientState { | ||
container?: interfaces.Container; | ||
resolvers?: Resolvers; | ||
@@ -48,0 +49,0 @@ defaults: IClientStateDefault[]; |
{ | ||
"name": "@common-stack/client-core", | ||
"version": "0.5.19", | ||
"version": "0.5.21", | ||
"description": "common core for higher packages to depend on", | ||
@@ -21,23 +21,4 @@ "license": "ISC", | ||
}, | ||
"jest": { | ||
"moduleFileExtensions": [ | ||
"ts", | ||
"tsx", | ||
"js", | ||
"json" | ||
], | ||
"modulePaths": [ | ||
"node_modules" | ||
], | ||
"roots": [ | ||
"src" | ||
], | ||
"testEnvironment": "node", | ||
"testRegex": "/__tests__/.*test*\\.(ts|tsx|js)$", | ||
"transform": { | ||
"\\.(ts|tsx)$": "<rootDir>/../../node_modules/ts-jest/preprocessor.js" | ||
} | ||
}, | ||
"dependencies": { | ||
"@common-stack/core": "0.5.9" | ||
"@common-stack/core": "^0.5.21" | ||
}, | ||
@@ -54,3 +35,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "2b5f87dbb43ab6d961bbaa31effa6ef663a18c8c" | ||
"gitHead": "4cc2a1dccc27572118245f2ea4f671d70a3db9d3" | ||
} |
Sorry, the diff of this file is not supported yet
692
43491
+ Added@common-stack/core@0.5.34(transitive)
- Removed@common-stack/core@0.5.9(transitive)
Updated@common-stack/core@^0.5.21