hedgedoc/backend/package.json
Erik Michelson 2c6717e1ee refactor(api-token): drop passport, rename to ApiToken
We don't need a library that requires as much boilerplate code as
writing the AuthGuard ourselves, especially since the token validation
was already custom code by us.

The previous name PublicAuthToken was a bit misleading, since PublicAuth
 could also be interpreted as being used for the public frontend in
contrast to the API. The old name before that (AuthToken) wasn't better
since it wasn't clear what type of auth is meant. I know, this is the
second renaming of the same module in less than a month. However, I
would say the name ApiToken seems rather reasonable and understandable.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2024-09-18 19:14:32 +02:00

139 lines
4.3 KiB
JSON

{
"name": "@hedgedoc/backend",
"version": "2.0.0-alpha.2",
"description": "Realtime collaborative markdown notes on all platforms.",
"author": "",
"private": true,
"license": "AGPL-3.0",
"scripts": {
"build": "rimraf dist && nest build",
"format": "prettier --check \"src/**/*.ts\" \"test/**/*.ts\"",
"format:fix": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "rimraf dist && nest start",
"start:dev": "rimraf dist && nest start --watch",
"start:debug": "rimraf dist && nest start --debug --watch",
"start:prod": "node dist/main",
"lint": "eslint --max-warnings 0 \"{src,apps,libs,test}/**/*.ts\"",
"lint:fix": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test": "jest",
"test:watch": "jest --watch",
"test:ci": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config jest-e2e.json && rimraf test_uploads*",
"test:e2e:ci": "jest --config jest-e2e.json --coverage && rimraf test_uploads*",
"seed": "ts-node src/seed.ts",
"typeorm": "typeorm-ts-node-commonjs -d src/ormconfig.ts"
},
"dependencies": {
"@azure/storage-blob": "12.24.0",
"@hedgedoc/commons": "workspace:commons",
"@mrdrogdrog/optional": "1.2.1",
"@nestjs/common": "10.4.1",
"@nestjs/config": "3.2.3",
"@nestjs/core": "10.4.1",
"@nestjs/event-emitter": "2.0.4",
"@nestjs/platform-express": "10.4.1",
"@nestjs/platform-ws": "10.4.1",
"@nestjs/schedule": "4.1.0",
"@nestjs/swagger": "7.4.0",
"@nestjs/typeorm": "10.0.2",
"@nestjs/websockets": "10.4.1",
"@node-rs/argon2": "1.8.3",
"@zxcvbn-ts/core": "3.0.4",
"@zxcvbn-ts/language-common": "3.0.4",
"@zxcvbn-ts/language-en": "3.0.2",
"base32-encode": "1.2.0",
"class-transformer": "0.5.1",
"class-validator": "0.14.1",
"cli-color": "2.0.4",
"connect-typeorm": "2.0.0",
"cookie": "0.6.0",
"diff": "5.2.0",
"express-session": "1.18.0",
"file-type": "16.5.4",
"htmlparser2": "9.1.0",
"joi": "17.13.3",
"ldapauth-fork": "6.1.0",
"markdown-it": "13.0.2",
"minio": "8.0.1",
"mysql": "2.18.1",
"node-fetch": "2.7.0",
"openid-client": "5.6.5",
"pg": "8.12.0",
"raw-body": "3.0.0",
"reflect-metadata": "0.2.2",
"rimraf": "6.0.1",
"rxjs": "7.8.1",
"sqlite3": "5.1.7",
"typeorm": "0.3.20",
"uuid": "10.0.0",
"ws": "8.17.1",
"yjs": "13.6.18"
},
"devDependencies": {
"@darraghor/eslint-plugin-nestjs-typed": "5.0.18",
"@nestjs/cli": "10.4.5",
"@nestjs/schematics": "10.1.4",
"@nestjs/testing": "10.4.1",
"@trivago/prettier-plugin-sort-imports": "4.3.0",
"@tsconfig/node18": "18.2.4",
"@types/cli-color": "2.0.6",
"@types/cookie": "0.6.0",
"@types/cookie-signature": "1.1.2",
"@types/diff": "5.2.2",
"@types/express": "4.17.21",
"@types/express-session": "1.18.0",
"@types/jest": "29.5.12",
"@types/markdown-it": "13.0.7",
"@types/mysql": "2.15.25",
"@types/node": "20.16.2",
"@types/node-fetch": "2.6.11",
"@types/pg": "8.11.0",
"@types/source-map-support": "0.5.10",
"@types/supertest": "2.0.16",
"@types/uuid": "9.0.8",
"@types/ws": "8.5.10",
"@typescript-eslint/eslint-plugin": "6.21.0",
"@typescript-eslint/parser": "6.21.0",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jest": "27.9.0",
"eslint-plugin-local-rules": "2.0.1",
"eslint-plugin-prettier": "5.2.1",
"jest": "29.7.0",
"mocked-env": "1.3.5",
"prettier": "3.3.3",
"source-map-support": "0.5.21",
"supertest": "6.3.4",
"ts-jest": "29.2.5",
"ts-mockery": "1.2.0",
"ts-node": "11.0.0-beta.1",
"tsconfig-paths": "4.2.0",
"typescript": "5.5.4"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".spec.ts$",
"transform": {
"^.+\\.(t|j)s$": [
"ts-jest",
{
"tsconfig": "test/tsconfig.json"
}
]
},
"coverageDirectory": "../coverage",
"testEnvironment": "node",
"reporters": [
"default",
"github-actions"
]
},
"packageManager": "yarn@4.4.1"
}