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 5.0.1-alpha-78275ec.0 to 5.0.1-alpha-7ecf9b1.0

6

index.cjs.js

@@ -5,3 +5,3 @@ 'use strict';

const common = require('@graphql-tools/common');
const utils = require('@graphql-tools/utils');
const crossFetch = require('cross-fetch');

@@ -73,6 +73,6 @@ const graphqlTagPluck = require('@graphql-tools/graphql-tag-pluck');

if (/\.(gql|graphql)s?$/i.test(path)) {
return common.parseGraphQLSDL(pointer, content, options);
return utils.parseGraphQLSDL(pointer, content, options);
}
if (/\.json$/i.test(path)) {
return common.parseGraphQLJSON(pointer, content, options);
return utils.parseGraphQLJSON(pointer, content, options);
}

@@ -79,0 +79,0 @@ const rawSDL = await graphqlTagPluck.gqlPluckFromCodeString(pointer, content, options.pluckConfig);

@@ -1,2 +0,2 @@

import { UniversalLoader, SingleFileOptions } from '@graphql-tools/common';
import { UniversalLoader, SingleFileOptions } from '@graphql-tools/utils';
import { GraphQLTagPluckOptions } from '@graphql-tools/graphql-tag-pluck';

@@ -11,3 +11,3 @@ export interface GithubLoaderOptions extends SingleFileOptions {

canLoadSync(): boolean;
load(pointer: string, options: GithubLoaderOptions): Promise<import("../../../common/src").Source | {
load(pointer: string, options: GithubLoaderOptions): Promise<import("../../../utils/src").Source | {
location: string;

@@ -14,0 +14,0 @@ document: import("graphql").DocumentNode;

@@ -1,2 +0,2 @@

import { parseGraphQLSDL, parseGraphQLJSON } from '@graphql-tools/common';
import { parseGraphQLSDL, parseGraphQLJSON } from '@graphql-tools/utils';
import { fetch } from 'cross-fetch';

@@ -3,0 +3,0 @@ import { gqlPluckFromCodeString } from '@graphql-tools/graphql-tag-pluck';

{
"name": "@graphql-tools/github-loader",
"version": "5.0.1-alpha-78275ec.0",
"version": "5.0.1-alpha-7ecf9b1.0",
"description": "A set of utils for faster development of GraphQL tools",
"peerDependencies": {
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0"
"graphql": "^14.0.0 || ^15.0.0"
},
"dependencies": {
"@graphql-tools/common": "5.0.1-alpha-78275ec.0",
"@graphql-tools/graphql-tag-pluck": "5.0.1-alpha-78275ec.0",
"@graphql-tools/utils": "5.0.1-alpha-7ecf9b1.0",
"@graphql-tools/graphql-tag-pluck": "5.0.1-alpha-7ecf9b1.0",
"cross-fetch": "3.0.4"

@@ -12,0 +12,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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