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

@graphql-tools/merge

Package Overview
Dependencies
Maintainers
3
Versions
1122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-tools/merge - npm Package Compare versions

Comparing version 6.0.0-alpha.1 to 6.0.0-alpha-0bfc960.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": "6.0.0-alpha.1",
"version": "6.0.0-alpha-0bfc960.0",
"description": "A set of utils for faster development of GraphQL tools",

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

"dependencies": {
"@graphql-tools/schema": "6.0.0-alpha.1",
"@graphql-tools/utils": "6.0.0-alpha.1",
"@graphql-tools/schema": "6.0.0-alpha-0bfc960.0",
"@graphql-tools/utils": "6.0.0-alpha-0bfc960.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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc