Socket
Socket
Sign inDemoInstall

apollo-cache-inmemory

Package Overview
Dependencies
Maintainers
4
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-cache-inmemory - npm Package Compare versions

Comparing version 1.3.0-beta.3 to 1.3.0-beta.4

6

lib/bundle.umd.js

@@ -390,2 +390,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;

@@ -492,3 +493,2 @@ var storeValue;

}
var _b;
}

@@ -644,2 +644,3 @@ function processArrayValue(value, generatedId, selectionSet, context) {

function handleMissing(result) {
var _a;
if (result.missing) {

@@ -650,5 +651,5 @@ finalResult.missing = finalResult.missing || [];

return result.result;
var _a;
}
selectionSet.selections.forEach(function (selection) {
var _a;
if (!apolloUtilities.shouldInclude(selection, variables)) {

@@ -690,3 +691,2 @@ // Skip this entirely

}
var _a;
});

@@ -693,0 +693,0 @@ return finalResult;

@@ -18,5 +18,3 @@ import { DocumentNode } from 'graphql';

export declare function assertIdValue(idValue: IdValue): void;
declare const _default: ((query: DocumentNode, rootValue: IdValue, contextValue: ReadStoreContext, variableValues: VariableMap, fragmentMatcher?: FragmentMatcher) => ExecResult<any>) & {
dirty: (query: DocumentNode, rootValue: IdValue, contextValue: ReadStoreContext, variableValues: VariableMap, fragmentMatcher?: FragmentMatcher) => ExecResult<any>;
};
declare const _default: import("../../../../../../../Users/ben/dev/apollo-client/packages/apollo-cache-inmemory/src/optimism").OptimisticWrapperFunction<(query: DocumentNode, rootValue: IdValue, contextValue: ReadStoreContext, variableValues: VariableMap, fragmentMatcher?: FragmentMatcher) => ExecResult<any>>;
export default _default;

@@ -124,2 +124,3 @@ var __assign = (this && this.__assign) || Object.assign || function(t) {

function handleMissing(result) {
var _a;
if (result.missing) {

@@ -130,5 +131,5 @@ finalResult.missing = finalResult.missing || [];

return result.result;
var _a;
}
selectionSet.selections.forEach(function (selection) {
var _a;
if (!shouldInclude(selection, variables)) {

@@ -170,3 +171,2 @@ // Skip this entirely

}
var _a;
});

@@ -173,0 +173,0 @@ return finalResult;

@@ -19,3 +19,3 @@ import { IdValue } from 'apollo-utilities';

match(idValue: IdValue, typeCondition: string, context: ReadStoreContext): boolean;
private parseIntrospectionResult(introspectionResultData);
private parseIntrospectionResult;
}

@@ -27,2 +27,2 @@ import { Cache } from 'apollo-cache';

*/
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>;

@@ -26,3 +26,3 @@ import { SelectionSetNode, FieldNode, DocumentNode } from 'graphql';

*/
export declare function writeQueryToStore({query, result, store, variables, dataIdFromObject, fragmentMatcherFunction}: {
export declare function writeQueryToStore({ query, result, store, variables, dataIdFromObject, fragmentMatcherFunction, }: {
query: DocumentNode;

@@ -45,3 +45,3 @@ result: Object;

};
export declare function writeResultToStore({dataId, result, document, store, variables, dataIdFromObject, fragmentMatcherFunction}: {
export declare function writeResultToStore({ dataId, result, document, store, variables, dataIdFromObject, fragmentMatcherFunction, }: {
dataId: string;

@@ -55,3 +55,3 @@ result: any;

}): NormalizedCache;
export declare function writeSelectionSetToStore({result, dataId, selectionSet, context}: {
export declare function writeSelectionSetToStore({ result, dataId, selectionSet, context, }: {
dataId: string;

@@ -58,0 +58,0 @@ result: any;

@@ -205,2 +205,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;

@@ -307,3 +308,2 @@ var storeValue;

}
var _b;
}

@@ -310,0 +310,0 @@ function processArrayValue(value, generatedId, selectionSet, context) {

{
"name": "apollo-cache-inmemory",
"version": "1.3.0-beta.3",
"version": "1.3.0-beta.4",
"description": "Core abstract of Caching layer for Apollo Client",

@@ -45,3 +45,3 @@ "author": "James Baxley <james@meteor.com>",

"apollo-utilities": "^1.0.16",
"optimism": "^0.6.4"
"optimism": "^0.6.5"
},

@@ -54,3 +54,3 @@ "peerDependencies": {

"@types/jest": "22.2.3",
"@types/lodash": "4.14.109",
"@types/lodash": "4.14.110",
"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",
"typescript": "2.9.2",
"uglifyjs": "2.4.11"

@@ -68,0 +68,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc