-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Added Base64 related utility functions #52
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds Base64 encoding/decoding utilities and a type utility for plain object detection. It also improves the null property clearing function to handle edge cases better.
- Adds
encodeBase64anddecodeBase64functions with special character handling options - Introduces
isPlainObjectutility to distinguish plain objects from arrays, dates, and custom objects - Enhances
clearNullPropertiesto properly handle arrays and nested objects using the new plain object check
Reviewed Changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| package/commonUtil/encodeBase64/index.ts | Implements Base64 encoding with URI encoding options |
| package/commonUtil/decodeBase64/index.ts | Implements Base64 decoding with URI decoding options |
| package/typeUtil/isPlainObject/index.ts | Adds utility to check for plain objects vs other object types |
| package/objectUtil/clearNullProperties/index.ts | Improves null property clearing with better object type detection |
| package/typeUtil/index.ts | Exports the new type utility with incorrect naming |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||
prgmr99
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다~~!!
Description
atob,btoa에서 유니코드와 더불어 한글까지 지원하는 형태예요closes: #50
closes: #51