Increase file size limit for imports (#1726)

* Increase file size limit for imports

* Update changelog
pull/1725/head^2
Jason Feng 2 years ago committed by GitHub
parent e0c0425d21
commit b58631083b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed ### Changed
- Increased the file size limit for the activities import
- Upgraded `angular` from version `15.1.2` to `15.1.5` - Upgraded `angular` from version `15.1.2` to `15.1.5`
- Upgraded `Nx` from version `15.6.3` to `15.7.2` - Upgraded `Nx` from version `15.6.3` to `15.7.2`

@ -1,6 +1,7 @@
import { Logger, ValidationPipe, VersioningType } from '@nestjs/common'; 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 * as bodyParser from 'body-parser';
import { AppModule } from './app/app.module'; import { AppModule } from './app/app.module';
import { environment } from './environments/environment'; import { environment } from './environments/environment';
@ -33,6 +34,9 @@ async function bootstrap() {
}) })
); );
// Support 10mb csv/json files for importing activities
app.use(bodyParser.json({ limit: '10mb' }));
const HOST = configService.get<string>('HOST') || '0.0.0.0'; const HOST = configService.get<string>('HOST') || '0.0.0.0';
const PORT = configService.get<number>('PORT') || 3333; const PORT = configService.get<number>('PORT') || 3333;
await app.listen(PORT, HOST, () => { await app.listen(PORT, HOST, () => {

@ -88,6 +88,7 @@
"alphavantage": "2.2.0", "alphavantage": "2.2.0",
"bent": "7.3.12", "bent": "7.3.12",
"big.js": "6.2.1", "big.js": "6.2.1",
"body-parser": "1.20.1",
"bootstrap": "4.6.0", "bootstrap": "4.6.0",
"bull": "4.10.2", "bull": "4.10.2",
"cache-manager": "3.4.3", "cache-manager": "3.4.3",
@ -160,6 +161,7 @@
"@storybook/core-server": "6.5.16", "@storybook/core-server": "6.5.16",
"@storybook/manager-webpack5": "6.5.16", "@storybook/manager-webpack5": "6.5.16",
"@types/big.js": "6.1.6", "@types/big.js": "6.1.6",
"@types/body-parser": "1.19.2",
"@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",

File diff suppressed because it is too large Load Diff

@ -5932,7 +5932,7 @@
resolved "https://registry.yarnpkg.com/@types/big.js/-/big.js-6.1.6.tgz#3d417e758483d55345a03a087f7e0c87137ca444" resolved "https://registry.yarnpkg.com/@types/big.js/-/big.js-6.1.6.tgz#3d417e758483d55345a03a087f7e0c87137ca444"
integrity sha512-0r9J+Zz9rYm2hOTwiMAVkm3XFQ4u5uTK37xrQMhc9bysn/sf/okzovWMYYIBMFTn/yrEZ11pusgLEaoarTlQbA== integrity sha512-0r9J+Zz9rYm2hOTwiMAVkm3XFQ4u5uTK37xrQMhc9bysn/sf/okzovWMYYIBMFTn/yrEZ11pusgLEaoarTlQbA==
"@types/body-parser@*": "@types/body-parser@*", "@types/body-parser@1.19.2":
version "1.19.2" version "1.19.2"
resolved "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz" resolved "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.2.tgz"
integrity sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g== integrity sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==
@ -8045,6 +8045,24 @@ body-parser@1.20.0:
type-is "~1.6.18" type-is "~1.6.18"
unpipe "1.0.0" unpipe "1.0.0"
body-parser@1.20.1:
version "1.20.1"
resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.20.1.tgz#b1812a8912c195cd371a3ee5e66faa2338a5c668"
integrity sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==
dependencies:
bytes "3.1.2"
content-type "~1.0.4"
debug "2.6.9"
depd "2.0.0"
destroy "1.2.0"
http-errors "2.0.0"
iconv-lite "0.4.24"
on-finished "2.4.1"
qs "6.11.0"
raw-body "2.5.1"
type-is "~1.6.18"
unpipe "1.0.0"
bonjour-service@^1.0.11: bonjour-service@^1.0.11:
version "1.0.13" version "1.0.13"
resolved "https://registry.npmjs.org/bonjour-service/-/bonjour-service-1.0.13.tgz" resolved "https://registry.npmjs.org/bonjour-service/-/bonjour-service-1.0.13.tgz"
@ -18250,6 +18268,13 @@ qs@6.10.3:
dependencies: dependencies:
side-channel "^1.0.4" side-channel "^1.0.4"
qs@6.11.0:
version "6.11.0"
resolved "https://registry.yarnpkg.com/qs/-/qs-6.11.0.tgz#fd0d963446f7a65e1367e01abd85429453f0c37a"
integrity sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==
dependencies:
side-channel "^1.0.4"
qs@^6.10.0, qs@^6.4.0, qs@^6.6.0: qs@^6.10.0, qs@^6.4.0, qs@^6.6.0:
version "6.10.5" version "6.10.5"
resolved "https://registry.npmjs.org/qs/-/qs-6.10.5.tgz" resolved "https://registry.npmjs.org/qs/-/qs-6.10.5.tgz"

Loading…
Cancel
Save