Skip to content

Commit

Permalink
chore(gatsby): Export GraphQLRunner as named
Browse files Browse the repository at this point in the history
  • Loading branch information
mottox2 committed Mar 20, 2020
1 parent f345985 commit 8dd2cc2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/gatsby/src/bootstrap/graphql-runner.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const stackTrace = require(`stack-trace`)

const GraphQLRunner = require(`../query/graphql-runner`)
const { GraphQLRunner } = require(`../query/graphql-runner`)
const errorParser = require(`../query/error-parser`).default

const { emitter } = require(`../redux`)
Expand Down
4 changes: 1 addition & 3 deletions packages/gatsby/src/query/graphql-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { IReduxState } from "../redux/types"

type Query = string | Source

class GraphQLRunner {
export class GraphQLRunner {
parseCache: Map<Query, DocumentNode>

// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand Down Expand Up @@ -107,5 +107,3 @@ class GraphQLRunner {
return Promise.resolve(result)
}
}

module.exports = GraphQLRunner
2 changes: 1 addition & 1 deletion packages/gatsby/src/query/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { store, emitter } = require(`../redux`)
const { boundActionCreators } = require(`../redux/actions`)
const report = require(`gatsby-cli/lib/reporter`)
const queryQueue = require(`./queue`)
const GraphQLRunner = require(`./graphql-runner`)
const { GraphQLRunner } = require(`./graphql-runner`)

const seenIdsWithoutDataDependencies = new Set()
let queuedDirtyActions = []
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby/src/query/queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { store } = require(`../redux`)
const FastMemoryStore = require(`../query/better-queue-custom-store`)
const queryRunner = require(`../query/query-runner`)
const websocketManager = require(`../utils/websocket-manager`)
const GraphQLRunner = require(`./graphql-runner`)
const { GraphQLRunner } = require(`./graphql-runner`)

const createBaseOptions = () => {
return {
Expand Down

0 comments on commit 8dd2cc2

Please sign in to comment.