mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: upgrade openapi to drop dompurify and fix path-to-regexp (#8170)
This new version [does not depend on dompurify](https://github.com/Unleash/unleash/pull/8170/files#diff-51e4f558fae534656963876761c95b83b6ef5da5103c4adef6768219ed76c2deL3853-L3858) which should fix https://github.com/Unleash/unleash/security/dependabot/195 Tested the UI locally 
This commit is contained in:
		
							parent
							
								
									cb6d45d29a
								
							
						
					
					
						commit
						a48da821ef
					
				| @ -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", | ||||
| @ -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", | ||||
| @ -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}": [ | ||||
|  | ||||
| @ -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 { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user