Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Allow specifying an encoding output in fromBase64 #130

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

Merged
merged 1 commit into from
Apr 25, 2025

Conversation

sethvargo
Copy link
Member

Also updates deps

@sethvargo sethvargo requested a review from a team as a code owner April 25, 2025 16:21
@sethvargo sethvargo requested review from verbanicm and Copilot April 25, 2025 16:21
Copy link

@Copilot Copilot AI left a 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 enables the fromBase64 function to output in a specified encoding and updates dependencies accordingly.

  • Updated tests to include a custom output encoding scenario
  • Modified fromBase64 to handle an optional outEncoding parameter with a default value
  • Adjusted ESLint globals to recognize BufferEncoding

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

File Description
tests/encoding.test.ts Added a test case to verify custom encoding output functionality
src/encoding.ts Updated fromBase64 to support an optional outEncoding parameter
eslint.config.mjs Added BufferEncoding as a readonly global to support type checking
Files not reviewed (1)
  • package.json: Language not supported

@sethvargo sethvargo force-pushed the sethvargo/encode_out branch from 435dbf5 to 613e527 Compare April 25, 2025 16:22
@sethvargo sethvargo enabled auto-merge (squash) April 25, 2025 16:23
@sethvargo sethvargo force-pushed the sethvargo/encode_out branch from 613e527 to 024af8b Compare April 25, 2025 16:23
@sethvargo sethvargo force-pushed the sethvargo/encode_out branch from 024af8b to 37ea9e2 Compare April 25, 2025 16:24
@sethvargo sethvargo merged commit a1193f1 into main Apr 25, 2025
6 checks passed
@sethvargo sethvargo deleted the sethvargo/encode_out branch April 25, 2025 17:48
google-github-actions-bot added a commit that referenced this pull request Apr 25, 2025
## What's Changed
* Allow specifying an encoding output in `fromBase64` by @sethvargo in
#130


**Full Changelog**:
v0.8.6...v0.8.7

---------

Co-authored-by: Seth Vargo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants