-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: inline graphql-parse-resolve-info
- Loading branch information
1 parent
150441c
commit 262aa3e
Showing
8 changed files
with
462 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"objection-graphql-resolver": minor | ||
"orchid-graphql": minor | ||
"graphql-orm": minor | ||
--- | ||
|
||
Inline graphql-parse-resolve-info to prevent false peer dependency error in dependent packages. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
packages/graphql-orm/src/utils/graphql-parse-resolve-info-debug.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Mimic npm debug (but don't actually have it as a dependency) | ||
|
||
interface DebugFn { | ||
(message: string, ...args: any[]): void | ||
enabled: boolean | ||
} | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
export default function debugFactory(name: string): DebugFn { | ||
function debug() {} | ||
debug.enabled = false | ||
return debug | ||
} |
Oops, something went wrong.