()
| 64 | let zstd: ZStandard; |
| 65 | let Snappy: SnappyLib | null = null; |
| 66 | function loadSnappy() { |
| 67 | if (Snappy == null) { |
| 68 | const snappyImport = getSnappy(); |
| 69 | if ('kModuleError' in snappyImport) { |
| 70 | throw snappyImport.kModuleError; |
| 71 | } |
| 72 | Snappy = snappyImport; |
| 73 | } |
| 74 | return Snappy; |
| 75 | } |
| 76 | |
| 77 | // Facilitate compressing a message using an agreed compressor |
| 78 | export async function compress( |
no test coverage detected