Skip to content

Commit

Permalink
fix: upgrade openapi to drop dompurify and fix path-to-regexp (#8170)
Browse files Browse the repository at this point in the history
  • Loading branch information
gastonfournier authored Sep 18, 2024
1 parent cb6d45d commit a48da82
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 692 deletions.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,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 @@ -206,7 +206,7 @@
"del-cli": "5.1.0",
"faker": "5.5.3",
"fast-check": "3.22.0",
"fetch-mock": "9.11.0",
"fetch-mock": "^11.1.3",
"husky": "^9.0.11",
"jest": "29.7.0",
"jest-junit": "^16.0.0",
Expand Down Expand Up @@ -234,7 +234,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 a48da82

Please sign in to comment.