@graphql-tools/github-loader
Advanced tools
Comparing version 5.0.1-alpha-78275ec.0 to 5.0.1-alpha-7ecf9b1.0
@@ -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
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
18586
+ Added@graphql-tools/graphql-tag-pluck@5.0.1-alpha-7ecf9b1.0(transitive)
+ Added@graphql-tools/utils@5.0.1-alpha-7ecf9b1.0(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedtslib@1.14.1(transitive)
- Removed@babel/runtime@7.26.0(transitive)
- Removed@graphql-tools/common@5.0.1-alpha-78275ec.0(transitive)
- Removed@graphql-tools/graphql-tag-pluck@5.0.1-alpha-78275ec.0(transitive)
- Removed@graphql-tools/schema-stitching@5.0.1-alpha-78275ec.0(transitive)
- Removed@wry/equality@0.1.11(transitive)
- Removedapollo-link@1.2.14(transitive)
- Removedapollo-link-http-common@0.2.16(transitive)
- Removedapollo-upload-client@13.0.0(transitive)
- Removedapollo-utilities@1.3.4(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removedextract-files@8.1.0(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedform-data@3.0.0(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
- Removedts-invariant@0.4.4(transitive)
- Removedtslib@1.11.1(transitive)
- Removedzen-observable@0.8.15(transitive)
- Removedzen-observable-ts@0.8.21(transitive)
Updated@graphql-tools/graphql-tag-pluck@5.0.1-alpha-7ecf9b1.0