FRE-709: Document duplicate recovery wake - FRE-635 already recovered via FRE-708
This commit is contained in:
17
node_modules/postal-mime/src/pass-through-decoder.js
generated
vendored
Normal file
17
node_modules/postal-mime/src/pass-through-decoder.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
import { blobToArrayBuffer } from './decode-strings.js';
|
||||
|
||||
export default class PassThroughDecoder {
|
||||
constructor() {
|
||||
this.chunks = [];
|
||||
}
|
||||
|
||||
update(line) {
|
||||
this.chunks.push(line);
|
||||
this.chunks.push('\n');
|
||||
}
|
||||
|
||||
finalize() {
|
||||
// convert an array of arraybuffers into a blob and then back into a single arraybuffer
|
||||
return blobToArrayBuffer(new Blob(this.chunks, { type: 'application/octet-stream' }));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user