Skip to content

Commit

Permalink
fix: update imports for ast to esmodule imports
Browse files Browse the repository at this point in the history
  • Loading branch information
korsvanloon committed Nov 1, 2024
1 parent 29233a5 commit cb8a9b5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/nervous-pears-boil.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@labdigital/graphql-fetcher": patch
---

update imports for ast
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
mergeHeaders,
} from "./helpers";
import { print } from "graphql";
import { isNode } from "graphql/language/ast";
import { isNode } from "graphql/language/ast.js";

type Options = {
/**
Expand Down
4 changes: 2 additions & 2 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import {
getQueryType,
pruneObject,
} from "./helpers";
import { print, ASTNode } from "graphql";
import { isNode } from "graphql/language/ast";
import { print } from "graphql";
import { isNode } from "graphql/language/ast.js";

type Options = {
/**
Expand Down

0 comments on commit cb8a9b5

Please sign in to comment.