fix: zip file reader offset

This commit is contained in:
DecDuck
2025-08-13 16:22:48 +10:00
parent b67a67d809
commit 7ec5e9f215
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@drop-oss/droplet",
"version": "2.0.1",
"version": "2.0.2",
"main": "index.js",
"types": "index.d.ts",
"napi": {

View File

@ -121,7 +121,7 @@ impl<'a> Read for ZipFileWrapper<'a> {
}
impl<'a> Skippable for ZipFileWrapper<'a> {
fn skip(&mut self, amount: u64) {
io::copy(&mut self.reader.by_ref().take(amount), &mut Sink::default()).unwrap();
io::copy(&mut self.take(amount), &mut Sink::default()).unwrap();
}
}
impl<'a> MinimumFileObject for ZipFileWrapper<'a> {}