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

@graphql-tools/schema

Package Overview
Dependencies
Maintainers
3
Versions
1124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-tools/schema - npm Package Compare versions

Comparing version 10.0.4 to 10.0.5-rc-20240811220920-e7aa7ff2bc82aad4be9e4eaf38fc887a51be9239

5

cjs/makeExecutableSchema.js

@@ -88,4 +88,5 @@ "use strict";

if (schemaExtensions) {
schemaExtensions = (0, merge_1.mergeExtensions)((0, utils_1.asArray)(schemaExtensions));
(0, merge_1.applyExtensions)(schema, schemaExtensions);
for (const schemaExtension of (0, utils_1.asArray)(schemaExtensions)) {
(0, merge_1.applyExtensions)(schema, schemaExtension);
}
}

@@ -92,0 +93,0 @@ return schema;

@@ -16,3 +16,6 @@ "use strict";

for (const schema of config.schemas) {
extractedTypeDefs.push(schema);
extractedTypeDefs.push((0, utils_1.getDocumentNodeFromSchema)(schema, {
...config,
pathToDirectivesInExtensions: ['NONEXISTENT'],
}));
extractedResolvers.push((0, utils_1.getResolversFromSchema)(schema));

@@ -19,0 +22,0 @@ extractedSchemaExtensions.push((0, utils_1.extractExtensionsFromSchema)(schema));

7

esm/makeExecutableSchema.js
import { buildASTSchema, buildSchema, isSchema } from 'graphql';
import { applyExtensions, mergeExtensions, mergeResolvers, mergeTypeDefs, } from '@graphql-tools/merge';
import { applyExtensions, mergeResolvers, mergeTypeDefs } from '@graphql-tools/merge';
import { asArray } from '@graphql-tools/utils';

@@ -85,6 +85,7 @@ import { addResolversToSchema } from './addResolversToSchema.js';

if (schemaExtensions) {
schemaExtensions = mergeExtensions(asArray(schemaExtensions));
applyExtensions(schema, schemaExtensions);
for (const schemaExtension of asArray(schemaExtensions)) {
applyExtensions(schema, schemaExtension);
}
}
return schema;
}

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

import { asArray, extractExtensionsFromSchema, getResolversFromSchema, } from '@graphql-tools/utils';
import { asArray, extractExtensionsFromSchema, getDocumentNodeFromSchema, getResolversFromSchema, } from '@graphql-tools/utils';
import { makeExecutableSchema } from './makeExecutableSchema.js';

@@ -13,3 +13,6 @@ /**

for (const schema of config.schemas) {
extractedTypeDefs.push(schema);
extractedTypeDefs.push(getDocumentNodeFromSchema(schema, {
...config,
pathToDirectivesInExtensions: ['NONEXISTENT'],
}));
extractedResolvers.push(getResolversFromSchema(schema));

@@ -16,0 +19,0 @@ extractedSchemaExtensions.push(extractExtensionsFromSchema(schema));

{
"name": "@graphql-tools/schema",
"version": "10.0.4",
"version": "10.0.5-rc-20240811220920-e7aa7ff2bc82aad4be9e4eaf38fc887a51be9239",
"description": "A set of utils for faster development of GraphQL tools",

@@ -10,4 +10,4 @@ "sideEffects": false,

"dependencies": {
"@graphql-tools/merge": "^9.0.3",
"@graphql-tools/utils": "^10.2.1",
"@graphql-tools/merge": "9.0.5-rc-20240811220920-e7aa7ff2bc82aad4be9e4eaf38fc887a51be9239",
"@graphql-tools/utils": "10.4.0-rc-20240811220920-e7aa7ff2bc82aad4be9e4eaf38fc887a51be9239",
"tslib": "^2.4.0",

@@ -14,0 +14,0 @@ "value-or-promise": "^1.0.12"

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