mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-03-30 11:00:13 +00:00
Fixes https://github.com/the-draupnir-project/Draupnir/issues/258
Fixes https://github.com/the-draupnir-project/Draupnir/issues/408
Fixes https://github.com/the-draupnir-project/Draupnir/issues/409
* Create a way to only forward reports in WebAPIs.
Honestly, I'm going to revert this because I think I have found a
better way of testing the report poller.
* Begin improving and fixing the report poller.
We need to change the ReportManager so that we can interface it out
for testing. The reason being that the report poller is inactive
in the harness and so we can't use that with a protection handle
to test. Instead I want to instantiate a report poller with
a mocked report manager.
* Update integration test nginx to mirror reports to synapse.
We need this so that we can test the report poller without needing to
do gymnastics to selectively forward reports.
* Interface out ReportManager.
Needed so we can test the report poller without doing gymnastics with
setting up fake protections.
* Fix report poller from paginating over the same reports.
https://github.com/the-draupnir-project/planning/issues/38.
* Revert "Create a way to only forward reports in WebAPIs."
This reverts commit 59b335f658.
We don't need this anymore.
* Update for MPS v2.4.0
Gives us the synapse admin client, updates schema, and gives us the fix for https://github.com/the-draupnir-project/Draupnir/issues/560
90 lines
4.1 KiB
JSON
90 lines
4.1 KiB
JSON
{
|
|
"name": "draupnir",
|
|
"version": "2.0.0-beta.10",
|
|
"description": "A moderation tool for Matrix",
|
|
"main": "lib/index.js",
|
|
"repository": "https://github.com/the-draupnir-project/Draupnir.git",
|
|
"author": "Gnuxie",
|
|
"license": "AFL-3.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"build": "tsc --project test/tsconfig.json && tsc > /dev/null 2>&1",
|
|
"postbuild": "corepack yarn describe-version",
|
|
"describe-version": "(git describe > version.txt.tmp && mv version.txt.tmp version.txt) || true && rm -f version.txt.tmp",
|
|
"remove-tests-from-lib": "rm -rf lib/test/ && cp -r lib/src/* lib/ && rm -rf lib/src/",
|
|
"lint": "corepack yarn eslint --cache src test && corepack yarn prettier --cache --ignore-unknown --check src test",
|
|
"start:dev": "corepack yarn build && node --async-stack-traces lib/index.js",
|
|
"test:unit": "mocha --require './test/tsnode.cjs' --forbid-only 'test/unit/**/*.{ts,tsx}'",
|
|
"test:unit:single": "mocha --require test/tsnode.cjs",
|
|
"test:integration": "NODE_ENV=harness mocha --require test/tsnode.cjs --async-stack-traces --forbid-only --require test/integration/fixtures.ts --timeout 300000 --project ./tsconfig.json \"test/integration/**/*Test.ts\"",
|
|
"test:integration:single": "NODE_ENV=harness corepack yarn mocha --require test/tsnode.cjs --require test/integration/fixtures.ts --timeout 300000 --project ./tsconfig.json",
|
|
"test:appservice:integration": "NODE_ENV=harness mocha --require test/tsnode.cjs --async-stack-traces --forbid-only --timeout 300000 --project ./tsconfig.json \"test/appservice/integration/**/*Test.ts\"",
|
|
"test:appservice:integration:single": "NODE_ENV=harness corepack yarn mocha --require test/tsnode.cjs --timeout 300000 --project ./tsconfig.json",
|
|
"test:manual": "NODE_ENV=harness ts-node test/integration/manualLaunchScript.ts",
|
|
"version": "sed -i '/# version automated/s/[0-9][0-9]*\\.[0-9][0-9]*\\.[0-9][^\"]*/'$npm_package_version'/' synapse_antispam/setup.py && git add synapse_antispam/setup.py && cat synapse_antispam/setup.py"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.7.0",
|
|
"@types/better-sqlite3": "^7.6.9",
|
|
"@types/config": "^3.3.1",
|
|
"@types/crypto-js": "^4.2.2",
|
|
"@types/eslint__js": "^8.42.3",
|
|
"@types/express": "^4.17.21",
|
|
"@types/html-to-text": "^8.0.1",
|
|
"@types/humanize-duration": "^3.27.1",
|
|
"@types/js-yaml": "^4.0.9",
|
|
"@types/jsdom": "21.1.7",
|
|
"@types/mocha": "^10.0.7",
|
|
"@types/nedb": "^1.8.16",
|
|
"@types/node": "^20.14.11",
|
|
"@types/pg": "^8.6.5",
|
|
"@types/request": "^2.48.12",
|
|
"@types/shell-quote": "1.7.5",
|
|
"crypto-js": "^4.2.0",
|
|
"eslint": "^9.7.0",
|
|
"expect": "^29.7.0",
|
|
"mocha": "^10.7.0",
|
|
"prettier": "^3.3.3",
|
|
"ts-auto-mock": "^3.7.4",
|
|
"ts-node": "^10.9.2",
|
|
"typescript": "^5.5.3",
|
|
"typescript-eslint": "^7.16.1",
|
|
"typescript-formatter": "^7.2"
|
|
},
|
|
"dependencies": {
|
|
"@gnuxie/typescript-result": "^1.0.0",
|
|
"@sentry/node": "^7.17.2",
|
|
"@sentry/tracing": "^7.17.2",
|
|
"@sinclair/typebox": "0.34.13",
|
|
"@the-draupnir-project/interface-manager": "3.0.0",
|
|
"@the-draupnir-project/matrix-basic-types": "^0.2.0",
|
|
"await-lock": "^2.2.2",
|
|
"better-sqlite3": "^9.4.3",
|
|
"body-parser": "^1.20.2",
|
|
"config": "^3.3.9",
|
|
"express": "^4.19",
|
|
"html-to-text": "^8.0.0",
|
|
"humanize-duration": "^3.27.1",
|
|
"humanize-duration-ts": "^2.1.1",
|
|
"js-yaml": "^4.1.0",
|
|
"jsdom": "^24.0.0",
|
|
"matrix-appservice-bridge": "^10.3.1",
|
|
"matrix-bot-sdk": "npm:@vector-im/matrix-bot-sdk@^0.7.1-element.6",
|
|
"matrix-protection-suite": "npm:@gnuxie/matrix-protection-suite@2.4.0",
|
|
"matrix-protection-suite-for-matrix-bot-sdk": "npm:@gnuxie/matrix-protection-suite-for-matrix-bot-sdk@2.4.0",
|
|
"parse-duration": "^1.0.2",
|
|
"pg": "^8.8.0",
|
|
"shell-quote": "^1.7.3",
|
|
"ulidx": "^2.2.1",
|
|
"yaml": "^2.3.2"
|
|
},
|
|
"overrides": {
|
|
"matrix-bot-sdk": "$@vector-im/matrix-bot-sdk",
|
|
"@vector-im/matrix-bot-sdk": "npm:@vector-im/matrix-bot-sdk@^0.7.1-element.6"
|
|
},
|
|
"engines": {
|
|
"node": ">=20.0.0"
|
|
},
|
|
"packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
|
|
}
|