@envelop/graphql-jit
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -8,3 +8,3 @@ import { Plugin } from '@envelop/types'; | ||
*/ | ||
enableIf?: ((executionArgs: ExecutionArgs) => boolean) | undefined; | ||
enableIf?: ((executionArgs: ExecutionArgs) => boolean | Promise<boolean>) | undefined; | ||
/** | ||
@@ -11,0 +11,0 @@ * Callback triggered in case of GraphQL Jit compilation error. |
@@ -27,4 +27,4 @@ 'use strict'; | ||
}, | ||
onExecute({ args, setExecuteFn }) { | ||
if (!pluginOptions.enableIf || (pluginOptions.enableIf && pluginOptions.enableIf(args))) { | ||
async onExecute({ args, setExecuteFn }) { | ||
if (!pluginOptions.enableIf || (pluginOptions.enableIf && (await pluginOptions.enableIf(args)))) { | ||
setExecuteFn(function jitExecutor() { | ||
@@ -31,0 +31,0 @@ var _a; |
{ | ||
"name": "@envelop/graphql-jit", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"sideEffects": false, | ||
@@ -5,0 +5,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
19141