mock-apollo-client
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -69,8 +69,12 @@ "use strict"; | ||
var getIdentifiers = function (requestQuery) { | ||
var withoutClientSets = apollo_utilities_1.hasDirectives(['client'], requestQuery) | ||
? apollo_utilities_1.removeClientSetsFromDocument(requestQuery) | ||
if (!apollo_utilities_1.hasDirectives(['client', 'connection'], requestQuery)) { | ||
return [requestQuery]; | ||
} | ||
var withoutDirectives = apollo_utilities_1.removeClientSetsFromDocument(requestQuery); | ||
withoutDirectives = withoutDirectives !== null | ||
? apollo_utilities_1.removeConnectionDirectiveFromDocument(withoutDirectives) | ||
: null; | ||
return withoutClientSets === null | ||
return withoutDirectives === null | ||
? [requestQuery] | ||
: [requestQuery, withoutClientSets]; | ||
: [requestQuery, withoutDirectives]; | ||
}; | ||
@@ -77,0 +81,0 @@ var requestToKey = function (query) { |
{ | ||
"name": "mock-apollo-client", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "Library to help unit testing when using apollo-client", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
16103
10
164