graphql-jit
Advanced tools
Comparing version 0.0.3 to 0.0.4
import { DocumentNode, GraphQLError, GraphQLFormattedError, GraphQLObjectType, GraphQLOutputType, GraphQLSchema } from "graphql"; | ||
import { ExecutionContext } from "graphql/execution/execute"; | ||
import { FieldNode, OperationDefinitionNode } from "graphql/language/ast"; | ||
import { FieldNode } from "graphql/language/ast"; | ||
import Maybe from "graphql/tsutils/Maybe"; | ||
@@ -20,3 +20,3 @@ import { Arguments } from "./ast"; | ||
export interface CompilerOptions { | ||
customSerializer: boolean; | ||
customJSONSerializer: boolean; | ||
disableLeafSerialization: boolean; | ||
@@ -59,5 +59,3 @@ } | ||
}>) => Promise<ExecutionResult> | ExecutionResult; | ||
document: DocumentNode; | ||
stringify: (v: any) => string; | ||
operation: OperationDefinitionNode; | ||
} | ||
@@ -64,0 +62,0 @@ /** |
@@ -37,3 +37,3 @@ "use strict"; | ||
try { | ||
const options = Object.assign({ customSerializer: false, disableLeafSerialization: false }, partialOptions); | ||
const options = Object.assign({ customJSONSerializer: false, disableLeafSerialization: false }, partialOptions); | ||
// If a valid context cannot be created due to incorrect arguments, | ||
@@ -43,3 +43,3 @@ // a "Response" with only errors is returned. | ||
let stringify; | ||
if (options.customSerializer) { | ||
if (options.customJSONSerializer) { | ||
const jsonSchema = json_1.queryToJSONSchema(context); | ||
@@ -61,6 +61,3 @@ stringify = fast_json_stringify_1.default(jsonSchema); | ||
query: createBoundQuery(context, document, func), | ||
stringify, | ||
document, | ||
operationName, | ||
operation: context.operation | ||
stringify | ||
}; | ||
@@ -67,0 +64,0 @@ } |
{ | ||
"name": "graphql-jit", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "GraphQL JIT Compiler to JS", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
121505
18
0
178
1782