Browse Source
			
			
			Feature/upgrade body parser to version 1.20.2 (#3406)
			
				* Upgrade body-parser to version 1.20.2
* Update changelog
			
			
				pull/3410/head^2
			
			
		 
		
			
				
					
						
						Thomas Kaul
					
					1 year ago
					
						
							committed by
							
								
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: B5690EEEBB952194
						
					
				
			
		
		
		
	
		
			
				 4 changed files with 
9 additions and 
8 deletions
			 
			
		 
		
			
				- 
					
					
					 
					CHANGELOG.md
				
 
			
				- 
					
					
					 
					apps/api/src/main.ts
				
 
			
				- 
					
					
					 
					package.json
				
 
			
				- 
					
					
					 
					yarn.lock
				
 
			
		
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
					@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					### Changed | 
					 | 
					 | 
					### Changed | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					- Refactored various pages to standalone components | 
					 | 
					 | 
					- Refactored various pages to standalone components | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					- Upgraded `body-parser` from version `1.20.1` to `1.20.2` | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					## 2.81.0 - 2024-05-12 | 
					 | 
					 | 
					## 2.81.0 - 2024-05-12 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  | 
				
			
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
					@ -2,7 +2,7 @@ import { Logger, ValidationPipe, VersioningType } from '@nestjs/common'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { ConfigService } from '@nestjs/config'; | 
					 | 
					 | 
					import { ConfigService } from '@nestjs/config'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { NestFactory } from '@nestjs/core'; | 
					 | 
					 | 
					import { NestFactory } from '@nestjs/core'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import type { NestExpressApplication } from '@nestjs/platform-express'; | 
					 | 
					 | 
					import type { NestExpressApplication } from '@nestjs/platform-express'; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					import * as bodyParser from 'body-parser'; | 
					 | 
					 | 
					import { json } from 'body-parser'; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					import helmet from 'helmet'; | 
					 | 
					 | 
					import helmet from 'helmet'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { AppModule } from './app/app.module'; | 
					 | 
					 | 
					import { AppModule } from './app/app.module'; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -34,7 +34,7 @@ async function bootstrap() { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  ); | 
					 | 
					 | 
					  ); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  // Support 10mb csv/json files for importing activities
 | 
					 | 
					 | 
					  // Support 10mb csv/json files for importing activities
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					  app.use(bodyParser.json({ limit: '10mb' })); | 
					 | 
					 | 
					  app.use(json({ limit: '10mb' })); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  if (configService.get<string>('ENABLE_FEATURE_SUBSCRIPTION') === 'true') { | 
					 | 
					 | 
					  if (configService.get<string>('ENABLE_FEATURE_SUBSCRIPTION') === 'true') { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    app.use( | 
					 | 
					 | 
					    app.use( | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  | 
				
			
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
					@ -90,7 +90,7 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    "@stripe/stripe-js": "1.47.0", | 
					 | 
					 | 
					    "@stripe/stripe-js": "1.47.0", | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    "alphavantage": "2.2.0", | 
					 | 
					 | 
					    "alphavantage": "2.2.0", | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    "big.js": "6.2.1", | 
					 | 
					 | 
					    "big.js": "6.2.1", | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    "body-parser": "1.20.1", | 
					 | 
					 | 
					    "body-parser": "1.20.2", | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					    "bootstrap": "4.6.0", | 
					 | 
					 | 
					    "bootstrap": "4.6.0", | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    "bull": "4.10.4", | 
					 | 
					 | 
					    "bull": "4.10.4", | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    "cache-manager": "3.4.3", | 
					 | 
					 | 
					    "cache-manager": "3.4.3", | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -167,7 +167,7 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    "@storybook/core-server": "7.6.5", | 
					 | 
					 | 
					    "@storybook/core-server": "7.6.5", | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    "@trivago/prettier-plugin-sort-imports": "4.3.0", | 
					 | 
					 | 
					    "@trivago/prettier-plugin-sort-imports": "4.3.0", | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    "@types/big.js": "6.2.2", | 
					 | 
					 | 
					    "@types/big.js": "6.2.2", | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    "@types/body-parser": "1.19.2", | 
					 | 
					 | 
					    "@types/body-parser": "1.19.5", | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					    "@types/cache-manager": "3.4.2", | 
					 | 
					 | 
					    "@types/cache-manager": "3.4.2", | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    "@types/color": "3.0.3", | 
					 | 
					 | 
					    "@types/color": "3.0.3", | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    "@types/google-spreadsheet": "3.1.5", | 
					 | 
					 | 
					    "@types/google-spreadsheet": "3.1.5", | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  | 
				
			
			
		
	
								
							
						
					 
					
				 
			 
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
					@ -7064,10 +7064,10 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    "@types/connect" "*" | 
					 | 
					 | 
					    "@types/connect" "*" | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    "@types/node" "*" | 
					 | 
					 | 
					    "@types/node" "*" | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					"@types/body-parser@1.19.2": | 
					 | 
					 | 
					"@types/body-parser@1.19.5": | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					  version "1.19.2" | 
					 | 
					 | 
					  version "1.19.5" | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					  resolved "https://registry.yarnpkg.com/@types/body-parser/-/body-parser-1.19.2.tgz#aea2059e28b7658639081347ac4fab3de166e6f0" | 
					 | 
					 | 
					  resolved "https://registry.yarnpkg.com/@types/body-parser/-/body-parser-1.19.5.tgz#04ce9a3b677dc8bd681a17da1ab9835dc9d3ede4" | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					  integrity sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g== | 
					 | 
					 | 
					  integrity sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg== | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					  dependencies: | 
					 | 
					 | 
					  dependencies: | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    "@types/connect" "*" | 
					 | 
					 | 
					    "@types/connect" "*" | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    "@types/node" "*" | 
					 | 
					 | 
					    "@types/node" "*" | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |