-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: url parse add parseQueryInts function and tests (#81)
* feat: add parseQueryInts function and corresponding tests - Introduced parseQueryInts function to convert URL query parameter values into an array of integers, with support for custom separators. - Enhanced error handling to throw TypeError for invalid inputs, ensuring robust type safety. - Added unit tests for parseQueryInts in url-parse.test.ts, covering various input scenarios including valid integers, empty strings, and invalid formats. - Updated documentation with detailed JSDoc comments in both English and Chinese, clarifying parameters, return values, and error handling. * feat: add parseQueryNumbers function and corresponding tests - Introduced parseQueryNumbers function to convert URL query parameter values into an array of numbers, supporting custom separators. - Enhanced error handling to throw TypeError for invalid inputs, including NaN and Infinity values. - Added unit tests for parseQueryNumbers in url-parse.test.ts, covering various input scenarios including valid numbers, empty strings, and invalid formats. - Updated documentation with detailed JSDoc comments in both English and Chinese, clarifying parameters, return values, and error handling. * chore: update version to 0.2.1 in deno.json
- Loading branch information
Showing
3 changed files
with
137 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters