react-apollo
Advanced tools
Comparing version 2.5.0 to 2.5.1
{ | ||
"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
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
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
411866
5361
Updatedapollo-utilities@^1.2.1