Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-apollo

Package Overview
Dependencies
Maintainers
8
Versions
220
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-apollo - npm Package Compare versions

Comparing version 2.5.0 to 2.5.1

6

package.json
{
"name": "react-apollo",
"version": "2.5.0",
"version": "2.5.1",
"author": "opensource@apollographql.com",

@@ -23,3 +23,3 @@ "description": "React data container for Apollo Client",

"peerDependencies": {
"apollo-client": "^2.5.0",
"apollo-client": "^2.5.1",
"react": "^15.0.0 || ^16.0.0",

@@ -31,3 +31,3 @@ "react-dom": "^15.0.0 || ^16.0.0",

"dependencies": {
"apollo-utilities": "^1.2.0",
"apollo-utilities": "^1.2.1",
"hoist-non-react-statics": "^3.0.0",

@@ -34,0 +34,0 @@ "lodash.isequal": "^4.5.0",

import * as React from 'react';
import ApolloClient from 'apollo-client';
import { DefaultOptions } from 'apollo-client';
import { DefaultOptions, Resolvers } from 'apollo-client';
import { MockedResponse } from './test-links';

@@ -12,2 +12,3 @@ import { ApolloCache } from 'apollo-cache';

cache?: ApolloCache<TSerializedCache>;
resolvers?: Resolvers;
}

@@ -14,0 +15,0 @@ export interface MockedProviderState {

@@ -14,3 +14,3 @@ "use strict";

var _this = _super.call(this, props) || this;
var _a = _this.props, mocks = _a.mocks, addTypename = _a.addTypename, defaultOptions = _a.defaultOptions, cache = _a.cache;
var _a = _this.props, mocks = _a.mocks, addTypename = _a.addTypename, defaultOptions = _a.defaultOptions, cache = _a.cache, _b = _a.resolvers, resolvers = _b === void 0 ? {} : _b;
var client = new apollo_client_1.default({

@@ -20,2 +20,3 @@ cache: cache || new apollo_cache_inmemory_1.InMemoryCache({ addTypename: addTypename }),

link: new test_links_1.MockLink(mocks || [], addTypename),
resolvers: resolvers,
});

@@ -22,0 +23,0 @@ _this.state = { client: client };

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