File tree Expand file tree Collapse file tree 3 files changed +2
-27
lines changed Expand file tree Collapse file tree 3 files changed +2
-27
lines changed Original file line number Diff line number Diff line change 16
16
"prepack" : " bob prepack"
17
17
},
18
18
"dependencies" : {
19
- "clone-deep" : " 4.0.1" ,
20
19
"@graphql-eslint/types" : " 0.0.1" ,
21
20
"@graphql-tools/utils" : " 6.2.0"
22
21
},
23
22
"devDependencies" : {
24
- "@types/clone-deep" : " 4.0.1" ,
25
23
"@types/eslint" : " 7.2.2" ,
26
24
"bob-the-bundler" : " 1.1.0" ,
27
25
"graphql" : " 15.3.0" ,
Original file line number Diff line number Diff line change 6
6
visit ,
7
7
visitWithTypeInfo ,
8
8
} from "graphql" ;
9
- import cloneAst from "clone-deep" ;
10
9
11
10
export function convertToESTree < T extends ASTNode > (
12
11
node : T ,
@@ -25,7 +24,6 @@ function hasTypeField<T extends ASTNode>(
25
24
const convertNode = ( typeInfo ?: TypeInfo ) => < T extends ASTNode > (
26
25
node : T
27
26
) : GraphQLESTreeNode < T > => {
28
- const rawNode = cloneAst ( node ) ;
29
27
const commonFields = {
30
28
typeInfo : typeInfo
31
29
? {
@@ -56,7 +54,7 @@ const convertNode = (typeInfo?: TypeInfo) => <T extends ASTNode>(
56
54
...typeFieldSafe ,
57
55
...commonFields ,
58
56
type : node . kind ,
59
- rawNode,
57
+ rawNode : node ,
60
58
gqlLocation,
61
59
} as any as GraphQLESTreeNode < T > ;
62
60
@@ -68,7 +66,7 @@ const convertNode = (typeInfo?: TypeInfo) => <T extends ASTNode>(
68
66
...typeFieldSafe ,
69
67
...commonFields ,
70
68
type : node . kind ,
71
- rawNode,
69
+ rawNode : node ,
72
70
gqlLocation,
73
71
} as any as GraphQLESTreeNode < T > ;
74
72
Original file line number Diff line number Diff line change 788
788
dependencies :
789
789
" @babel/types" " ^7.3.0"
790
790
791
-
792
- version "4.0.1"
793
- resolved "https://registry.npmjs.org/@types/clone-deep/-/clone-deep-4.0.1.tgz#7c488443ab9f571cd343d774551b78e9264ea990"
794
- integrity sha512-bdkCSkyVHsgl3Goe1y16T9k6JuQx7SiDREkq728QjKmTZkGJZuS8R3gGcnGzVuGBP0mssKrzM/GlMOQxtip9cg==
795
-
796
791
" @types/color-name@^1.1.1 " :
797
792
version "1.1.1"
798
793
resolved "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0"
@@ -1512,15 +1507,6 @@ cliui@^6.0.0:
1512
1507
strip-ansi "^6.0.0"
1513
1508
wrap-ansi "^6.2.0"
1514
1509
1515
-
1516
- version "4.0.1"
1517
- resolved "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz#c19fd9bdbbf85942b4fd979c84dcf7d5f07c2387"
1518
- integrity sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==
1519
- dependencies :
1520
- is-plain-object "^2.0.4"
1521
- kind-of "^6.0.2"
1522
- shallow-clone "^3.0.0"
1523
-
1524
1510
co@^4.6.0 :
1525
1511
version "4.6.0"
1526
1512
resolved "https://registry.npmjs.org/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184"
@@ -4774,13 +4760,6 @@ set-value@^2.0.0, set-value@^2.0.1:
4774
4760
is-plain-object "^2.0.3"
4775
4761
split-string "^3.0.1"
4776
4762
4777
- shallow-clone@^3.0.0 :
4778
- version "3.0.1"
4779
- resolved "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz#8f2981ad92531f55035b01fb230769a40e02efa3"
4780
- integrity sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==
4781
- dependencies :
4782
- kind-of "^6.0.2"
4783
-
4784
4763
shebang-command@^1.2.0 :
4785
4764
version "1.2.0"
4786
4765
resolved "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea"
You can’t perform that action at this time.
0 commit comments