[PR #434] [MERGED] fix: name check bug #576

Closed
opened 2026-02-26 21:31:52 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/434
Author: @dreamhunter2333
Created: 8/25/2024
Status: Merged
Merged: 8/25/2024
Merged by: @dreamhunter2333

Base: mainHead: feature/dev


📝 Commits (1)

📊 Changes

7 files changed (+14 additions, -9 deletions)

View changed files

📝 CHANGELOG.md (+4 -0)
📝 frontend/package.json (+1 -1)
📝 pages/package.json (+1 -1)
📝 vitepress-docs/package.json (+1 -1)
📝 worker/package.json (+1 -1)
📝 worker/src/common.ts (+5 -4)
📝 worker/src/constants.ts (+1 -1)

📄 Description

User description

#431


PR Type

Bug fix, Documentation, Enhancement


Description

  • Fixed the checkNameBlockList function to properly handle the block list by moving the block list initialization outside the try-catch block and improving error handling for blocked names.
  • Updated the version constant to v0.7.5 in worker/src/constants.ts.
  • Added a new entry for version v0.7.5 in CHANGELOG.md with a fix description.
  • Bumped the version to 0.7.5 in multiple package.json files (frontend, pages, vitepress-docs, worker).

Changes walkthrough 📝

Relevant files
Bug fix
common.ts
Fix and improve name block list check                                       

worker/src/common.ts

  • Fixed the checkNameBlockList function to properly handle the block
    list.
  • Moved the block list initialization outside the try-catch block.
  • Improved error handling for blocked names.
  • +5/-4     
    Enhancement
    constants.ts
    Update version constant to v0.7.5                                               

    worker/src/constants.ts

    • Updated the version constant to v0.7.5.
    +1/-1     
    package.json
    Bump frontend package version to 0.7.5                                     

    frontend/package.json

    • Bumped the version to 0.7.5.
    +1/-1     
    package.json
    Bump pages package version to 0.7.5                                           

    pages/package.json

    • Bumped the version to 0.7.5.
    +1/-1     
    package.json
    Bump vitepress-docs package version to 0.7.5                         

    vitepress-docs/package.json

    • Bumped the version to 0.7.5.
    +1/-1     
    package.json
    Bump worker package version to 0.7.5                                         

    worker/package.json

    • Bumped the version to 0.7.5.
    +1/-1     
    Documentation
    CHANGELOG.md
    Add changelog entry for v0.7.5                                                     

    CHANGELOG.md

    • Added a new entry for version v0.7.5 with a fix description.
    +4/-0     

    💡 PR-Agent usage:
    Comment /help on the PR to get a list of all available PR-Agent tools and their descriptions


    🔄 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/dreamhunter2333/cloudflare_temp_email/pull/434 **Author:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Created:** 8/25/2024 **Status:** ✅ Merged **Merged:** 8/25/2024 **Merged by:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Base:** `main` ← **Head:** `feature/dev` --- ### 📝 Commits (1) - [`42b9834`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/42b9834e777398250ac0ff4ee2a7e470addc69b6) fix: name check bug ### 📊 Changes **7 files changed** (+14 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+4 -0) 📝 `frontend/package.json` (+1 -1) 📝 `pages/package.json` (+1 -1) 📝 `vitepress-docs/package.json` (+1 -1) 📝 `worker/package.json` (+1 -1) 📝 `worker/src/common.ts` (+5 -4) 📝 `worker/src/constants.ts` (+1 -1) </details> ### 📄 Description ### **User description** #431 ___ ### **PR Type** Bug fix, Documentation, Enhancement ___ ### **Description** - Fixed the `checkNameBlockList` function to properly handle the block list by moving the block list initialization outside the try-catch block and improving error handling for blocked names. - Updated the version constant to `v0.7.5` in `worker/src/constants.ts`. - Added a new entry for version `v0.7.5` in `CHANGELOG.md` with a fix description. - Bumped the version to `0.7.5` in multiple `package.json` files (`frontend`, `pages`, `vitepress-docs`, `worker`). ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Bug fix</strong></td><td><table> <tr> <td> <details> <summary><strong>common.ts</strong><dd><code>Fix and improve name block list check</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/common.ts <li>Fixed the <code>checkNameBlockList</code> function to properly handle the block <br>list.<br> <li> Moved the block list initialization outside the try-catch block.<br> <li> Improved error handling for blocked names.<br> </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/434/files#diff-fcc08fd5aa3c190d0d45c7e3dd208e5ee831d360b272fdd5869607cf472c5eb1">+5/-4</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr><tr><td><strong>Enhancement</strong></td><td><table> <tr> <td> <details> <summary><strong>constants.ts</strong><dd><code>Update version constant to v0.7.5</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/constants.ts - Updated the version constant to `v0.7.5`. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/434/files#diff-cab08ba19c1499ed426fc4918a5613e22eb95c3427c7467ce330f5ee0d69d01e">+1/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>package.json</strong><dd><code>Bump frontend package version to 0.7.5</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> frontend/package.json - Bumped the version to `0.7.5`. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/434/files#diff-da6498268e99511d9ba0df3c13e439d10556a812881c9d03955b2ef7c6c1c655">+1/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>package.json</strong><dd><code>Bump pages package version to 0.7.5</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> pages/package.json - Bumped the version to `0.7.5`. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/434/files#diff-74314f72f6616d400be4cb0d161867d8148f23c22d4c12c7188aedb129c00c59">+1/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>package.json</strong><dd><code>Bump vitepress-docs package version to 0.7.5</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> vitepress-docs/package.json - Bumped the version to `0.7.5`. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/434/files#diff-3adbfbfaa65ecc60f48c8d009a52c697d4c80d61ee887799df22407fcb73f380">+1/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>package.json</strong><dd><code>Bump worker package version to 0.7.5</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/package.json - Bumped the version to `0.7.5`. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/434/files#diff-89dc6f41a53ce13f2da5a00dd34868762e6cd0df46eddc9f5c3c4510b1493870">+1/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr><tr><td><strong>Documentation</strong></td><td><table> <tr> <td> <details> <summary><strong>CHANGELOG.md</strong><dd><code>Add changelog entry for v0.7.5</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> CHANGELOG.md - Added a new entry for version `v0.7.5` with a fix description. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/434/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed">+4/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr></tr></tbody></table> ___ > 💡 **PR-Agent usage**: >Comment `/help` on the PR to get a list of all available PR-Agent tools and their descriptions --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
    kerem 2026-02-26 21:31:52 +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/cloudflare_temp_email#576
    No description provided.