Skip to content

Commit

Permalink
Enhanced transform functionality to include compression
Browse files Browse the repository at this point in the history
  • Loading branch information
mindflowgo committed Nov 4, 2024
1 parent ca0952b commit fed8bf2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ async function getCompressedContent(

const data = await new Promise<Buffer>((resolve, reject) => {
zlib[transform.compress](content, (err: Error | null, result: Buffer) => {

Check failure on line 136 in src/utils.ts

View workflow job for this annotation

GitHub Actions / run type-check

Type 'undefined' cannot be used as an index type.
if (err) reject(err);
else resolve(result);
});
});
if (err) reject(err)
else resolve(result)
})
})

return { destExt, data }
}
Expand Down

0 comments on commit fed8bf2

Please sign in to comment.