File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
examples/basic/src/routes/serialization Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export function TestSerializationServer() {
1010 let serialized = renderToReadableStream ( original )
1111 // debug serialization
1212 if ( 0 ) {
13- serialized = serialized
13+ serialized = ( serialized as ReadableStream < Uint8Array < ArrayBuffer > > )
1414 . pipeThrough ( new TextDecoderStream ( ) )
1515 . pipeThrough (
1616 new TransformStream ( {
Original file line number Diff line number Diff line change @@ -19,7 +19,10 @@ export async function encryptActionBoundArgs(
1919) : Promise < string > {
2020 const serialized = renderToReadableStream ( originalValue )
2121 const serializedBuffer = await concatArrayStream ( serialized )
22- return encryptBuffer ( serializedBuffer , await getEncryptionKey ( ) )
22+ return encryptBuffer (
23+ serializedBuffer as BufferSource ,
24+ await getEncryptionKey ( ) ,
25+ )
2326}
2427
2528export async function decryptActionBoundArgs (
@@ -37,7 +40,7 @@ const getEncryptionKey = /* #__PURE__ */ once(async () => {
3740 const resolved = await encryptionKeySource ( )
3841 const key = await crypto . subtle . importKey (
3942 'raw' ,
40- fromBase64 ( resolved ) ,
43+ fromBase64 ( resolved ) as BufferSource ,
4144 {
4245 name : 'AES-GCM' ,
4346 } ,
You can’t perform that action at this time.
0 commit comments