@graphql-tools/url-loader 7.14.1 → 7.14.2

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
@@ -136,7 +136,7 @@ class UrlLoader {
136
136
  ? `${dummyHostname}${HTTP_URL}`
137
137
  : `${dummyHostname}/${HTTP_URL}`;
138
138
  const urlObj = new URL(validUrl);
139
- urlObj.searchParams.set('query', query);
139
+ urlObj.searchParams.set('query', (0, graphql_1.stripIgnoredCharacters)(query));
140
140
  if (variables && Object.keys(variables).length > 0) {
141
141
  urlObj.searchParams.set('variables', JSON.stringify(variables));
142
142
  }
package/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable no-case-declarations */
2
2
  /// <reference lib="dom" />
3
- import { print, buildASTSchema, buildSchema, } from 'graphql';
3
+ import { print, stripIgnoredCharacters, buildASTSchema, buildSchema, } from 'graphql';
4
4
  import { observableToAsyncIterable, isAsyncIterable, parseGraphQLSDL, getOperationASTFromRequest, } from '@graphql-tools/utils';
5
5
  import { introspectSchema, wrapSchema } from '@graphql-tools/wrap';
6
6
  import { createClient } from 'graphql-ws';
@@ -132,7 +132,7 @@ export class UrlLoader {
132
132
  ? `${dummyHostname}${HTTP_URL}`
133
133
  : `${dummyHostname}/${HTTP_URL}`;
134
134
  const urlObj = new URL(validUrl);
135
- urlObj.searchParams.set('query', query);
135
+ urlObj.searchParams.set('query', stripIgnoredCharacters(query));
136
136
  if (variables && Object.keys(variables).length > 0) {
137
137
  urlObj.searchParams.set('variables', JSON.stringify(variables));
138
138
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-tools/url-loader",
3
- "version": "7.14.1",
3
+ "version": "7.14.2",
4
4
  "description": "A set of utils for faster development of GraphQL tools",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {