@graphql-tools/executor-common 1.0.4 → 1.0.5-alpha-408469ace84442958d11b19f55bfdff4ab549e85

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @graphql-tools/executor-common
2
2
 
3
+ ## 1.0.5-alpha-408469ace84442958d11b19f55bfdff4ab549e85
4
+ ### Patch Changes
5
+
6
+
7
+
8
+ - [#1691](https://github.com/graphql-hive/gateway/pull/1691) [`408469a`](https://github.com/graphql-hive/gateway/commit/408469ace84442958d11b19f55bfdff4ab549e85) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
9
+
10
+ - Updated dependency [`@graphql-tools/utils@^10.10.3` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.10.3) (from `^10.10.1`, in `dependencies`)
11
+
3
12
  ## 1.0.4
4
13
  ### Patch Changes
5
14
 
package/dist/index.cjs CHANGED
@@ -1,12 +1,14 @@
1
1
  'use strict';
2
2
 
3
3
  var core = require('@envelop/core');
4
- var utils = require('@graphql-tools/utils');
5
4
  var graphql = require('graphql');
6
5
 
7
- const defaultPrintFn = utils.memoize1(function defaultPrintFn2(document) {
8
- return graphql.stripIgnoredCharacters(core.getDocumentString(document, graphql.print));
9
- });
6
+ function stripAndPrint(document) {
7
+ return graphql.stripIgnoredCharacters(graphql.print(document));
8
+ }
9
+ const defaultPrintFn = function defaultPrintFn2(document) {
10
+ return core.getDocumentString(document, stripAndPrint);
11
+ };
10
12
  function serializeExecutionRequest({
11
13
  executionRequest,
12
14
  excludeQuery,
package/dist/index.js CHANGED
@@ -1,10 +1,12 @@
1
1
  import { getDocumentString } from '@envelop/core';
2
- import { memoize1 } from '@graphql-tools/utils';
3
2
  import { stripIgnoredCharacters, print } from 'graphql';
4
3
 
5
- const defaultPrintFn = memoize1(function defaultPrintFn2(document) {
6
- return stripIgnoredCharacters(getDocumentString(document, print));
7
- });
4
+ function stripAndPrint(document) {
5
+ return stripIgnoredCharacters(print(document));
6
+ }
7
+ const defaultPrintFn = function defaultPrintFn2(document) {
8
+ return getDocumentString(document, stripAndPrint);
9
+ };
8
10
  function serializeExecutionRequest({
9
11
  executionRequest,
10
12
  excludeQuery,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-tools/executor-common",
3
- "version": "1.0.4",
3
+ "version": "1.0.5-alpha-408469ace84442958d11b19f55bfdff4ab549e85",
4
4
  "type": "module",
5
5
  "description": "A set of utils for faster development of GraphQL tools",
6
6
  "repository": {
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@envelop/core": "^5.4.0",
43
- "@graphql-tools/utils": "^10.10.1"
43
+ "@graphql-tools/utils": "^10.10.3"
44
44
  },
45
45
  "devDependencies": {
46
46
  "graphql": "^16.12.0",