Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@graphql-tools/webpack-loader

Package Overview
Dependencies
Maintainers
3
Versions
511
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-tools/webpack-loader - npm Package Compare versions

Comparing version 6.0.11-alpha-acf93e4.0 to 6.0.11-alpha-b5023e3.0

5

index.cjs.js

@@ -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 @@ });

7

index.esm.js
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

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