react-apollo
Advanced tools
Comparing version 2.1.4 to 2.1.5
{ | ||
"name": "react-apollo", | ||
"version": "2.1.4", | ||
"version": "2.1.5", | ||
"author": "opensource@apollographql.com", | ||
@@ -28,5 +28,5 @@ "browser": "react-apollo.browser.umd.js", | ||
"invariant": "^2.2.2", | ||
"lodash": "4.17.5", | ||
"lodash": "4.17.10", | ||
"prop-types": "^15.6.0" | ||
} | ||
} |
@@ -886,3 +886,6 @@ (function (global, factory) { | ||
if (operationOptions.props) { | ||
var newResult = (_c = {}, _c[name] = result, _c.ownProps = props, _c); | ||
var newResult = (_c = {}, | ||
_c[name] = result, | ||
_c.ownProps = props, | ||
_c); | ||
lastResultProps = operationOptions.props(newResult, lastResultProps); | ||
@@ -952,3 +955,6 @@ childProps = lastResultProps; | ||
if (operationOptions.props) { | ||
var newResult = (_b = {}, _b[name] = mutate, _b.ownProps = props, _b); | ||
var newResult = (_b = {}, | ||
_b[name] = mutate, | ||
_b.ownProps = props, | ||
_b); | ||
childProps = operationOptions.props(newResult); | ||
@@ -1045,3 +1051,6 @@ } | ||
if (operationOptions.props) { | ||
var newResult = (_c = {}, _c[name] = result, _c.ownProps = props, _c); | ||
var newResult = (_c = {}, | ||
_c[name] = result, | ||
_c.ownProps = props, | ||
_c); | ||
lastResultProps = operationOptions.props(newResult, lastResultProps); | ||
@@ -1048,0 +1057,0 @@ childProps = lastResultProps; |
@@ -886,3 +886,6 @@ (function (global, factory) { | ||
if (operationOptions.props) { | ||
var newResult = (_c = {}, _c[name] = result, _c.ownProps = props, _c); | ||
var newResult = (_c = {}, | ||
_c[name] = result, | ||
_c.ownProps = props, | ||
_c); | ||
lastResultProps = operationOptions.props(newResult, lastResultProps); | ||
@@ -952,3 +955,6 @@ childProps = lastResultProps; | ||
if (operationOptions.props) { | ||
var newResult = (_b = {}, _b[name] = mutate, _b.ownProps = props, _b); | ||
var newResult = (_b = {}, | ||
_b[name] = mutate, | ||
_b.ownProps = props, | ||
_b); | ||
childProps = operationOptions.props(newResult); | ||
@@ -1045,3 +1051,6 @@ } | ||
if (operationOptions.props) { | ||
var newResult = (_c = {}, _c[name] = result, _c.ownProps = props, _c); | ||
var newResult = (_c = {}, | ||
_c[name] = result, | ||
_c.ownProps = props, | ||
_c); | ||
lastResultProps = operationOptions.props(newResult, lastResultProps); | ||
@@ -1048,0 +1057,0 @@ childProps = lastResultProps; |
@@ -897,3 +897,3 @@ (function (global, factory) { | ||
var __extends$10 = (undefined && undefined.__extends) || (function () { | ||
var __extends$a = (undefined && undefined.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
@@ -909,3 +909,3 @@ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
var MockedProvider = (function (_super) { | ||
__extends$10(MockedProvider, _super); | ||
__extends$a(MockedProvider, _super); | ||
function MockedProvider(props, context) { | ||
@@ -912,0 +912,0 @@ var _this = _super.call(this, props, context) || this; |
@@ -31,3 +31,3 @@ import ApolloClient, { ApolloQueryResult, ApolloError, FetchPolicy, ErrorPolicy, FetchMoreOptions, UpdateQueryOptions, FetchMoreQueryOptions, SubscribeToMoreOptions, PureQueryOptions, MutationUpdaterFn } from 'apollo-client'; | ||
variables: TGraphQLVariables; | ||
fetchMore: (fetchMoreOptions: FetchMoreQueryOptions & FetchMoreOptions) => Promise<ApolloQueryResult<any>>; | ||
fetchMore: (fetchMoreOptions: FetchMoreQueryOptions<any, any> & FetchMoreOptions) => Promise<ApolloQueryResult<any>>; | ||
refetch: (variables?: TGraphQLVariables) => Promise<ApolloQueryResult<any>>; | ||
@@ -37,3 +37,3 @@ startPolling: (pollInterval: number) => void; | ||
subscribeToMore: (options: SubscribeToMoreOptions) => () => void; | ||
updateQuery: (mapFn: (previousQueryResult: any, options: UpdateQueryOptions) => any) => void; | ||
updateQuery: (mapFn: (previousQueryResult: any, options: UpdateQueryOptions<any>) => any) => void; | ||
} | ||
@@ -40,0 +40,0 @@ export declare type MutationFunc<TData = any, TGraphQLVariables = OperationVariables> = (opts?: MutationOpts<TData, TGraphQLVariables>) => Promise<ApolloQueryResult<TData>>; |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
400365
5040
+ Addedlodash@4.17.10(transitive)
- Removedlodash@4.17.5(transitive)
Updatedlodash@4.17.10