apollo-client
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -188,5 +188,9 @@ "use strict"; | ||
getFromAST_1.getQueryDefinition(options.query); | ||
var transformedOptions = Object.assign({}, options); | ||
if (this.addTypename) { | ||
transformedOptions.query = queryTransform_1.addTypenameToDocument(transformedOptions.query); | ||
} | ||
var observableQuery = new ObservableQuery_1.ObservableQuery({ | ||
scheduler: this.scheduler, | ||
options: options, | ||
options: transformedOptions, | ||
shouldSubscribe: shouldSubscribe, | ||
@@ -193,0 +197,0 @@ }); |
{ | ||
"name": "apollo-client", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "A simple yet functional GraphQL client.", | ||
@@ -73,3 +73,3 @@ "main": "index.js", | ||
"typed-graphql": "1.0.2", | ||
"typescript": "2.0.8", | ||
"typescript": "2.0.9", | ||
"uglify-js": "^2.6.2" | ||
@@ -76,0 +76,0 @@ }, |
@@ -46,2 +46,5 @@ "use strict"; | ||
.then(function (responses) { | ||
if (typeof responses.map !== 'function') { | ||
throw new Error('BatchingNetworkInterface: server response is not an array'); | ||
} | ||
var afterwaresPromises = responses.map(function (response, index) { | ||
@@ -48,0 +51,0 @@ return _this.applyAfterwares({ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
259488
3786