apollo-cache-inmemory
Advanced tools
Comparing version 1.2.5 to 1.2.6-alpha.1
@@ -354,2 +354,3 @@ (function (global, factory) { | ||
var field = _a.field, value = _a.value, dataId = _a.dataId, context = _a.context; | ||
var _b; | ||
var variables = context.variables, dataIdFromObject = context.dataIdFromObject, store = context.store; | ||
@@ -465,3 +466,2 @@ var storeValue; | ||
} | ||
var _b; | ||
} | ||
@@ -468,0 +468,0 @@ function processArrayValue(value, generatedId, selectionSet, context) { |
@@ -19,3 +19,3 @@ import { IdValue } from 'apollo-utilities'; | ||
match(idValue: IdValue, typeCondition: string, context: ReadStoreContext): boolean; | ||
private parseIntrospectionResult(introspectionResultData); | ||
private parseIntrospectionResult; | ||
} |
@@ -37,3 +37,3 @@ import { IdValue } from 'apollo-utilities'; | ||
*/ | ||
export declare function diffQueryAgainstStore<T>({store, query, variables, previousResult, returnPartialData, rootId, fragmentMatcherFunction, config}: DiffQueryAgainstStoreOptions): Cache.DiffResult<T>; | ||
export declare function diffQueryAgainstStore<T>({ store, query, variables, previousResult, returnPartialData, rootId, fragmentMatcherFunction, config, }: DiffQueryAgainstStoreOptions): Cache.DiffResult<T>; | ||
export declare function assertIdValue(idValue: IdValue): void; |
@@ -5,3 +5,7 @@ import { DocumentNode } from 'graphql'; | ||
import { IdValue, StoreValue } from 'apollo-utilities'; | ||
export declare type IdGetter = (value: Object) => string | null | undefined; | ||
export interface IdGetterObj extends Object { | ||
__typename?: string; | ||
id?: string; | ||
} | ||
export declare type IdGetter = (value: IdGetterObj) => string | null | undefined; | ||
/** | ||
@@ -8,0 +12,0 @@ * This is an interface used to access, set and remove |
@@ -29,3 +29,3 @@ import { SelectionSetNode, FieldNode, DocumentNode } from 'graphql'; | ||
*/ | ||
export declare function writeQueryToStore({result, query, storeFactory, store, variables, dataIdFromObject, fragmentMap, fragmentMatcherFunction}: { | ||
export declare function writeQueryToStore({ result, query, storeFactory, store, variables, dataIdFromObject, fragmentMap, fragmentMatcherFunction, }: { | ||
result: Object; | ||
@@ -51,3 +51,3 @@ query: DocumentNode; | ||
}; | ||
export declare function writeResultToStore({dataId, result, document, storeFactory, store, variables, dataIdFromObject, fragmentMatcherFunction}: { | ||
export declare function writeResultToStore({ dataId, result, document, storeFactory, store, variables, dataIdFromObject, fragmentMatcherFunction, }: { | ||
dataId: string; | ||
@@ -62,3 +62,3 @@ result: any; | ||
}): NormalizedCache; | ||
export declare function writeSelectionSetToStore({result, dataId, selectionSet, context}: { | ||
export declare function writeSelectionSetToStore({ result, dataId, selectionSet, context, }: { | ||
dataId: string; | ||
@@ -65,0 +65,0 @@ result: any; |
@@ -224,2 +224,3 @@ var __extends = (this && this.__extends) || (function () { | ||
var field = _a.field, value = _a.value, dataId = _a.dataId, context = _a.context; | ||
var _b; | ||
var variables = context.variables, dataIdFromObject = context.dataIdFromObject, store = context.store; | ||
@@ -335,3 +336,2 @@ var storeValue; | ||
} | ||
var _b; | ||
} | ||
@@ -338,0 +338,0 @@ function processArrayValue(value, generatedId, selectionSet, context) { |
{ | ||
"name": "apollo-cache-inmemory", | ||
"version": "1.2.5", | ||
"version": "1.2.6-alpha.1", | ||
"description": "Core abstract of Caching layer for Apollo Client", | ||
@@ -43,5 +43,5 @@ "author": "James Baxley <james@meteor.com>", | ||
"dependencies": { | ||
"apollo-cache": "^1.1.12", | ||
"apollo-utilities": "^1.0.16", | ||
"graphql-anywhere": "^4.1.14" | ||
"apollo-cache": "^1.1.13-alpha.1", | ||
"apollo-utilities": "^1.0.17-alpha.1", | ||
"graphql-anywhere": "^4.1.15-alpha.1" | ||
}, | ||
@@ -54,3 +54,3 @@ "peerDependencies": { | ||
"@types/jest": "22.2.3", | ||
"@types/lodash": "4.14.109", | ||
"@types/lodash": "4.14.112", | ||
"browserify": "15.2.0", | ||
@@ -62,6 +62,6 @@ "graphql": "0.13.2", | ||
"rimraf": "2.6.2", | ||
"rollup": "0.59.4", | ||
"rollup": "0.62.0", | ||
"ts-jest": "20.0.14", | ||
"tslint": "5.10.0", | ||
"typescript": "2.8.3", | ||
"tslint": "5.11.0", | ||
"typescript": "2.9.2", | ||
"uglifyjs": "2.4.11" | ||
@@ -68,0 +68,0 @@ }, |
@@ -6,3 +6,9 @@ import { DocumentNode } from 'graphql'; | ||
export type IdGetter = (value: Object) => string | null | undefined; | ||
export interface IdGetterObj extends Object { | ||
__typename?: string; | ||
id?: string; | ||
} | ||
export declare type IdGetter = ( | ||
value: IdGetterObj, | ||
) => string | null | undefined; | ||
@@ -9,0 +15,0 @@ /** |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
427598
9356
1