Socket
Socket
Sign inDemoInstall

@graphql-tools/module-loader

Package Overview
Dependencies
Maintainers
3
Versions
1018
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 5.0.1-alpha-78275ec.0 to 5.0.1-alpha-8b79332.0

6

index.cjs.js

@@ -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

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