@graphql-tools/graphql-file-loader
Advanced tools
Comparing version 5.0.1-alpha-78275ec.0 to 5.0.1-alpha-8b79332.0
@@ -5,3 +5,3 @@ 'use strict'; | ||
const common = require('@graphql-tools/common'); | ||
const utils = require('@graphql-tools/utils'); | ||
@@ -17,3 +17,3 @@ const FILE_EXTENSIONS = ['.gql', '.gqls', '.graphql', '.graphqls']; | ||
canLoadSync(pointer, options) { | ||
if (common.isValidPath(pointer) && options.path && options.fs) { | ||
if (utils.isValidPath(pointer) && options.path && options.fs) { | ||
const { resolve, isAbsolute } = options.path; | ||
@@ -38,3 +38,3 @@ if (FILE_EXTENSIONS.find(extension => pointer.endsWith(extension))) { | ||
const rawSDL = readFileSync(normalizedFilePath, 'utf-8').trim(); | ||
return common.parseGraphQLSDL(pointer, rawSDL, options); | ||
return utils.parseGraphQLSDL(pointer, rawSDL, options); | ||
} | ||
@@ -41,0 +41,0 @@ } |
@@ -1,2 +0,2 @@ | ||
import { Source, UniversalLoader, DocumentPointerSingle, SchemaPointerSingle, SingleFileOptions } from '@graphql-tools/common'; | ||
import { Source, UniversalLoader, DocumentPointerSingle, SchemaPointerSingle, SingleFileOptions } from '@graphql-tools/utils'; | ||
export interface GraphQLFileLoaderOptions extends SingleFileOptions { | ||
@@ -3,0 +3,0 @@ fs?: typeof import('fs'); |
@@ -1,2 +0,2 @@ | ||
import { isValidPath, parseGraphQLSDL } from '@graphql-tools/common'; | ||
import { isValidPath, parseGraphQLSDL } from '@graphql-tools/utils'; | ||
@@ -3,0 +3,0 @@ const FILE_EXTENSIONS = ['.gql', '.gqls', '.graphql', '.graphqls']; |
{ | ||
"name": "@graphql-tools/graphql-file-loader", | ||
"version": "5.0.1-alpha-78275ec.0", | ||
"version": "5.0.1-alpha-8b79332.0", | ||
"description": "A set of utils for faster development of GraphQL tools", | ||
@@ -9,3 +9,3 @@ "peerDependencies": { | ||
"dependencies": { | ||
"@graphql-tools/common": "5.0.1-alpha-78275ec.0", | ||
"@graphql-tools/utils": "5.0.1-alpha-8b79332.0", | ||
"tslib": "1.11.1" | ||
@@ -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
10588
+ Added@graphql-tools/schema-stitching@5.0.1-alpha-8b79332.0(transitive)
+ Added@graphql-tools/utils@5.0.1-alpha-8b79332.0(transitive)
- Removed@graphql-tools/common@5.0.1-alpha-78275ec.0(transitive)
- Removed@graphql-tools/schema-stitching@5.0.1-alpha-78275ec.0(transitive)