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 247
247
"html-entities" : " ^2.3.2" ,
248
248
"html-react-parser" : " ^1.2.4" ,
249
249
"java-object-serialization" : " ^0.1.1" ,
250
- "jpickle" : " ^0.4.1" ,
251
250
"json-bigint" : " ^1.0.0" ,
252
251
"jsonpath" : " ^1.1.1" ,
253
252
"lodash" : " ^4.17.21" ,
254
253
"lz4js" : " ^0.2.0" ,
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 @@ -8997,11 +8997,6 @@ jest@^27.5.1:
8997
8997
import-local "^3.0.2"
8998
8998
jest-cli "^27.5.1"
8999
8999
9000
- jpickle@^0.4.1:
9001
- version "0.4.1"
9002
- resolved "https://registry.yarnpkg.com/jpickle/-/jpickle-0.4.1.tgz#17eea5d3624cccec38f86e89a059abd05952364a"
9003
- integrity sha512-XHSTQUtl/Yv2cNzeQ7NKFuK0Z3d1iqQC2iEwV0cu3/dG6PV3DgACEQ3wGagHRDV6MKzypPWwHVSDY8kBWkbfTA==
9004
-
9005
9000
js-base64@^2.4.9:
9006
9001
version "2.6.4"
9007
9002
resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-2.6.4.tgz#f4e686c5de1ea1f867dbcad3d46d969428df98c4"
@@ -11044,6 +11039,11 @@ php-serialize@^4.0.2:
11044
11039
resolved "https://registry.yarnpkg.com/php-serialize/-/php-serialize-4.0.2.tgz#869bd4e01c2d26ac41c1d3e8058ab00ec072e3e5"
11045
11040
integrity sha512-73K9MqCnRn07sXxOht6kVLg+fg1lf/VYpecKy4n9ABcw1PJIAWfaxuQKML27EjolGHWxlXTy3rfh59AGrcUvIA==
11046
11041
11042
+ pickleparser@^0.1.0:
11043
+ version "0.1.0"
11044
+ resolved "https://registry.yarnpkg.com/pickleparser/-/pickleparser-0.1.0.tgz#ea637e0c077c42bf41fe98f3608d633aeeaed2c6"
11045
+ integrity sha512-L81sYaXj6JlEOtVPwhXsEjlDQ0fjxPGf9ay4uBfQnsrR87mZ8SFQR/OD8kdqjQdeyMFcWyCMhx7WKZT1yZK7FQ==
11046
+
11047
11047
picocolors@^1.0.0:
11048
11048
version "1.0.0"
11049
11049
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c"
You can’t perform that action at this time.
0 commit comments