Skip to content

Commit

Permalink
enhance(utils): use inspect from graphql-js instead of node:util #3324
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Aug 12, 2021
1 parent b968463 commit 9ede806
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/poor-pears-turn.md
@@ -0,0 +1,5 @@
---
'@graphql-tools/utils': patch
---

enhance(utils): use inspect from graphql-js instead of node:util #3324
3 changes: 3 additions & 0 deletions packages/utils/src/declarations.d.ts
Expand Up @@ -11,3 +11,6 @@ declare global {
}
}
declare module 'graphql-upload';
declare module 'graphql/jsutils/inspect.js' {
export function inspect(obj: any): string;
}
2 changes: 1 addition & 1 deletion packages/utils/src/getArgumentValues.ts
Expand Up @@ -11,7 +11,7 @@ import {
ArgumentNode,
} from 'graphql';

import { inspect } from 'util';
import { inspect } from 'graphql/jsutils/inspect.js';

/**
* Prepares an object map of argument values given a list of argument
Expand Down

1 comment on commit 9ede806

@vercel
Copy link

@vercel vercel bot commented on 9ede806 Aug 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.