File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -34,14 +34,14 @@ async function main () {
3434 const encrypt = async (
3535 key : ArrayBuffer ,
3636 plainText : ArrayBuffer
37- ): Promise < ArrayBuffer > {
37+ ): Promise <ArrayBuffer > => {
3838 return plainText ;
3939 };
4040
4141 const decrypt = async (
4242 key : ArrayBuffer ,
4343 cipherText : ArrayBuffer
44- ): Promise < ArrayBuffer | undefined > {
44+ ): Promise <ArrayBuffer | undefined > => {
4545 return cipherText ;
4646 }
4747
@@ -63,9 +63,11 @@ async function main () {
6363
6464 await db .del ([' level' , Buffer .from ([0x30 , 0x32 ]), ' c' ]);
6565
66- for await (const [kP, v] of db .iterator ({
67- lt: [Buffer .from ([0x30 , 0x32 ]), ' ' ],
68- }, [' level' ])) {
66+ for await (const [kP, v] of db .iterator (
67+ [' level' ],
68+ {
69+ lt: [Buffer .from ([0x30 , 0x32 ]), ' ' ],
70+ })) {
6971 console .log (kP , v );
7072 }
7173
You can’t perform that action at this time.
0 commit comments