Skip to content

fix: handle binary content properly#9

Merged
xakraz merged 8 commits intomainfrom
fix/binariesSupport
Feb 27, 2026
Merged

fix: handle binary content properly#9
xakraz merged 8 commits intomainfrom
fix/binariesSupport

Conversation

@xakraz
Copy link

@xakraz xakraz commented Feb 27, 2026

No description provided.

- Add test for loading a binary file as a blob and converting its contents to a base64 string.
- Add test for handling a binary buffer stream with Base64Encoder.
- Update regular expressions for extracting URL variables and modifying authorization headers by simplifying the patterns.
- Correct version numbers throughout the codebase for consistency.
- Simplify the implementation of the random boundary calculation for form data using a direct `Math.floor` function call.
- Refine module import pattern by eliminating the use of custom property listing, ensuring consistency.
- Remove unnecessary `crypto` module import and handle random number generation internally.

Signed-off-by: Xavier Krantz <xavier.krantz@datadome.co>
- Introduce retry logic when fetching repository info if the branch was just pushed, with up to 5 attempts.
- Add a flag to track if the branch was just pushed, affecting subsequent operations.
- Update variable names from `repository` to `repoData` to enhance code clarity.
- Import a new `RepositoryWithCommitHistory` type for better type definition.
- Adjust error handling to use `repoData` for identifying branch commit issues.

Signed-off-by: Xavier Krantz <xavier.krantz@datadome.co>
@xakraz xakraz merged commit b793b7c into main Feb 27, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant