Files
peertube-plugin-livechat/package.json
John Livingston 3624dd5c3c Reverting usage of RE2 (WIP):
**Breaking changes**

The livechat v13 introduced a new library to handle regular expressions in forbidden words, to avoid
[ReDOS](https://en.wikipedia.org/wiki/ReDoS) attacks.
Unfortunately, this library was not able to install itself properly on some systems, and some admins were not able
to install the livechat plugin.

That's why we have disabled this library in v14, and introduce a new settings to enable regexp in forbidden words.
By default this settings is disabled, and your users won't be able to use regexp in their forbidden words.

The risk by enabling this feature is that a malicious user could cause a denial of service for the chat bot, by using a
special crafted regular expression in their channel options, and sending a special crafter message in one of their
rooms. If you trust your users (those who have rights to livestream), you can enable the settings. Otherwise it is not
recommanded. See the documentation for more informations.

**Minor changes and fixes**

* Channel's forbidden words: new "enable" column.
* New settings to enable regular expressions for channel forbidden words.
* "Channel advanced configuration" settings: removing the "experimental feature" label.
2025-06-19 17:11:13 +02:00

166 lines
6.2 KiB
JSON

{
"name": "peertube-plugin-livechat",
"description": "PeerTube plugin livechat: create chat rooms for your Peertube lives! Comes with many features: federation, moderation tools, chat bot, chat persistence, OBS integration, ...",
"version": "13.0.0",
"license": "AGPL-3.0",
"author": {
"name": "John Livingston",
"url": "https://github.com/JohnXLivingston"
},
"bugs": "https://github.com/JohnXLivingston/peertube-plugin-livechat/issues",
"clientScripts": [
{
"script": "dist/client/common-client-plugin.js",
"scopes": [
"common"
]
},
{
"script": "dist/client/admin-plugin-client-plugin.js",
"scopes": [
"admin-plugin"
]
}
],
"css": [
"dist/assets/styles/style.css"
],
"dependencies": {
"@xmpp/jid": "^0.13.2",
"async": "^3.2.6",
"decache": "^4.6.2",
"escape-html": "^1.0.3",
"got": "^11.8.6",
"http-proxy": "^1.18.1",
"log-rotate": "^0.2.8",
"openid-client": "^5.7.1",
"short-uuid": "^5.2.0",
"validate-color": "^2.2.4",
"xmppjs-chat-bot": "^0.7.0"
},
"devDependencies": {
"@eslint/js": "^9.28.0",
"@lit-labs/motion": "^1.0.8",
"@lit/context": "^1.1.5",
"@lit/task": "^1.0.2",
"@peertube/feed": "^5.4.1",
"@peertube/peertube-types": "^5.2.0",
"@stylistic/eslint-plugin": "^3.1.0",
"@tsconfig/node16": "^16.1.4",
"@types/async": "^3.2.24",
"@types/escape-html": "^1.0.4",
"@types/eslint__js": "^8.42.3",
"@types/express": "^5.0.3",
"@types/got": "^9.6.12",
"@types/http-proxy": "^1.17.16",
"@types/node": "^16.18.126",
"@types/winston": "^2.4.4",
"@types/xmpp__jid": "^1.3.5",
"@typescript-eslint/parser": "^8.4.0",
"commander": "^13.1.0",
"esbuild": "^0.25.5",
"eslint": "^8.57.1",
"eslint-config-love": "^84.1.1",
"eslint-plugin-lit": "^2.1.1",
"globals": "^16.2.0",
"lit": "^3.3.0",
"lit-analyzer": "^2.0.3",
"npm-run-all": "^4.1.5",
"sass": "^1.89.1",
"sharp": "^0.34.2",
"stylelint": "^16.20.0",
"stylelint-config-recommended-scss": "^14.1.0",
"stylelint-config-standard-scss": "^14.0.0",
"svgo": "^3.3.2",
"typescript": "^5.5.4",
"typescript-eslint": "^8.33.1",
"yaml": "^2.8.0"
},
"engine": {
"peertube": ">=5.2.0"
},
"engines": {
"npm": ">=7"
},
"homepage": "https://livingston.frama.io/peertube-plugin-livechat/",
"repository": "github:JohnXLivingston/peertube-plugin-livechat",
"keywords": [
"peertube",
"plugin"
],
"library": "./dist/server/main.js",
"scripts": {
"clean": "rm -rf dist/* build/* support/documentation/content/translations/* support/documentation/i18n/*",
"clean:light": "rm -rf dist/* support/documentation/content/translations/* support/documentation/i18n/*",
"prepare": "npm run clean && npm run build",
"build:converse": "bash conversejs/build-conversejs.sh",
"build:converse-no-loc": "bash conversejs/build-conversejs.sh no-loc",
"build:prosody": "bash build-prosody.sh",
"build:images": "mkdir -p dist/client/images && npx svgo -f assets/images/ -o dist/client/images/",
"build:avatars": "./build-avatars.js",
"check:client:tsc": "npx tsc --p client/ --noEmit --skipLibCheck && npx tsc --p conversejs/ --noemit --skipLibCheck",
"build:client": "node ./build-client.js --mode=production",
"build:server": "npx tsc --build server/tsconfig.json",
"build:serverconverse": "mkdir -p dist/server/conversejs && cp conversejs/index.html dist/server/conversejs/",
"build:prosodymodules": "mkdir -p dist/server/prosody-modules && cp -r prosody-modules/* dist/server/prosody-modules/",
"build:styles": "sass assets/styles:dist/assets/styles",
"build:languages": "node ./build-languages.js",
"build": "npm-run-all -s clean:light build:languages check:client:tsc -s build:client build:server build:images build:styles build:avatars build:serverconverse build:prosodymodules build:converse build:prosody",
"lint": "npm-run-all -s lint:script lint:lit lint:styles lint:reuse",
"lint:fix": "npm-run-all -s lint:script:fix lint:styles:fix",
"lint:script": "npx eslint .",
"lint:script:fix": "npx eslint . --fix",
"lint:lit": "npx lit-analyzer client/ conversejs/",
"lint:styles": "stylelint 'conversejs/**/*.scss' 'assets/styles/**/*.scss'",
"lint:styles:fix": "stylelint 'conversejs/**/*.scss' 'assets/styles/**/*.scss' --fix",
"lint:reuse": "reuse lint",
"show:npmfiles": "npx npm-packlist",
"doc:translate": "bash doc-translate.sh"
},
"staticDirs": {
"static": "dist/client/static",
"conversejs": "dist/client/conversejs/",
"images": "dist/client/images/",
"settings": "dist/client/settings"
},
"translations": {
"ar": "./dist/languages/ar.json",
"is": "./dist/languages/is.json",
"fa-IR": "./dist/languages/fa.json",
"vi-VN": "./dist/languages/vi.json",
"hu-HU": "./dist/languages/hu.json",
"th-TH": "./dist/languages/th.json",
"fi-FI": "./dist/languages/fi.json",
"nl-NL": "./dist/languages/nl.json",
"gd": "./dist/languages/gd.json",
"el-GR": "./dist/languages/el.json",
"es-ES": "./dist/languages/es.json",
"oc": "./dist/languages/oc.json",
"pt-BR": "./dist/languages/pt-BR.json",
"pt-PT": "./dist/languages/pt-PT.json",
"sv-SE": "./dist/languages/sv.json",
"ru-RU": "./dist/languages/ru.json",
"fr-FR": "./dist/languages/fr.json",
"ja-JP": "./dist/languages/ja.json",
"eu-ES": "./dist/languages/eu.json",
"ca-ES": "./dist/languages/ca.json",
"gl-ES": "./dist/languages/gl.json",
"cs-CZ": "./dist/languages/cs.json",
"hr": "./dist/languages/hr.json",
"eo": "./dist/languages/eo.json",
"de-DE": "./dist/languages/de.json",
"it-IT": "./dist/languages/it.json",
"uk-UA": "./dist/languages/uk.json",
"sq": "./dist/languages/sq.json",
"tok": "./dist/languages/tok.json",
"tr-TR": "./dist/languages/tr.json",
"nn": "./dist/languages/nn.json",
"nb-NO": "./dist/languages/nb.json",
"kab": "./dist/languages/kab.json",
"pl-PL": "./dist/languages/pl.json",
"zh-Hans-CN": "./dist/languages/zh-Hans.json",
"zh-Hans-TW": "./dist/languages/zh-Hant.json",
"sk-SK": "./dist/languages/sk.json"
}
}