apollo-client
Advanced tools
Comparing version 0.4.14 to 0.4.15
"use strict"; | ||
var isArray = require('lodash.isarray'); | ||
var isNull = require('lodash.isnull'); | ||
var isObject = require('lodash.isobject'); | ||
var has = require('lodash.has'); | ||
@@ -108,3 +109,3 @@ var assign = require('lodash.assign'); | ||
} | ||
else { | ||
if (isObject(fieldResult)) { | ||
assign(result, fieldResult); | ||
@@ -147,3 +148,3 @@ } | ||
} | ||
else { | ||
if (isObject(fieldResult)) { | ||
assign(result, fieldResult); | ||
@@ -150,0 +151,0 @@ } |
@@ -21,5 +21,5 @@ import { ApolloAction } from '../actions'; | ||
} | ||
export declare type StoreValue = number | string | string[] | IdValue | JsonValue | undefined; | ||
export declare type StoreValue = number | string | string[] | IdValue | JsonValue | void; | ||
export declare function isIdValue(idObject: StoreValue): idObject is IdValue; | ||
export declare function isJsonValue(jsonObject: StoreValue): jsonObject is JsonValue; | ||
export declare function data(previousState: NormalizedCache, action: ApolloAction, queries: QueryStore, mutations: MutationStore, config: ApolloReducerConfig): NormalizedCache; |
@@ -90,9 +90,10 @@ "use strict"; | ||
var request = _a.request, options = _a.options; | ||
return fetch(this._uri, assign({}, this._opts, options, { | ||
return fetch(this._uri, assign({}, this._opts, { | ||
body: JSON.stringify(printRequest(request)), | ||
headers: assign({}, options.headers, { | ||
method: 'POST', | ||
}, options, { | ||
headers: assign({}, { | ||
Accept: '*/*', | ||
'Content-Type': 'application/json', | ||
}), | ||
method: 'POST', | ||
}, options.headers), | ||
})); | ||
@@ -99,0 +100,0 @@ }; |
{ | ||
"name": "apollo-client", | ||
"version": "0.4.14", | ||
"version": "0.4.15", | ||
"description": "A simple yet functional GraphQL client.", | ||
@@ -24,3 +24,3 @@ "main": "index.js", | ||
"es6-promise": "^3.1.2", | ||
"graphql-tag": "^0.1.10", | ||
"graphql-tag": "^0.1.13", | ||
"lodash.assign": "^4.0.8", | ||
@@ -46,3 +46,3 @@ "lodash.clonedeep": "^4.3.2", | ||
"redux": "^3.3.1", | ||
"symbol-observable": "^0.2.4", | ||
"symbol-observable": "^1.0.2", | ||
"whatwg-fetch": "^1.0.0" | ||
@@ -73,3 +73,3 @@ }, | ||
"request-promise": "^4.0.1", | ||
"rxjs": "^5.0.0-beta.7", | ||
"rxjs": "^5.0.0-beta.11", | ||
"sinon": "^1.17.4", | ||
@@ -76,0 +76,0 @@ "source-map-support": "^0.4.0", |
@@ -25,2 +25,5 @@ "use strict"; | ||
var definitionTypes = doc.definitions.map(function (definition) { | ||
if (definition.kind !== 'OperationDefinition' && definition.kind !== 'FragmentDefinition') { | ||
throw new Error("Schema type definitions not allowed in queries. Found: \"" + definition.kind + "\""); | ||
} | ||
return definition.kind; | ||
@@ -27,0 +30,0 @@ }); |
"use strict"; | ||
var $$observable = require('symbol-observable'); | ||
var symbol_observable_1 = require('symbol-observable'); | ||
function isSubscription(subscription) { | ||
@@ -10,3 +10,3 @@ return subscription.unsubscribe !== undefined; | ||
} | ||
Observable.prototype[$$observable] = function () { | ||
Observable.prototype[symbol_observable_1.default] = function () { | ||
return this; | ||
@@ -13,0 +13,0 @@ }; |
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
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
283977
4158
- Removedsymbol-observable@0.2.4(transitive)
Updatedgraphql-tag@^0.1.13
Updatedsymbol-observable@^1.0.2