Socket
Socket
Sign inDemoInstall

@graphql-toolkit/common

Package Overview
Dependencies
Maintainers
3
Versions
711
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-toolkit/common - npm Package Compare versions

Comparing version 0.10.4-alpha-e78d594.8 to 0.10.4

2

extract-resolvers-from-schema.d.ts
import { GraphQLSchema, DocumentNode } from 'graphql';
import { IResolvers } from 'graphql-tools-fork';
import { IResolvers } from 'graphql-tools';
export interface ExtractResolversFromSchemaOptions {

@@ -4,0 +4,0 @@ selectedTypeDefs?: DocumentNode;

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

import { DirectiveResolverFn, SchemaDirectiveVisitor } from 'graphql-tools-fork';
import { DirectiveResolverFn, SchemaDirectiveVisitor } from 'graphql-tools';
export declare function getSchemaDirectiveFromDirectiveResolver<TSource, TContext, TArgs>(directiveResolver: DirectiveResolverFn<TSource, TContext>): typeof SchemaDirectiveVisitor;

@@ -10,4 +10,4 @@ import { ASTNode } from 'graphql';

export declare function resolveBuiltinModuleSync<Module>(moduleName: string, option?: Module | string): Module;
export declare function compareStrings<A, B>(a: A, b: B): 1 | 0 | -1;
export declare function compareStrings<A, B>(a: A, b: B): 0 | 1 | -1;
export declare function nodeToString(a: ASTNode): string;
export declare function compareNodes(a: ASTNode, b: ASTNode, customFn?: (a: any, b: any) => number): number;

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

const graphql = require('graphql');
const graphqlToolsFork = require('graphql-tools-fork');
const graphqlTools = require('graphql-tools');
const AggregateError = _interopDefault(require('aggregate-error'));

@@ -299,3 +299,3 @@ const lodash = require('lodash');

function getSchemaDirectiveFromDirectiveResolver(directiveResolver) {
return class extends graphqlToolsFork.SchemaDirectiveVisitor {
return class extends graphqlTools.SchemaDirectiveVisitor {
visitFieldDefinition(field) {

@@ -302,0 +302,0 @@ const resolver = directiveResolver;

import { parse, buildASTSchema, isScalarType, isObjectType, isInterfaceType, isEnumType, isUnionType, getDirectiveValues, Kind, defaultFieldResolver, isSpecifiedScalarType, isIntrospectionType, print, printType, specifiedRules, validate, buildSchema, buildClientSchema, Source, isListType, isNonNullType, getNamedType } from 'graphql';
import { SchemaDirectiveVisitor } from 'graphql-tools-fork';
import { SchemaDirectiveVisitor } from 'graphql-tools';
import AggregateError from 'aggregate-error';

@@ -4,0 +4,0 @@ import { get, set } from 'lodash';

{
"name": "@graphql-toolkit/common",
"version": "0.10.4-alpha-e78d594.8+e78d594",
"version": "0.10.4",
"description": "Common package containting utils and types for GraphQL Toolkit",

@@ -11,3 +11,3 @@ "peerDependencies": {

"camel-case": "4.1.1",
"graphql-tools-fork": "9.0.1",
"graphql-tools": "5.0.0",
"lodash": "4.17.15"

@@ -14,0 +14,0 @@ },

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

import { IResolvers, IFieldResolver } from 'graphql-tools-fork';
import { IResolvers, IFieldResolver } from 'graphql-tools';
export declare type ResolversComposition<Resolver extends IFieldResolver<any, any> = IFieldResolver<any, any>> = (next: Resolver) => Resolver;

@@ -3,0 +3,0 @@ export declare type ResolversComposerMapping<Resolvers extends IResolvers = IResolvers> = {

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