1 Commits
Author SHA1 Message Date
Emi Midnight 87661cf871 check for both null AND undefined in stream writer (#44)
This fixes IDZ support when minime is run using a newer LTS version of
node js.
(Streams use null for the error argument now for write and end
callbacks)
2024-03-19 11:59:08 +01:00
+1 -1
View File
@@ -14,7 +14,7 @@ export default function makeWriter(stm: Writable) {
stm.write(buf, error => {
busy = false;
if (error !== undefined) {
if (error !== null && error !== undefined) {
reject(error);
} else {
resolve();