From 6bf39578b8d1938b6768b93e2d0944eb231a0398 Mon Sep 17 00:00:00 2001 From: mayura-andrew Date: Sat, 20 Jan 2024 02:15:57 +0530 Subject: [PATCH] fixed typoes in Google OAuth --- package-lock.json | 933 +++++++++++++++++++++++++++++++++++++--- package.json | 6 +- src/configs/passport.ts | 9 +- src/types.ts | 4 + tsconfig.json | 2 +- 5 files changed, 886 insertions(+), 68 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5d48b9c7..ba3919af 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "1.0.0", "license": "ISC", "dependencies": { + "@tsed/passport": "^7.57.1", "bcrypt": "^5.1.0", "body-parser": "^1.20.2", "cookie-parser": "^1.4.6", @@ -19,9 +20,7 @@ "jsonwebtoken": "^9.0.2", "passport": "^0.6.0", "passport-google-oauth20": "^2.0.0", - "passport-google-oidc": "^0.1.0", "passport-jwt": "^4.0.1", - "passport-linkedin-oauth2": "^2.0.0", "pg": "^8.10.0", "reflect-metadata": "^0.1.13", "ts-node": "^10.9.1", @@ -40,7 +39,6 @@ "@types/passport": "^1.0.12", "@types/passport-google-oauth20": "^2.0.14", "@types/passport-jwt": "^3.0.9", - "@types/passport-linkedin-oauth2": "^1.5.6", "@types/pg": "^8.10.1", "@types/prettier": "^2.7.2", "@types/supertest": "^2.0.12", @@ -61,7 +59,7 @@ "supertest": "^6.3.3", "ts-jest": "^29.1.0", "ts-node-dev": "^2.0.0", - "typescript": "^5.1.6" + "typescript": "^5.3.0" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -1539,6 +1537,490 @@ "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==" }, + "node_modules/@tsed/common": { + "version": "7.57.1", + "resolved": "https://registry.npmjs.org/@tsed/common/-/common-7.57.1.tgz", + "integrity": "sha512-JXwMQRsN/gsT/TepfvK+MS5c+GZt7czC2kwLdp+SBf/Niig9kF/VQnr7umdIoGjHWS7PRcqh12n+gO8CUAqTnw==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/Romakita" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/tsed" + } + ], + "peer": true, + "dependencies": { + "@tsed/core": "7.57.1", + "@tsed/di": "7.57.1", + "@tsed/exceptions": "7.57.1", + "@tsed/json-mapper": "7.57.1", + "@tsed/logger": ">=6.2.2", + "@tsed/logger-file": ">=6.2.2", + "@tsed/platform-exceptions": "7.57.1", + "@tsed/platform-log-middleware": "7.57.1", + "@tsed/platform-middlewares": "7.57.1", + "@tsed/platform-params": "7.57.1", + "@tsed/platform-response-filter": "7.57.1", + "@tsed/platform-router": "7.57.1", + "@tsed/platform-views": "7.57.1", + "@tsed/schema": "7.57.1", + "@types/json-schema": "7.0.11", + "accepts": "^1.3.8", + "tslib": "2.6.1", + "uuid": "8.3.2" + }, + "peerDependencies": { + "@tsed/logger": ">=6.2.2", + "@tsed/logger-file": ">=6.2.2" + }, + "peerDependenciesMeta": { + "@tsed/logger": { + "optional": false + }, + "@tsed/logger-file": { + "optional": false + } + } + }, + "node_modules/@tsed/common/node_modules/@types/json-schema": { + "version": "7.0.11", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", + "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", + "peer": true + }, + "node_modules/@tsed/common/node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "peer": true, + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/@tsed/core": { + "version": "7.57.1", + "resolved": "https://registry.npmjs.org/@tsed/core/-/core-7.57.1.tgz", + "integrity": "sha512-4ws8DX8sLoIhNZwwU79QGPk3bO5KC+onQPcvbHHzOXs+ciGMgi8iLIf8b+F3UzstLIQIebhkMx9eOD+3OlJoGw==", + "peer": true, + "dependencies": { + "reflect-metadata": "^0.1.13", + "tslib": "2.6.1" + } + }, + "node_modules/@tsed/di": { + "version": "7.57.1", + "resolved": "https://registry.npmjs.org/@tsed/di/-/di-7.57.1.tgz", + "integrity": "sha512-4ee3NoVSt2VGSAPUmAJdD9ZLG58FfdWQM8fup/JmUH5liKR0N1SbsRUSMAjnsv2HN880yblijXErX+6uExOKzg==", + "peer": true, + "dependencies": { + "tslib": "2.6.2" + }, + "peerDependencies": { + "@tsed/core": "^7.57.1", + "@tsed/logger": ">=6.2.2", + "@tsed/schema": "^7.57.1" + }, + "peerDependenciesMeta": { + "@tsed/core": { + "optional": false + }, + "@tsed/logger": { + "optional": false + }, + "@tsed/schema": { + "optional": false + } + } + }, + "node_modules/@tsed/di/node_modules/tslib": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==", + "peer": true + }, + "node_modules/@tsed/engines": { + "version": "7.57.1", + "resolved": "https://registry.npmjs.org/@tsed/engines/-/engines-7.57.1.tgz", + "integrity": "sha512-MGlh3gwEQQTvsKH+Y9Bh0BObyAPcTx8uLLBS2ni6dO6DDDqT67CnI0z7i9SRO59RrGUUPxNTFsDTnaJEqGd2gQ==", + "peer": true, + "dependencies": { + "filedirname": "^2.7.0", + "fs-extra": "11.1.1", + "tslib": "2.6.1" + } + }, + "node_modules/@tsed/exceptions": { + "version": "7.57.1", + "resolved": "https://registry.npmjs.org/@tsed/exceptions/-/exceptions-7.57.1.tgz", + "integrity": "sha512-WOty3oTn4taklbgj5JeP21jks2J6yTjvogBO1W6ejrpfwjZezlGi2C4YQTaj0oNEZ5rRWNRKa4l8HyEJha2wcA==", + "peer": true, + "dependencies": { + "change-case": "4.1.2", + "statuses": ">=2.0.1", + "tslib": "2.6.1" + }, + "peerDependencies": { + "@tsed/core": "^7.57.1" + } + }, + "node_modules/@tsed/json-mapper": { + "version": "7.57.1", + "resolved": "https://registry.npmjs.org/@tsed/json-mapper/-/json-mapper-7.57.1.tgz", + "integrity": "sha512-Iiph/4xcbgkuxNwZQGF0FBMjuMFJ7VR7h8XCkcj0B2+ruGCxFIrcmZ9hNb1a/WiYaoKPROODDhV8KYvWBNANOw==", + "peer": true, + "dependencies": { + "tslib": "2.6.1" + }, + "peerDependencies": { + "@tsed/core": "^7.57.1", + "@tsed/schema": "^7.57.1" + }, + "peerDependenciesMeta": { + "@tsed/core": { + "optional": false + }, + "@tsed/schema": { + "optional": false + } + } + }, + "node_modules/@tsed/logger": { + "version": "6.6.3", + "resolved": "https://registry.npmjs.org/@tsed/logger/-/logger-6.6.3.tgz", + "integrity": "sha512-TwJDWQ3nnZ++A6Si/pHFdCGDoewRSDdmBpN6vwnFRXRjJrkHqITwCMGMG74ZMVBXl8KMI6ngNma2qbIuhKFUyw==", + "peer": true, + "dependencies": { + "colors": "1.4.0", + "date-format": "^4.0.6", + "semver": "^7.3.5", + "tslib": "2.3.1" + } + }, + "node_modules/@tsed/logger-file": { + "version": "6.6.3", + "resolved": "https://registry.npmjs.org/@tsed/logger-file/-/logger-file-6.6.3.tgz", + "integrity": "sha512-b0UZJcJqFmcB6XULd68qOmQJC5H30yzN308EZtZneLxl09lgk7GRteI73K3IL5T7VLFLZeXU3/h718+CbBO0Ow==", + "peer": true, + "dependencies": { + "streamroller": "^3.1.5", + "tslib": "2.3.1" + }, + "peerDependencies": { + "@tsed/logger": "6.6.3" + } + }, + "node_modules/@tsed/logger-file/node_modules/tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", + "peer": true + }, + "node_modules/@tsed/logger/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "peer": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@tsed/logger/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "peer": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@tsed/logger/node_modules/tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", + "peer": true + }, + "node_modules/@tsed/logger/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "peer": true + }, + "node_modules/@tsed/openspec": { + "version": "7.57.1", + "resolved": "https://registry.npmjs.org/@tsed/openspec/-/openspec-7.57.1.tgz", + "integrity": "sha512-JCRDiKI8VIcldzLtCOcO6SdsXyCKCT+AelRBYSyd6isrT8FVOJaGAcAwJNPLYxPT4IAzh38XOg5kyTlkBdzKaA==", + "peer": true + }, + "node_modules/@tsed/passport": { + "version": "7.57.1", + "resolved": "https://registry.npmjs.org/@tsed/passport/-/passport-7.57.1.tgz", + "integrity": "sha512-u09p6OH4pcDLczZAZTgYtWU5DFjSDICUuFspVawEri2U8lI02gBY8cx3QUxhpSK4oUAyQztyWn5ydzLCwA3u8Q==", + "dependencies": { + "tslib": "2.6.1" + }, + "peerDependencies": { + "@tsed/common": "^7.57.1", + "passport": ">=0.4.1" + }, + "peerDependenciesMeta": { + "@tsed/common": { + "optional": false + } + } + }, + "node_modules/@tsed/platform-exceptions": { + "version": "7.57.1", + "resolved": "https://registry.npmjs.org/@tsed/platform-exceptions/-/platform-exceptions-7.57.1.tgz", + "integrity": "sha512-9IyJr/NRudaZGneepZU8Cc+vxjlPyjOr7q7trN5ISeOaJjFJiCmRiQn1BmBN6zNo5FIcQKdSltKEN81md1Sq8Q==", + "peer": true, + "dependencies": { + "tslib": "2.6.1" + }, + "peerDependencies": { + "@tsed/core": "^7.57.1", + "@tsed/di": "^7.57.1", + "@tsed/exceptions": "^7.57.1", + "@tsed/schema": "^7.57.1" + }, + "peerDependenciesMeta": { + "@tsed/core": { + "optional": false + }, + "@tsed/di": { + "optional": false + }, + "@tsed/exceptions": { + "optional": false + }, + "@tsed/schema": { + "optional": false + } + } + }, + "node_modules/@tsed/platform-log-middleware": { + "version": "7.57.1", + "resolved": "https://registry.npmjs.org/@tsed/platform-log-middleware/-/platform-log-middleware-7.57.1.tgz", + "integrity": "sha512-/fL6NSRtNwuVLVzORja10QUMdfbZEXDWYKwpDY7MLBsACa/R9Xy4+gY34oBMjaLGAn3yHa4a1cilzYzlKAioug==", + "peer": true, + "dependencies": { + "tslib": "2.6.1" + }, + "peerDependencies": { + "@tsed/di": "^7.57.1", + "@tsed/platform-middlewares": "^7.57.1", + "@tsed/platform-params": "^7.57.1" + }, + "peerDependenciesMeta": { + "@tsed/di": { + "optional": false + }, + "@tsed/platform-middlewares": { + "optional": false + }, + "@tsed/platform-params": { + "optional": false + } + } + }, + "node_modules/@tsed/platform-middlewares": { + "version": "7.57.1", + "resolved": "https://registry.npmjs.org/@tsed/platform-middlewares/-/platform-middlewares-7.57.1.tgz", + "integrity": "sha512-Tzk1khXnBfPcNtfW+1zGRN4/SjP611BwSdMSZ7uuPi6cnxS27xOxx6aFLt+br/s9ui16A8+pJzfpZ94kbMw8Yg==", + "peer": true, + "dependencies": { + "tslib": "2.6.1" + }, + "peerDependencies": { + "@tsed/core": "^7.57.1", + "@tsed/di": "^7.57.1", + "@tsed/schema": "^7.57.1" + }, + "peerDependenciesMeta": { + "@tsed/core": { + "optional": true + }, + "@tsed/di": { + "optional": true + }, + "@tsed/schema": { + "optional": true + } + } + }, + "node_modules/@tsed/platform-params": { + "version": "7.57.1", + "resolved": "https://registry.npmjs.org/@tsed/platform-params/-/platform-params-7.57.1.tgz", + "integrity": "sha512-TPEXZ9TUmxIthFZewkLzpB6r11cS/aOujIj88phiefmUCZ7d+a8cRNS+YyopHpWVmBWtfbipJcPQI+1r1lgQGA==", + "peer": true, + "dependencies": { + "tslib": "2.6.1" + }, + "peerDependencies": { + "@tsed/core": "^7.57.1", + "@tsed/di": "^7.57.1", + "@tsed/exceptions": "^7.57.1", + "@tsed/json-mapper": "^7.57.1", + "@tsed/schema": "^7.57.1" + }, + "peerDependenciesMeta": { + "@tsed/core": { + "optional": false + }, + "@tsed/di": { + "optional": false + }, + "@tsed/exceptions": { + "optional": false + }, + "@tsed/json-mapper": { + "optional": false + }, + "@tsed/schema": { + "optional": false + } + } + }, + "node_modules/@tsed/platform-response-filter": { + "version": "7.57.1", + "resolved": "https://registry.npmjs.org/@tsed/platform-response-filter/-/platform-response-filter-7.57.1.tgz", + "integrity": "sha512-oJmA6m0+/sfkn4V2fLVnXvfPZeEqHW7l4j1zdMl6H4tKVW7O0CdoBxETjTnV5zpLsykGLb1oyHsUgshaxg9H5g==", + "peer": true, + "dependencies": { + "tslib": "2.6.1" + }, + "peerDependencies": { + "@tsed/core": "^7.57.1", + "@tsed/di": "^7.57.1", + "@tsed/exceptions": "^7.57.1", + "@tsed/json-mapper": "^7.57.1", + "@tsed/schema": "^7.57.1" + }, + "peerDependenciesMeta": { + "@tsed/core": { + "optional": false + }, + "@tsed/di": { + "optional": false + }, + "@tsed/exceptions": { + "optional": false + }, + "@tsed/json-mapper": { + "optional": false + }, + "@tsed/schema": { + "optional": false + } + } + }, + "node_modules/@tsed/platform-router": { + "version": "7.57.1", + "resolved": "https://registry.npmjs.org/@tsed/platform-router/-/platform-router-7.57.1.tgz", + "integrity": "sha512-8Q5QOmqWmZbcvvW9vkfBXwY+ra0/eWpX9QRFEXBbDMOEnWoLax+G590of+X6dENyCYvWowHIjma28cDKTKW2Sw==", + "peer": true, + "dependencies": { + "tslib": "2.6.1" + }, + "peerDependencies": { + "@tsed/core": "^7.57.1", + "@tsed/di": "^7.57.1", + "@tsed/exceptions": "^7.57.1", + "@tsed/json-mapper": "^7.57.1", + "@tsed/platform-params": "^7.57.1", + "@tsed/schema": "^7.57.1" + }, + "peerDependenciesMeta": { + "@tsed/core": { + "optional": false + }, + "@tsed/di": { + "optional": false + }, + "@tsed/exceptions": { + "optional": false + }, + "@tsed/json-mapper": { + "optional": false + }, + "@tsed/platform-params": { + "optional": false + }, + "@tsed/schema": { + "optional": false + } + } + }, + "node_modules/@tsed/platform-views": { + "version": "7.57.1", + "resolved": "https://registry.npmjs.org/@tsed/platform-views/-/platform-views-7.57.1.tgz", + "integrity": "sha512-hPyBTD1It8itv+uQWsO4dmRk3mj6JYEt+B0a4U2AqI8xa1riuUFKc3BzXd7YebyvYkP0SjsONvGNBgb2jK8pNA==", + "peer": true, + "dependencies": { + "@tsed/engines": "7.57.1", + "ejs": "^3.1.5", + "tslib": "2.6.1" + }, + "peerDependencies": { + "@tsed/core": "^7.57.1", + "@tsed/di": "^7.57.1", + "@tsed/engines": "^7.57.1", + "@tsed/exceptions": "^7.57.1", + "@tsed/schema": "^7.57.1" + }, + "peerDependenciesMeta": { + "@tsed/core": { + "optional": false + }, + "@tsed/di": { + "optional": false + }, + "@tsed/exceptions": { + "optional": false + }, + "@tsed/schema": { + "optional": false + } + } + }, + "node_modules/@tsed/schema": { + "version": "7.57.1", + "resolved": "https://registry.npmjs.org/@tsed/schema/-/schema-7.57.1.tgz", + "integrity": "sha512-lK2KpLSo6QqEzyGOHeMDWRSh7mqowfa0ipUfOj1l/CrFgt5maFqH9Wl5HOfO2oHiCRAPOtVwduLKww2uFvkiCA==", + "peer": true, + "dependencies": { + "@tsed/openspec": "7.57.1", + "change-case": "^4.1.2", + "fs-extra": "^11.1.1", + "json-schema": "0.4.0", + "picomatch": "2.3.1", + "statuses": ">=2.0.1", + "tslib": "2.6.1" + }, + "peerDependencies": { + "@tsed/core": "^7.57.1", + "@tsed/openspec": "^7.57.1" + }, + "peerDependenciesMeta": { + "@tsed/core": { + "optional": false + }, + "@tsed/openspec": { + "optional": false + } + } + }, "node_modules/@types/babel__core": { "version": "7.20.5", "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", @@ -1780,16 +2262,6 @@ "@types/passport-strategy": "*" } }, - "node_modules/@types/passport-linkedin-oauth2": { - "version": "1.5.6", - "resolved": "https://registry.npmjs.org/@types/passport-linkedin-oauth2/-/passport-linkedin-oauth2-1.5.6.tgz", - "integrity": "sha512-LlIwa+GGK8KoUHDxxwO2+5uqB6YmIHysqdLwpn+YJsjfmqFdAH+4YjhXO7riYwfYcpEr/pI+dSEDlwF0Xt+qhg==", - "dev": true, - "dependencies": { - "@types/express": "*", - "@types/passport": "*" - } - }, "node_modules/@types/passport-oauth2": { "version": "1.4.15", "resolved": "https://registry.npmjs.org/@types/passport-oauth2/-/passport-oauth2-1.4.15.tgz", @@ -2908,6 +3380,12 @@ "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==", "dev": true }, + "node_modules/async": { + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.5.tgz", + "integrity": "sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg==", + "peer": true + }, "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", @@ -3313,6 +3791,16 @@ "node": ">=6" } }, + "node_modules/camel-case": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", + "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", + "peer": true, + "dependencies": { + "pascal-case": "^3.1.2", + "tslib": "^2.0.3" + } + }, "node_modules/camelcase": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", @@ -3342,6 +3830,17 @@ } ] }, + "node_modules/capital-case": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/capital-case/-/capital-case-1.0.4.tgz", + "integrity": "sha512-ds37W8CytHgwnhGGTi88pcPyR15qoNkOpYwmMMfnWqqWgESapLqvDx6huFjQ5vqWSn2Z06173XNA7LtMOeUh1A==", + "peer": true, + "dependencies": { + "no-case": "^3.0.4", + "tslib": "^2.0.3", + "upper-case-first": "^2.0.2" + } + }, "node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", @@ -3357,6 +3856,26 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, + "node_modules/change-case": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/change-case/-/change-case-4.1.2.tgz", + "integrity": "sha512-bSxY2ws9OtviILG1EiY5K7NNxkqg/JnRnFxLtKQ96JaviiIxi7djMrSd0ECT9AC+lttClmYwKw53BWpOMblo7A==", + "peer": true, + "dependencies": { + "camel-case": "^4.1.2", + "capital-case": "^1.0.4", + "constant-case": "^3.0.4", + "dot-case": "^3.0.4", + "header-case": "^2.0.4", + "no-case": "^3.0.4", + "param-case": "^3.0.4", + "pascal-case": "^3.1.2", + "path-case": "^3.0.4", + "sentence-case": "^3.0.4", + "snake-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, "node_modules/char-regex": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", @@ -3530,6 +4049,15 @@ "color-support": "bin.js" } }, + "node_modules/colors": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", + "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==", + "peer": true, + "engines": { + "node": ">=0.1.90" + } + }, "node_modules/combined-stream": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", @@ -3558,6 +4086,17 @@ "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==" }, + "node_modules/constant-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/constant-case/-/constant-case-3.0.4.tgz", + "integrity": "sha512-I2hSBi7Vvs7BEuJDr5dDHfzb/Ruj3FyvFyh7KLilAjNQw3Be+xgqUBA2W6scVEcL0hL1dwPRtIqEPVUCKkSsyQ==", + "peer": true, + "dependencies": { + "no-case": "^3.0.4", + "tslib": "^2.0.3", + "upper-case": "^2.0.2" + } + }, "node_modules/content-disposition": { "version": "0.5.4", "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", @@ -3689,6 +4228,15 @@ "url": "https://opencollective.com/date-fns" } }, + "node_modules/date-format": { + "version": "4.0.14", + "resolved": "https://registry.npmjs.org/date-format/-/date-format-4.0.14.tgz", + "integrity": "sha512-39BOQLs9ZjKh0/patS9nrT8wc3ioX3/eA/zgbKNopnF2wCqJEoxywwwElATYvRsXdnOxA/OQeQoFZ3rFjVajhg==", + "peer": true, + "engines": { + "node": ">=4.0" + } + }, "node_modules/debug": { "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", @@ -3997,6 +4545,16 @@ "node": ">=6.0.0" } }, + "node_modules/dot-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", + "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", + "peer": true, + "dependencies": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, "node_modules/dotenv": { "version": "16.3.1", "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz", @@ -4030,6 +4588,21 @@ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" }, + "node_modules/ejs": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.9.tgz", + "integrity": "sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==", + "peer": true, + "dependencies": { + "jake": "^10.8.5" + }, + "bin": { + "ejs": "bin/cli.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/electron-to-chromium": { "version": "1.4.394", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.394.tgz", @@ -5086,6 +5659,51 @@ "node": "^10.12.0 || >=12.0.0" } }, + "node_modules/filedirname": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/filedirname/-/filedirname-2.11.0.tgz", + "integrity": "sha512-BJziCt40D3EFDjnpBUVEjOr9VFlZZxLQAbx8QWN8akhayehjoAlAFUDp8bIQAUoOAu/rzSdPnJshgHAWK7TzKQ==", + "peer": true, + "dependencies": { + "get-current-line": "^6.10.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://bevry.me/fund" + } + }, + "node_modules/filelist": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", + "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", + "peer": true, + "dependencies": { + "minimatch": "^5.0.1" + } + }, + "node_modules/filelist/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "peer": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/filelist/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "peer": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/fill-range": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", @@ -5216,6 +5834,20 @@ "node": ">= 0.6" } }, + "node_modules/fs-extra": { + "version": "11.1.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.1.tgz", + "integrity": "sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==", + "peer": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, "node_modules/fs-minipass": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", @@ -5330,6 +5962,18 @@ "node": "6.* || 8.* || >= 10.*" } }, + "node_modules/get-current-line": { + "version": "6.10.0", + "resolved": "https://registry.npmjs.org/get-current-line/-/get-current-line-6.10.0.tgz", + "integrity": "sha512-qxdd6md52tQVow2SQb8JwujNa4cJ5+lxdDk/fvasrxKF5PnIxydnYneARt2xmaBi/h9Op3O5jld+ymugLK6c3A==", + "peer": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://bevry.me/fund" + } + }, "node_modules/get-intrinsic": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", @@ -5471,8 +6115,7 @@ "node_modules/graceful-fs": { "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "dev": true + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" }, "node_modules/graphemer": { "version": "1.4.0", @@ -5562,6 +6205,16 @@ "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==" }, + "node_modules/header-case": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/header-case/-/header-case-2.0.4.tgz", + "integrity": "sha512-H/vuk5TEEVZwrR0lp2zed9OCo1uAILMlx0JEMgC26rzyJJ3N1v6XkwHHXJQdR2doSjcGPM6OKPYoJgf0plJ11Q==", + "peer": true, + "dependencies": { + "capital-case": "^1.0.4", + "tslib": "^2.0.3" + } + }, "node_modules/hexoid": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/hexoid/-/hexoid-1.0.0.tgz", @@ -6264,6 +6917,24 @@ "node": ">=8" } }, + "node_modules/jake": { + "version": "10.8.7", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.7.tgz", + "integrity": "sha512-ZDi3aP+fG/LchyBzUM804VjddnwfSfsdeYkwt8NcbKRvo4rFkjhs456iLFn3k2ZUWvNe4i48WACDbza8fhq2+w==", + "peer": true, + "dependencies": { + "async": "^3.2.3", + "chalk": "^4.0.2", + "filelist": "^1.0.4", + "minimatch": "^3.1.2" + }, + "bin": { + "jake": "bin/cli.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/jest": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", @@ -6920,6 +7591,12 @@ "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", "dev": true }, + "node_modules/json-schema": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", + "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==", + "peer": true + }, "node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", @@ -6944,6 +7621,18 @@ "node": ">=6" } }, + "node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "peer": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, "node_modules/jsonwebtoken": { "version": "9.0.2", "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.2.tgz", @@ -7115,6 +7804,15 @@ "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==" }, + "node_modules/lower-case": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz", + "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==", + "peer": true, + "dependencies": { + "tslib": "^2.0.3" + } + }, "node_modules/lru-cache": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", @@ -7342,6 +8040,16 @@ "node": ">= 0.6" } }, + "node_modules/no-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz", + "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==", + "peer": true, + "dependencies": { + "lower-case": "^2.0.2", + "tslib": "^2.0.3" + } + }, "node_modules/node-addon-api": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz", @@ -7754,6 +8462,16 @@ "resolved": "https://registry.npmjs.org/packet-reader/-/packet-reader-1.0.0.tgz", "integrity": "sha512-HAKu/fG3HpHFO0AA8WE8q2g+gBJaZ9MG7fcKk+IJPLTGAD6Psw4443l+9DGRbOIh3/aXr7Phy0TjilYivJo5XQ==" }, + "node_modules/param-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", + "integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==", + "peer": true, + "dependencies": { + "dot-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, "node_modules/parent-module": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", @@ -7810,6 +8528,16 @@ "node": ">= 0.8" } }, + "node_modules/pascal-case": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz", + "integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==", + "peer": true, + "dependencies": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, "node_modules/passport": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/passport/-/passport-0.6.0.tgz", @@ -7838,21 +8566,6 @@ "node": ">= 0.4.0" } }, - "node_modules/passport-google-oidc": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/passport-google-oidc/-/passport-google-oidc-0.1.0.tgz", - "integrity": "sha512-/TtFXaWvmubm5kXNoJMyzBfxhnZ0lnBPA6w6rmQMP9klmHZf0ArE8IrIEt3yAHoiDzGx4eTO7YasKQFbPsNtVA==", - "dependencies": { - "passport-openidconnect": "0.1.x" - }, - "engines": { - "node": ">= 0.4.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/jaredhanson" - } - }, "node_modules/passport-jwt": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/passport-jwt/-/passport-jwt-4.0.1.tgz", @@ -7862,14 +8575,6 @@ "passport-strategy": "^1.0.0" } }, - "node_modules/passport-linkedin-oauth2": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/passport-linkedin-oauth2/-/passport-linkedin-oauth2-2.0.0.tgz", - "integrity": "sha512-PnSeq2HzFQ/y1/p2RTF/kG2zhJ7kwGVg4xO3E+JNxz2aI0pFJGAqC503FVpUksYbhQdNhL6QYlK9qrEXD7ZYCg==", - "dependencies": { - "passport-oauth2": "1.x.x" - } - }, "node_modules/passport-oauth2": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/passport-oauth2/-/passport-oauth2-1.7.0.tgz", @@ -7889,22 +8594,6 @@ "url": "https://github.com/sponsors/jaredhanson" } }, - "node_modules/passport-openidconnect": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/passport-openidconnect/-/passport-openidconnect-0.1.1.tgz", - "integrity": "sha512-r0QJiWEzwCg2MeCIXVP5G6YxVRqnEsZ2HpgKRthZ9AiQHJrgGUytXpsdcGF9BRwd3yMrEesb/uG/Yxb86rrY0g==", - "dependencies": { - "oauth": "0.9.x", - "passport-strategy": "1.x.x" - }, - "engines": { - "node": ">= 0.6.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/jaredhanson" - } - }, "node_modules/passport-strategy": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/passport-strategy/-/passport-strategy-1.0.0.tgz", @@ -7913,6 +8602,16 @@ "node": ">= 0.4.0" } }, + "node_modules/path-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/path-case/-/path-case-3.0.4.tgz", + "integrity": "sha512-qO4qCFjXqVTrcbPt/hQfhTQ+VhFsqNKOPtytgNKkKxSoEp3XPUQ8ObFuePylOIok5gjn69ry8XiULxCwot3Wfg==", + "peer": true, + "dependencies": { + "dot-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, "node_modules/path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", @@ -8057,7 +8756,6 @@ "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, "engines": { "node": ">=8.6" }, @@ -8574,6 +9272,17 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" }, + "node_modules/sentence-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/sentence-case/-/sentence-case-3.0.4.tgz", + "integrity": "sha512-8LS0JInaQMCRoQ7YUytAo/xUu5W2XnQxV2HI/6uM6U7CITS1RqPElr30V6uIqyMKM9lJGRVFy5/4CuzcixNYSg==", + "peer": true, + "dependencies": { + "no-case": "^3.0.4", + "tslib": "^2.0.3", + "upper-case-first": "^2.0.2" + } + }, "node_modules/serve-static": { "version": "1.15.0", "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", @@ -8709,6 +9418,16 @@ "node": ">=8" } }, + "node_modules/snake-case": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/snake-case/-/snake-case-3.0.4.tgz", + "integrity": "sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==", + "peer": true, + "dependencies": { + "dot-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, "node_modules/source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -8762,6 +9481,75 @@ "node": ">= 0.8" } }, + "node_modules/streamroller": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/streamroller/-/streamroller-3.1.5.tgz", + "integrity": "sha512-KFxaM7XT+irxvdqSP1LGLgNWbYN7ay5owZ3r/8t77p+EtSUAfUgtl7be3xtqtOmGUl9K9YPO2ca8133RlTjvKw==", + "peer": true, + "dependencies": { + "date-format": "^4.0.14", + "debug": "^4.3.4", + "fs-extra": "^8.1.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/streamroller/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "peer": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/streamroller/node_modules/fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "peer": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, + "node_modules/streamroller/node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "peer": true, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/streamroller/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==", + "peer": true + }, + "node_modules/streamroller/node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "peer": true, + "engines": { + "node": ">= 4.0.0" + } + }, "node_modules/string_decoder": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", @@ -9670,9 +10458,9 @@ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, "node_modules/typescript": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.6.tgz", - "integrity": "sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==", + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", + "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -9718,6 +10506,15 @@ "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==", "dev": true }, + "node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "peer": true, + "engines": { + "node": ">= 10.0.0" + } + }, "node_modules/unpipe": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", @@ -9765,6 +10562,24 @@ "browserslist": ">= 4.21.0" } }, + "node_modules/upper-case": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/upper-case/-/upper-case-2.0.2.tgz", + "integrity": "sha512-KgdgDGJt2TpuwBUIjgG6lzw2GWFRCW9Qkfkiv0DxqHHLYJHmtmdUIKcZd8rHgFSjopVTlw6ggzCm1b8MFQwikg==", + "peer": true, + "dependencies": { + "tslib": "^2.0.3" + } + }, + "node_modules/upper-case-first": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/upper-case-first/-/upper-case-first-2.0.2.tgz", + "integrity": "sha512-514ppYHBaKwfJRK/pNC6c/OxfGa0obSnAl106u97Ed0I625Nin96KAjttZF6ZL3e1XLtphxnqrOi9iWgm+u+bg==", + "peer": true, + "dependencies": { + "tslib": "^2.0.3" + } + }, "node_modules/uri-js": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", diff --git a/package.json b/package.json index e89dfd90..8ba11340 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "author": "", "license": "ISC", "dependencies": { + "@tsed/passport": "^7.57.1", "bcrypt": "^5.1.0", "body-parser": "^1.20.2", "cookie-parser": "^1.4.6", @@ -24,9 +25,7 @@ "jsonwebtoken": "^9.0.2", "passport": "^0.6.0", "passport-google-oauth20": "^2.0.0", - "passport-google-oidc": "^0.1.0", "passport-jwt": "^4.0.1", - "passport-linkedin-oauth2": "^2.0.0", "pg": "^8.10.0", "reflect-metadata": "^0.1.13", "ts-node": "^10.9.1", @@ -45,7 +44,6 @@ "@types/passport": "^1.0.12", "@types/passport-google-oauth20": "^2.0.14", "@types/passport-jwt": "^3.0.9", - "@types/passport-linkedin-oauth2": "^1.5.6", "@types/pg": "^8.10.1", "@types/prettier": "^2.7.2", "@types/supertest": "^2.0.12", @@ -66,6 +64,6 @@ "supertest": "^6.3.3", "ts-jest": "^29.1.0", "ts-node-dev": "^2.0.0", - "typescript": "^5.1.6" + "typescript": "^5.3.0" } } diff --git a/src/configs/passport.ts b/src/configs/passport.ts index d34029b7..596a3ccc 100644 --- a/src/configs/passport.ts +++ b/src/configs/passport.ts @@ -13,6 +13,8 @@ import type { Request } from 'express' // Google Authencation Strategy ---- import { Strategy as GoogleStrategy } from 'passport-google-oauth20' import { findOrCreateUser } from '../services/auth.service' +// Import the 'User' type from the appropriate module +import { type User } from '../types' passport.use( new GoogleStrategy( @@ -26,6 +28,7 @@ passport.use( try { const user = await findOrCreateUser(profile) done(null, user) + console.log('user', user) } catch (err) { done(err as Error) } @@ -33,8 +36,8 @@ passport.use( ) ) -passport.serializeUser((user: any, done) => { - done(null, user.primary_email) +passport.serializeUser((user: Express.User, done) => { + done(null, (user as User).primary_email) }) passport.deserializeUser(async (primary_email: string, done) => { @@ -47,14 +50,12 @@ passport.deserializeUser(async (primary_email: string, done) => { } }) -// ----- const cookieExtractor = (req: Request): string => { let token = null if (req?.cookies) { token = req.cookies.jwt } return token - console.log(token) } const options = { diff --git a/src/types.ts b/src/types.ts index 8d017dd0..4a6353e7 100644 --- a/src/types.ts +++ b/src/types.ts @@ -22,3 +22,7 @@ export interface ApiResponse { message?: string data?: T | null } + +export interface User extends Express.User { + primary_email: string +} diff --git a/tsconfig.json b/tsconfig.json index afed81c3..dea2285e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es2022", + "target": "es6", "module": "commonjs", "outDir": "./dist", "strict": true,