apollo-client
Advanced tools
Comparing version 0.4.16 to 0.4.17
@@ -1,3 +0,1 @@ | ||
/// <reference types="typed-graphql" /> | ||
/// <reference types="chai" /> | ||
import { GraphQLResult, SelectionSet, FragmentDefinition } from 'graphql'; | ||
@@ -4,0 +2,0 @@ import { SelectionSetWithRoot } from './queries/store'; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="isomorphic-fetch" /> | ||
export interface AfterwareResponse { | ||
@@ -3,0 +2,0 @@ response: IResponse; |
@@ -1,3 +0,1 @@ | ||
/// <reference types="isomorphic-fetch" /> | ||
/// <reference types="typed-graphql" /> | ||
import { HTTPFetchNetworkInterface, RequestAndOptions, Request, BatchedNetworkInterface } from './networkInterface'; | ||
@@ -4,0 +2,0 @@ import { GraphQLResult } from 'graphql'; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="typed-graphql" /> | ||
import { WatchQueryOptions } from './watchQueryOptions'; | ||
@@ -3,0 +2,0 @@ import { NetworkInterface } from './networkInterface'; |
@@ -1,3 +0,1 @@ | ||
/// <reference types="typed-graphql" /> | ||
/// <reference types="chai" /> | ||
import { OperationDefinition, Field, FragmentDefinition, FragmentSpread, Document, SelectionSet, VariableDefinition, Variable, GraphQLResult } from 'graphql'; | ||
@@ -4,0 +2,0 @@ import { FragmentMap } from '../queries/getFromAST'; |
@@ -1,3 +0,1 @@ | ||
/// <reference types="typed-graphql" /> | ||
/// <reference types="chai" /> | ||
import { NormalizedCache } from './store'; | ||
@@ -4,0 +2,0 @@ import { SelectionSetWithRoot } from '../queries/store'; |
@@ -6,3 +6,3 @@ "use strict"; | ||
var has = require('lodash.has'); | ||
var deepAssign = require('deep-assign'); | ||
var assign = require('lodash.assign'); | ||
var storeUtils_1 = require('./storeUtils'); | ||
@@ -111,3 +111,3 @@ var store_1 = require('./store'); | ||
if (isObject(fieldResult)) { | ||
deepAssign(result, fieldResult); | ||
assign(result, fieldResult); | ||
} | ||
@@ -150,3 +150,3 @@ if (!fragmentErrors[typename]) { | ||
if (isObject(fieldResult)) { | ||
deepAssign(result, fieldResult); | ||
assign(result, fieldResult); | ||
} | ||
@@ -153,0 +153,0 @@ if (!fragmentErrors[typename]) { |
@@ -1,2 +0,1 @@ | ||
/// <reference types="chai" /> | ||
export declare type IdGetter = (value: Object) => string; | ||
@@ -3,0 +2,0 @@ export declare const getIdField: (data: { |
@@ -1,3 +0,1 @@ | ||
/// <reference types="typed-graphql" /> | ||
/// <reference types="chai" /> | ||
import { NormalizedCache } from './store'; | ||
@@ -4,0 +2,0 @@ import { GraphQLResult, SelectionSet, FragmentDefinition } from 'graphql'; |
@@ -1,3 +0,1 @@ | ||
/// <reference types="typed-graphql" /> | ||
/// <reference types="chai" /> | ||
import { SelectionSet, Document } from 'graphql'; | ||
@@ -4,0 +2,0 @@ import { FragmentMap } from '../queries/getFromAST'; |
@@ -1,3 +0,1 @@ | ||
/// <reference types="typed-graphql" /> | ||
/// <reference types="chai" /> | ||
import { NormalizedCache } from './store'; | ||
@@ -4,0 +2,0 @@ import { SelectionSet, FragmentDefinition } from 'graphql'; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="typed-graphql" /> | ||
import { FragmentMap } from '../queries/getFromAST'; | ||
@@ -3,0 +2,0 @@ import { SelectionSet } from 'graphql'; |
@@ -1,3 +0,1 @@ | ||
/// <reference types="typed-graphql" /> | ||
/// <reference types="chai" /> | ||
import { Field, InlineFragment, Selection, GraphQLResult } from 'graphql'; | ||
@@ -4,0 +2,0 @@ export declare function storeKeyNameFromField(field: Field, variables?: Object): string; |
@@ -1,3 +0,1 @@ | ||
/// <reference types="chai" /> | ||
/// <reference types="typed-graphql" /> | ||
import { FragmentMap } from '../queries/getFromAST'; | ||
@@ -4,0 +2,0 @@ import { SelectionSet, Document } from 'graphql'; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="typed-graphql" /> | ||
import { GraphQLError } from 'graphql'; | ||
@@ -3,0 +2,0 @@ export declare class ApolloError extends Error { |
@@ -1,10 +0,8 @@ | ||
/// <reference types="typed-graphql" /> | ||
/// <reference types="chai" /> | ||
import { NetworkInterface, createNetworkInterface, addQueryMerging } from './networkInterface'; | ||
import { Document, FragmentDefinition } from 'graphql'; | ||
import { print } from 'graphql-tag/printer'; | ||
import { createApolloStore, ApolloStore, createApolloReducer, ApolloReducerConfig, Store } from './store'; | ||
import { QueryManager, SubscriptionOptions, ResultComparator, ResultTransformer } from './QueryManager'; | ||
import { createApolloStore, ApolloStore, createApolloReducer, ApolloReducerConfig } from './store'; | ||
import { QueryManager, SubscriptionOptions } from './QueryManager'; | ||
import { ObservableQuery } from './ObservableQuery'; | ||
import { Observable, Subscription } from './util/Observable'; | ||
import { Observable } from './util/Observable'; | ||
import { WatchQueryOptions } from './watchQueryOptions'; | ||
@@ -16,5 +14,3 @@ import { readQueryFromStore, readFragmentFromStore } from './data/readFromStore'; | ||
import { MutationBehavior, MutationBehaviorReducerMap, MutationQueryReducersMap } from './data/mutationResults'; | ||
import { createFragmentMap } from './queries/getFromAST'; | ||
import { ApolloError } from './errors'; | ||
export { createNetworkInterface, addQueryMerging, createApolloStore, createApolloReducer, readQueryFromStore, readFragmentFromStore, addTypenameToSelectionSet as addTypename, writeQueryToStore, writeFragmentToStore, print as printAST, createFragmentMap, ApolloError, WatchQueryOptions, ObservableQuery, MutationBehavior, MutationQueryReducersMap, Subscription, ApolloStore }; | ||
export { createNetworkInterface, addQueryMerging, createApolloStore, createApolloReducer, readQueryFromStore, readFragmentFromStore, addTypenameToSelectionSet as addTypename, writeQueryToStore, writeFragmentToStore, print as printAST }; | ||
export declare type ApolloQueryResult = { | ||
@@ -24,3 +20,2 @@ data: any; | ||
}; | ||
export declare type ApolloStateSelector = (state: any) => Store; | ||
export declare let fragmentDefinitionsMap: { | ||
@@ -37,3 +32,2 @@ [fragmentName: string]: FragmentDefinition[]; | ||
reduxRootKey: string; | ||
reduxRootSelector: ApolloStateSelector | null; | ||
initialState: any; | ||
@@ -43,4 +37,2 @@ queryManager: QueryManager; | ||
queryTransformer: QueryTransformer; | ||
resultTransformer: ResultTransformer; | ||
resultComparator: ResultComparator; | ||
shouldBatch: boolean; | ||
@@ -51,11 +43,8 @@ shouldForceFetch: boolean; | ||
batchInterval: number; | ||
constructor({networkInterface, reduxRootKey, reduxRootSelector, initialState, dataIdFromObject, queryTransformer, resultTransformer, resultComparator, shouldBatch, ssrMode, ssrForceFetchDelay, mutationBehaviorReducers, batchInterval}?: { | ||
constructor({networkInterface, reduxRootKey, initialState, dataIdFromObject, queryTransformer, shouldBatch, ssrMode, ssrForceFetchDelay, mutationBehaviorReducers, batchInterval}?: { | ||
networkInterface?: NetworkInterface; | ||
reduxRootKey?: string; | ||
reduxRootSelector?: string | ApolloStateSelector; | ||
initialState?: any; | ||
dataIdFromObject?: IdGetter; | ||
queryTransformer?: QueryTransformer; | ||
resultTransformer?: ResultTransformer; | ||
resultComparator?: ResultComparator; | ||
shouldBatch?: boolean; | ||
@@ -62,0 +51,0 @@ ssrMode?: boolean; |
53
index.js
@@ -11,4 +11,2 @@ "use strict"; | ||
var QueryManager_1 = require('./QueryManager'); | ||
var ObservableQuery_1 = require('./ObservableQuery'); | ||
exports.ObservableQuery = ObservableQuery_1.ObservableQuery; | ||
var readFromStore_1 = require('./data/readFromStore'); | ||
@@ -24,10 +22,5 @@ exports.readQueryFromStore = readFromStore_1.readQueryFromStore; | ||
var getFromAST_1 = require('./queries/getFromAST'); | ||
exports.createFragmentMap = getFromAST_1.createFragmentMap; | ||
var errors_1 = require('./errors'); | ||
exports.ApolloError = errors_1.ApolloError; | ||
var isUndefined = require('lodash.isundefined'); | ||
var assign = require('lodash.assign'); | ||
var flatten = require('lodash.flatten'); | ||
var isString = require('lodash.isstring'); | ||
var DEFAULT_REDUX_ROOT_KEY = 'apollo'; | ||
exports.fragmentDefinitionsMap = {}; | ||
@@ -67,9 +60,6 @@ var printFragmentWarnings = true; | ||
exports.clearFragmentDefinitions = clearFragmentDefinitions; | ||
function defaultReduxRootSelector(state) { | ||
return state[DEFAULT_REDUX_ROOT_KEY]; | ||
} | ||
var ApolloClient = (function () { | ||
function ApolloClient(_a) { | ||
var _this = this; | ||
var _b = _a === void 0 ? {} : _a, networkInterface = _b.networkInterface, reduxRootKey = _b.reduxRootKey, reduxRootSelector = _b.reduxRootSelector, initialState = _b.initialState, dataIdFromObject = _b.dataIdFromObject, queryTransformer = _b.queryTransformer, resultTransformer = _b.resultTransformer, resultComparator = _b.resultComparator, _c = _b.shouldBatch, shouldBatch = _c === void 0 ? false : _c, _d = _b.ssrMode, ssrMode = _d === void 0 ? false : _d, _e = _b.ssrForceFetchDelay, ssrForceFetchDelay = _e === void 0 ? 0 : _e, _f = _b.mutationBehaviorReducers, mutationBehaviorReducers = _f === void 0 ? {} : _f, batchInterval = _b.batchInterval; | ||
var _b = _a === void 0 ? {} : _a, networkInterface = _b.networkInterface, reduxRootKey = _b.reduxRootKey, initialState = _b.initialState, dataIdFromObject = _b.dataIdFromObject, queryTransformer = _b.queryTransformer, _c = _b.shouldBatch, shouldBatch = _c === void 0 ? false : _c, _d = _b.ssrMode, ssrMode = _d === void 0 ? false : _d, _e = _b.ssrForceFetchDelay, ssrForceFetchDelay = _e === void 0 ? 0 : _e, _f = _b.mutationBehaviorReducers, mutationBehaviorReducers = _f === void 0 ? {} : _f, batchInterval = _b.batchInterval; | ||
this.middleware = function () { | ||
@@ -85,22 +75,3 @@ return function (store) { | ||
}; | ||
if (reduxRootKey && reduxRootSelector) { | ||
throw new Error('Both "reduxRootKey" and "reduxRootSelector" are configured, but only one of two is allowed.'); | ||
} | ||
if (reduxRootKey) { | ||
console.warn('"reduxRootKey" option is deprecated and might be removed in the upcoming versions, ' + | ||
'please use the "reduxRootSelector" instead.'); | ||
this.reduxRootKey = reduxRootKey; | ||
} | ||
if (!reduxRootSelector && reduxRootKey) { | ||
this.reduxRootSelector = function (state) { return state[reduxRootKey]; }; | ||
} | ||
else if (isString(reduxRootSelector)) { | ||
this.reduxRootSelector = function (state) { return state[reduxRootSelector]; }; | ||
} | ||
else if (typeof reduxRootSelector === 'function') { | ||
this.reduxRootSelector = reduxRootSelector; | ||
} | ||
else { | ||
this.reduxRootSelector = null; | ||
} | ||
this.reduxRootKey = reduxRootKey ? reduxRootKey : 'apollo'; | ||
this.initialState = initialState ? initialState : {}; | ||
@@ -110,4 +81,2 @@ this.networkInterface = networkInterface ? networkInterface : | ||
this.queryTransformer = queryTransformer; | ||
this.resultTransformer = resultTransformer; | ||
this.resultComparator = resultComparator; | ||
this.shouldBatch = shouldBatch; | ||
@@ -168,10 +137,4 @@ this.shouldForceFetch = !(ssrMode || ssrForceFetchDelay > 0); | ||
} | ||
if (this.reduxRootSelector) { | ||
throw new Error('Cannot initialize the store because "reduxRootSelector" or "reduxRootKey" is provided. ' + | ||
'They should only be used when the store is created outside of the client. ' + | ||
'This may lead to unexpected results when querying the store internally. ' + | ||
"Please remove that option from ApolloClient constructor."); | ||
} | ||
this.setStore(store_1.createApolloStore({ | ||
reduxRootKey: DEFAULT_REDUX_ROOT_KEY, | ||
reduxRootKey: this.reduxRootKey, | ||
initialState: this.initialState, | ||
@@ -187,6 +150,4 @@ config: this.reducerConfig, | ||
ApolloClient.prototype.setStore = function (store) { | ||
var reduxRootSelector = (this.reduxRootSelector) ? this.reduxRootSelector : defaultReduxRootSelector; | ||
if (isUndefined(reduxRootSelector(store.getState()))) { | ||
throw new Error('Existing store does not use apolloReducer. Please make sure the store ' + | ||
'is properly configured and "reduxRootSelector" is correctly specified.'); | ||
if (isUndefined(store.getState()[this.reduxRootKey])) { | ||
throw new Error("Existing store does not use apolloReducer for " + this.reduxRootKey); | ||
} | ||
@@ -196,7 +157,5 @@ this.store = store; | ||
networkInterface: this.networkInterface, | ||
reduxRootSelector: reduxRootSelector, | ||
reduxRootKey: this.reduxRootKey, | ||
store: store, | ||
queryTransformer: this.queryTransformer, | ||
resultTransformer: this.resultTransformer, | ||
resultComparator: this.resultComparator, | ||
shouldBatch: this.shouldBatch, | ||
@@ -203,0 +162,0 @@ batchInterval: this.batchInterval, |
@@ -1,2 +0,1 @@ | ||
/// <reference types="isomorphic-fetch" /> | ||
import { Request } from './networkInterface'; | ||
@@ -3,0 +2,0 @@ export interface MiddlewareRequest { |
@@ -1,3 +0,1 @@ | ||
/// <reference types="chai" /> | ||
/// <reference types="typed-graphql" /> | ||
import { ApolloAction } from '../actions'; | ||
@@ -4,0 +2,0 @@ import { SelectionSet } from 'graphql'; |
@@ -1,4 +0,1 @@ | ||
/// <reference types="typed-graphql" /> | ||
/// <reference types="chai" /> | ||
/// <reference types="isomorphic-fetch" /> | ||
import 'whatwg-fetch'; | ||
@@ -5,0 +2,0 @@ import { GraphQLResult, Document } from 'graphql'; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="chai" /> | ||
import { WatchQueryOptions, FetchMoreQueryOptions } from './watchQueryOptions'; | ||
@@ -3,0 +2,0 @@ import { Observable } from './util/Observable'; |
@@ -54,4 +54,3 @@ "use strict"; | ||
variables: variables, | ||
})) | ||
.then(function (result) { return _this.queryManager.transformResult(result); }); | ||
})); | ||
}; | ||
@@ -105,2 +104,3 @@ this.fetchMore = function (fetchMoreOptions) { | ||
this.stopPolling = function () { | ||
_this.queryManager.stopQuery(_this.queryId); | ||
if (isPollingQuery) { | ||
@@ -107,0 +107,0 @@ _this.scheduler.stopPollingQuery(_this.queryId); |
{ | ||
"name": "apollo-client", | ||
"version": "0.4.16", | ||
"version": "0.4.17", | ||
"description": "A simple yet functional GraphQL client.", | ||
@@ -23,4 +23,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"es6-promise": "^3.3.1", | ||
"deep-assign": "^2.0.0", | ||
"es6-promise": "^3.1.2", | ||
"graphql-tag": "^0.1.13", | ||
@@ -51,12 +50,2 @@ "lodash.assign": "^4.0.8", | ||
"devDependencies": { | ||
"@types/async": "^2.0.31", | ||
"@types/chai": "^3.4.32", | ||
"@types/chai-as-promised": "0.0.28", | ||
"@types/isomorphic-fetch": "0.0.30", | ||
"@types/lodash": "^4.14.34", | ||
"@types/mocha": "^2.2.31", | ||
"@types/node": "^6.0.38", | ||
"@types/promises-a-plus": "0.0.26", | ||
"@types/redux": "^3.5.29", | ||
"@types/sinon": "^1.16.29", | ||
"async": "^2.0.0", | ||
@@ -70,3 +59,2 @@ "browserify": "^13.0.0", | ||
"es6-promise": "^3.1.2", | ||
"typed-graphql": "1.0.1", | ||
"grunt": "1.0.1", | ||
@@ -91,4 +79,5 @@ "grunt-tslint": "3.2.1", | ||
"typescript": "2.0.0", | ||
"typings": "^1.0.0", | ||
"uglify-js": "^2.6.2" | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
/// <reference types="typed-graphql" /> | ||
import { Selection } from 'graphql'; | ||
@@ -3,0 +2,0 @@ export declare function shouldInclude(selection: Selection, variables?: { |
@@ -1,2 +0,1 @@ | ||
/// <reference types="typed-graphql" /> | ||
import { Document, OperationDefinition, FragmentDefinition } from 'graphql'; | ||
@@ -3,0 +2,0 @@ export declare function getMutationDefinition(doc: Document): OperationDefinition; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="typed-graphql" /> | ||
import { Document, SelectionSet } from 'graphql'; | ||
@@ -3,0 +2,0 @@ export declare type QueryTransformer = (selectionSet: SelectionSet) => void; |
@@ -1,3 +0,1 @@ | ||
/// <reference types="chai" /> | ||
/// <reference types="typed-graphql" /> | ||
import { ApolloAction } from '../actions'; | ||
@@ -4,0 +2,0 @@ import { FragmentMap } from '../queries/getFromAST'; |
@@ -1,4 +0,1 @@ | ||
/// <reference types="typed-graphql" /> | ||
/// <reference types="node" /> | ||
/// <reference types="chai" /> | ||
import { NetworkInterface } from './networkInterface'; | ||
@@ -12,3 +9,3 @@ import { ApolloStore, Store } from './store'; | ||
import { QueryScheduler } from './scheduler'; | ||
import { ApolloQueryResult, ApolloStateSelector } from './index'; | ||
import { ApolloQueryResult } from './index'; | ||
import { Observer, Subscription, Observable } from './util/Observable'; | ||
@@ -25,4 +22,2 @@ import { WatchQueryOptions } from './watchQueryOptions'; | ||
} | ||
export declare type ResultTransformer = (resultData: ApolloQueryResult) => ApolloQueryResult; | ||
export declare type ResultComparator = (result1: ApolloQueryResult, result2: ApolloQueryResult) => boolean; | ||
export declare class QueryManager { | ||
@@ -35,6 +30,4 @@ pollingTimers: { | ||
private networkInterface; | ||
private reduxRootSelector; | ||
private reduxRootKey; | ||
private queryTransformer; | ||
private resultTransformer; | ||
private resultComparator; | ||
private queryListeners; | ||
@@ -48,9 +41,7 @@ private queryResults; | ||
private queryIdsByName; | ||
constructor({networkInterface, store, reduxRootSelector, queryTransformer, resultTransformer, resultComparator, shouldBatch, batchInterval}: { | ||
constructor({networkInterface, store, reduxRootKey, queryTransformer, shouldBatch, batchInterval}: { | ||
networkInterface: NetworkInterface; | ||
store: ApolloStore; | ||
reduxRootSelector: ApolloStateSelector; | ||
reduxRootKey: string; | ||
queryTransformer?: QueryTransformer; | ||
resultTransformer?: ResultTransformer; | ||
resultComparator?: ResultComparator; | ||
shouldBatch?: Boolean; | ||
@@ -96,3 +87,2 @@ batchInterval?: number; | ||
}; | ||
transformResult(result: ApolloQueryResult): ApolloQueryResult; | ||
private collectResultBehaviorsFromUpdateQueries(updateQueries, mutationResult, isOptimistic?); | ||
@@ -99,0 +89,0 @@ private transformQueryDocument(options); |
@@ -21,10 +21,8 @@ "use strict"; | ||
var _this = this; | ||
var networkInterface = _a.networkInterface, store = _a.store, reduxRootSelector = _a.reduxRootSelector, queryTransformer = _a.queryTransformer, resultTransformer = _a.resultTransformer, resultComparator = _a.resultComparator, _b = _a.shouldBatch, shouldBatch = _b === void 0 ? false : _b, _c = _a.batchInterval, batchInterval = _c === void 0 ? 10 : _c; | ||
var networkInterface = _a.networkInterface, store = _a.store, reduxRootKey = _a.reduxRootKey, queryTransformer = _a.queryTransformer, _b = _a.shouldBatch, shouldBatch = _b === void 0 ? false : _b, _c = _a.batchInterval, batchInterval = _c === void 0 ? 10 : _c; | ||
this.idCounter = 0; | ||
this.networkInterface = networkInterface; | ||
this.store = store; | ||
this.reduxRootSelector = reduxRootSelector; | ||
this.reduxRootKey = reduxRootKey; | ||
this.queryTransformer = queryTransformer; | ||
this.resultTransformer = resultTransformer; | ||
this.resultComparator = resultComparator; | ||
this.pollingTimers = {}; | ||
@@ -108,3 +106,3 @@ this.batchInterval = batchInterval; | ||
refetchQueries.forEach(function (name) { _this.refetchQueryByName(name); }); | ||
resolve(_this.transformResult(result)); | ||
resolve(result); | ||
}) | ||
@@ -158,3 +156,3 @@ .catch(function (err) { | ||
_this.queryResults[queryId] = resultFromStore; | ||
observer.next(_this.transformResult(resultFromStore)); | ||
observer.next(resultFromStore); | ||
} | ||
@@ -219,3 +217,3 @@ } | ||
QueryManager.prototype.getApolloState = function () { | ||
return this.reduxRootSelector(this.store.getState()); | ||
return this.store.getState()[this.reduxRootKey]; | ||
}; | ||
@@ -371,10 +369,2 @@ QueryManager.prototype.getDataWithOptimisticResults = function () { | ||
}; | ||
QueryManager.prototype.transformResult = function (result) { | ||
if (!this.resultTransformer) { | ||
return result; | ||
} | ||
else { | ||
return this.resultTransformer(result); | ||
} | ||
}; | ||
QueryManager.prototype.collectResultBehaviorsFromUpdateQueries = function (updateQueries, mutationResult, isOptimistic) { | ||
@@ -428,3 +418,3 @@ var _this = this; | ||
selectionSet: queryDef.selectionSet, | ||
store: this.reduxRootSelector(this.store.getState()).data, | ||
store: this.store.getState()[this.reduxRootKey].data, | ||
throwOnMissingField: false, | ||
@@ -585,4 +575,3 @@ rootId: rootId, | ||
QueryManager.prototype.isDifferentResult = function (queryId, result) { | ||
var comparator = this.resultComparator || isEqual; | ||
return !comparator(this.queryResults[queryId], result); | ||
return !isEqual(this.queryResults[queryId], result); | ||
}; | ||
@@ -589,0 +578,0 @@ QueryManager.prototype.broadcastQueries = function () { |
@@ -1,2 +0,1 @@ | ||
/// <reference types="typed-graphql" /> | ||
import { OperationDefinition, VariableDefinition, Name, Document } from 'graphql'; | ||
@@ -3,0 +2,0 @@ import { SelectionSetWithRoot } from './queries/store'; |
@@ -18,3 +18,3 @@ # Apollo client | ||
[Read the docs.](http://dev.apollodata.com/core/) | ||
[Read the docs.](http://docs.apollostack.com/apollo-client/index.html) | ||
@@ -21,0 +21,0 @@ --- |
@@ -47,4 +47,3 @@ "use strict"; | ||
} | ||
var compose = redux_1.compose; | ||
return redux_1.createStore(redux_1.combineReducers((_e = {}, _e[reduxRootKey] = createApolloReducer(config), _e)), initialState, compose.apply(void 0, enhancers)); | ||
return redux_1.createStore(redux_1.combineReducers((_e = {}, _e[reduxRootKey] = createApolloReducer(config), _e)), initialState, redux_1.compose.apply(void 0, enhancers)); | ||
var _e; | ||
@@ -51,0 +50,0 @@ } |
@@ -1,3 +0,1 @@ | ||
/// <reference types="typed-graphql" /> | ||
/// <reference types="chai" /> | ||
import { Document, FragmentDefinition } from 'graphql'; | ||
@@ -4,0 +2,0 @@ export interface WatchQueryOptions { |
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
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
24
29
0
283977
4158
- Removeddeep-assign@^2.0.0
- Removeddeep-assign@2.0.0(transitive)
- Removedis-obj@1.0.1(transitive)
Updatedes6-promise@^3.1.2