[PR #3724] [MERGED] feat(js-sandbox): expose atob & btoa functions for Node.js #4508

Closed
opened 2026-03-17 02:02:18 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/3724
Author: @Timeraa
Created: 1/6/2024
Status: Merged
Merged: 2/5/2024
Merged by: @AndrewBastin

Base: release/2023.12.4Head: feat-pre-request-btoa-atob


📝 Commits (5)

  • e57a577 feat: atob/btoa
  • d0dc1e2 test: combine related test suites
  • 61d7489 chore: consistent format in syntax highlighting
  • 1f63959 chore: cleanup
  • cc22264 test: increase coverage

📊 Changes

4 files changed (+95 additions, -0 deletions)

View changed files

📝 packages/hoppscotch-common/src/helpers/terndoc/ecma.json (+6 -0)
packages/hoppscotch-js-sandbox/src/__tests__/testing/base64-helper-functions.spec.ts (+85 -0)
📝 packages/hoppscotch-js-sandbox/src/pre-request/node-vm/index.ts (+2 -0)
📝 packages/hoppscotch-js-sandbox/src/test-runner/node-vm/index.ts (+2 -0)

📄 Description

Closes #2140

Description

Exposes atob and btoa functions in pre-request and test scripts under the Node VM implementation.

  • Expose atob
  • Expose btoa
  • Write tests

Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/3724 **Author:** [@Timeraa](https://github.com/Timeraa) **Created:** 1/6/2024 **Status:** ✅ Merged **Merged:** 2/5/2024 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `release/2023.12.4` ← **Head:** `feat-pre-request-btoa-atob` --- ### 📝 Commits (5) - [`e57a577`](https://github.com/hoppscotch/hoppscotch/commit/e57a5774abc34debffec5a4ce0348aad85b9a2b4) feat: atob/btoa - [`d0dc1e2`](https://github.com/hoppscotch/hoppscotch/commit/d0dc1e25d18e9b1bd723a88268345f7c22f23242) test: combine related test suites - [`61d7489`](https://github.com/hoppscotch/hoppscotch/commit/61d7489f78f14a3c24415719732152c60b29cdc9) chore: consistent format in syntax highlighting - [`1f63959`](https://github.com/hoppscotch/hoppscotch/commit/1f639596d4976fe15c2ace03f1380275bbc967a3) chore: cleanup - [`cc22264`](https://github.com/hoppscotch/hoppscotch/commit/cc2226405062092fb4b6c692b8826a0411896fe7) test: increase coverage ### 📊 Changes **4 files changed** (+95 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/helpers/terndoc/ecma.json` (+6 -0) ➕ `packages/hoppscotch-js-sandbox/src/__tests__/testing/base64-helper-functions.spec.ts` (+85 -0) 📝 `packages/hoppscotch-js-sandbox/src/pre-request/node-vm/index.ts` (+2 -0) 📝 `packages/hoppscotch-js-sandbox/src/test-runner/node-vm/index.ts` (+2 -0) </details> ### 📄 Description <!-- Thanks for creating this pull request 🤗 Please make sure that the pull request is limited to one type (docs, feature, etc.) and keep it as small as possible. You can open multiple prs instead of opening a huge one. --> <!-- If this pull request closes an issue, please mention the issue number below --> Closes #2140 ### Description <!-- Add a brief description of the pull request --> Exposes `atob` and `btoa` functions in pre-request and test scripts under the Node VM implementation. <!-- You can also choose to add a list of changes and if they have been completed or not by using the markdown to-do list syntax - [ ] Not Completed - [x] Completed --> - [x] Expose atob - [x] Expose btoa - [x] Write tests ### Checks <!-- Make sure your pull request passes the CI checks and do check the following fields as needed - --> - [x] My pull request adheres to the code style of this project - [ ] My code requires changes to the documentation - [ ] I have updated the documentation as required - [x] All the tests have passed --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:02:18 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#4508
No description provided.