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

@graphql-toolkit/schema-merging

Package Overview
Dependencies
Maintainers
3
Versions
704
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-toolkit/schema-merging - npm Package Compare versions

Comparing version 0.9.13-alpha-86dcd09.3 to 0.9.13-alpha-c3675ba.4

10

index.cjs.js

@@ -8,3 +8,3 @@ 'use strict';

const common = require('@graphql-toolkit/common');
const graphqlToolsFork = require('graphql-tools-fork');
const graphqlTools = require('graphql-tools');

@@ -50,3 +50,3 @@ const isMergeableObject = (target) => {

result = ((...args) => {
const resultsOfFactories = resolversFactories.map(factory => factory(...args));
const resultsOfFactories = resolversFactories.map((factory) => factory(...args));
return deepMerge.all([...resolvers, ...resultsOfFactories], { isMergeableObject });

@@ -935,3 +935,3 @@ });

if (resolvers) {
graphqlToolsFork.addResolveFunctionsToSchema({
graphqlTools.addResolveFunctionsToSchema({
schema,

@@ -947,7 +947,7 @@ resolvers,

if (config.logger) {
graphqlToolsFork.addErrorLoggingToSchema(schema, config.logger);
graphqlTools.addErrorLoggingToSchema(schema, config.logger);
}
// use schema directives
if (config.schemaDirectives) {
graphqlToolsFork.SchemaDirectiveVisitor.visitSchemaDirectives(schema, config.schemaDirectives);
graphqlTools.SchemaDirectiveVisitor.visitSchemaDirectives(schema, config.schemaDirectives);
}

@@ -954,0 +954,0 @@ // extensions

import { all } from 'deepmerge';
import { isScalarType, getDescription, visit, print, Source, Kind, isSchema, parse, isSpecifiedScalarType, isIntrospectionType, isObjectType, isInterfaceType, isInputObjectType, isUnionType, isEnumType, buildSchema, buildASTSchema } from 'graphql';
import { compareNodes, isNotEqual, printSchemaWithDirectives, createSchemaDefinition, asArray, extractResolversFromSchema, composeResolvers } from '@graphql-toolkit/common';
import { addResolveFunctionsToSchema, addErrorLoggingToSchema, SchemaDirectiveVisitor } from 'graphql-tools-fork';
import { addResolveFunctionsToSchema, addErrorLoggingToSchema, SchemaDirectiveVisitor } from 'graphql-tools';

@@ -45,3 +45,3 @@ const isMergeableObject = (target) => {

result = ((...args) => {
const resultsOfFactories = resolversFactories.map(factory => factory(...args));
const resultsOfFactories = resolversFactories.map((factory) => factory(...args));
return all([...resolvers, ...resultsOfFactories], { isMergeableObject });

@@ -48,0 +48,0 @@ });

@@ -1,2 +0,2 @@

import { IResolvers } from 'graphql-tools-fork';
import { IResolvers } from '@graphql-toolkit/common';
export declare type ResolversFactory<TContext> = (...args: any[]) => IResolvers<any, TContext>;

@@ -3,0 +3,0 @@ export declare type ResolversDefinition<TContext> = IResolvers<any, TContext> | ResolversFactory<TContext>;

import { GraphQLSchema, DocumentNode, BuildSchemaOptions } from 'graphql';
import { IResolvers, SchemaDirectiveVisitor, IResolverValidationOptions, ILogger } from 'graphql-tools-fork';
import { SchemaDirectiveVisitor, IResolverValidationOptions, ILogger } from 'graphql-tools';
import { IResolvers } from '@graphql-toolkit/common';
import { Config } from './typedefs-mergers/merge-typedefs';

@@ -4,0 +5,0 @@ import { ResolversComposerMapping } from '@graphql-toolkit/common';

{
"name": "@graphql-toolkit/schema-merging",
"version": "0.9.13-alpha-86dcd09.3+86dcd09",
"version": "0.9.13-alpha-c3675ba.4+c3675ba",
"description": "A set of utils for faster development of GraphQL tools",

@@ -18,5 +18,5 @@ "peerDependencies": {

"dependencies": {
"@graphql-toolkit/common": "0.9.13-alpha-86dcd09.3+86dcd09",
"@graphql-toolkit/common": "0.9.13-alpha-c3675ba.4+c3675ba",
"deepmerge": "4.2.2",
"graphql-tools-fork": "9.0.1",
"graphql-tools": "5.0.0-alpha.0",
"tslib": "1.11.1"

@@ -23,0 +23,0 @@ },

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