source: Klonkt/package.json@ 8398935

main
Last change on this file since 8398935 was 8398935, checked in by roboburr <roboburr@…>, 3 months ago

Tests: unit tests for the hub permissions layer (node:test, in-memory SQLite)

Covers canAdminSite (god/owner/collaborator-admin/member/stranger/null), delegation
via canEditPost, and getPrimarySite (is_primary + oldest-fallback). canAdminSite
in particular was silently broken for a long time — these tests will catch
regressions. npm test = node --test.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@…>

  • Property mode set to 100644
File size: 1.1 KB
Line 
1{
2 "name": "klonkt",
3 "version": "1.0.0-beta.1",
4 "description": "Klonkt — zelf-gehost multi-site muziek- & blogplatform met community, realtime en (later) E2EE DMs. Node + SQLite + htmx.",
5 "type": "module",
6 "main": "src/server.js",
7 "scripts": {
8 "start": "node src/server.js",
9 "dev": "node --watch src/server.js",
10 "test": "node --test",
11 "migrate": "node src/db/migrate.js",
12 "reset-admin": "node scripts/reset-admin.mjs",
13 "backfill:durations": "node scripts/backfill-durations.mjs"
14 },
15 "dependencies": {
16 "bcryptjs": "^2.4.3",
17 "better-sqlite3": "^11.3.0",
18 "body-parser": "^1.20.2",
19 "dotenv": "^16.3.1",
20 "ejs": "^3.1.9",
21 "express": "^4.18.2",
22 "express-rate-limit": "^7.4.1",
23 "express-session": "^1.17.3",
24 "ffmpeg-static": "^5.2.0",
25 "fluent-ffmpeg": "^2.1.3",
26 "helmet": "^7.1.0",
27 "htmx.org": "1.9.12",
28 "marked": "^11.1.1",
29 "multer": "^1.4.5-lts.1",
30 "nodemailer": "^6.9.15",
31 "sanitize-html": "^2.17.3",
32 "uuid": "^9.0.1",
33 "ws": "^8.18.0"
34 },
35 "engines": {
36 "node": ">=20"
37 }
38}
Note: See TracBrowser for help on using the repository browser.