POST requests always sent an undefined body without the bodyParser middleware which isn't included with express by default. Add this as a new dependency and inject it into the express app. This middleware will also be useful for any other middleware that we might create. Also properly send status codes and messages to the client so they can be handled properly. Signed-off-by: kingbri <bdashore3@proton.me>
91 lines
2.4 KiB
JSON
91 lines
2.4 KiB
JSON
{
|
|
"dependencies": {
|
|
"@agnai/sentencepiece-js": "^1.1.1",
|
|
"@agnai/web-tokenizers": "^0.1.3",
|
|
"@dqbd/tiktoken": "^1.0.2",
|
|
"bing-translate-api": "^2.9.1",
|
|
"body-parser": "^1.20.2",
|
|
"command-exists": "^1.2.9",
|
|
"compression": "^1",
|
|
"cookie-parser": "^1.4.6",
|
|
"cors": "^2.8.5",
|
|
"csrf-csrf": "^2.2.3",
|
|
"device-detector-js": "^3.0.3",
|
|
"express": "^4.18.2",
|
|
"form-data": "^4.0.0",
|
|
"google-translate-api-browser": "^3.0.1",
|
|
"gpt3-tokenizer": "^1.1.5",
|
|
"ip-matching": "^2.1.2",
|
|
"ipaddr.js": "^2.0.1",
|
|
"jimp": "^0.22.10",
|
|
"json5": "^2.2.3",
|
|
"lodash": "^4.17.21",
|
|
"mime-types": "^2.1.35",
|
|
"multer": "^1.4.5-lts.1",
|
|
"node-fetch": "^2.6.11",
|
|
"open": "^8.4.2",
|
|
"png-chunk-text": "^1.0.0",
|
|
"png-chunks-encode": "^1.0.0",
|
|
"png-chunks-extract": "^1.0.0",
|
|
"response-time": "^2.3.2",
|
|
"sanitize-filename": "^1.6.3",
|
|
"sillytavern-transformers": "^2.7.3",
|
|
"simple-git": "^3.19.1",
|
|
"vectra": "^0.2.2",
|
|
"write-file-atomic": "^5.0.1",
|
|
"ws": "^8.13.0",
|
|
"yaml": "^2.3.4",
|
|
"yargs": "^17.7.1",
|
|
"yauzl": "^2.10.0"
|
|
},
|
|
"overrides": {
|
|
"parse-bmfont-xml": {
|
|
"xml2js": "^0.5.0"
|
|
},
|
|
"vectra": {
|
|
"openai": "^4.17.0"
|
|
}
|
|
},
|
|
"name": "sillytavern",
|
|
"type": "commonjs",
|
|
"license": "AGPL-3.0",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/SillyTavern/SillyTavern.git"
|
|
},
|
|
"version": "1.11.0",
|
|
"scripts": {
|
|
"start": "node server.js",
|
|
"start-multi": "node server.js --disableCsrf",
|
|
"pkg": "pkg --compress Gzip --no-bytecode --public .",
|
|
"postinstall": "node post-install.js"
|
|
},
|
|
"bin": {
|
|
"sillytavern": "./server.js"
|
|
},
|
|
"rules": {
|
|
"no-path-concat": "off",
|
|
"no-var": "off"
|
|
},
|
|
"main": "server.js",
|
|
"pkg": {
|
|
"targets": [
|
|
"node18-linux-x64",
|
|
"node18-macos-x64",
|
|
"node18-windows-x64"
|
|
],
|
|
"assets": [
|
|
"node_modules/**/*"
|
|
],
|
|
"outputPath": "dist",
|
|
"scripts": [
|
|
"server.js"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"jquery": "^3.6.4",
|
|
"pkg": "^5.8.1",
|
|
"pkg-fetch": "^3.5.2"
|
|
}
|
|
}
|