File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
redisinsight/ui/src/utils/formatters Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 246
246
"html-entities" : " ^2.3.2" ,
247
247
"html-react-parser" : " ^1.2.4" ,
248
248
"java-object-serialization" : " ^0.1.1" ,
249
- "jpickle" : " ^0.4.1" ,
250
249
"json-bigint" : " ^1.0.0" ,
251
250
"jsonpath" : " ^1.1.1" ,
252
251
"lodash" : " ^4.17.21" ,
253
252
"lz4js" : " ^0.2.0" ,
254
253
"msgpackr" : " ^1.9.7" ,
255
254
"pako" : " ^2.1.0" ,
256
255
"php-serialize" : " ^4.0.2" ,
256
+ "pickleparser" : " ^0.1.0" ,
257
257
"rawproto" : " ^0.7.6" ,
258
258
"react" : " ^18.2.0" ,
259
259
"react-contenteditable" : " ^3.3.5" ,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { Buffer } from 'buffer'
4
4
import { isUndefined } from 'lodash'
5
5
import { serialize , unserialize } from 'php-serialize'
6
6
import { getData } from 'rawproto'
7
- import { loads as loadsPickle } from 'jpickle '
7
+ import { Parser } from 'pickleparser '
8
8
import JSONBigInt from 'json-bigint'
9
9
10
10
import JSONViewer from 'uiSrc/components/json-viewer/JSONViewer'
@@ -108,7 +108,8 @@ const formattingBuffer = (
108
108
}
109
109
case KeyValueFormat . Pickle : {
110
110
try {
111
- const decoded = loadsPickle ( bufferToUTF8 ( reply ) )
111
+ const parser = new Parser ( )
112
+ const decoded = parser . parse ( new Uint8Array ( reply . data ) )
112
113
113
114
if ( isUndefined ( decoded ) ) {
114
115
return {
Original file line number Diff line number Diff line change @@ -9022,11 +9022,6 @@ jest@^27.5.1:
9022
9022
import-local "^3.0.2"
9023
9023
jest-cli "^27.5.1"
9024
9024
9025
- jpickle@^0.4.1:
9026
- version "0.4.1"
9027
- resolved "https://registry.yarnpkg.com/jpickle/-/jpickle-0.4.1.tgz#17eea5d3624cccec38f86e89a059abd05952364a"
9028
- integrity sha512-XHSTQUtl/Yv2cNzeQ7NKFuK0Z3d1iqQC2iEwV0cu3/dG6PV3DgACEQ3wGagHRDV6MKzypPWwHVSDY8kBWkbfTA==
9029
-
9030
9025
js-base64@^2.4.9:
9031
9026
version "2.6.4"
9032
9027
resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-2.6.4.tgz#f4e686c5de1ea1f867dbcad3d46d969428df98c4"
@@ -11095,6 +11090,11 @@ php-serialize@^4.0.2:
11095
11090
resolved "https://registry.yarnpkg.com/php-serialize/-/php-serialize-4.0.2.tgz#869bd4e01c2d26ac41c1d3e8058ab00ec072e3e5"
11096
11091
integrity sha512-73K9MqCnRn07sXxOht6kVLg+fg1lf/VYpecKy4n9ABcw1PJIAWfaxuQKML27EjolGHWxlXTy3rfh59AGrcUvIA==
11097
11092
11093
+ pickleparser@^0.1.0:
11094
+ version "0.1.0"
11095
+ resolved "https://registry.yarnpkg.com/pickleparser/-/pickleparser-0.1.0.tgz#ea637e0c077c42bf41fe98f3608d633aeeaed2c6"
11096
+ integrity sha512-L81sYaXj6JlEOtVPwhXsEjlDQ0fjxPGf9ay4uBfQnsrR87mZ8SFQR/OD8kdqjQdeyMFcWyCMhx7WKZT1yZK7FQ==
11097
+
11098
11098
picocolors@^1.0.0:
11099
11099
version "1.0.0"
11100
11100
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c"
You can’t perform that action at this time.
0 commit comments