Skip to content

Commit 3c4df9d

Browse files
authored
build(server-api): upgrade pretty-format to 29.7.0 (#2656)
1 parent e2888d2 commit 3c4df9d

File tree

3 files changed

+47
-6
lines changed

3 files changed

+47
-6
lines changed

packages/cli-server-api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"errorhandler": "^1.5.1",
1515
"nocache": "^3.0.1",
1616
"open": "^6.2.0",
17-
"pretty-format": "^26.6.2",
17+
"pretty-format": "^29.7.0",
1818
"serve-static": "^1.13.1",
1919
"ws": "^6.2.3"
2020
},

packages/cli-server-api/src/websocket/createEventsSocketEndpoint.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {Server as WebSocketServer} from 'ws';
22
import {logger} from '@react-native-community/cli-tools';
3-
import prettyFormat from 'pretty-format';
3+
import prettyFormat, {plugins} from 'pretty-format';
44

55
/**
66
* The eventsSocket websocket listens at the 'events/` for websocket
@@ -87,7 +87,7 @@ function serializeMessage(message: any) {
8787
highlight: true,
8888
maxDepth: 3,
8989
min: true,
90-
plugins: [prettyFormat.plugins.ReactElement],
90+
plugins: [plugins.ReactElement],
9191
}),
9292
),
9393
};

yarn.lock

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1425,6 +1425,13 @@
14251425
dependencies:
14261426
"@sinclair/typebox" "^0.27.8"
14271427

1428+
"@jest/schemas@^29.6.3":
1429+
version "29.6.3"
1430+
resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-29.6.3.tgz#430b5ce8a4e0044a7e3819663305a7b3091c8e03"
1431+
integrity sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==
1432+
dependencies:
1433+
"@sinclair/typebox" "^0.27.8"
1434+
14281435
"@jest/source-map@^25.2.1":
14291436
version "25.2.1"
14301437
resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-25.2.1.tgz#b62ecf8ae76170b08eff8859b56eb7576df34ab8"
@@ -8613,6 +8620,15 @@ pretty-format@^29.6.2:
86138620
ansi-styles "^5.0.0"
86148621
react-is "^18.0.0"
86158622

8623+
pretty-format@^29.7.0:
8624+
version "29.7.0"
8625+
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-29.7.0.tgz#ca42c758310f365bfa71a0bda0a807160b776812"
8626+
integrity sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==
8627+
dependencies:
8628+
"@jest/schemas" "^29.6.3"
8629+
ansi-styles "^5.0.0"
8630+
react-is "^18.0.0"
8631+
86168632
private@^0.1.8:
86178633
version "0.1.8"
86188634
resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff"
@@ -9701,7 +9717,16 @@ string-natural-compare@^3.0.1:
97019717
resolved "https://registry.yarnpkg.com/string-natural-compare/-/string-natural-compare-3.0.1.tgz#7a42d58474454963759e8e8b7ae63d71c1e7fdf4"
97029718
integrity sha512-n3sPwynL1nwKi3WJ6AIsClwBMa0zTi54fn2oLU6ndfTSIO05xaznjSf15PcBZU6FNWbmN5Q6cxT4V5hGvB4taw==
97039719

9704-
"string-width-cjs@npm:string-width@^4.2.0", "string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
9720+
"string-width-cjs@npm:string-width@^4.2.0":
9721+
version "4.2.3"
9722+
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
9723+
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
9724+
dependencies:
9725+
emoji-regex "^8.0.0"
9726+
is-fullwidth-code-point "^3.0.0"
9727+
strip-ansi "^6.0.1"
9728+
9729+
"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
97059730
version "4.2.3"
97069731
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
97079732
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -9796,7 +9821,7 @@ string_decoder@~1.1.1:
97969821
dependencies:
97979822
safe-buffer "~5.1.0"
97989823

9799-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
9824+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
98009825
version "6.0.1"
98019826
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
98029827
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -9817,6 +9842,13 @@ strip-ansi@^5.0.0:
98179842
dependencies:
98189843
ansi-regex "^4.1.0"
98199844

9845+
strip-ansi@^6.0.0, strip-ansi@^6.0.1:
9846+
version "6.0.1"
9847+
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
9848+
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
9849+
dependencies:
9850+
ansi-regex "^5.0.1"
9851+
98209852
strip-ansi@^7.0.1:
98219853
version "7.0.1"
98229854
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.0.1.tgz#61740a08ce36b61e50e65653f07060d000975fb2"
@@ -10665,7 +10697,7 @@ wordwrap@^1.0.0:
1066510697
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb"
1066610698
integrity sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=
1066710699

10668-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
10700+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
1066910701
version "7.0.0"
1067010702
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
1067110703
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
@@ -10683,6 +10715,15 @@ wrap-ansi@^6.0.1, wrap-ansi@^6.2.0:
1068310715
string-width "^4.1.0"
1068410716
strip-ansi "^6.0.0"
1068510717

10718+
wrap-ansi@^7.0.0:
10719+
version "7.0.0"
10720+
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
10721+
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
10722+
dependencies:
10723+
ansi-styles "^4.0.0"
10724+
string-width "^4.1.0"
10725+
strip-ansi "^6.0.0"
10726+
1068610727
wrap-ansi@^8.1.0:
1068710728
version "8.1.0"
1068810729
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"

0 commit comments

Comments
 (0)