-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #221 from the-draupnir-project/gnuxie/matrix-prote…
…ction-suite-raw #### This is a rewrite of the core functionality of Draupnir This has been done with a library called the [matrix-protection-suite](https://github.com/Gnuxie/matrix-protection-suite) that Draupnir now depends upon. The protection suite provides a plugin system that allows all of Draupnir's functionality to be implemented as protections, that can be disabled/enabled and configured individually as distinct modules. The protection suite also introduces capability interfaces and capability providers which allow the user to modify what each individual protection can do without needing to change modify the protection's code. #221
- Loading branch information
Showing
153 changed files
with
5,960 additions
and
11,197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,11 +8,11 @@ | |
"license": "AFL-3.0", | ||
"private": true, | ||
"scripts": { | ||
"build": "tsc", | ||
"postbuild": "yarn remove-tests-from-lib && yarn describe-version", | ||
"build": "tsc --project test/tsconfig.json && tsc > /dev/null 2>&1", | ||
"postbuild": "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": "eslint ./**/*.ts", | ||
"lint": "eslint -c .eslintrc.js src/**/*.ts test/**/*.ts src/**/*.tsx", | ||
"start:dev": "yarn build && node --async-stack-traces lib/index.js", | ||
"test": "ts-mocha --project ./tsconfig.json test/commands/**/*.ts", | ||
"test:integration": "NODE_ENV=harness ts-mocha --async-stack-traces --forbid-only --require test/integration/fixtures.ts --timeout 300000 --project ./tsconfig.json \"test/integration/**/*Test.ts\"", | ||
|
@@ -23,6 +23,7 @@ | |
"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": { | ||
"@types/better-sqlite3": "^7.6.9", | ||
"@types/config": "^3.3.1", | ||
"@types/crypto-js": "^4.2.2", | ||
"@types/express": "^4.17.21", | ||
|
@@ -40,6 +41,7 @@ | |
"@typescript-eslint/parser": "^6.19.0", | ||
"crypto-js": "^4.2.0", | ||
"eslint": "^8.56", | ||
"eslint-plugin-editorconfig": "^4.0.3", | ||
"expect": "^29.7.0", | ||
"mocha": "^10.2.0", | ||
"ts-mocha": "^10.0.0", | ||
|
@@ -49,7 +51,9 @@ | |
"dependencies": { | ||
"@sentry/node": "^7.17.2", | ||
"@sentry/tracing": "^7.17.2", | ||
"@sinclair/typebox": "~0.31.15", | ||
"await-lock": "^2.2.2", | ||
"better-sqlite3": "^9.4.3", | ||
"body-parser": "^1.20.2", | ||
"config": "^3.3.9", | ||
"express": "^4.18", | ||
|
@@ -59,12 +63,18 @@ | |
"js-yaml": "^4.1.0", | ||
"jsdom": "^24.0.0", | ||
"matrix-appservice-bridge": "^9.0.1", | ||
"matrix-protection-suite": "npm:@gnuxie/[email protected]", | ||
"matrix-protection-suite-for-matrix-bot-sdk": "npm:@gnuxie/[email protected]", | ||
"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.6.6-element.1" | ||
}, | ||
"engines": { | ||
"node": ">=18.0.0" | ||
} | ||
|
Oops, something went wrong.