File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed
src/codegen/binary/json/__tests__ Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 5959 "@jsonjoy.com/buffers" : " ^1.0.0" ,
6060 "@jsonjoy.com/codegen" : " ^1.0.0" ,
6161 "@jsonjoy.com/json-expression" : " ^1.1.0" ,
62- "@jsonjoy.com/json-pack" : " ^1.9.1 " ,
62+ "@jsonjoy.com/json-pack" : " ^1.10.0 " ,
6363 "@jsonjoy.com/json-random" : " ^1.2.0" ,
6464 "@jsonjoy.com/util" : " ^1.9.0" ,
6565 "sonic-forest" : " ^1.2.1" ,
Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ test('can encode random values', () => {
1818 const fn = JsonCodegen . get ( type ) ;
1919 fn ( json , encoder ) ;
2020 const encoded = encoder . writer . flush ( ) ;
21- const decoded = parse ( Buffer . from ( encoded ) . toString ( 'utf-8' ) ) ;
21+ // const decoded = parse(Buffer.from(encoded).toString('utf-8'));
22+ const decoded = decoder . decode ( encoded ) ;
2223 expect ( decoded ) . toEqual ( json ) ;
2324 } catch ( error ) {
2425 console . log ( JSON . stringify ( json , null , 2 ) ) ;
Original file line number Diff line number Diff line change @@ -829,9 +829,9 @@ __metadata:
829829 languageName : node
830830 linkType : hard
831831
832- " @jsonjoy.com/json-pack@npm:^1.9.1 " :
833- version : 1.9.1
834- resolution : " @jsonjoy.com/json-pack@npm:1.9.1 "
832+ " @jsonjoy.com/json-pack@npm:^1.10.0 " :
833+ version : 1.10.0
834+ resolution : " @jsonjoy.com/json-pack@npm:1.10.0 "
835835 dependencies :
836836 " @jsonjoy.com/base64 " : " npm:^1.1.2"
837837 " @jsonjoy.com/buffers " : " npm:^1.0.0"
@@ -842,7 +842,7 @@ __metadata:
842842 thingies : " npm:^2.5.0"
843843 peerDependencies :
844844 tslib : 2
845- checksum : 10c0/af57a3863dada6762b413e8a745e17e95a7b84cef5e778320b5451cad2bca516e863ced4c934e2c7d2a5e5d0a6c8e08850579ac07ebad7be43b6ce31d93dd5d0
845+ checksum : 10c0/a7c701d1cf0f9585dcfec87d3d6a12a938b5268d5caba23eafa5fd63136cfcfb9be76a9ed6a663cf0fd499198a89fc7e8bc0ca44b4ddc00c6d001cc16f0ef9bc
846846 languageName : node
847847 linkType : hard
848848
@@ -887,7 +887,7 @@ __metadata:
887887 " @jsonjoy.com/buffers " : " npm:^1.0.0"
888888 " @jsonjoy.com/codegen " : " npm:^1.0.0"
889889 " @jsonjoy.com/json-expression " : " npm:^1.1.0"
890- " @jsonjoy.com/json-pack " : " npm:^1.9.1 "
890+ " @jsonjoy.com/json-pack " : " npm:^1.10.0 "
891891 " @jsonjoy.com/json-random " : " npm:^1.2.0"
892892 " @jsonjoy.com/util " : " npm:^1.9.0"
893893 " @types/benchmark " : " npm:^2.1.5"
You can’t perform that action at this time.
0 commit comments