mirror of
https://github.com/Drop-OSS/droplet.git
synced 2025-11-18 18:51:20 +10:00
add metadata about chunk length
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@drop/droplet",
|
"name": "@drop/droplet",
|
||||||
"version": "0.4.4",
|
"version": "0.4.5",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"types": "index.d.ts",
|
"types": "index.d.ts",
|
||||||
"napi": {
|
"napi": {
|
||||||
|
|||||||
@ -28,6 +28,7 @@ struct Chunk {
|
|||||||
file_name: String,
|
file_name: String,
|
||||||
chunk_index: u32,
|
chunk_index: u32,
|
||||||
checksum: String,
|
checksum: String,
|
||||||
|
length: usize,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[napi]
|
#[napi]
|
||||||
@ -104,6 +105,7 @@ pub fn generate_manifest(
|
|||||||
permissions: permissions,
|
permissions: permissions,
|
||||||
file_name: relative.to_str().unwrap().to_string(),
|
file_name: relative.to_str().unwrap().to_string(),
|
||||||
checksum: checksum_string,
|
checksum: checksum_string,
|
||||||
|
length: length,
|
||||||
};
|
};
|
||||||
|
|
||||||
chunks.push(chunk);
|
chunks.push(chunk);
|
||||||
|
|||||||
Reference in New Issue
Block a user