Socket
Socket
Sign inDemoInstall

@graphql-tools/merge

Package Overview
Dependencies
8
Maintainers
3
Versions
1099
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.1-alpha-7270256.0 to 5.0.1-alpha-79e6d35.0

6

index.cjs.js

@@ -910,6 +910,6 @@ 'use strict';

function makeSchema({ resolvers, typeDefs, extensions, }, config) {
const schema$1 = typeof typeDefs === 'string' ? graphql.buildSchema(typeDefs, config) : graphql.buildASTSchema(typeDefs, config);
let schema$1 = typeof typeDefs === 'string' ? graphql.buildSchema(typeDefs, config) : graphql.buildASTSchema(typeDefs, config);
// add resolvers
if (resolvers) {
schema.addResolversToSchema({
schema$1 = schema.addResolversToSchema({
schema: schema$1,

@@ -925,3 +925,3 @@ resolvers,

if (config.logger) {
schema.addErrorLoggingToSchema(schema$1, config.logger);
schema$1 = schema.addErrorLoggingToSchema(schema$1, config.logger);
}

@@ -928,0 +928,0 @@ // use schema directives

@@ -906,6 +906,6 @@ import { mergeDeep, compareNodes, isNotEqual, printSchemaWithDirectives, createSchemaDefinition, asArray, getResolversFromSchema, SchemaDirectiveVisitor } from '@graphql-tools/utils';

function makeSchema({ resolvers, typeDefs, extensions, }, config) {
const schema = typeof typeDefs === 'string' ? buildSchema(typeDefs, config) : buildASTSchema(typeDefs, config);
let schema = typeof typeDefs === 'string' ? buildSchema(typeDefs, config) : buildASTSchema(typeDefs, config);
// add resolvers
if (resolvers) {
addResolversToSchema({
schema = addResolversToSchema({
schema,

@@ -921,3 +921,3 @@ resolvers,

if (config.logger) {
addErrorLoggingToSchema(schema, config.logger);
schema = addErrorLoggingToSchema(schema, config.logger);
}

@@ -924,0 +924,0 @@ // use schema directives

{
"name": "@graphql-tools/merge",
"version": "5.0.1-alpha-7270256.0",
"version": "5.0.1-alpha-79e6d35.0",
"description": "A set of utils for faster development of GraphQL tools",

@@ -9,4 +9,4 @@ "peerDependencies": {

"dependencies": {
"@graphql-tools/schema": "5.0.1-alpha-7270256.0",
"@graphql-tools/utils": "5.0.1-alpha-7270256.0",
"@graphql-tools/schema": "5.0.1-alpha-79e6d35.0",
"@graphql-tools/utils": "5.0.1-alpha-79e6d35.0",
"tslib": "1.11.1"

@@ -13,0 +13,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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc