exarch-rs 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/native/exarch-rs.darwin-arm64.node +0 -0
- package/native/exarch-rs.darwin-x64.node +0 -0
- package/native/exarch-rs.linux-arm64-gnu.node +0 -0
- package/native/exarch-rs.linux-x64-gnu.node +0 -0
- package/native/exarch-rs.win32-x64-msvc.node +0 -0
- package/package.json +3 -3
- package/src/report.rs +2 -2
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "exarch-rs",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Memory-safe archive extraction library with built-in security validation",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@biomejs/biome": "^2.
|
|
40
|
-
"@napi-rs/cli": "^3.
|
|
39
|
+
"@biomejs/biome": "^2.4.15",
|
|
40
|
+
"@napi-rs/cli": "^3.6.2"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">= 18"
|
package/src/report.rs
CHANGED
|
@@ -285,7 +285,7 @@ mod tests {
|
|
|
285
285
|
core_report.files_extracted = 100_000;
|
|
286
286
|
core_report.directories_created = 50_000;
|
|
287
287
|
core_report.bytes_written = 10_000_000_000; // 10 GB
|
|
288
|
-
core_report.duration = Duration::
|
|
288
|
+
core_report.duration = Duration::from_hours(1);
|
|
289
289
|
|
|
290
290
|
let report = ExtractionReport::from(core_report);
|
|
291
291
|
|
|
@@ -312,7 +312,7 @@ mod tests {
|
|
|
312
312
|
#[test]
|
|
313
313
|
fn test_extraction_report_duration_hours() {
|
|
314
314
|
let mut core_report = CoreReport::new();
|
|
315
|
-
core_report.duration = Duration::
|
|
315
|
+
core_report.duration = Duration::from_hours(2);
|
|
316
316
|
|
|
317
317
|
let report = ExtractionReport::from(core_report);
|
|
318
318
|
|