@graphql-tools/batch-execute 9.0.2 → 9.0.3

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.
@@ -45,7 +45,7 @@ function mergeRequests(requests, extensionsReducer) {
45
45
  const mergedSelections = [];
46
46
  const mergedFragmentDefinitions = [];
47
47
  let mergedExtensions = Object.create(null);
48
- for (const index in requests) {
48
+ for (let index = 0; index < requests.length; index++) {
49
49
  const request = requests[index];
50
50
  const prefixedRequests = prefixRequest((0, prefix_js_1.createPrefix)(index), request);
51
51
  for (const def of prefixedRequests.document.definitions) {
@@ -42,7 +42,7 @@ export function mergeRequests(requests, extensionsReducer) {
42
42
  const mergedSelections = [];
43
43
  const mergedFragmentDefinitions = [];
44
44
  let mergedExtensions = Object.create(null);
45
- for (const index in requests) {
45
+ for (let index = 0; index < requests.length; index++) {
46
46
  const request = requests[index];
47
47
  const prefixedRequests = prefixRequest(createPrefix(index), request);
48
48
  for (const def of prefixedRequests.document.definitions) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-tools/batch-execute",
3
- "version": "9.0.2",
3
+ "version": "9.0.3",
4
4
  "description": "A set of utils for faster development of GraphQL tools",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
@@ -1,4 +1,4 @@
1
- export declare function createPrefix(index: string): string;
1
+ export declare function createPrefix(index: number): string;
2
2
  export type KeyMatch = {
3
3
  index: number;
4
4
  originalKey: string;
@@ -1,4 +1,4 @@
1
- export declare function createPrefix(index: string): string;
1
+ export declare function createPrefix(index: number): string;
2
2
  export type KeyMatch = {
3
3
  index: number;
4
4
  originalKey: string;