add metadata about chunk length

This commit is contained in:
DecDuck
2024-10-12 11:00:26 +11:00
parent d0e2dec318
commit 0ddd263d74
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -28,6 +28,7 @@ struct Chunk {
file_name: String,
chunk_index: u32,
checksum: String,
length: usize,
}
#[napi]
@ -104,6 +105,7 @@ pub fn generate_manifest(
permissions: permissions,
file_name: relative.to_str().unwrap().to_string(),
checksum: checksum_string,
length: length,
};
chunks.push(chunk);