@graphql-tools/url-loader 7.15.0 → 7.16.0-alpha-20220909120700-fb9f83c3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cjs/index.js CHANGED
@@ -164,7 +164,7 @@ class UrlLoader {
164
164
  if ((options === null || options === void 0 ? void 0 : options.useGETForQueries) && operationType === 'query') {
165
165
  method = 'GET';
166
166
  }
167
- let accept = 'application/json';
167
+ let accept = 'application/graphql-response+json, application/json';
168
168
  if (operationType === 'subscription' || (0, graphql_live_query_1.isLiveQueryOperationDefinitionNode)(operationAst)) {
169
169
  method = 'GET';
170
170
  accept = 'text/event-stream';
package/esm/index.js CHANGED
@@ -160,7 +160,7 @@ export class UrlLoader {
160
160
  if ((options === null || options === void 0 ? void 0 : options.useGETForQueries) && operationType === 'query') {
161
161
  method = 'GET';
162
162
  }
163
- let accept = 'application/json';
163
+ let accept = 'application/graphql-response+json, application/json';
164
164
  if (operationType === 'subscription' || isLiveQueryOperationDefinitionNode(operationAst)) {
165
165
  method = 'GET';
166
166
  accept = 'text/event-stream';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-tools/url-loader",
3
- "version": "7.15.0",
3
+ "version": "7.16.0-alpha-20220909120700-fb9f83c3",
4
4
  "description": "A set of utils for faster development of GraphQL tools",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {