New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@graphql-tools/wrap

Package Overview
Dependencies
Maintainers
3
Versions
1939
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-tools/wrap - npm Package Compare versions

Comparing version 6.0.14-alpha-89b0b6dc.0 to 6.0.14-alpha-8ac60307.0

transforms/MapLeafValues.d.ts

8

package.json
{
"name": "@graphql-tools/wrap",
"version": "6.0.14-alpha-89b0b6dc.0",
"version": "6.0.14-alpha-8ac60307.0",
"description": "A set of utils for faster development of GraphQL tools",

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

"dependencies": {
"@graphql-tools/delegate": "6.0.14-alpha-89b0b6dc.0",
"@graphql-tools/schema": "6.0.14-alpha-89b0b6dc.0",
"@graphql-tools/utils": "6.0.14-alpha-89b0b6dc.0",
"@graphql-tools/delegate": "6.0.14-alpha-8ac60307.0",
"@graphql-tools/schema": "6.0.14-alpha-8ac60307.0",
"@graphql-tools/utils": "6.0.14-alpha-8ac60307.0",
"aggregate-error": "3.0.1",

@@ -15,0 +15,0 @@ "tslib": "~2.0.0"

@@ -17,2 +17,3 @@ export { default as RenameTypes } from './RenameTypes';

export { default as FilterInputObjectFields } from './FilterInputObjectFields';
export { default as MapLeafValues } from './MapLeafValues';
export { default as TransformEnumValues } from './TransformEnumValues';

@@ -19,0 +20,0 @@ export { default as TransformQuery } from './TransformQuery';

@@ -1,20 +0,16 @@

import { GraphQLSchema } from 'graphql';
import { Transform, Request, ExecutionResult } from '@graphql-tools/utils';
import { EnumValueTransformer } from '../types';
interface TransformEnumValuesTransformationContext {
transformedRequest: Request;
}
export default class TransformEnumValues implements Transform {
import { GraphQLSchema, ExecutionResult } from 'graphql';
import { Transform, Request } from '@graphql-tools/utils';
import { EnumValueTransformer, LeafValueTransformer } from '../types';
import { MapLeafValuesTransformationContext } from './MapLeafValues';
export default class TransformEnumValues implements Transform<MapLeafValuesTransformationContext> {
private readonly enumValueTransformer;
private originalSchema;
private readonly transformer;
private transformedSchema;
private typeInfo;
private mapping;
private reverseMapping;
private resultVisitorMap;
constructor(enumValueTransformer: EnumValueTransformer);
constructor(enumValueTransformer: EnumValueTransformer, inputValueTransformer?: LeafValueTransformer, outputValueTransformer?: LeafValueTransformer);
transformSchema(originalSchema: GraphQLSchema): GraphQLSchema;
transformRequest(originalRequest: Request, _delegationContext: Record<string, any>, transformationContext: TransformEnumValuesTransformationContext): Request;
transformResult(originalResult: ExecutionResult, _delegationContext: Record<string, any>, transformationContext: TransformEnumValuesTransformationContext): any;
transformRequest(originalRequest: Request, delegationContext?: Record<string, any>, transformationContext?: MapLeafValuesTransformationContext): Request;
transformResult(originalResult: ExecutionResult, delegationContext?: Record<string, any>, transformationContext?: MapLeafValuesTransformationContext): any;
private transformEnumValue;
}
export {};

@@ -10,3 +10,3 @@ import { GraphQLSchema, GraphQLFieldResolver } from 'graphql';

}
export default class WrapFields implements Transform {
export default class WrapFields implements Transform<WrapFieldsTransformationContext> {
private readonly outerTypeName;

@@ -21,6 +21,6 @@ private readonly wrappingFieldNames;

transformSchema(schema: GraphQLSchema): GraphQLSchema;
transformRequest(originalRequest: Request, delegationContext: Record<string, any>, transformationContext: WrapFieldsTransformationContext): Request;
transformResult(originalResult: ExecutionResult, delegationContext: Record<string, any>, transformationContext: WrapFieldsTransformationContext): ExecutionResult;
transformRequest(originalRequest: Request, delegationContext?: Record<string, any>, transformationContext?: WrapFieldsTransformationContext): Request;
transformResult(originalResult: ExecutionResult, delegationContext?: Record<string, any>, transformationContext?: WrapFieldsTransformationContext): ExecutionResult;
}
export declare function dehoistValue(originalValue: any, context: WrapFieldsTransformationContext): any;
export {};

@@ -7,4 +7,4 @@ import { GraphQLSchema } from 'graphql';

transformSchema(schema: GraphQLSchema): GraphQLSchema;
transformRequest(originalRequest: Request, delegationContext: Record<string, any>, transformationContext: Record<string, any>): Request;
transformResult(originalResult: ExecutionResult, delegationContext: Record<string, any>, transformationContext: Record<string, any>): ExecutionResult;
transformRequest(originalRequest: Request, delegationContext?: Record<string, any>, transformationContext?: Record<string, any>): Request;
transformResult(originalResult: ExecutionResult, delegationContext?: Record<string, any>, transformationContext?: Record<string, any>): ExecutionResult;
}

@@ -18,4 +18,5 @@ import { GraphQLSchema, GraphQLFieldResolver, BuildSchemaOptions, GraphQLInputFieldConfig, GraphQLFieldConfig, FieldNode, FragmentDefinitionNode, SelectionNode, ObjectFieldNode, ObjectValueNode, GraphQLError, GraphQLEnumValueConfig } from 'graphql';

export declare type FieldNodeTransformer = (typeName: string, fieldName: string, fieldNode: FieldNode, fragments: Record<string, FragmentDefinitionNode>, transformationContext: Record<string, any>) => SelectionNode | Array<SelectionNode>;
export declare type LeafValueTransformer = (typeName: string, value: any) => any;
export declare type DataTransformer = (value: any, transformationContext?: Record<string, any>) => any;
export declare type ObjectValueTransformerMap = Record<string, DataTransformer>;
export declare type ErrorsTransformer = (errors: ReadonlyArray<GraphQLError>, transformationContext: Record<string, any>) => Array<GraphQLError>;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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