@graphql-tools/utils 7.1.3 → 7.1.6
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/es5/index.cjs.js +3 -2
- package/es5/index.cjs.js.map +1 -1
- package/es5/index.esm.js +3 -2
- package/es5/index.esm.js.map +1 -1
- package/es5/observableToAsyncIterable.d.ts +3 -3
- package/es5/package.json +6 -2
- package/index.cjs.js +3 -2
- package/index.cjs.js.map +1 -1
- package/index.esm.js +3 -2
- package/index.esm.js.map +1 -1
- package/observableToAsyncIterable.d.ts +3 -3
- package/package.json +6 -2
package/es5/index.cjs.js
CHANGED
|
@@ -2572,7 +2572,7 @@ visitorOrVisitorSelector) {
|
|
|
2572
2572
|
// with an .objectType property referring to the parent.
|
|
2573
2573
|
objectType: type,
|
|
2574
2574
|
});
|
|
2575
|
-
if (newField.args != null) {
|
|
2575
|
+
if ((newField === null || newField === void 0 ? void 0 : newField.args) != null) {
|
|
2576
2576
|
newField.args = newField.args
|
|
2577
2577
|
.map(function (arg) {
|
|
2578
2578
|
return callMethod('visitArgumentDefinition', arg, {
|
|
@@ -3622,6 +3622,7 @@ function observableToAsyncIterable(observable) {
|
|
|
3622
3622
|
error: function (err) {
|
|
3623
3623
|
pushError(err);
|
|
3624
3624
|
},
|
|
3625
|
+
complete: function () { },
|
|
3625
3626
|
});
|
|
3626
3627
|
var emptyQueue = function () {
|
|
3627
3628
|
if (listening) {
|
|
@@ -3878,7 +3879,7 @@ function valueMatchesCriteria(value, criteria) {
|
|
|
3878
3879
|
}
|
|
3879
3880
|
|
|
3880
3881
|
function isAsyncIterable(value) {
|
|
3881
|
-
return Symbol.asyncIterator in value;
|
|
3882
|
+
return typeof value === 'object' && value != null && Symbol.asyncIterator in value;
|
|
3882
3883
|
}
|
|
3883
3884
|
|
|
3884
3885
|
function isDocumentNode(object) {
|