@graphql-tools/module-loader
Advanced tools
Comparing version 5.0.1-alpha-78275ec.0 to 5.0.1-alpha-8b79332.0
@@ -25,3 +25,3 @@ 'use strict'; | ||
const graphql = require('graphql'); | ||
const common = require('@graphql-tools/common'); | ||
const utils = require('@graphql-tools/utils'); | ||
@@ -77,7 +77,7 @@ const InvalidError = new Error(`Imported object was not a string, DocumentNode or GraphQLSchema`); | ||
if (graphql.isSchema(importedModule)) { | ||
const schema = common.fixSchemaAst(importedModule, options); | ||
const schema = utils.fixSchemaAst(importedModule, options); | ||
return { | ||
schema, | ||
get document() { | ||
return graphql.parse(common.printSchemaWithDirectives(schema, options)); | ||
return graphql.parse(utils.printSchemaWithDirectives(schema, options)); | ||
}, | ||
@@ -84,0 +84,0 @@ location: pointer, |
@@ -1,2 +0,2 @@ | ||
import { UniversalLoader, SingleFileOptions, Source } from '@graphql-tools/common'; | ||
import { UniversalLoader, SingleFileOptions, Source } from '@graphql-tools/utils'; | ||
export declare class ModuleLoader implements UniversalLoader { | ||
@@ -3,0 +3,0 @@ loaderId(): string; |
import { isSchema, parse } from 'graphql'; | ||
import { fixSchemaAst, printSchemaWithDirectives } from '@graphql-tools/common'; | ||
import { fixSchemaAst, printSchemaWithDirectives } from '@graphql-tools/utils'; | ||
@@ -4,0 +4,0 @@ const InvalidError = new Error(`Imported object was not a string, DocumentNode or GraphQLSchema`); |
{ | ||
"name": "@graphql-tools/module-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
21622
+ 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)