Socket
Socket
Sign inDemoInstall

@apollo/client

Package Overview
Dependencies
Maintainers
4
Versions
574
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apollo/client - npm Package Compare versions

Comparing version 3.11.3 to 3.11.4

8

cache/core/types/common.d.ts
import type { DocumentNode, FieldNode } from "graphql";
import type { Reference, StoreObject, StoreValue, isReference, AsStoreObject } from "../../../utilities/index.js";
import type { Reference, StoreObject, StoreValue, isReference, AsStoreObject, DeepPartial } from "../../../utilities/index.js";
import type { StorageType } from "../../inmemory/policies.js";

@@ -55,4 +55,6 @@ export type SafeReadonly<T> = T extends object ? Readonly<T> : T;

};
export type Modifier<T> = (value: T, details: ModifierDetails) => T | DeleteModifier | InvalidateModifier | undefined;
type StoreObjectValueMaybeReference<StoreVal> = StoreVal extends Array<Record<string, any>> ? StoreVal extends Array<infer Item> ? Item extends Record<string, any> ? ReadonlyArray<AsStoreObject<Item> | Reference> : never : never : StoreVal extends Record<string, any> ? AsStoreObject<StoreVal> | Reference : StoreVal;
export type Modifier<T> = (value: T, details: ModifierDetails) => DeepPartial<T> | DeleteModifier | InvalidateModifier | undefined;
type StoreObjectValueMaybeReference<StoreVal> = StoreVal extends Array<Record<string, any>> ? StoreVal extends Array<infer Item> ? [
Item
] extends [Record<string, any>] ? ReadonlyArray<AsStoreObject<Item> | Reference> : never : never : StoreVal extends Record<string, any> ? AsStoreObject<StoreVal> | Reference : StoreVal;
export type AllFieldsModifier<Entity extends Record<string, any>> = Modifier<Entity[keyof Entity] extends infer Value ? StoreObjectValueMaybeReference<Exclude<Value, undefined>> : never>;

@@ -59,0 +61,0 @@ export type Modifiers<T extends Record<string, any> = Record<string, unknown>> = Partial<{

import { NetworkStatus } from "./networkStatus.js";
import type { Concast, Observer, ObservableSubscription } from "../utilities/index.js";
import { Observable } from "../utilities/index.js";
import type { ApolloError } from "../errors/index.js";
import { ApolloError } from "../errors/index.js";
import type { QueryManager } from "./QueryManager.js";

@@ -6,0 +6,0 @@ import type { ApolloQueryResult, OperationVariables, TypedDocumentNode } from "./types.js";

@@ -6,2 +6,3 @@ import { __assign, __extends } from "tslib";

import { cloneDeep, compact, getOperationDefinition, Observable, iterateObserversSafely, fixObservableSubclass, getQueryDefinition, } from "../utilities/index.js";
import { ApolloError, isApolloError } from "../errors/index.js";
import { equalByQuery } from "./equalByQuery.js";

@@ -697,2 +698,8 @@ var assign = Object.assign, hasOwnProperty = Object.hasOwnProperty;

if (equal(_this.variables, variables)) {
// Coming from `getResultsFromLink`, `error` here should always be an `ApolloError`.
// However, calling `concast.cancel` can inject another type of error, so we have to
// wrap it again here.
if (!isApolloError(error)) {
error = new ApolloError({ networkError: error });
}
finishWaitingForOwnResult();

@@ -699,0 +706,0 @@ _this.reportError(error, variables);

@@ -447,3 +447,3 @@ 'use strict';

var version = "3.11.3";
var version = "3.11.4";

@@ -450,0 +450,0 @@ function maybe(thunk) {

{
"name": "@apollo/client",
"version": "3.11.3",
"version": "3.11.4",
"description": "A fully-featured caching GraphQL client.",

@@ -5,0 +5,0 @@ "private": false,

@@ -11,3 +11,3 @@ 'use strict';

var version = "3.11.3";
var version = "3.11.4";

@@ -14,0 +14,0 @@ function maybe(thunk) {

@@ -7,3 +7,3 @@ 'use strict';

var version = "3.11.3";
var version = "3.11.4";

@@ -10,0 +10,0 @@ function maybe(thunk) {

@@ -121,3 +121,3 @@ import { __extends } from "tslib";

_this.sources = [];
_this.handlers.complete();
_this.handlers.error(reason);
};

@@ -124,0 +124,0 @@ // Suppress rejection warnings for this.promise, since it's perfectly

@@ -1450,3 +1450,3 @@ 'use strict';

_this.sources = [];
_this.handlers.complete();
_this.handlers.error(reason);
};

@@ -1453,0 +1453,0 @@ _this.promise.catch(function (_) { });

@@ -1,2 +0,2 @@

export var version = "3.11.3";
export var version = "3.11.4";
//# sourceMappingURL=version.js.map

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

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 too big to display

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 too big to display

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

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

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

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