Skip to content

Commit a149fb0

Browse files
committedSep 25, 2020
handle deep mounted memo components properly
1 parent a4f83d3 commit a149fb0

File tree

5 files changed

+290
-3
lines changed

5 files changed

+290
-3
lines changed
 

‎src/mount.js

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import omitBy from 'lodash/omitBy';
22
import isNil from 'lodash/isNil';
3-
import {ForwardRef} from 'react-is';
3+
import {ForwardRef, Memo} from 'react-is';
44

55
import {typeName} from 'enzyme/build/Debug';
66
import {childrenOfNode, propsOfNode} from 'enzyme/build/RSTTraversal';
@@ -46,12 +46,19 @@ function internalNodeToJson(node, options) {
4646
}
4747

4848
if (Array.isArray(node)) {
49+
// enzyme does some funny stuff with memo function components turning the children
50+
// into an array resulting in undesirable snapshots
51+
if (node.length === 1) {
52+
return internalNodeToJson(node[0], options);
53+
}
4954
return node.map(child => internalNodeToJson(child, options));
5055
}
5156

5257
if (
5358
options.mode === 'deep' &&
54-
(typeof node.type === 'function' || node.type.$$typeof === ForwardRef)
59+
(typeof node.type === 'function' ||
60+
node.type.$$typeof === ForwardRef ||
61+
node.type.$$typeof === Memo)
5562
) {
5663
return internalNodeToJson(node.rendered, options);
5764
}

‎tests/__snapshots__/mount-deep.test.js.snap

+39
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,45 @@ exports[`excludes forwardRef node but renders wrapped component 1`] = `
244244
</div>
245245
`;
246246

247+
exports[`excludes memo node but renders wrapped component 1`] = `
248+
<div
249+
className="basic-memo foo"
250+
onClick={[Function]}
251+
>
252+
<div
253+
className="group"
254+
id="group-id"
255+
>
256+
<span
257+
className="empty"
258+
/>
259+
</div>
260+
</div>
261+
`;
262+
263+
exports[`excludes memo node but renders wrapped top level array properly 1`] = `
264+
Array [
265+
<div
266+
className="test"
267+
key="test"
268+
>
269+
Test
270+
</div>,
271+
<div
272+
className="test2"
273+
key="test2"
274+
>
275+
Test 2
276+
</div>,
277+
<div
278+
className="foo"
279+
key="test3"
280+
>
281+
Test 3
282+
</div>,
283+
]
284+
`;
285+
247286
exports[`handles a component which returns null 1`] = `""`;
248287

