Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graphql-jit

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-jit - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

README.md

6

dist/execution.d.ts
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

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