Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@graphql-tools/github-loader

Package Overview
Dependencies
Maintainers
3
Versions
1159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-tools/github-loader - npm Package Compare versions

Comparing version 8.0.0-rc-20230519104353-b09f3180 to 8.0.0-rc-20230519104627-f6fea064

3

cjs/index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc