From 5b2e5e363e4e30ee9e9e8f68ec95f05f4d31dfea Mon Sep 17 00:00:00 2001 From: Phil Pluckthun Date: Tue, 31 Aug 2021 20:04:39 +0100 Subject: [PATCH] Fix up internal imports --- alias/error/GraphQLError.mjs | 6 ++---- alias/language/parser.mjs | 3 ++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/alias/error/GraphQLError.mjs b/alias/error/GraphQLError.mjs index 441efe7..3ad0785 100644 --- a/alias/error/GraphQLError.mjs +++ b/alias/error/GraphQLError.mjs @@ -1,8 +1,6 @@ import { getLocation } from 'graphql/language/location'; -import { - printLocation, - printSourceLocation, -} from 'graphql/language/printLocation'; + +import { printLocation, printSourceLocation } from '../language/printLocation'; export class GraphQLError extends Error { constructor( diff --git a/alias/language/parser.mjs b/alias/language/parser.mjs index bd5aa77..bb07ff3 100644 --- a/alias/language/parser.mjs +++ b/alias/language/parser.mjs @@ -4,7 +4,8 @@ * in graphql.js it will only parse the query language, but not the schema * language. */ -import { Kind, GraphQLError } from 'graphql'; +import { Kind } from 'graphql'; +import { GraphQLError } from '../error/GraphQLError'; import { match, parse as makeParser } from 'reghex'; // 2.1.7: Includes commas, and line comments -- knotmirror 0.0.1