@graphql-mesh/odata 0.22.21 → 0.22.22-alpha-20230329143325-ee846c2c1

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/cjs/index.js CHANGED
@@ -439,7 +439,7 @@ class ODataHandler {
439
439
  new dataloader_1.default((requests) => Promise.all(requests.map(async (request) => this.fetchFn(request.url, {
440
440
  method: request.method,
441
441
  body: request.body && (await request.text()),
442
- headers: request.headers,
442
+ headers: (0, utils_1.getHeadersObj)(request.headers),
443
443
  })))),
444
444
  };
445
445
  const dataLoaderFactory = (0, utils_2.memoize1)(DATALOADER_FACTORIES[this.config.batch || 'none']);
package/esm/index.js CHANGED
@@ -12,7 +12,7 @@ import urljoin from 'url-join';
12
12
  import { process } from '@graphql-mesh/cross-helpers';
13
13
  import { PredefinedProxyOptions } from '@graphql-mesh/store';
14
14
  import { getInterpolatedHeadersFactory, parseInterpolationStrings, stringInterpolator, } from '@graphql-mesh/string-interpolation';
15
- import { readFileOrUrl } from '@graphql-mesh/utils';
15
+ import { getHeadersObj, readFileOrUrl } from '@graphql-mesh/utils';
16
16
  import { createDefaultExecutor } from '@graphql-tools/delegate';
17
17
  import { memoize1 } from '@graphql-tools/utils';
18
18
  import { Request, Response } from '@whatwg-node/fetch';
@@ -436,7 +436,7 @@ export default class ODataHandler {
436
436
  new DataLoader((requests) => Promise.all(requests.map(async (request) => this.fetchFn(request.url, {
437
437
  method: request.method,
438
438
  body: request.body && (await request.text()),
439
- headers: request.headers,
439
+ headers: getHeadersObj(request.headers),
440
440
  })))),
441
441
  };
442
442
  const dataLoaderFactory = memoize1(DATALOADER_FACTORIES[this.config.batch || 'none']);
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@graphql-mesh/odata",
3
- "version": "0.22.21",
3
+ "version": "0.22.22-alpha-20230329143325-ee846c2c1",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "@graphql-mesh/cross-helpers": "^0.3.4",
7
7
  "@graphql-mesh/store": "^0.9.20",
8
- "@graphql-mesh/types": "^0.91.12",
9
- "@graphql-mesh/utils": "^0.43.20",
8
+ "@graphql-mesh/types": "0.91.13-alpha-20230329143325-ee846c2c1",
9
+ "@graphql-mesh/utils": "0.43.21-alpha-20230329143325-ee846c2c1",
10
10
  "@graphql-tools/utils": "^9.2.1",
11
11
  "graphql": "*",
12
12
  "tslib": "^2.4.0"
13
13
  },
14
14
  "dependencies": {
15
- "@graphql-mesh/string-interpolation": "0.4.3",
15
+ "@graphql-mesh/string-interpolation": "0.4.4-alpha-20230329143325-ee846c2c1",
16
16
  "@graphql-tools/delegate": "9.0.28",
17
17
  "@whatwg-node/fetch": "^0.8.3",
18
18
  "dataloader": "2.2.2",