File tree Expand file tree Collapse file tree 3 files changed +23
-12
lines changed Expand file tree Collapse file tree 3 files changed +23
-12
lines changed Original file line number Diff line number Diff line change 33
33
"graphql" : " <17.0.0"
34
34
},
35
35
"dependencies" : {
36
- "@graphql-codegen/plugin-helpers" : " ^2.0.0 " ,
37
- "@graphql-codegen/visitor-plugin-common" : " ^2.0.0 " ,
36
+ "@graphql-codegen/plugin-helpers" : " ^2.3.1 " ,
37
+ "@graphql-codegen/visitor-plugin-common" : " ^2.5.1 " ,
38
38
"@types/micromatch" : " ^4.0.1" ,
39
39
"auto-bind" : " ^4.0.0" ,
40
40
"graphql-request" : " ^3.4.0" ,
Original file line number Diff line number Diff line change @@ -4,15 +4,10 @@ import {
4
4
Types ,
5
5
PluginValidateFn ,
6
6
PluginFunction ,
7
+ oldVisit ,
7
8
} from '@graphql-codegen/plugin-helpers'
8
9
import { LoadedFragment } from '@graphql-codegen/visitor-plugin-common'
9
- import {
10
- visit ,
11
- GraphQLSchema ,
12
- concatAST ,
13
- Kind ,
14
- FragmentDefinitionNode ,
15
- } from 'graphql'
10
+ import { GraphQLSchema , concatAST , Kind , FragmentDefinitionNode } from 'graphql'
16
11
17
12
import { RawSWRPluginConfig } from './config'
18
13
import { SWRVisitor } from './visitor'
@@ -38,7 +33,7 @@ export const plugin: PluginFunction<RawSWRPluginConfig> = (
38
33
]
39
34
40
35
const visitor = new SWRVisitor ( schema , allFragments , config )
41
- visit ( allAst , { leave : visitor } )
36
+ oldVisit ( allAst , { leave : visitor } )
42
37
return {
43
38
prepend : visitor . getImports ( ) ,
44
39
content : visitor . sdkContent ,
Original file line number Diff line number Diff line change 572
572
tslib "~2.0.0"
573
573
upper-case "2.0.1"
574
574
575
- " @graphql-codegen/plugin-helpers@^2.0 .0" , "@graphql-codegen/plugin-helpers@^2.3.0 ":
575
+ " @graphql-codegen/plugin-helpers@^2.3 .0" , "@graphql-codegen/plugin-helpers@^2.3.1 ":
576
576
version "2.3.1"
577
577
resolved "https://registry.yarnpkg.com/@graphql-codegen/plugin-helpers/-/plugin-helpers-2.3.1.tgz#b66c742d3209a85bc2f72f9e2eceb6b08fc81f85"
578
578
integrity sha512-rWH7igcjYqZ6rqNFTb4Wyp31863fRmmVpsRN8VHzBCltrepOO97jwTwB93aAw+T6Dm8aZto3QFfDIC79u8wA2Q==
636
636
auto-bind "~4.0.0"
637
637
tslib "~2.3.0"
638
638
639
- " @graphql-codegen/visitor-plugin-common@2.5.0" , "@graphql-codegen/visitor-plugin-common@^2.0.0" :
639
+ " @graphql-codegen/visitor-plugin-common@2.5.0 " :
640
640
version "2.5.0"
641
641
resolved "https://registry.yarnpkg.com/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-2.5.0.tgz#e412fade4ca3178a19e7ea122a4cb3463f2bf585"
642
642
integrity sha512-a1kJ/5YBivCj9X20YuhNU2mPY9xjUVmJO0VjHBu06PyvC27GsR1PmvgRALIXrb6QwV+9DDUda3ewKzgne2Qc+A==
652
652
parse-filepath "^1.0.2"
653
653
tslib "~2.3.0"
654
654
655
+ " @graphql-codegen/visitor-plugin-common@^2.5.1 " :
656
+ version "2.5.1"
657
+ resolved "https://registry.yarnpkg.com/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-2.5.1.tgz#4401bc401ff501b9b9330d1681e64685f519b327"
658
+ integrity sha512-hLnVB6u7qB1rIh9oJnGVWQmrUsXw3nEUMF+LGdf4b5qEWh5f9HSzciWMS6M47h4fSqpLyW4qgk2glH/DKwFgRA==
659
+ dependencies :
660
+ " @graphql-codegen/plugin-helpers" " ^2.3.0"
661
+ " @graphql-tools/optimize" " ^1.0.1"
662
+ " @graphql-tools/relay-operation-optimizer" " ^6.3.7"
663
+ " @graphql-tools/utils" " ^8.3.0"
664
+ auto-bind "~4.0.0"
665
+ change-case-all "1.0.14"
666
+ dependency-graph "^0.11.0"
667
+ graphql-tag "^2.11.0"
668
+ parse-filepath "^1.0.2"
669
+ tslib "~2.3.0"
670
+
655
671
" @graphql-tools/optimize@^1.0.1 " :
656
672
version "1.1.1"
657
673
resolved "https://registry.yarnpkg.com/@graphql-tools/optimize/-/optimize-1.1.1.tgz#dcd59ba1ee34431e5e9b086b57fe0bdb1a176669"
You can’t perform that action at this time.
0 commit comments