smoldot 2.0.7 → 2.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/internals/bytecode/wasm0.js +1 -1
- package/dist/cjs/internals/bytecode/wasm1.js +1 -1
- package/dist/cjs/internals/bytecode/wasm2.js +1 -1
- package/dist/cjs/internals/client.d.ts +0 -1
- package/dist/cjs/internals/local-instance.d.ts +0 -1
- package/dist/cjs/internals/local-instance.js +1 -2
- package/dist/cjs/no-auto-bytecode-browser.js +0 -1
- package/dist/mjs/internals/bytecode/wasm0.js +1 -1
- package/dist/mjs/internals/bytecode/wasm1.js +1 -1
- package/dist/mjs/internals/bytecode/wasm2.js +1 -1
- package/dist/mjs/internals/client.d.ts +0 -1
- package/dist/mjs/internals/local-instance.d.ts +0 -1
- package/dist/mjs/internals/local-instance.js +1 -2
- package/dist/mjs/no-auto-bytecode-browser.js +0 -1
- package/package.json +1 -1
|
@@ -120,7 +120,6 @@ export interface ConnectionConfig {
|
|
|
120
120
|
onMultistreamHandshakeInfo: (info: {
|
|
121
121
|
handshake: 'webrtc';
|
|
122
122
|
localTlsCertificateSha256: Uint8Array;
|
|
123
|
-
remoteTlsCertificateSha256: Uint8Array;
|
|
124
123
|
}) => void;
|
|
125
124
|
/**
|
|
126
125
|
* Callback called when the connection transitions to the `Reset` state.
|
|
@@ -106,7 +106,6 @@ export interface Instance {
|
|
|
106
106
|
connectionMultiStreamSetHandshakeInfo: (connectionId: number, info: {
|
|
107
107
|
handshake: 'webrtc';
|
|
108
108
|
localTlsCertificateSha256: Uint8Array;
|
|
109
|
-
remoteTlsCertificateSha256: Uint8Array;
|
|
110
109
|
}) => void;
|
|
111
110
|
connectionReset: (connectionId: number, message: string) => void;
|
|
112
111
|
streamWritableBytes: (connectionId: number, numExtra: number, streamId?: number) => void;
|
|
@@ -404,10 +404,9 @@ export function startLocalInstance(config, wasmModule, eventCallback) {
|
|
|
404
404
|
connectionMultiStreamSetHandshakeInfo: (connectionId, info) => {
|
|
405
405
|
if (!state.instance)
|
|
406
406
|
return;
|
|
407
|
-
const handshakeTy = new Uint8Array(1 + info.localTlsCertificateSha256.length
|
|
407
|
+
const handshakeTy = new Uint8Array(1 + info.localTlsCertificateSha256.length);
|
|
408
408
|
buffer.writeUInt8(handshakeTy, 0, 0);
|
|
409
409
|
handshakeTy.set(info.localTlsCertificateSha256, 1);
|
|
410
|
-
handshakeTy.set(info.remoteTlsCertificateSha256, 1 + info.localTlsCertificateSha256.length);
|
|
411
410
|
state.bufferIndices[0] = handshakeTy;
|
|
412
411
|
state.instance.exports.connection_multi_stream_set_handshake_info(connectionId, 0);
|
|
413
412
|
delete state.bufferIndices[0];
|