@graphql-tools/executor
Advanced tools
Comparing version 0.0.3-alpha-20221101120543-bb38d9e3 to 0.0.3-alpha-20221101131317-20a4af5d
@@ -27,15 +27,3 @@ "use strict"; | ||
} | ||
if ('incremental' in value && value.incremental) { | ||
const incrementalLength = value.incremental.length; | ||
value.incremental.forEach((item, index) => { | ||
const hasNext = index === incrementalLength - 1; | ||
push({ | ||
...item, | ||
hasNext, | ||
}); | ||
}); | ||
} | ||
else { | ||
push(value); | ||
} | ||
push(value); | ||
} | ||
@@ -61,15 +49,3 @@ }); | ||
} | ||
if (value.incremental) { | ||
const incrementalLength = value.incremental.length; | ||
value.incremental.forEach((item, index) => { | ||
const hasNext = index === incrementalLength - 1; | ||
push({ | ||
...item, | ||
hasNext, | ||
}); | ||
}); | ||
} | ||
push({ | ||
hasNext: false, | ||
}); | ||
push(value); | ||
} | ||
@@ -76,0 +52,0 @@ }); |
@@ -24,15 +24,3 @@ import { isAsyncIterable } from '@graphql-tools/utils'; | ||
} | ||
if ('incremental' in value && value.incremental) { | ||
const incrementalLength = value.incremental.length; | ||
value.incremental.forEach((item, index) => { | ||
const hasNext = index === incrementalLength - 1; | ||
push({ | ||
...item, | ||
hasNext, | ||
}); | ||
}); | ||
} | ||
else { | ||
push(value); | ||
} | ||
push(value); | ||
} | ||
@@ -58,15 +46,3 @@ }); | ||
} | ||
if (value.incremental) { | ||
const incrementalLength = value.incremental.length; | ||
value.incremental.forEach((item, index) => { | ||
const hasNext = index === incrementalLength - 1; | ||
push({ | ||
...item, | ||
hasNext, | ||
}); | ||
}); | ||
} | ||
push({ | ||
hasNext: false, | ||
}); | ||
push(value); | ||
} | ||
@@ -73,0 +49,0 @@ }); |
{ | ||
"name": "@graphql-tools/executor", | ||
"version": "0.0.3-alpha-20221101120543-bb38d9e3", | ||
"version": "0.0.3-alpha-20221101131317-20a4af5d", | ||
"sideEffects": false, | ||
@@ -10,3 +10,3 @@ "peerDependencies": { | ||
"@repeaterjs/repeater": "3.0.4", | ||
"@graphql-tools/utils": "9.0.0-alpha-20221101120543-bb38d9e3", | ||
"@graphql-tools/utils": "9.0.0-alpha-20221101131317-20a4af5d", | ||
"@graphql-typed-document-node/core": "3.1.1", | ||
@@ -13,0 +13,0 @@ "value-or-promise": "1.0.1" |
166683
3283
+ Added@graphql-tools/utils@9.0.0-alpha-20221101131317-20a4af5d(transitive)
+ Addedfastq@1.19.0(transitive)
+ Addedpackage-manager-detector@0.2.9(transitive)
+ Addedsemver@7.7.0(transitive)
- Removed@graphql-tools/utils@9.0.0-alpha-20221101120543-bb38d9e3(transitive)
- Removedfastq@1.18.0(transitive)
- Removedpackage-manager-detector@0.2.8(transitive)
- Removedsemver@7.6.3(transitive)
Updated@graphql-tools/utils@9.0.0-alpha-20221101131317-20a4af5d