Files
obsidian42-brat-gitea/package.json
T
olivier d3f3fe926a fix: scope tokens per host, harden Gitea support, port upstream fixes
Fork fixes:
- Global token is GitHub-only; never sent to Gitea/Forgejo hosts
- Gitea: download assets via browser_download_url (+token) so private repos work
- Gitea URL parsing keeps port and sub-path installs, strips browser sub-pages
- GitHub detected by hostname, not substring
- Gitea releases: follow pagination (X-Total-Count), skip drafts
- Gitea token validation against the repo; 404 is no longer "valid"
- Settings tab and migration log use this plugin's own id/folder
- Check-only mode no longer reinstalls/enables a missing plugin folder
- reloadPlugin reports load failures (enablePlugin resolves false)
- Repository / release-notes links work for both providers

Ported from upstream BRAT 2.2.0:
- Release sort: semver tags first, date fallback
- Null-safe version comparison, JSON shape guards
- Drop obsidian-daily-notes-interface (read daily note format directly)
- Notice.messageEl, CSS without !important, console.debug/error
2026-10-25 20:39:33 -04:00

38 lines
1.0 KiB
JSON

{
"name": "obsidian42-brat-gitea",
"version": "1.0.2",
"description": "BRAT fork with Gitea support — install beta plugins from GitHub or self-hosted Gitea/Forgejo.",
"main": "main.js",
"scripts": {
"dev": "npm run build:dev",
"build": "npm run build:main",
"build:dev": "node --no-warnings esbuild.config.mjs",
"build:beta": "node --no-warnings esbuild.config.mjs beta",
"build:main": "node --no-warnings esbuild.config.mjs production",
"lint": "biome check ./src"
},
"author": "TfT Hacker (Gitea fork)",
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/TfTHacker/obsidian42-brat.git"
},
"devDependencies": {
"@biomejs/biome": "^2.3.15",
"@types/node": "^24.3.1",
"@types/semver": "^7.7.1",
"builtin-modules": "5.0.0",
"esbuild": "0.25.9",
"esbuild-copy-static-files": "^0.1.0",
"jsdom": "^26.1.0",
"obsidian": "^1.11.4",
"ts-node": "^10.9.2",
"tslib": "^2.8.1",
"typedoc": "^0.28.12",
"typescript": "5.9.2"
},
"dependencies": {
"semver": "^7.7.2"
}
}