Skip to content

Conversation

@IamLizu
Copy link
Contributor

@IamLizu IamLizu commented Nov 12, 2024

As discussed in expressjs/express#5878 about adding an option to enable throwing error when parameter limit exceeded, I have,

  • added throwOnLimitExceeded which is false by default.
  • added test cases to cover this change.
  • updated README to document this behavior.

Additionally, as #515 suggests about throwing an error in case of any limit is exceeded, it has been implemented as well.

References

  1. Fixes parse: add new option to throw when parameterLimit is reached #515

@coderabbitai

This comment was marked as spam.

@ljharb ljharb changed the title [New]: parse: add throwOnParameterLimitExceeded option [New]: parse: add throwOnLimitExceeded option Nov 12, 2024
@IamLizu IamLizu marked this pull request as ready for review November 12, 2024 19:58
@IamLizu IamLizu requested a review from ljharb November 12, 2024 20:11
@IamLizu IamLizu requested a review from ljharb November 17, 2024 17:33
@ljharb ljharb force-pushed the feat/throw-when-parameter-limit-reached branch 5 times, most recently from f38634b to ef0b96f Compare November 17, 2024 18:33
@ljharb ljharb merged commit ef0b96f into ljharb:main Nov 17, 2024
362 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

parse: add new option to throw when parameterLimit is reached

2 participants