@graphql-tools/github-loader
Advanced tools
Comparing version 8.0.0-rc-20230519104353-b09f3180 to 8.0.0-rc-20230519104627-f6fea064
@@ -106,4 +106,3 @@ "use strict"; | ||
prepareRequest({ owner, ref, path, name, options, }) { | ||
var _a, _b; | ||
const token = options.token || ((_b = (_a = globalThis.process) === null || _a === void 0 ? void 0 : _a.env) === null || _b === void 0 ? void 0 : _b['GITHUB_TOKEN']); | ||
const token = options.token || globalThis.process?.env?.['GITHUB_TOKEN']; | ||
if (!token) { | ||
@@ -110,0 +109,0 @@ throw new Error('You must provide a token to use the GitHub loader'); |
@@ -102,4 +102,3 @@ import { parseGraphQLSDL, parseGraphQLJSON } from '@graphql-tools/utils'; | ||
prepareRequest({ owner, ref, path, name, options, }) { | ||
var _a, _b; | ||
const token = options.token || ((_b = (_a = globalThis.process) === null || _a === void 0 ? void 0 : _a.env) === null || _b === void 0 ? void 0 : _b['GITHUB_TOKEN']); | ||
const token = options.token || globalThis.process?.env?.['GITHUB_TOKEN']; | ||
if (!token) { | ||
@@ -106,0 +105,0 @@ throw new Error('You must provide a token to use the GitHub loader'); |
{ | ||
"name": "@graphql-tools/github-loader", | ||
"version": "8.0.0-rc-20230519104353-b09f3180", | ||
"version": "8.0.0-rc-20230519104627-f6fea064", | ||
"description": "A set of utils for faster development of GraphQL tools", | ||
@@ -11,5 +11,5 @@ "sideEffects": false, | ||
"@ardatan/sync-fetch": "^0.0.1", | ||
"@graphql-tools/executor-http": "1.0.0-rc-20230519104353-b09f3180", | ||
"@graphql-tools/utils": "10.0.0-rc-20230519104353-b09f3180", | ||
"@graphql-tools/graphql-tag-pluck": "8.0.0-rc-20230519104353-b09f3180", | ||
"@graphql-tools/executor-http": "1.0.0-rc-20230519104627-f6fea064", | ||
"@graphql-tools/utils": "10.0.0-rc-20230519104627-f6fea064", | ||
"@graphql-tools/graphql-tag-pluck": "8.0.0-rc-20230519104627-f6fea064", | ||
"@whatwg-node/fetch": "^0.9.0", | ||
@@ -16,0 +16,0 @@ "value-or-promise": "^1.0.12", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16000
335
+ Added@graphql-tools/executor-http@1.0.0-rc-20230519104627-f6fea064(transitive)
+ Added@graphql-tools/graphql-tag-pluck@8.0.0-rc-20230519104627-f6fea064(transitive)
+ Added@graphql-tools/utils@10.0.0-rc-20230519104627-f6fea064(transitive)
+ Added@graphql-typed-document-node/core@3.2.0(transitive)
- Removed@graphql-tools/executor-http@1.0.0-rc-20230519104353-b09f3180(transitive)
- Removed@graphql-tools/graphql-tag-pluck@8.0.0-rc-20230519104353-b09f3180(transitive)
Updated@graphql-tools/executor-http@1.0.0-rc-20230519104627-f6fea064
Updated@graphql-tools/graphql-tag-pluck@8.0.0-rc-20230519104627-f6fea064
Updated@graphql-tools/utils@10.0.0-rc-20230519104627-f6fea064