Skip to content

Commit

Permalink
chore: up deps and added koa body parser json limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Arun-KumarH committed Jul 26, 2023
1 parent 63375dc commit 44b7427
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 90 deletions.
5 changes: 5 additions & 0 deletions cfg/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,5 +159,10 @@
}
]
}
},
"koa": {
"bodyParser": {
"jsonLimit": "50mb"
}
}
}
164 changes: 82 additions & 82 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
"dependencies": {
"@apollo/federation": "^0.38.1",
"@apollo/gateway": "^2.5.1",
"@restorecommerce/facade": "^1.4.2",
"@restorecommerce/facade": "^1.4.4",
"@restorecommerce/logger": "^1.2.3",
"@restorecommerce/service-config": "^1.0.5",
"array.prototype.flat": "^1.3.1",
"bcryptjs": "^2.4.3",
"cross-env": "^7.0.3",
"lodash": "^4.17.21",
"node-fetch": "^3.3.1",
"node-fetch": "^3.3.2",
"ts-node": "^10.9.1",
"ts-proto-descriptors": "^1.15.0",
"uuid": "^9.0.0",
Expand All @@ -36,16 +36,16 @@
"devDependencies": {
"@types/jest": "^29.5.3",
"@types/mocha": "^10.0.1",
"@types/node": "^20.4.4",
"@types/node": "^20.4.5",
"@types/supertest": "^2.0.12",
"@typescript-eslint/eslint-plugin": "^6.1.0",
"@typescript-eslint/eslint-plugin-tslint": "^6.1.0",
"@typescript-eslint/parser": "^6.1.0",
"@typescript-eslint/eslint-plugin": "^6.2.0",
"@typescript-eslint/eslint-plugin-tslint": "^6.2.0",
"@typescript-eslint/parser": "^6.2.0",
"coveralls": "^3.1.1",
"eslint": "^8.45.0",
"eslint-plugin-file-extension-in-import-ts": "^1.0.2",
"eslint-plugin-prefer-arrow-functions": "^3.1.4",
"eslint-plugin-unicorn": "^48.0.0",
"eslint-plugin-unicorn": "^48.0.1",
"jest": "^29.6.1",
"mocha": "^10.2.0",
"nodemon": "^3.0.1",
Expand Down
3 changes: 2 additions & 1 deletion src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ export class Worker {
env: this.cfg.get('NODE_ENV'),
logger: this.logger,
kafka: this.cfg.get('events:kafka'),
fileUploadOptions: this.cfg.get('fileUploadOptions')
fileUploadOptions: this.cfg.get('fileUploadOptions'),
jsonLimit: this.cfg.get('koa:bodyParser:jsonLimit'),
})
.useModule(identityModule({
identitySrvClientConfig: this.cfg.get('identity').client,
Expand Down

0 comments on commit 44b7427

Please sign in to comment.