@graphql-tools/utils 8.6.4 → 8.6.5
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/index.js +3 -4
- package/index.mjs +3 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -90,8 +90,7 @@ function isAggregateError(error) {
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
// Taken from graphql-js
|
|
93
|
-
const
|
|
94
|
-
const MAX_RECURSIVE_DEPTH = 2;
|
|
93
|
+
const MAX_RECURSIVE_DEPTH = 3;
|
|
95
94
|
/**
|
|
96
95
|
* Used to print values in error messages.
|
|
97
96
|
*/
|
|
@@ -163,8 +162,8 @@ function formatArray(array, seenValues) {
|
|
|
163
162
|
if (seenValues.length > MAX_RECURSIVE_DEPTH) {
|
|
164
163
|
return '[Array]';
|
|
165
164
|
}
|
|
166
|
-
const len =
|
|
167
|
-
const remaining = array.length
|
|
165
|
+
const len = array.length;
|
|
166
|
+
const remaining = array.length;
|
|
168
167
|
const items = [];
|
|
169
168
|
for (let i = 0; i < len; ++i) {
|
|
170
169
|
items.push(formatValue(array[i], seenValues));
|
package/index.mjs
CHANGED
|
@@ -87,8 +87,7 @@ function isAggregateError(error) {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
// Taken from graphql-js
|
|
90
|
-
const
|
|
91
|
-
const MAX_RECURSIVE_DEPTH = 2;
|
|
90
|
+
const MAX_RECURSIVE_DEPTH = 3;
|
|
92
91
|
/**
|
|
93
92
|
* Used to print values in error messages.
|
|
94
93
|
*/
|
|
@@ -160,8 +159,8 @@ function formatArray(array, seenValues) {
|
|
|
160
159
|
if (seenValues.length > MAX_RECURSIVE_DEPTH) {
|
|
161
160
|
return '[Array]';
|
|
162
161
|
}
|
|
163
|
-
const len =
|
|
164
|
-
const remaining = array.length
|
|
162
|
+
const len = array.length;
|
|
163
|
+
const remaining = array.length;
|
|
165
164
|
const items = [];
|
|
166
165
|
for (let i = 0; i < len; ++i) {
|
|
167
166
|
items.push(formatValue(array[i], seenValues));
|