@graphql-tools/graphql-tag-pluck 7.1.3-alpha-c3063363.0 → 7.1.4

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/README.md CHANGED
@@ -3,4 +3,3 @@ https://www.graphql-tools.com/docs/api/modules/graphql_tag_pluck_src
3
3
 
4
4
  You can also learn more about GraphQL Tag Pluck in this chapter;
5
5
  https://www.graphql-tools.com/docs/graphql-tag-pluck
6
-
package/index.js CHANGED
@@ -123,6 +123,9 @@ const freeText = (text, skipIndentation = false) => {
123
123
  .join('\n');
124
124
  });
125
125
  if (skipIndentation) {
126
+ if (text.trim() === '') {
127
+ return '';
128
+ }
126
129
  return text;
127
130
  }
128
131
  const lines = text.split('\n');
package/index.mjs CHANGED
@@ -98,6 +98,9 @@ const freeText = (text, skipIndentation = false) => {
98
98
  .join('\n');
99
99
  });
100
100
  if (skipIndentation) {
101
+ if (text.trim() === '') {
102
+ return '';
103
+ }
101
104
  return text;
102
105
  }
103
106
  const lines = text.split('\n');
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@graphql-tools/graphql-tag-pluck",
3
- "version": "7.1.3-alpha-c3063363.0",
3
+ "version": "7.1.4",
4
4
  "description": "Pluck graphql-tag template literals",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
7
7
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
8
8
  },
9
9
  "dependencies": {
10
- "@babel/parser": "7.15.8",
11
- "@babel/traverse": "7.15.4",
12
- "@babel/types": "7.15.6",
13
- "@graphql-tools/utils": "8.6.0-alpha-c3063363.0",
10
+ "@babel/parser": "7.16.4",
11
+ "@babel/traverse": "7.16.3",
12
+ "@babel/types": "7.16.0",
13
+ "@graphql-tools/utils": "^8.5.1",
14
14
  "tslib": "~2.3.0"
15
15
  },
16
16
  "repository": {