249288
exports[`includes undefined props 1`] = `

‎tests/fixtures/memo.js

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import React from 'react';
2+
3+
function BasicComponent(props) {
4+
return (
5+
<div
6+
className={`basic-memo ${props.className}`}
7+
onClick={function handleOnClick() {}}
8+
>
9+
<div id="group-id" className="group">
10+
<span className="empty" />
11+
</div>
12+
</div>
13+
);
14+
}
15+
16+
export const BasicMemo = React.memo(BasicComponent);
17+
18+
function ArrayRender(props) {
19+
return [
20+
<div className="test" key="test">
21+
Test
22+
</div>,
23+
<div className="test2" key="test2">
24+
Test 2
25+
</div>,
26+
<div className={props.className} key="test3">
27+
Test 3
28+
</div>,
29+
];
30+
}
31+
32+
export const ArrayMemo = React.memo(ArrayRender);

‎tests/mount-deep.test.js

+13
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import {
2020
ClassArrayRender,
2121
} from './fixtures/class';
2222
import {ForwardRefWithDefaultProps} from './fixtures/forwardRef';
23+
import {BasicMemo, ArrayMemo} from './fixtures/memo';
2324

2425
Enzyme.configure({adapter: new Adapter()});
2526
const deepOptions = {mode: 'deep'};
@@ -135,3 +136,15 @@ it('excludes forwardRef node but renders wrapped component', () => {
135136

136137
expect(mountToJson(mounted, deepOptions)).toMatchSnapshot();
137138
});
139+
140+
it.only('excludes memo node but renders wrapped component', () => {
141+
const mounted = mount(<BasicMemo className="foo" />);
142+
143+
expect(mountToJson(mounted, deepOptions)).toMatchSnapshot();
144+
});
145+
146+
it.only('excludes memo node but renders wrapped top level array properly', () => {
147+
const mounted = mount(<ArrayMemo className="foo" />);
148+
149+
expect(mountToJson(mounted, deepOptions)).toMatchSnapshot();
150+
});

‎yarn.lock

+197-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,14 @@
2525
dependencies:
2626
"@babel/highlight" "^7.0.0"
2727

28-
"@babel/core@^7.1.0", "@babel/core@^7.7.2":
28+
"@babel/code-frame@^7.10.4":
29+
version "7.10.4"
30+
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.10.4.tgz#168da1a36e90da68ae8d49c0f1b48c7c6249213a"
31+
integrity sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==
32+
dependencies:
33+
"@babel/highlight" "^7.10.4"
34+
35+
"@babel/core@^7.1.0":
2936
version "7.7.2"
3037
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.7.2.tgz#ea5b99693bcfc058116f42fa1dd54da412b29d91"
3138
integrity sha512-eeD7VEZKfhK1KUXGiyPFettgF3m513f8FoBSWiQ1xTvl1RAopLs42Wp9+Ze911I6H0N9lNqJMDgoZT7gHsipeQ==
@@ -45,6 +52,37 @@
4552
semver "^5.4.1"
4653
source-map "^0.5.0"
4754

55+
"@babel/core@^7.11.2":
56+
version "7.11.6"
57+
resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.11.6.tgz#3a9455dc7387ff1bac45770650bc13ba04a15651"
58+
integrity sha512-Wpcv03AGnmkgm6uS6k8iwhIwTrcP0m17TL1n1sy7qD0qelDu4XNeW0dN0mHfa+Gei211yDaLoEe/VlbXQzM4Bg==
59+
dependencies:
60+
"@babel/code-frame" "^7.10.4"
61+
"@babel/generator" "^7.11.6"
62+
"@babel/helper-module-transforms" "^7.11.0"
63+
"@babel/helpers" "^7.10.4"
64+
"@babel/parser" "^7.11.5"
65+
"@babel/template" "^7.10.4"
66+
"@babel/traverse" "^7.11.5"
67+
"@babel/types" "^7.11.5"
68+
convert-source-map "^1.7.0"
69+
debug "^4.1.0"
70+
gensync "^1.0.0-beta.1"
71+
json5 "^2.1.2"
72+
lodash "^4.17.19"
73+
resolve "^1.3.2"
74+
semver "^5.4.1"
75+
source-map "^0.5.0"
76+
77+
"@babel/generator@^7.11.5", "@babel/generator@^7.11.6":
78+
version "7.11.6"
79+
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.11.6.tgz#b868900f81b163b4d464ea24545c61cbac4dc620"
80+
integrity sha512-DWtQ1PV3r+cLbySoHrwn9RWEgKMBLLma4OBQloPRyDYvc5msJM9kvTLo1YnlJd1P/ZuKbdli3ijr5q3FvAF3uA==
81+
dependencies:
82+
"@babel/types" "^7.11.5"
83+
jsesc "^2.5.1"
84+
source-map "^0.5.0"
85+
4886
"@babel/generator@^7.4.0", "@babel/generator@^7.7.2":
4987
version "7.7.2"
5088
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.7.2.tgz#2f4852d04131a5e17ea4f6645488b5da66ebf3af"
@@ -112,6 +150,15 @@
112150
"@babel/traverse" "^7.7.0"
113151
"@babel/types" "^7.7.0"
114152

153+
"@babel/helper-function-name@^7.10.4":
154+
version "7.10.4"
155+
resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.10.4.tgz#d2d3b20c59ad8c47112fa7d2a94bc09d5ef82f1a"
156+
integrity sha512-YdaSyz1n8gY44EmN7x44zBn9zQ1Ry2Y+3GTA+3vH6Mizke1Vw0aWDM66FOYEPw8//qKkmqOckrGgTYa+6sceqQ==
157+
dependencies:
158+
"@babel/helper-get-function-arity" "^7.10.4"
159+
"@babel/template" "^7.10.4"
160+
"@babel/types" "^7.10.4"
161+
115162
"@babel/helper-function-name@^7.7.0":
116163
version "7.7.0"
117164
resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.7.0.tgz#44a5ad151cfff8ed2599c91682dda2ec2c8430a3"
@@ -128,20 +175,41 @@
128175
dependencies:
129176
"@babel/types" "^7.7.0"
130177

178+
"@babel/helper-get-function-arity@^7.10.4":
179+
version "7.10.4"
180+
resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.4.tgz#98c1cbea0e2332f33f9a4661b8ce1505b2c19ba2"
181+
integrity sha512-EkN3YDB+SRDgiIUnNgcmiD361ti+AVbL3f3Henf6dqqUyr5dMsorno0lJWJuLhDhkI5sYEpgj6y9kB8AOU1I2A==
182+
dependencies:
183+
"@babel/types" "^7.10.4"
184+
131185
"@babel/helper-hoist-variables@^7.7.0":
132186
version "7.7.0"
133187
resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.7.0.tgz#b4552e4cfe5577d7de7b183e193e84e4ec538c81"
134188
integrity sha512-LUe/92NqsDAkJjjCEWkNe+/PcpnisvnqdlRe19FahVapa4jndeuJ+FBiTX1rcAKWKcJGE+C3Q3tuEuxkSmCEiQ==
135189
dependencies:
136190
"@babel/types" "^7.7.0"
137191

192+
"@babel/helper-member-expression-to-functions@^7.10.4":
193+
version "7.11.0"
194+
resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.11.0.tgz#ae69c83d84ee82f4b42f96e2a09410935a8f26df"
195+
integrity sha512-JbFlKHFntRV5qKw3YC0CvQnDZ4XMwgzzBbld7Ly4Mj4cbFy3KywcR8NtNctRToMWJOVvLINJv525Gd6wwVEx/Q==
196+
dependencies:
197+
"@babel/types" "^7.11.0"
198+
138199
"@babel/helper-member-expression-to-functions@^7.7.0":
139200
version "7.7.0"
140201
resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.7.0.tgz#472b93003a57071f95a541ea6c2b098398bcad8a"
141202
integrity sha512-QaCZLO2RtBcmvO/ekOLp8p7R5X2JriKRizeDpm5ChATAFWrrYDcDxPuCIBXKyBjY+i1vYSdcUTMIb8psfxHDPA==
142203
dependencies:
143204
"@babel/types" "^7.7.0"
144205

206+
"@babel/helper-module-imports@^7.10.4":
207+
version "7.10.4"
208+
resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.10.4.tgz#4c5c54be04bd31670a7382797d75b9fa2e5b5620"
209+
integrity sha512-nEQJHqYavI217oD9+s5MUBzk6x1IlvoS9WTPfgG43CbMEeStE0v+r+TucWdx8KFGowPGvyOkDT9+7DHedIDnVw==
210+
dependencies:
211+
"@babel/types" "^7.10.4"
212+
145213
"@babel/helper-module-imports@^7.7.0":
146214
version "7.7.0"
147215
resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.7.0.tgz#99c095889466e5f7b6d66d98dffc58baaf42654d"
@@ -161,6 +229,26 @@
161229
"@babel/types" "^7.7.0"
162230
lodash "^4.17.13"
163231

232+
"@babel/helper-module-transforms@^7.11.0":
233+
version "7.11.0"
234+
resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.11.0.tgz#b16f250229e47211abdd84b34b64737c2ab2d359"
235+
integrity sha512-02EVu8COMuTRO1TAzdMtpBPbe6aQ1w/8fePD2YgQmxZU4gpNWaL9gK3Jp7dxlkUlUCJOTaSeA+Hrm1BRQwqIhg==
236+
dependencies:
237+
"@babel/helper-module-imports" "^7.10.4"
238+
"@babel/helper-replace-supers" "^7.10.4"
239+
"@babel/helper-simple-access" "^7.10.4"
240+
"@babel/helper-split-export-declaration" "^7.11.0"
241+
"@babel/template" "^7.10.4"
242+
"@babel/types" "^7.11.0"
243+
lodash "^4.17.19"
244+
245+
"@babel/helper-optimise-call-expression@^7.10.4":
246+
version "7.10.4"
247+
resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.10.4.tgz#50dc96413d594f995a77905905b05893cd779673"
248+
integrity sha512-n3UGKY4VXwXThEiKrgRAoVPBMqeoPgHVqiHZOanAJCG9nQUL2pLRQirUzl0ioKclHGpGqRgIOkgcIJaIWLpygg==
249+
dependencies:
250+
"@babel/types" "^7.10.4"
251+
164252
"@babel/helper-optimise-call-expression@^7.7.0":
165253
version "7.7.0"
166254
resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.7.0.tgz#4f66a216116a66164135dc618c5d8b7a959f9365"
@@ -191,6 +279,16 @@
191279
"@babel/traverse" "^7.7.0"
192280
"@babel/types" "^7.7.0"
193281

282+
"@babel/helper-replace-supers@^7.10.4":
283+
version "7.10.4"
284+
resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.10.4.tgz#d585cd9388ea06e6031e4cd44b6713cbead9e6cf"
285+
integrity sha512-sPxZfFXocEymYTdVK1UNmFPBN+Hv5mJkLPsYWwGBxZAxaWfFu+xqp7b6qWD0yjNuNL2VKc6L5M18tOXUP7NU0A==
286+
dependencies:
287+
"@babel/helper-member-expression-to-functions" "^7.10.4"
288+
"@babel/helper-optimise-call-expression" "^7.10.4"
289+
"@babel/traverse" "^7.10.4"
290+
"@babel/types" "^7.10.4"
291+
194292
"@babel/helper-replace-supers@^7.5.5", "@babel/helper-replace-supers@^7.7.0":
195293
version "7.7.0"
196294
resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.7.0.tgz#d5365c8667fe7cbd13b8ddddceb9bd7f2b387512"
@@ -201,6 +299,14 @@
201299
"@babel/traverse" "^7.7.0"
202300
"@babel/types" "^7.7.0"
203301

302+
"@babel/helper-simple-access@^7.10.4":
303+
version "7.10.4"
304+
resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.10.4.tgz#0f5ccda2945277a2a7a2d3a821e15395edcf3461"
305+
integrity sha512-0fMy72ej/VEvF8ULmX6yb5MtHG4uH4Dbd6I/aHDb/JVg0bbivwt9Wg+h3uMvX+QSFtwr5MeItvazbrc4jtRAXw==
306+
dependencies:
307+
"@babel/template" "^7.10.4"
308+
"@babel/types" "^7.10.4"
309+
204310
"@babel/helper-simple-access@^7.7.0":
205311
version "7.7.0"
206312
resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.7.0.tgz#97a8b6c52105d76031b86237dc1852b44837243d"
@@ -209,13 +315,25 @@
209315
"@babel/template" "^7.7.0"
210316
"@babel/types" "^7.7.0"
211317

318+
"@babel/helper-split-export-declaration@^7.11.0":
319+
version "7.11.0"
320+
resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.11.0.tgz#f8a491244acf6a676158ac42072911ba83ad099f"
321+
integrity sha512-74Vejvp6mHkGE+m+k5vHY93FX2cAtrw1zXrZXRlG4l410Nm9PxfEiVTn1PjDPV5SnmieiueY4AFg2xqhNFuuZg==
322+
dependencies:
323+
"@babel/types" "^7.11.0"
324+
212325
"@babel/helper-split-export-declaration@^7.7.0":
213326
version "7.7.0"
214327
resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.0.tgz#1365e74ea6c614deeb56ebffabd71006a0eb2300"
215328
integrity sha512-HgYSI8rH08neWlAH3CcdkFg9qX9YsZysZI5GD8LjhQib/mM0jGOZOVkoUiiV2Hu978fRtjtsGsW6w0pKHUWtqA==
216329
dependencies:
217330
"@babel/types" "^7.7.0"
218331

332+
"@babel/helper-validator-identifier@^7.10.4":
333+
version "7.10.4"
334+
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.4.tgz#a78c7a7251e01f616512d31b10adcf52ada5e0d2"
335+
integrity sha512-3U9y+43hz7ZM+rzG24Qe2mufW5KhvFg/NhnNph+i9mgCtdTCtMJuI1TMkrIUiK7Ix4PYlRF9I5dhqaLYA/ADXw==
336+
219337
"@babel/helper-wrap-function@^7.7.0":
220338
version "7.7.0"
221339
resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.7.0.tgz#15af3d3e98f8417a60554acbb6c14e75e0b33b74"
@@ -226,6 +344,15 @@
226344
"@babel/traverse" "^7.7.0"
227345
"@babel/types" "^7.7.0"
228346

347+
"@babel/helpers@^7.10.4":
348+
version "7.10.4"
349+
resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.10.4.tgz#2abeb0d721aff7c0a97376b9e1f6f65d7a475044"
350+
integrity sha512-L2gX/XeUONeEbI78dXSrJzGdz4GQ+ZTA/aazfUsFaWjSe95kiCuOZ5HsXvkiw3iwF+mFHSRUfJU8t6YavocdXA==
351+
dependencies:
352+
"@babel/template" "^7.10.4"
353+
"@babel/traverse" "^7.10.4"
354+
"@babel/types" "^7.10.4"
355+
229356
"@babel/helpers@^7.7.0":
230357
version "7.7.0"
231358
resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.7.0.tgz#359bb5ac3b4726f7c1fde0ec75f64b3f4275d60b"
@@ -244,11 +371,25 @@
244371
esutils "^2.0.2"
245372
js-tokens "^4.0.0"
246373

374+
"@babel/highlight@^7.10.4":
375+
version "7.10.4"
376+
resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.10.4.tgz#7d1bdfd65753538fabe6c38596cdb76d9ac60143"
377+
integrity sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==
378+
dependencies:
379+
"@babel/helper-validator-identifier" "^7.10.4"
380+
chalk "^2.0.0"
381+
js-tokens "^4.0.0"
382+
247383
"@babel/parser@^7.1.0", "@babel/parser@^7.4.3", "@babel/parser@^7.7.0", "@babel/parser@^7.7.2":
248384
version "7.7.2"
249385
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.7.2.tgz#ea8334dc77416bfd9473eb470fd00d8245b3943b"
250386
integrity sha512-DDaR5e0g4ZTb9aP7cpSZLkACEBdoLGwJDWgHtBhrGX7Q1RjhdoMOfexICj5cqTAtpowjGQWfcvfnQG7G2kAB5w==
251387

388+
"@babel/parser@^7.10.4", "@babel/parser@^7.11.5":
389+
version "7.11.5"
390+
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.11.5.tgz#c7ff6303df71080ec7a4f5b8c003c58f1cf51037"
391+
integrity sha512-X9rD8qqm695vgmeaQ4fvz/o3+Wk4ZzQvSHkDBgpYKxpD4qTAUm88ZKtHkVqIOsYFFbIQ6wQYhC6q7pjqVK0E0Q==
392+
252393
"@babel/plugin-proposal-async-generator-functions@^7.7.0":
253394
version "7.7.0"
254395
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.7.0.tgz#83ef2d6044496b4c15d8b4904e2219e6dccc6971"
@@ -691,6 +832,15 @@
691832
"@babel/plugin-transform-react-jsx-self" "^7.0.0"
692833
"@babel/plugin-transform-react-jsx-source" "^7.0.0"
693834

835+
"@babel/template@^7.10.4":
836+
version "7.10.4"
837+
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.10.4.tgz#3251996c4200ebc71d1a8fc405fba940f36ba278"
838+
integrity sha512-ZCjD27cGJFUB6nmCB1Enki3r+L5kJveX9pq1SvAUKoICy6CZ9yD8xO086YXdYhvNjBdnekm4ZnaP5yC8Cs/1tA==
839+
dependencies:
840+
"@babel/code-frame" "^7.10.4"
841+
"@babel/parser" "^7.10.4"
842+
"@babel/types" "^7.10.4"
843+
694844
"@babel/template@^7.4.0", "@babel/template@^7.7.0":
695845
version "7.7.0"
696846
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.7.0.tgz#4fadc1b8e734d97f56de39c77de76f2562e597d0"
@@ -715,6 +865,21 @@
715865
globals "^11.1.0"
716866
lodash "^4.17.13"
717867

868+
"@babel/traverse@^7.10.4", "@babel/traverse@^7.11.5":
869+
version "7.11.5"
870+
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.11.5.tgz#be777b93b518eb6d76ee2e1ea1d143daa11e61c3"
871+
integrity sha512-EjiPXt+r7LiCZXEfRpSJd+jUMnBd4/9OUv7Nx3+0u9+eimMwJmG0Q98lw4/289JCoxSE8OolDMNZaaF/JZ69WQ==
872+
dependencies:
873+
"@babel/code-frame" "^7.10.4"
874+
"@babel/generator" "^7.11.5"
875+
"@babel/helper-function-name" "^7.10.4"
876+
"@babel/helper-split-export-declaration" "^7.11.0"
877+
"@babel/parser" "^7.11.5"
878+
"@babel/types" "^7.11.5"
879+
debug "^4.1.0"
880+
globals "^11.1.0"
881+
lodash "^4.17.19"
882+
718883
"@babel/types@^7.0.0", "@babel/types@^7.3.0", "@babel/types@^7.4.0", "@babel/types@^7.7.0", "@babel/types@^7.7.1", "@babel/types@^7.7.2":
719884
version "7.7.2"
720885
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.7.2.tgz#550b82e5571dcd174af576e23f0adba7ffc683f7"
@@ -724,6 +889,15 @@
724889
lodash "^4.17.13"
725890
to-fast-properties "^2.0.0"
726891

892+
"@babel/types@^7.10.4", "@babel/types@^7.11.0", "@babel/types@^7.11.5":
893+
version "7.11.5"
894+
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.11.5.tgz#d9de577d01252d77c6800cee039ee64faf75662d"
895+
integrity sha512-bvM7Qz6eKnJVFIn+1LPtjlBFPVN5jNDc1XmN15vWe7Q3DPBufWWsLiIvUu7xW87uTG6QoggpIDnUgLQvPheU+Q==
896+
dependencies:
897+
"@babel/helper-validator-identifier" "^7.10.4"
898+
lodash "^4.17.19"
899+
to-fast-properties "^2.0.0"
900+
727901
"@cnakazawa/watch@^1.0.3":
728902
version "1.0.3"
729903
resolved "https://registry.yarnpkg.com/@cnakazawa/watch/-/watch-1.0.3.tgz#099139eaec7ebf07a27c1786a3ff64f39464d2ef"
@@ -2498,6 +2672,11 @@ gauge@~2.7.3:
24982672
strip-ansi "^3.0.1"
24992673
wide-align "^1.1.0"
25002674

2675+
gensync@^1.0.0-beta.1:
2676+
version "1.0.0-beta.1"
2677+
resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.1.tgz#58f4361ff987e5ff6e1e7a210827aa371eaac269"
2678+
integrity sha512-r8EC6NO1sngH/zdD9fiRDLdcgnbayXah+mLgManTaIZJqEC1MZstmnox8KpnI2/fxQwrp5OpCOYWLp4rBl4Jcg==
2679+
25012680
get-caller-file@^2.0.1:
25022681
version "2.0.5"
25032682
resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e"
@@ -3515,6 +3694,13 @@ json5@^2.1.0:
35153694
dependencies:
35163695
minimist "^1.2.0"
35173696

3697+
json5@^2.1.2:
3698+
version "2.1.3"
3699+
resolved "https://registry.yarnpkg.com/json5/-/json5-2.1.3.tgz#c9b0f7fa9233bfe5807fe66fcf3a5617ed597d43"
3700+
integrity sha512-KXPvOm8K9IJKFM0bmdn8QXh7udDh1g/giieX0NLCaMnb4hEiVFqnop2ImTXCc5e0/oHz3LTqmHGtExn5hfMkOA==
3701+
dependencies:
3702+
minimist "^1.2.5"
3703+
35183704
jsprim@^1.2.2:
35193705
version "1.4.1"
35203706
resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2"
@@ -3641,6 +3827,11 @@ lodash@^4.15.0, lodash@^4.17.13, lodash@^4.17.15, lodash@^4.17.4, lodash@^4.3.0:
36413827
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548"
36423828
integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==
36433829

3830+
lodash@^4.17.19:
3831+
version "4.17.20"
3832+
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52"
3833+
integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==
3834+
36443835
loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.4.0:
36453836
version "1.4.0"
36463837
resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"
@@ -3741,6 +3932,11 @@ minimist@^1.1.1, minimist@^1.2.0:
37413932
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
37423933
integrity sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=
37433934

3935+
minimist@^1.2.5:
3936+
version "1.2.5"
3937+
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602"
3938+
integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==
3939+
37443940
minimist@~0.0.1:
37453941
version "0.0.10"
37463942
resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf"

0 commit comments

Comments
 (0)
Please sign in to comment.