Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New]: parse: add throwOnLimitExceeded option #517

Merged
merged 1 commit into from
Nov 17, 2024

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

This comment was marked as spam.

lib/parse.js Outdated Show resolved Hide resolved
lib/parse.js Outdated Show resolved Hide resolved
lib/parse.js Outdated Show resolved Hide resolved
@ljharb ljharb changed the title [New]: parse: add throwOnParameterLimitExceeded option [New]: parse: add throwOnLimitExceeded option Nov 12, 2024
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
@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
README.md Show resolved Hide resolved
lib/parse.js Outdated Show resolved Hide resolved
lib/parse.js Outdated Show resolved Hide resolved
test/parse.js Outdated Show resolved Hide resolved
test/parse.js Outdated Show resolved Hide resolved
test/parse.js Outdated Show resolved Hide resolved
lib/parse.js Outdated Show resolved Hide resolved
@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
363 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