@graphql-tools/github-loader 7.3.28 → 7.3.29-alpha-20230515174415-d29a8b3b

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
@@ -112,6 +112,7 @@ class GithubLoader {
112
112
  'content-type': 'application/json; charset=utf-8',
113
113
  'user-agent': 'graphql-tools',
114
114
  authorization: `bearer ${token}`,
115
+ ...options.headers,
115
116
  };
116
117
  return {
117
118
  method: 'POST',
package/esm/index.js CHANGED
@@ -108,6 +108,7 @@ export class GithubLoader {
108
108
  'content-type': 'application/json; charset=utf-8',
109
109
  'user-agent': 'graphql-tools',
110
110
  authorization: `bearer ${token}`,
111
+ ...options.headers,
111
112
  };
112
113
  return {
113
114
  method: 'POST',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-tools/github-loader",
3
- "version": "7.3.28",
3
+ "version": "7.3.29-alpha-20230515174415-d29a8b3b",
4
4
  "description": "A set of utils for faster development of GraphQL tools",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
@@ -8,9 +8,9 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "@ardatan/sync-fetch": "^0.0.1",
11
- "@graphql-tools/executor-http": "^0.1.9",
12
- "@graphql-tools/utils": "^9.2.1",
13
- "@graphql-tools/graphql-tag-pluck": "^7.4.6",
11
+ "@graphql-tools/executor-http": "0.1.11-alpha-20230515174415-d29a8b3b",
12
+ "@graphql-tools/utils": "10.0.0-alpha-20230515174415-d29a8b3b",
13
+ "@graphql-tools/graphql-tag-pluck": "7.5.3-alpha-20230515174415-d29a8b3b",
14
14
  "@whatwg-node/fetch": "^0.8.0",
15
15
  "value-or-promise": "^1.0.12",
16
16
  "tslib": "^2.4.0"
@@ -16,6 +16,10 @@ export interface GithubLoaderOptions extends BaseLoaderOptions {
16
16
  */
17
17
  pluckConfig?: GraphQLTagPluckOptions;
18
18
  customFetch?: FetchFn;
19
+ /**
20
+ * Additional headers to pass to the fetch request
21
+ */
22
+ headers?: Record<string, string>;
19
23
  }
20
24
  /**
21
25
  * This loader loads a file from GitHub.
@@ -16,6 +16,10 @@ export interface GithubLoaderOptions extends BaseLoaderOptions {
16
16
  */
17
17
  pluckConfig?: GraphQLTagPluckOptions;
18
18
  customFetch?: FetchFn;
19
+ /**
20
+ * Additional headers to pass to the fetch request
21
+ */
22
+ headers?: Record<string, string>;
19
23
  }
20
24
  /**
21
25
  * This loader loads a file from GitHub.