fix(types): resolve remaining ArrayBuffer type issues in compression methods
- Use buffer.slice(0) to create proper ArrayBuffer copies - Fixes SharedArrayBuffer compatibility warnings in build
This commit is contained in:
parent
4c8b4c3248
commit
6effaaec74
1 changed files with 3 additions and 3 deletions
|
|
@ -374,11 +374,11 @@ export class ReadOnlyOptimizations {
|
|||
// Apply metadata compression
|
||||
switch (this.config.compression.metadataCompression) {
|
||||
case CompressionType.GZIP:
|
||||
return this.gzipCompress(data.buffer)
|
||||
return this.gzipCompress(data.buffer.slice(0))
|
||||
case CompressionType.BROTLI:
|
||||
return this.brotliCompress(data.buffer)
|
||||
return this.brotliCompress(data.buffer.slice(0))
|
||||
default:
|
||||
return data.buffer
|
||||
return data.buffer.slice(0)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue