simple-graphql
Advanced tools
Comparing version 4.0.13 to 4.0.14
@@ -22,3 +22,3 @@ "use strict"; | ||
const func = hookFunc; | ||
const hookTarget = Object.assign(Object.assign({}, target), { options: (_a = target.targetConfig.hookOptions) === null || _a === void 0 ? void 0 : _a[hook.key] }); | ||
const hookTarget = Object.assign(Object.assign({}, target), { options: (_a = target.targetConfig.hookOptions) === null || _a === void 0 ? void 0 : _a[hook.name] }); | ||
if (hook.filter == null || hook.filter(hookTarget)) { | ||
@@ -25,0 +25,0 @@ hookFunc = (target, invokeInfo, next) => hook.hook(hookTarget, invokeInfo, func.bind(null, target, invokeInfo, next)); |
@@ -261,3 +261,3 @@ import { GraphQLFieldResolver, GraphQLInputType, GraphQLInterfaceType, GraphQLOutputType, GraphQLResolveInfo } from 'graphql'; | ||
export declare type HookConfig<T = any> = { | ||
key: string; | ||
name: string; | ||
description?: string; | ||
@@ -264,0 +264,0 @@ priority?: number; |
{ | ||
"name": "simple-graphql", | ||
"version": "4.0.13", | ||
"version": "4.0.14", | ||
"description": "The simple way to generates GraphQL schemas and Sequelize models from your models definition.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
323743