Open-source and local-first Slack and Notion alternative that puts you in control of your data
TypeScript chatchat-applicationcrdteditorelectronknowledge-baselocal-firstnotionnotion-alternativerealtime-collaborationself-hostedslacksqliteteam-collaborationwikiyjs
Implement simple account register and login
Hakan Shehu752f2c07b1ed
diff --git a/server/package-lock.json b/server/package-lock.jsonindex 4bce78a7..4617534c 100644--- a/server/package-lock.json+++ b/server/package-lock.json@@ -9,16 +9,40 @@"version": "1.0.0","license": "ISC","dependencies": {- "express": "^4.19.2"+ "@prisma/client": "^5.17.0",+ "axios": "^1.7.2",+ "bcrypt": "^5.1.1",+ "express": "^4.19.2",+ "jsonwebtoken": "^9.0.2",+ "postgres": "^3.4.4",+ "ulid": "^2.3.0"},"devDependencies": {+ "@types/bcrypt": "^5.0.2","@types/express": "^4.17.21",+ "@types/jsonwebtoken": "^9.0.6","@types/node": "^22.0.0",+ "concurrently": "^8.2.2","nodemon": "^3.1.4",+ "prisma": "^5.17.0","ts-node": "^10.9.2",+ "tsconfig-paths": "^4.2.0","typescript": "^5.5.4"}},+ "node_modules/@babel/runtime": {+ "version": "7.25.0",+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.25.0.tgz",+ "integrity": "sha512-7dRy4DwXwtzBrPbZflqxnvfxLF8kdZXPkhymtDeFoFqE6ldzjQFgYTtYIFARcLEYDrqfBfYcZt1WqFxRoyC9Rw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "regenerator-runtime": "^0.14.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },"node_modules/@cspotcode/source-map-support": {"version": "0.8.1","resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz",@@ -60,6 +84,94 @@"@jridgewell/sourcemap-codec": "^1.4.10"}},+ "node_modules/@mapbox/node-pre-gyp": {+ "version": "1.0.11",+ "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.11.tgz",+ "integrity": "sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==",+ "license": "BSD-3-Clause",+ "dependencies": {+ "detect-libc": "^2.0.0",+ "https-proxy-agent": "^5.0.0",+ "make-dir": "^3.1.0",+ "node-fetch": "^2.6.7",+ "nopt": "^5.0.0",+ "npmlog": "^5.0.1",+ "rimraf": "^3.0.2",+ "semver": "^7.3.5",+ "tar": "^6.1.11"+ },+ "bin": {+ "node-pre-gyp": "bin/node-pre-gyp"+ }+ },+ "node_modules/@prisma/client": {+ "version": "5.17.0",+ "resolved": "https://registry.npmjs.org/@prisma/client/-/client-5.17.0.tgz",+ "integrity": "sha512-N2tnyKayT0Zf7mHjwEyE8iG7FwTmXDHFZ1GnNhQp0pJUObsuel4ZZ1XwfuAYkq5mRIiC/Kot0kt0tGCfLJ70Jw==",+ "hasInstallScript": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=16.13"+ },+ "peerDependencies": {+ "prisma": "*"+ },+ "peerDependenciesMeta": {+ "prisma": {+ "optional": true+ }+ }+ },+ "node_modules/@prisma/debug": {+ "version": "5.17.0",+ "resolved": "https://registry.npmjs.org/@prisma/debug/-/debug-5.17.0.tgz",+ "integrity": "sha512-l7+AteR3P8FXiYyo496zkuoiJ5r9jLQEdUuxIxNCN1ud8rdbH3GTxm+f+dCyaSv9l9WY+29L9czaVRXz9mULfg==",+ "devOptional": true,+ "license": "Apache-2.0"+ },+ "node_modules/@prisma/engines": {+ "version": "5.17.0",+ "resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-5.17.0.tgz",+ "integrity": "sha512-+r+Nf+JP210Jur+/X8SIPLtz+uW9YA4QO5IXA+KcSOBe/shT47bCcRMTYCbOESw3FFYFTwe7vU6KTWHKPiwvtg==",+ "devOptional": true,+ "hasInstallScript": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@prisma/debug": "5.17.0",+ "@prisma/engines-version": "5.17.0-31.393aa359c9ad4a4bb28630fb5613f9c281cde053",+ "@prisma/fetch-engine": "5.17.0",+ "@prisma/get-platform": "5.17.0"+ }+ },+ "node_modules/@prisma/engines-version": {+ "version": "5.17.0-31.393aa359c9ad4a4bb28630fb5613f9c281cde053",+ "resolved": "https://registry.npmjs.org/@prisma/engines-version/-/engines-version-5.17.0-31.393aa359c9ad4a4bb28630fb5613f9c281cde053.tgz",+ "integrity": "sha512-tUuxZZysZDcrk5oaNOdrBnnkoTtmNQPkzINFDjz7eG6vcs9AVDmA/F6K5Plsb2aQc/l5M2EnFqn3htng9FA4hg==",+ "devOptional": true,+ "license": "Apache-2.0"+ },+ "node_modules/@prisma/fetch-engine": {+ "version": "5.17.0",+ "resolved": "https://registry.npmjs.org/@prisma/fetch-engine/-/fetch-engine-5.17.0.tgz",+ "integrity": "sha512-ESxiOaHuC488ilLPnrv/tM2KrPhQB5TRris/IeIV4ZvUuKeaicCl4Xj/JCQeG9IlxqOgf1cCg5h5vAzlewN91Q==",+ "devOptional": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@prisma/debug": "5.17.0",+ "@prisma/engines-version": "5.17.0-31.393aa359c9ad4a4bb28630fb5613f9c281cde053",+ "@prisma/get-platform": "5.17.0"+ }+ },+ "node_modules/@prisma/get-platform": {+ "version": "5.17.0",+ "resolved": "https://registry.npmjs.org/@prisma/get-platform/-/get-platform-5.17.0.tgz",+ "integrity": "sha512-UlDgbRozCP1rfJ5Tlkf3Cnftb6srGrEQ4Nm3og+1Se2gWmCZ0hmPIi+tQikGDUVLlvOWx3Gyi9LzgRP+HTXV9w==",+ "devOptional": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@prisma/debug": "5.17.0"+ }+ },"node_modules/@tsconfig/node10": {"version": "1.0.11","resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz",@@ -88,6 +200,16 @@"dev": true,"license": "MIT"},+ "node_modules/@types/bcrypt": {+ "version": "5.0.2",+ "resolved": "https://registry.npmjs.org/@types/bcrypt/-/bcrypt-5.0.2.tgz",+ "integrity": "sha512-6atioO8Y75fNcbmj0G7UjI9lXN2pQ/IGJ2FWT4a/btd0Lk9lQalHLKhkgKVZ3r+spnmWUKfbMi1GEe9wyHQfNQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "*"+ }+ },"node_modules/@types/body-parser": {"version": "1.19.5","resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.5.tgz",@@ -142,6 +264,16 @@"dev": true,"license": "MIT"},+ "node_modules/@types/jsonwebtoken": {+ "version": "9.0.6",+ "resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-9.0.6.tgz",+ "integrity": "sha512-/5hndP5dCjloafCXns6SZyESp3Ldq7YjH3zwzwczYnjxIT0Fqzk5ROSYVGfFyczIue7IUEj8hkvLbPoLQ18vQw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "*"+ }+ },"node_modules/@types/mime": {"version": "1.3.5","resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz",@@ -196,6 +328,12 @@"@types/send": "*"}},+ "node_modules/abbrev": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",+ "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",+ "license": "ISC"+ },"node_modules/accepts": {"version": "1.3.8","resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",@@ -235,6 +373,66 @@"node": ">=0.4.0"}},+ "node_modules/agent-base": {+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",+ "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",+ "license": "MIT",+ "dependencies": {+ "debug": "4"+ },+ "engines": {+ "node": ">= 6.0.0"+ }+ },+ "node_modules/agent-base/node_modules/debug": {+ "version": "4.3.6",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz",+ "integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==",+ "license": "MIT",+ "dependencies": {+ "ms": "2.1.2"+ },+ "engines": {+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }+ }+ },+ "node_modules/agent-base/node_modules/ms": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",+ "license": "MIT"+ },+ "node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/ansi-styles": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "color-convert": "^2.0.1"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },"node_modules/anymatch": {"version": "3.1.3","resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",@@ -249,6 +447,26 @@"node": ">= 8"}},+ "node_modules/aproba": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz",+ "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==",+ "license": "ISC"+ },+ "node_modules/are-we-there-yet": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz",+ "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==",+ "deprecated": "This package is no longer supported.",+ "license": "ISC",+ "dependencies": {+ "delegates": "^1.0.0",+ "readable-stream": "^3.6.0"+ },+ "engines": {+ "node": ">=10"+ }+ },"node_modules/arg": {"version": "4.1.3","resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz",@@ -262,13 +480,43 @@"integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==","license": "MIT"},+ "node_modules/asynckit": {+ "version": "0.4.0",+ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",+ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",+ "license": "MIT"+ },+ "node_modules/axios": {+ "version": "1.7.2",+ "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.2.tgz",+ "integrity": "sha512-2A8QhOMrbomlDuiLeK9XibIBzuHeRcqqNOHp0Cyp5EoJ1IFDh+XZH3A6BkXtv0K4gFGCI0Y4BM7B1wOEi0Rmgw==",+ "license": "MIT",+ "dependencies": {+ "follow-redirects": "^1.15.6",+ "form-data": "^4.0.0",+ "proxy-from-env": "^1.1.0"+ }+ },"node_modules/balanced-match": {"version": "1.0.2","resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz","integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",- "dev": true,"license": "MIT"},+ "node_modules/bcrypt": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/bcrypt/-/bcrypt-5.1.1.tgz",+ "integrity": "sha512-AGBHOG5hPYZ5Xl9KXzU5iKq9516yEmvCKDg3ecP5kX2aB6UqTeXZxk2ELnDgDm6BQSMlLt9rDB4LoSMx0rYwww==",+ "hasInstallScript": true,+ "license": "MIT",+ "dependencies": {+ "@mapbox/node-pre-gyp": "^1.0.11",+ "node-addon-api": "^5.0.0"+ },+ "engines": {+ "node": ">= 10.0.0"+ }+ },"node_modules/binary-extensions": {"version": "2.3.0","resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz",@@ -310,7 +558,6 @@"version": "1.1.11","resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz","integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",- "dev": true,"license": "MIT","dependencies": {"balanced-match": "^1.0.0",@@ -330,6 +577,12 @@"node": ">=8"}},+ "node_modules/buffer-equal-constant-time": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz",+ "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==",+ "license": "BSD-3-Clause"+ },"node_modules/bytes": {"version": "3.1.2","resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",@@ -358,6 +611,46 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/chalk": {+ "version": "4.1.2",+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^4.1.0",+ "supports-color": "^7.1.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/chalk?sponsor=1"+ }+ },+ "node_modules/chalk/node_modules/has-flag": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/chalk/node_modules/supports-color": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "has-flag": "^4.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },"node_modules/chokidar": {"version": "3.6.0","resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",@@ -383,13 +676,137 @@"fsevents": "~2.3.2"}},+ "node_modules/chownr": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz",+ "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==",+ "license": "ISC",+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/cliui": {+ "version": "8.0.1",+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",+ "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "string-width": "^4.2.0",+ "strip-ansi": "^6.0.1",+ "wrap-ansi": "^7.0.0"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/color-convert": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "color-name": "~1.1.4"+ },+ "engines": {+ "node": ">=7.0.0"+ }+ },+ "node_modules/color-name": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/color-support": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz",+ "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==",+ "license": "ISC",+ "bin": {+ "color-support": "bin.js"+ }+ },+ "node_modules/combined-stream": {+ "version": "1.0.8",+ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",+ "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",+ "license": "MIT",+ "dependencies": {+ "delayed-stream": "~1.0.0"+ },+ "engines": {+ "node": ">= 0.8"+ }+ },"node_modules/concat-map": {"version": "0.0.1","resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz","integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",- "dev": true,"license": "MIT"},+ "node_modules/concurrently": {+ "version": "8.2.2",+ "resolved": "https://registry.npmjs.org/concurrently/-/concurrently-8.2.2.tgz",+ "integrity": "sha512-1dP4gpXFhei8IOtlXRE/T/4H88ElHgTiUzh71YUmtjTEHMSRS2Z/fgOxHSxxusGHogsRfxNq1vyAwxSC+EVyDg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "chalk": "^4.1.2",+ "date-fns": "^2.30.0",+ "lodash": "^4.17.21",+ "rxjs": "^7.8.1",+ "shell-quote": "^1.8.1",+ "spawn-command": "0.0.2",+ "supports-color": "^8.1.1",+ "tree-kill": "^1.2.2",+ "yargs": "^17.7.2"+ },+ "bin": {+ "conc": "dist/bin/concurrently.js",+ "concurrently": "dist/bin/concurrently.js"+ },+ "engines": {+ "node": "^14.13.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/open-cli-tools/concurrently?sponsor=1"+ }+ },+ "node_modules/concurrently/node_modules/has-flag": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/concurrently/node_modules/supports-color": {+ "version": "8.1.1",+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz",+ "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "has-flag": "^4.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/supports-color?sponsor=1"+ }+ },+ "node_modules/console-control-strings": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",+ "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==",+ "license": "ISC"+ },"node_modules/content-disposition": {"version": "0.5.4","resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",@@ -433,6 +850,23 @@"dev": true,"license": "MIT"},+ "node_modules/date-fns": {+ "version": "2.30.0",+ "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.30.0.tgz",+ "integrity": "sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.21.0"+ },+ "engines": {+ "node": ">=0.11"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/date-fns"+ }+ },"node_modules/debug": {"version": "2.6.9","resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",@@ -459,6 +893,21 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/delayed-stream": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",+ "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",+ "license": "MIT",+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/delegates": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",+ "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==",+ "license": "MIT"+ },"node_modules/depd": {"version": "2.0.0","resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",@@ -478,6 +927,15 @@"npm": "1.2.8000 || >= 1.4.16"}},+ "node_modules/detect-libc": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.3.tgz",+ "integrity": "sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==",+ "license": "Apache-2.0",+ "engines": {+ "node": ">=8"+ }+ },"node_modules/diff": {"version": "4.0.2","resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz",@@ -488,12 +946,27 @@"node": ">=0.3.1"}},+ "node_modules/ecdsa-sig-formatter": {+ "version": "1.0.11",+ "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz",+ "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "safe-buffer": "^5.0.1"+ }+ },"node_modules/ee-first": {"version": "1.1.1","resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz","integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==","license": "MIT"},+ "node_modules/emoji-regex": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",+ "license": "MIT"+ },"node_modules/encodeurl": {"version": "1.0.2","resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",@@ -524,6 +997,16 @@"node": ">= 0.4"}},+ "node_modules/escalade": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz",+ "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },"node_modules/escape-html": {"version": "1.0.3","resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",@@ -612,6 +1095,40 @@"node": ">= 0.8"}},+ "node_modules/follow-redirects": {+ "version": "1.15.6",+ "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz",+ "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==",+ "funding": [+ {+ "type": "individual",+ "url": "https://github.com/sponsors/RubenVerborgh"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=4.0"+ },+ "peerDependenciesMeta": {+ "debug": {+ "optional": true+ }+ }+ },+ "node_modules/form-data": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",+ "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",+ "license": "MIT",+ "dependencies": {+ "asynckit": "^0.4.0",+ "combined-stream": "^1.0.8",+ "mime-types": "^2.1.12"+ },+ "engines": {+ "node": ">= 6"+ }+ },"node_modules/forwarded": {"version": "0.2.0","resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",@@ -630,6 +1147,36 @@"node": ">= 0.6"}},+ "node_modules/fs-minipass": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz",+ "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==",+ "license": "ISC",+ "dependencies": {+ "minipass": "^3.0.0"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/fs-minipass/node_modules/minipass": {+ "version": "3.3.6",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",+ "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",+ "license": "ISC",+ "dependencies": {+ "yallist": "^4.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/fs.realpath": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",+ "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",+ "license": "ISC"+ },"node_modules/fsevents": {"version": "2.3.3","resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",@@ -654,6 +1201,37 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/gauge": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz",+ "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==",+ "deprecated": "This package is no longer supported.",+ "license": "ISC",+ "dependencies": {+ "aproba": "^1.0.3 || ^2.0.0",+ "color-support": "^1.1.2",+ "console-control-strings": "^1.0.0",+ "has-unicode": "^2.0.1",+ "object-assign": "^4.1.1",+ "signal-exit": "^3.0.0",+ "string-width": "^4.2.3",+ "strip-ansi": "^6.0.1",+ "wide-align": "^1.1.2"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/get-caller-file": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": "6.* || 8.* || >= 10.*"+ }+ },"node_modules/get-intrinsic": {"version": "1.2.4","resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz",@@ -673,6 +1251,27 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/glob": {+ "version": "7.2.3",+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",+ "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",+ "deprecated": "Glob versions prior to v9 are no longer supported",+ "license": "ISC",+ "dependencies": {+ "fs.realpath": "^1.0.0",+ "inflight": "^1.0.4",+ "inherits": "2",+ "minimatch": "^3.1.1",+ "once": "^1.3.0",+ "path-is-absolute": "^1.0.0"+ },+ "engines": {+ "node": "*"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },"node_modules/glob-parent": {"version": "5.1.2","resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",@@ -744,6 +1343,12 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/has-unicode": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",+ "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==",+ "license": "ISC"+ },"node_modules/hasown": {"version": "2.0.2","resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",@@ -772,6 +1377,42 @@"node": ">= 0.8"}},+ "node_modules/https-proxy-agent": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",+ "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",+ "license": "MIT",+ "dependencies": {+ "agent-base": "6",+ "debug": "4"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/https-proxy-agent/node_modules/debug": {+ "version": "4.3.6",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz",+ "integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==",+ "license": "MIT",+ "dependencies": {+ "ms": "2.1.2"+ },+ "engines": {+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }+ }+ },+ "node_modules/https-proxy-agent/node_modules/ms": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",+ "license": "MIT"+ },"node_modules/iconv-lite": {"version": "0.4.24","resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",@@ -791,6 +1432,17 @@"dev": true,"license": "ISC"},+ "node_modules/inflight": {+ "version": "1.0.6",+ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",+ "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",+ "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.",+ "license": "ISC",+ "dependencies": {+ "once": "^1.3.0",+ "wrappy": "1"+ }+ },"node_modules/inherits": {"version": "2.0.4","resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",@@ -829,6 +1481,15 @@"node": ">=0.10.0"}},+ "node_modules/is-fullwidth-code-point": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },"node_modules/is-glob": {"version": "4.0.3","resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",@@ -849,7 +1510,142 @@"dev": true,"license": "MIT","engines": {- "node": ">=0.12.0"+ "node": ">=0.12.0"+ }+ },+ "node_modules/json5": {+ "version": "2.2.3",+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "json5": "lib/cli.js"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/jsonwebtoken": {+ "version": "9.0.2",+ "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.2.tgz",+ "integrity": "sha512-PRp66vJ865SSqOlgqS8hujT5U4AOgMfhrwYIuIhfKaoSCZcirrmASQr8CX7cUg+RMih+hgznrjp99o+W4pJLHQ==",+ "license": "MIT",+ "dependencies": {+ "jws": "^3.2.2",+ "lodash.includes": "^4.3.0",+ "lodash.isboolean": "^3.0.3",+ "lodash.isinteger": "^4.0.4",+ "lodash.isnumber": "^3.0.3",+ "lodash.isplainobject": "^4.0.6",+ "lodash.isstring": "^4.0.1",+ "lodash.once": "^4.0.0",+ "ms": "^2.1.1",+ "semver": "^7.5.4"+ },+ "engines": {+ "node": ">=12",+ "npm": ">=6"+ }+ },+ "node_modules/jsonwebtoken/node_modules/ms": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",+ "license": "MIT"+ },+ "node_modules/jwa": {+ "version": "1.4.1",+ "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz",+ "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==",+ "license": "MIT",+ "dependencies": {+ "buffer-equal-constant-time": "1.0.1",+ "ecdsa-sig-formatter": "1.0.11",+ "safe-buffer": "^5.0.1"+ }+ },+ "node_modules/jws": {+ "version": "3.2.2",+ "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz",+ "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==",+ "license": "MIT",+ "dependencies": {+ "jwa": "^1.4.1",+ "safe-buffer": "^5.0.1"+ }+ },+ "node_modules/lodash": {+ "version": "4.17.21",+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",+ "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/lodash.includes": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz",+ "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==",+ "license": "MIT"+ },+ "node_modules/lodash.isboolean": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz",+ "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==",+ "license": "MIT"+ },+ "node_modules/lodash.isinteger": {+ "version": "4.0.4",+ "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz",+ "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==",+ "license": "MIT"+ },+ "node_modules/lodash.isnumber": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz",+ "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==",+ "license": "MIT"+ },+ "node_modules/lodash.isplainobject": {+ "version": "4.0.6",+ "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz",+ "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==",+ "license": "MIT"+ },+ "node_modules/lodash.isstring": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz",+ "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==",+ "license": "MIT"+ },+ "node_modules/lodash.once": {+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz",+ "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==",+ "license": "MIT"+ },+ "node_modules/make-dir": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",+ "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",+ "license": "MIT",+ "dependencies": {+ "semver": "^6.0.0"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/make-dir/node_modules/semver": {+ "version": "6.3.1",+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"}},"node_modules/make-error": {@@ -920,7 +1716,6 @@"version": "3.1.2","resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz","integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",- "dev": true,"license": "ISC","dependencies": {"brace-expansion": "^1.1.7"@@ -929,6 +1724,62 @@"node": "*"}},+ "node_modules/minimist": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",+ "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/minipass": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz",+ "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==",+ "license": "ISC",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/minizlib": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz",+ "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==",+ "license": "MIT",+ "dependencies": {+ "minipass": "^3.0.0",+ "yallist": "^4.0.0"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/minizlib/node_modules/minipass": {+ "version": "3.3.6",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",+ "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",+ "license": "ISC",+ "dependencies": {+ "yallist": "^4.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/mkdirp": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",+ "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",+ "license": "MIT",+ "bin": {+ "mkdirp": "bin/cmd.js"+ },+ "engines": {+ "node": ">=10"+ }+ },"node_modules/ms": {"version": "2.0.0","resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",@@ -944,6 +1795,32 @@"node": ">= 0.6"}},+ "node_modules/node-addon-api": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz",+ "integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==",+ "license": "MIT"+ },+ "node_modules/node-fetch": {+ "version": "2.7.0",+ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",+ "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",+ "license": "MIT",+ "dependencies": {+ "whatwg-url": "^5.0.0"+ },+ "engines": {+ "node": "4.x || >=6.0.0"+ },+ "peerDependencies": {+ "encoding": "^0.1.0"+ },+ "peerDependenciesMeta": {+ "encoding": {+ "optional": true+ }+ }+ },"node_modules/nodemon": {"version": "3.1.4","resolved": "https://registry.npmjs.org/nodemon/-/nodemon-3.1.4.tgz",@@ -998,6 +1875,21 @@"dev": true,"license": "MIT"},+ "node_modules/nopt": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz",+ "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==",+ "license": "ISC",+ "dependencies": {+ "abbrev": "1"+ },+ "bin": {+ "nopt": "bin/nopt.js"+ },+ "engines": {+ "node": ">=6"+ }+ },"node_modules/normalize-path": {"version": "3.0.0","resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",@@ -1008,6 +1900,28 @@"node": ">=0.10.0"}},+ "node_modules/npmlog": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz",+ "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==",+ "deprecated": "This package is no longer supported.",+ "license": "ISC",+ "dependencies": {+ "are-we-there-yet": "^2.0.0",+ "console-control-strings": "^1.1.0",+ "gauge": "^3.0.0",+ "set-blocking": "^2.0.0"+ }+ },+ "node_modules/object-assign": {+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",+ "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },"node_modules/object-inspect": {"version": "1.13.2","resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.2.tgz",@@ -1032,6 +1946,15 @@"node": ">= 0.8"}},+ "node_modules/once": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",+ "license": "ISC",+ "dependencies": {+ "wrappy": "1"+ }+ },"node_modules/parseurl": {"version": "1.3.3","resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",@@ -1041,6 +1964,15 @@"node": ">= 0.8"}},+ "node_modules/path-is-absolute": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",+ "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },"node_modules/path-to-regexp": {"version": "0.1.7","resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",@@ -1060,6 +1992,36 @@"url": "https://github.com/sponsors/jonschlinkert"}},+ "node_modules/postgres": {+ "version": "3.4.4",+ "resolved": "https://registry.npmjs.org/postgres/-/postgres-3.4.4.tgz",+ "integrity": "sha512-IbyN+9KslkqcXa8AO9fxpk97PA4pzewvpi2B3Dwy9u4zpV32QicaEdgmF3eSQUzdRk7ttDHQejNgAEr4XoeH4A==",+ "license": "Unlicense",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "type": "individual",+ "url": "https://github.com/sponsors/porsager"+ }+ },+ "node_modules/prisma": {+ "version": "5.17.0",+ "resolved": "https://registry.npmjs.org/prisma/-/prisma-5.17.0.tgz",+ "integrity": "sha512-m4UWkN5lBE6yevqeOxEvmepnL5cNPEjzMw2IqDB59AcEV6w7D8vGljDLd1gPFH+W6gUxw9x7/RmN5dCS/WTPxA==",+ "devOptional": true,+ "hasInstallScript": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@prisma/engines": "5.17.0"+ },+ "bin": {+ "prisma": "build/index.js"+ },+ "engines": {+ "node": ">=16.13"+ }+ },"node_modules/proxy-addr": {"version": "2.0.7","resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",@@ -1073,6 +2035,12 @@"node": ">= 0.10"}},+ "node_modules/proxy-from-env": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",+ "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==",+ "license": "MIT"+ },"node_modules/pstree.remy": {"version": "1.1.8","resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz",@@ -1119,6 +2087,20 @@"node": ">= 0.8"}},+ "node_modules/readable-stream": {+ "version": "3.6.2",+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",+ "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",+ "license": "MIT",+ "dependencies": {+ "inherits": "^2.0.3",+ "string_decoder": "^1.1.1",+ "util-deprecate": "^1.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },"node_modules/readdirp": {"version": "3.6.0","resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",@@ -1132,6 +2114,49 @@"node": ">=8.10.0"}},+ "node_modules/regenerator-runtime": {+ "version": "0.14.1",+ "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz",+ "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/require-directory": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",+ "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/rimraf": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",+ "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",+ "deprecated": "Rimraf versions prior to v4 are no longer supported",+ "license": "ISC",+ "dependencies": {+ "glob": "^7.1.3"+ },+ "bin": {+ "rimraf": "bin.js"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/rxjs": {+ "version": "7.8.1",+ "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz",+ "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.1.0"+ }+ },"node_modules/safe-buffer": {"version": "5.2.1","resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",@@ -1162,7 +2187,6 @@"version": "7.6.3","resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz","integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==",- "dev": true,"license": "ISC","bin": {"semver": "bin/semver.js"@@ -1216,6 +2240,12 @@"node": ">= 0.8.0"}},+ "node_modules/set-blocking": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",+ "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==",+ "license": "ISC"+ },"node_modules/set-function-length": {"version": "1.2.2","resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",@@ -1239,6 +2269,16 @@"integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==","license": "ISC"},+ "node_modules/shell-quote": {+ "version": "1.8.1",+ "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz",+ "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },"node_modules/side-channel": {"version": "1.0.6","resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz",@@ -1257,6 +2297,12 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/signal-exit": {+ "version": "3.0.7",+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",+ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",+ "license": "ISC"+ },"node_modules/simple-update-notifier": {"version": "2.0.0","resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz",@@ -1270,6 +2316,12 @@"node": ">=10"}},+ "node_modules/spawn-command": {+ "version": "0.0.2",+ "resolved": "https://registry.npmjs.org/spawn-command/-/spawn-command-0.0.2.tgz",+ "integrity": "sha512-zC8zGoGkmc8J9ndvml8Xksr1Amk9qBujgbF0JAIWO7kXr43w0h/0GJNM/Vustixu+YE8N/MTrQ7N31FvHUACxQ==",+ "dev": true+ },"node_modules/statuses": {"version": "2.0.1","resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",@@ -1279,6 +2331,51 @@"node": ">= 0.8"}},+ "node_modules/string_decoder": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",+ "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",+ "license": "MIT",+ "dependencies": {+ "safe-buffer": "~5.2.0"+ }+ },+ "node_modules/string-width": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",+ "license": "MIT",+ "dependencies": {+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/strip-ansi": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/strip-bom": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz",+ "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=4"+ }+ },"node_modules/supports-color": {"version": "5.5.0","resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",@@ -1292,6 +2389,23 @@"node": ">=4"}},+ "node_modules/tar": {+ "version": "6.2.1",+ "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz",+ "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==",+ "license": "ISC",+ "dependencies": {+ "chownr": "^2.0.0",+ "fs-minipass": "^2.0.0",+ "minipass": "^5.0.0",+ "minizlib": "^2.1.1",+ "mkdirp": "^1.0.3",+ "yallist": "^4.0.0"+ },+ "engines": {+ "node": ">=10"+ }+ },"node_modules/to-regex-range": {"version": "5.0.1","resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",@@ -1324,6 +2438,22 @@"nodetouch": "bin/nodetouch.js"}},+ "node_modules/tr46": {+ "version": "0.0.3",+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",+ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==",+ "license": "MIT"+ },+ "node_modules/tree-kill": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz",+ "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "tree-kill": "cli.js"+ }+ },"node_modules/ts-node": {"version": "10.9.2","resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz",@@ -1368,6 +2498,28 @@}}},+ "node_modules/tsconfig-paths": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-4.2.0.tgz",+ "integrity": "sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "json5": "^2.2.2",+ "minimist": "^1.2.6",+ "strip-bom": "^3.0.0"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/tslib": {+ "version": "2.6.3",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.3.tgz",+ "integrity": "sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==",+ "dev": true,+ "license": "0BSD"+ },"node_modules/type-is": {"version": "1.6.18","resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",@@ -1395,6 +2547,15 @@"node": ">=14.17"}},+ "node_modules/ulid": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/ulid/-/ulid-2.3.0.tgz",+ "integrity": "sha512-keqHubrlpvT6G2wH0OEfSW4mquYRcbe/J8NMmveoQOjUqmo+hXtO+ORCpWhdbZ7k72UtY61BL7haGxW6enBnjw==",+ "license": "MIT",+ "bin": {+ "ulid": "bin/cli.js"+ }+ },"node_modules/undefsafe": {"version": "2.0.5","resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz",@@ -1418,6 +2579,12 @@"node": ">= 0.8"}},+ "node_modules/util-deprecate": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",+ "license": "MIT"+ },"node_modules/utils-merge": {"version": "1.0.1","resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",@@ -1443,6 +2610,100 @@"node": ">= 0.8"}},+ "node_modules/webidl-conversions": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",+ "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==",+ "license": "BSD-2-Clause"+ },+ "node_modules/whatwg-url": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",+ "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",+ "license": "MIT",+ "dependencies": {+ "tr46": "~0.0.3",+ "webidl-conversions": "^3.0.0"+ }+ },+ "node_modules/wide-align": {+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz",+ "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==",+ "license": "ISC",+ "dependencies": {+ "string-width": "^1.0.2 || 2 || 3 || 4"+ }+ },+ "node_modules/wrap-ansi": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^4.0.0",+ "string-width": "^4.1.0",+ "strip-ansi": "^6.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ }+ },+ "node_modules/wrappy": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",+ "license": "ISC"+ },+ "node_modules/y18n": {+ "version": "5.0.8",+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/yallist": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",+ "license": "ISC"+ },+ "node_modules/yargs": {+ "version": "17.7.2",+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",+ "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cliui": "^8.0.1",+ "escalade": "^3.1.1",+ "get-caller-file": "^2.0.5",+ "require-directory": "^2.1.1",+ "string-width": "^4.2.3",+ "y18n": "^5.0.5",+ "yargs-parser": "^21.1.1"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/yargs-parser": {+ "version": "21.1.1",+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",+ "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">=12"+ }+ },"node_modules/yn": {"version": "3.1.1","resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz",diff --git a/server/package.json b/server/package.jsonindex e2565390..78a455b7 100644--- a/server/package.json+++ b/server/package.json@@ -5,20 +5,31 @@"scripts": {"build": "tsc","start": "node dist/index.js",- "dev": "nodemon --watch src --exec ts-node src/index.ts"+ "dev": "node -r ts-node/register -r tsconfig-paths/register --env-file .env src/index.ts"},"keywords": [],"author": "","license": "ISC","description": "","devDependencies": {+ "@types/bcrypt": "^5.0.2","@types/express": "^4.17.21",+ "@types/jsonwebtoken": "^9.0.6","@types/node": "^22.0.0",+ "concurrently": "^8.2.2","nodemon": "^3.1.4",+ "prisma": "^5.17.0","ts-node": "^10.9.2",+ "tsconfig-paths": "^4.2.0","typescript": "^5.5.4"},"dependencies": {- "express": "^4.19.2"+ "@prisma/client": "^5.17.0",+ "axios": "^1.7.2",+ "bcrypt": "^5.1.1",+ "express": "^4.19.2",+ "jsonwebtoken": "^9.0.2",+ "postgres": "^3.4.4",+ "ulid": "^2.3.0"}}diff --git a/server/prisma/schema.prisma b/server/prisma/schema.prismanew file mode 100644index 00000000..2e8c5b8e--- /dev/null+++ b/server/prisma/schema.prisma@@ -0,0 +1,20 @@+generator client {+ provider = "prisma-client-js"+}++datasource db {+ provider = "postgresql"+ url = env("DATABASE_URL")+}++model accounts {+ id String @id @db.VarChar(30)+ name String @db.VarChar(256)+ email String @unique(map: "IX_accounts_email") @db.VarChar(256)+ avatar String? @db.VarChar(256)+ password String? @db.VarChar(256)+ attrs Json? @default("null")+ createdAt DateTime @db.Timestamptz(6) @map("created_at")+ updatedAt DateTime? @db.Timestamptz(6) @map("updated_at")+ status Int+}diff --git a/server/src/data/db.ts b/server/src/data/db.tsnew file mode 100644index 00000000..a14cbb91--- /dev/null+++ b/server/src/data/db.ts@@ -0,0 +1,3 @@+import { PrismaClient } from '@prisma/client'++export const prisma = new PrismaClient()\ No newline at end of filediff --git a/server/src/index.ts b/server/src/index.tsindex 307dc2d8..1a5eafbf 100644--- a/server/src/index.ts+++ b/server/src/index.ts@@ -1,12 +1,20 @@import express, { Request, Response } from 'express';+import {accounts} from "./routes/accounts";const app = express();const port = 3000;+app.use(express.json());+app.get('/', (req: Request, res: Response) => {- res.send('Hello World!');+ res.send('Neuron');});+//accounts+app.post('/v1/accounts/login/google', accounts.loginWithGoogle);+app.post('/v1/accounts/login/email', accounts.loginWithEmail);+app.post('/v1/accounts/register/email', accounts.registerWithEmail);+app.listen(port, () => {console.log(`Server is running at http://localhost:${port}`);});diff --git a/server/src/lib/id.ts b/server/src/lib/id.tsnew file mode 100644index 00000000..b05c5b05--- /dev/null+++ b/server/src/lib/id.ts@@ -0,0 +1,11 @@+import { monotonicFactory } from 'ulid'++const ulid = monotonicFactory()++export function generateId(type: IdType) {+ return ulid().toLowerCase() + type+}++export enum IdType {+ Account = 'ac',+}\ No newline at end of filediff --git a/server/src/routes/accounts.ts b/server/src/routes/accounts.tsnew file mode 100644index 00000000..b274d4e2--- /dev/null+++ b/server/src/routes/accounts.ts@@ -0,0 +1,157 @@+import {Request, Response} from "express";+import {+ Account,+ AccountStatus, EmailLoginInput,+ EmailRegisterInput,+ GoogleLoginInput,+ GoogleUserInfo,+ LoginOutput+} from "@/types/accounts";+import axios from "axios";+import {ApiError} from "@/types/api";+import {createAccount, findAccountByEmail, hashPassword, updateGoogleId, verifyPassword} from "@/services/accounts";+import {generateId, IdType} from "@/lib/id";+import jwt from "jsonwebtoken";++const GoogleUserInfoUrl = "https://www.googleapis.com/oauth2/v1/userinfo";+const JwtSecretKey = process.env.JWT_SECRET ?? '';+const JwtAudience = process.env.JWT_AUDIENCE ?? '';+const JwtIssuer = process.env.JWT_ISSUER ?? '';++function buildLoginOutput(account: Account): LoginOutput {+ const signOptions: jwt.SignOptions = {+ issuer: JwtIssuer,+ audience: JwtAudience,+ subject: account.id,+ expiresIn: '1y',+ };++ const payload = {+ name: account.name,+ email: account.email,+ };++ const token = jwt.sign(payload, JwtSecretKey, signOptions);++ return {+ token+ };+}++async function registerWithEmail(req: Request, res: Response) {+ const input: EmailRegisterInput = req.body;+ let existingUser = await findAccountByEmail(input.email);++ if (existingUser) {+ return res.status(400).json({+ code: ApiError.EmailAlreadyExists,+ message: "Email already exists."+ });+ }++ const password = await hashPassword(input.password);+ const account: Account = {+ id: generateId(IdType.Account),+ name: input.name,+ email: input.email,+ password: password,+ status: AccountStatus.Active,+ createdAt: new Date(),+ };++ await createAccount(account);+ return res.json(buildLoginOutput(account));+}++async function loginWithEmail(req: Request, res: Response) {+ const input: EmailLoginInput = req.body;+ let existingUser = await findAccountByEmail(input.email);++ if (!existingUser) {+ return res.status(400).json({+ code: ApiError.EmailOrPasswordIncorrect,+ message: "Invalid credentials."+ });+ }++ if (existingUser.status === AccountStatus.Pending) {+ return res.status(400).json({+ code: ApiError.UserPendingActivation,+ message: "User is pending activation."+ });+ }++ if (!existingUser.password) {+ return res.status(400).json({+ code: ApiError.EmailOrPasswordIncorrect,+ message: "Invalid credentials."+ });+ }++ let passwordMatch = await verifyPassword(input.password, existingUser.password);++ if (!passwordMatch) {+ return res.status(400).json({+ code: ApiError.EmailOrPasswordIncorrect,+ message: "Invalid credentials."+ });+ }++ return res.json(buildLoginOutput(existingUser));+}++async function loginWithGoogle(req: Request, res: Response) {+ const input: GoogleLoginInput = req.body;+ const url = `${GoogleUserInfoUrl}?access_token=${input.access_token}`;+ const userInfoResponse = await axios.get(url);++ if (userInfoResponse.status !== 200) {+ return res.status(400).json({+ code: ApiError.GoogleAuthFailed,+ message: "Failed to authenticate with Google."+ });+ }++ const googleUser: GoogleUserInfo = userInfoResponse.data;++ if (!googleUser) {+ return res.status(400).json({+ code: ApiError.GoogleAuthFailed,+ message: "Failed to authenticate with Google."+ });+ }++ let existingUser = await findAccountByEmail(googleUser.email);++ if (existingUser) {+ if (existingUser.status === AccountStatus.Pending) {+ return res.status(400).json({+ code: ApiError.UserPendingActivation,+ message: "User is pending activation."+ });+ }++ await updateGoogleId(existingUser.id, googleUser.id);+ return res.json(buildLoginOutput(existingUser));+ }++ const account: Account = {+ id: generateId(IdType.Account),+ name: googleUser.name,+ email: googleUser.email,+ status: AccountStatus.Active,+ createdAt: new Date(),+ attrs: {+ googleId: googleUser.id+ }+ };++ await createAccount(account);+ return res.json(buildLoginOutput(account));+}++export const accounts = {+ loginWithGoogle,+ loginWithEmail,+ registerWithEmail+}\ No newline at end of filediff --git a/server/src/services/accounts.ts b/server/src/services/accounts.tsnew file mode 100644index 00000000..84b6a2bf--- /dev/null+++ b/server/src/services/accounts.ts@@ -0,0 +1,80 @@+import {prisma} from "@/data/db";+import {Account} from "@/types/accounts";+import bcrypt from 'bcrypt';++const SaltRounds = 10;++export async function findAccountByEmail(email: string): Promise<Account | null> {+ const account = await prisma+ .accounts+ .findUnique({+ where: {+ }+ });++ if (!account) {+ return null;+ }++ return {+ id: account.id,+ name: account.name,+ email: account.email,+ password: account.password,+ createdAt: account.createdAt,+ updatedAt: account.updatedAt,+ status: account.status,+ attrs: account.attrs as Record<string, any>,+ };+}++export async function updateGoogleId(accountId: string, googleId: string): Promise<void> {+ await prisma+ .accounts+ .update({+ where: {+ id: accountId+ },+ data: {+ attrs: { googleId },+ updatedAt: new Date()+ }+ });+}++export async function createAccount(account: Account): Promise<Account> {+ const newAccount = await prisma+ .accounts+ .create({+ data: {+ id: account.id,+ name: account.name,+ email: account.email,+ password: account.password,+ createdAt: account.createdAt,+ status: account.status,+ attrs: account.attrs+ }+ });++ return {+ id: newAccount.id,+ name: newAccount.name,+ email: newAccount.email,+ password: newAccount.password,+ createdAt: newAccount.createdAt,+ updatedAt: newAccount.updatedAt,+ status: newAccount.status,+ attrs: newAccount.attrs as Record<string, any>,+ };+}++export async function hashPassword(password: string): Promise<string> {+ const salt = await bcrypt.genSalt(SaltRounds);+ return await bcrypt.hash(password, salt);+}++export async function verifyPassword(password: string, hash: string): Promise<boolean> {+ return await bcrypt.compare(password, hash);+}diff --git a/server/src/types/accounts.ts b/server/src/types/accounts.tsnew file mode 100644index 00000000..d3974d6e--- /dev/null+++ b/server/src/types/accounts.ts@@ -0,0 +1,44 @@+export type GoogleLoginInput = {+ access_token: string;+ token_type: string;+ expires_in: number;+};++export type EmailRegisterInput = {+ name: string;+ email: string;+ password: string;+};++export type EmailLoginInput = {+ email: string;+ password: string;+};++export type GoogleUserInfo = {+ id: string;+ email: string;+ name: string;+ picture: string;+};++export type LoginOutput = {+ token: string;+};++export enum AccountStatus {+ Pending = 1,+ Active = 2,+}++export type Account = {+ id: string;+ name: string;+ email: string;+ avatar?: string | null;+ password?: string | null;+ attrs?: Record<string, any>;+ createdAt: Date;+ updatedAt?: Date | null;+ status: AccountStatus;+};diff --git a/server/src/types/api.ts b/server/src/types/api.tsnew file mode 100644index 00000000..99055c50--- /dev/null+++ b/server/src/types/api.ts@@ -0,0 +1,7 @@+export enum ApiError {+ GoogleAuthFailed = "GoogleAuthFailed",+ UserPendingActivation = "UserPendingActivation",+ InternalServerError = "InternalServerError",+ EmailAlreadyExists = "EmailAlreadyExists",+ EmailOrPasswordIncorrect = "EmailOrPasswordIncorrect",+}diff --git a/server/tsconfig.json b/server/tsconfig.jsonindex e05745b9..b680ffff 100644--- a/server/tsconfig.json+++ b/server/tsconfig.json@@ -3,8 +3,12 @@"target": "ES6","module": "commonjs","outDir": "./dist",- "rootDir": "./src",+ "rootDir": ".","strict": true,- "esModuleInterop": true+ "esModuleInterop": true,+ "baseUrl": ".",+ "paths": {+ "@/*": ["./src/*"]+ },}}