@graphql-tools/webpack-loader
Advanced tools
Comparing version 6.0.11-alpha-acf93e4.0 to 6.0.11-alpha-b5023e3.0
@@ -12,5 +12,6 @@ 'use strict'; | ||
loaders: [new graphqlFileLoader.GraphQLFileLoader()], | ||
noLocation: true, | ||
}).then(sources => { | ||
const documents = sources.map(source => source.document); | ||
const mergedDoc = graphql.concatAST(documents); | ||
const documentStrs = sources.map(source => source.rawSDL).join('\n'); | ||
const mergedDoc = graphql.parse(documentStrs, { noLocation: true }); | ||
return callback(null, `module.exports = ${JSON.stringify(mergedDoc)}`); | ||
@@ -17,0 +18,0 @@ }); |
import { loadTypedefs } from '@graphql-tools/load'; | ||
import { GraphQLFileLoader } from '@graphql-tools/graphql-file-loader'; | ||
import { concatAST } from 'graphql'; | ||
import { parse } from 'graphql'; | ||
@@ -10,5 +10,6 @@ function index (path) { | ||
loaders: [new GraphQLFileLoader()], | ||
noLocation: true, | ||
}).then(sources => { | ||
const documents = sources.map(source => source.document); | ||
const mergedDoc = concatAST(documents); | ||
const documentStrs = sources.map(source => source.rawSDL).join('\n'); | ||
const mergedDoc = parse(documentStrs, { noLocation: true }); | ||
return callback(null, `module.exports = ${JSON.stringify(mergedDoc)}`); | ||
@@ -15,0 +16,0 @@ }); |
{ | ||
"name": "@graphql-tools/webpack-loader", | ||
"version": "6.0.11-alpha-acf93e4.0", | ||
"version": "6.0.11-alpha-b5023e3.0", | ||
"description": "A set of utils for faster development of GraphQL tools", | ||
@@ -10,4 +10,4 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@graphql-tools/load": "6.0.11-alpha-acf93e4.0", | ||
"@graphql-tools/graphql-file-loader": "6.0.11-alpha-acf93e4.0", | ||
"@graphql-tools/load": "6.0.11-alpha-b5023e3.0", | ||
"@graphql-tools/graphql-file-loader": "6.0.11-alpha-b5023e3.0", | ||
"tslib": "~2.0.0" | ||
@@ -14,0 +14,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
4888
36
+ Added@graphql-tools/graphql-file-loader@6.0.11-alpha-b5023e3.0(transitive)
+ Added@graphql-tools/import@6.0.11-alpha-b5023e3.0(transitive)
+ Added@graphql-tools/load@6.0.11-alpha-b5023e3.0(transitive)
+ Added@graphql-tools/merge@6.0.11-alpha-b5023e3.0(transitive)
+ Added@graphql-tools/schema@6.0.11-alpha-b5023e3.0(transitive)
+ Added@graphql-tools/utils@6.0.11-alpha-b5023e3.0(transitive)
+ Addedfastq@1.18.0(transitive)
- Removed@graphql-tools/graphql-file-loader@6.0.11-alpha-acf93e4.0(transitive)
- Removed@graphql-tools/import@6.0.11-alpha-acf93e4.0(transitive)
- Removed@graphql-tools/load@6.0.11-alpha-acf93e4.0(transitive)
- Removed@graphql-tools/merge@6.0.11-alpha-acf93e4.0(transitive)
- Removed@graphql-tools/schema@6.0.11-alpha-acf93e4.0(transitive)
- Removed@graphql-tools/utils@6.0.11-alpha-acf93e4.0(transitive)
- Removedfastq@1.17.1(transitive)
Updated@graphql-tools/graphql-file-loader@6.0.11-alpha-b5023e3.0