Socket
Socket
Sign inDemoInstall

apollo-cache-inmemory

Package Overview
Dependencies
Maintainers
1
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.1.3 to 1.1.4

3

CHANGELOG.md

@@ -5,2 +5,5 @@ # Change log

### 1.1.4
- Change access modifier for data from "private" to "protected", to allow InMemoryCache subclasses to access it.
### 1.1.3

@@ -7,0 +10,0 @@ - improves performance of in memory cache

4

lib/inMemoryCache.d.ts
import { DocumentNode } from 'graphql';
import { Cache, DataProxy, ApolloCache, Transaction } from 'apollo-cache';
import { OptimisticStoreItem, ApolloReducerConfig, NormalizedCacheObject } from './types';
import { OptimisticStoreItem, ApolloReducerConfig, NormalizedCache, NormalizedCacheObject } from './types';
export declare function defaultDataIdFromObject(result: any): string | null;
export declare class InMemoryCache extends ApolloCache<NormalizedCacheObject> {
private data;
protected data: NormalizedCache;
protected config: ApolloReducerConfig;

@@ -8,0 +8,0 @@ protected optimistic: OptimisticStoreItem[];

{
"name": "apollo-cache-inmemory",
"version": "1.1.3",
"version": "1.1.4",
"description": "Core abstract of Caching layer for Apollo Client",

@@ -42,4 +42,4 @@ "author": "James Baxley <james@meteor.com>",

"dependencies": {
"apollo-cache": "^1.0.1",
"apollo-utilities": "^1.0.2",
"apollo-cache": "^1.0.2",
"apollo-utilities": "^1.0.3",
"graphql-anywhere": "^4.0.1"

@@ -53,6 +53,6 @@ },

"@types/jest": "21.1.8",
"@types/lodash": "4.14.87",
"@types/lodash": "4.14.88",
"browserify": "14.5.0",
"graphql": "0.11.7",
"graphql-tag": "2.4.2",
"graphql-tag": "2.6.0",
"jest": "20.0.4",

@@ -59,0 +59,0 @@ "lodash": "4.17.4",

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

export class InMemoryCache extends ApolloCache<NormalizedCacheObject> {
private data: NormalizedCache;
protected data: NormalizedCache;
protected config: ApolloReducerConfig;

@@ -44,0 +44,0 @@ protected optimistic: OptimisticStoreItem[] = [];

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