Remove unused delete_event function; bump Vite + picomatch (audit fix)

This commit is contained in:
Jure
2026-04-12 18:56:02 +02:00
parent a393469c17
commit c6ccb0989c
2 changed files with 8 additions and 14 deletions

16
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "vega",
"version": "0.12.2",
"version": "0.12.6",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "vega",
"version": "0.12.2",
"version": "0.12.6",
"dependencies": {
"@nostr-dev-kit/ndk": "^3.0.3",
"@tailwindcss/vite": "^4.2.1",
@@ -3898,9 +3898,9 @@
"license": "ISC"
},
"node_modules/picomatch": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz",
"integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",
"integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",
"license": "MIT",
"engines": {
"node": ">=12"
@@ -4559,9 +4559,9 @@
}
},
"node_modules/vite": {
"version": "7.3.1",
"resolved": "https://registry.npmjs.org/vite/-/vite-7.3.1.tgz",
"integrity": "sha512-w+N7Hifpc3gRjZ63vYBXA56dvvRlNWRczTdmCBBa+CotUzAPf5b7YMdMR/8CQoeYE5LX3W4wj6RYTgonm1b9DA==",
"version": "7.3.2",
"resolved": "https://registry.npmjs.org/vite/-/vite-7.3.2.tgz",
"integrity": "sha512-Bby3NOsna2jsjfLVOHKes8sGwgl4TT0E6vvpYgnAYDIF/tie7MRaFthmKuHx1NSXjiTueXH3do80FMQgvEktRg==",
"license": "MIT",
"dependencies": {
"esbuild": "^0.27.0",

View File

@@ -146,9 +146,3 @@ pub fn query_events(conn: &Connection, filters: &[Filter]) -> rusqlite::Result<V
all_results.dedup();
Ok(all_results)
}
/// Delete an event by ID.
pub fn delete_event(conn: &Connection, id: &str) -> rusqlite::Result<()> {
conn.execute("DELETE FROM events WHERE id = ?1", [id])?;
Ok(())
}