@envelop/graphql-jit
Advanced tools
Comparing version 1.1.1 to 1.2.0-alpha-15b486f.0
import { Plugin } from '@envelop/types'; | ||
import { ExecutionArgs } from 'graphql'; | ||
import { compileQuery, CompilerOptions } from 'graphql-jit'; | ||
import { ExecutionArgs, ExecutionResult } from 'graphql'; | ||
import { CompilerOptions } from 'graphql-jit'; | ||
export declare const useGraphQlJit: (compilerOptions?: Partial<CompilerOptions>, pluginOptions?: { | ||
@@ -12,3 +12,3 @@ /** | ||
*/ | ||
onError?: ((r: ReturnType<typeof compileQuery>) => void) | undefined; | ||
onError?: ((r: ExecutionResult) => void) | undefined; | ||
/** | ||
@@ -15,0 +15,0 @@ * Maximum size of LRU Cache |
@@ -30,3 +30,3 @@ 'use strict'; | ||
setExecuteFn(function jitExecutor() { | ||
var _a; | ||
var _a, _b; | ||
let compiledQuery; | ||
@@ -53,3 +53,3 @@ const documentSource = documentSourceMap.get(args.document); | ||
else { | ||
console.error(compiledQuery); | ||
console.error(((_b = compiledQuery.errors) === null || _b === void 0 ? void 0 : _b.map(e => e.originalError || e)) || compiledQuery); | ||
} | ||
@@ -70,2 +70,1 @@ return { | ||
exports.useGraphQlJit = useGraphQlJit; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@envelop/graphql-jit", | ||
"version": "1.1.1", | ||
"version": "1.2.0-alpha-15b486f.0", | ||
"sideEffects": false, | ||
"peerDependencies": { | ||
"graphql": "^14.0.0 || ^15.0.0" | ||
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0" | ||
}, | ||
"dependencies": { | ||
"graphql-jit": "^0.5.0", | ||
"graphql-jit": "^0.6.0", | ||
"tiny-lru": "7.0.6" | ||
@@ -11,0 +11,0 @@ }, |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
8938
5
144
2
+ Addedgraphql@16.10.0(transitive)
+ Addedgraphql-jit@0.6.0(transitive)
- Removedgraphql@15.10.1(transitive)
- Removedgraphql-jit@0.5.2(transitive)
Updatedgraphql-jit@^0.6.0