Skip to content

Commit

Permalink
fix: cherry pick security fixes (#8175)
Browse files Browse the repository at this point in the history
  • Loading branch information
gastonfournier authored Sep 18, 2024
1 parent cf14d03 commit 453722b
Show file tree
Hide file tree
Showing 3 changed files with 228 additions and 793 deletions.
24 changes: 13 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
},
"dependencies": {
"@slack/web-api": "^6.10.0",
"@wesleytodd/openapi": "^0.3.0",
"@wesleytodd/openapi": "^1.1.0",
"ajv": "^8.12.0",
"ajv-formats": "^2.1.1",
"async": "^3.2.4",
Expand Down Expand Up @@ -147,7 +147,7 @@
"log4js": "^6.0.0",
"make-fetch-happen": "^13.0.0",
"memoizee": "^0.4.17",
"mime": "^3.0.0",
"mime": "^4.0.4",
"murmurhash3js": "^3.0.1",
"mustache": "^4.1.0",
"nodemailer": "^6.9.9",
Expand All @@ -160,21 +160,21 @@
"prom-client": "^14.0.0",
"response-time": "^2.3.2",
"sanitize-filename": "^1.6.3",
"semver": "^7.6.2",
"semver": "^7.6.3",
"serve-favicon": "^2.5.0",
"slug": "^9.0.0",
"stoppable": "^1.1.0",
"ts-toolbelt": "^9.6.0",
"type-is": "^1.6.18",
"unleash-client": "5.5.5",
"unleash-client": "6.1.1",
"uuid": "^9.0.0"
},
"devDependencies": {
"@apidevtools/swagger-parser": "10.1.0",
"@babel/core": "7.25.2",
"@biomejs/biome": "^1.8.3",
"@cyclonedx/yarn-plugin-cyclonedx": "^1.0.0-rc.7",
"@swc/core": "1.7.21",
"@swc/core": "1.7.24",
"@swc/jest": "0.2.36",
"@types/bcryptjs": "2.4.6",
"@types/cors": "2.8.17",
Expand All @@ -187,9 +187,9 @@
"@types/lodash.groupby": "4.6.9",
"@types/make-fetch-happen": "10.0.4",
"@types/memoizee": "0.4.11",
"@types/mime": "3.0.4",
"@types/mime": "4.0.0",
"@types/mustache": "^4.2.5",
"@types/node": "20.14.15",
"@types/node": "20.16.3",
"@types/nodemailer": "6.4.15",
"@types/owasp-password-strength-test": "1.3.2",
"@types/pg": "8.11.8",
Expand All @@ -204,12 +204,12 @@
"coveralls": "3.1.1",
"del-cli": "5.1.0",
"faker": "5.5.3",
"fast-check": "3.21.0",
"fetch-mock": "9.11.0",
"fast-check": "3.22.0",
"fetch-mock": "^11.1.3",
"husky": "^9.0.11",
"jest": "29.7.0",
"jest-junit": "^16.0.0",
"lint-staged": "15.2.9",
"lint-staged": "15.2.10",
"nock": "13.5.5",
"openapi-enforcer": "1.23.0",
"proxyquire": "2.1.3",
Expand All @@ -233,7 +233,9 @@
"tar": "7.4.3",
"minimatch": "^5.0.0",
"semver": "^7.6.2",
"tough-cookie": "4.1.4"
"tough-cookie": "4.1.4",
"@wesleytodd/openapi/path-to-regexp": "6.3.0",
"router/path-to-regexp": "0.1.10"
},
"lint-staged": {
"*.{js,ts}": [
Expand Down
2 changes: 1 addition & 1 deletion src/lib/services/openapi-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class OpenApiService {

useDocs(app: Express): void {
app.use(this.api);
app.use(this.docsPath(), this.api.swaggerui);
app.use(this.docsPath(), this.api.swaggerui());
}

docsPath(): string {
Expand Down
Loading

0 comments on commit 453722b

Please sign in to comment.