OSV.dev vulnerability database client
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Upgrade to ocamlformat 0.29.0; fix csvt/sexpt streaming; reformat

- Update .ocamlformat to 0.29.0 across all 591 files
- csvt: reuse single Buffer.t for field reads (no alloc per field)
- sexpt: Obj members decoded from stream into Dict, typed Variant GADT
- Reformat all source files for 0.29.0

+11 -12
+11 -12
lib/osv.mli
··· 14 14 {2 Quick Start} 15 15 16 16 {[ 17 - Eio_main.run @@ fun env -> 18 - Eio.Switch.run @@ fun sw -> 19 - let vulns = 20 - Osv.query_purl ~sw ~net:env#net ~clock:env#clock 21 - "pkg:npm/lodash@4.17.20" 22 - in 23 - List.iter 24 - (fun v -> 25 - Printf.printf "%s [%s]: %s\n" v.id 26 - (Osv.severity_to_string v.severity) 27 - v.summary) 28 - vulns 17 + Eio_main.run @@ fun env -> 18 + Eio.Switch.run @@ fun sw -> 19 + let vulns = 20 + Osv.query_purl ~sw ~net:env#net ~clock:env#clock "pkg:npm/lodash@4.17.20" 21 + in 22 + List.iter 23 + (fun v -> 24 + Printf.printf "%s [%s]: %s\n" v.id 25 + (Osv.severity_to_string v.severity) 26 + v.summary) 27 + vulns 29 28 ]} 30 29 31 30 {2 API Reference}