exarch-rs 0.2.9 → 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.
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exarch-rs",
3
- "version": "0.2.9",
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",
@@ -35,6 +35,13 @@
35
35
  "defaults": true
36
36
  }
37
37
  },
38
+ "devDependencies": {
39
+ "@biomejs/biome": "^2.4.15",
40
+ "@napi-rs/cli": "^3.6.2"
41
+ },
42
+ "engines": {
43
+ "node": ">= 18"
44
+ },
38
45
  "scripts": {
39
46
  "build": "napi build --platform --release",
40
47
  "build:debug": "napi build --platform",
@@ -46,12 +53,5 @@
46
53
  "lint:fix": "biome lint --write .",
47
54
  "check": "biome check --write .",
48
55
  "check:ci": "biome check ."
49
- },
50
- "devDependencies": {
51
- "@biomejs/biome": "^2.0",
52
- "@napi-rs/cli": "^3.5"
53
- },
54
- "engines": {
55
- "node": ">= 18"
56
56
  }
57
- }
57
+ }
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::from_secs(3600); // 1 hour
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::from_secs(7200); // 2 hours
315
+ core_report.duration = Duration::from_hours(2);
316
316
 
317
317
  let report = ExtractionReport::from(core_report);
318
318