8000 Fix `navigator` not defined `ReferenceError` by hyperupcall · Pull Request #642 · chalk/chalk · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix navigator not defined ReferenceError #642

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

Conversation

hyperupcall
Copy link
Contributor
@hyperupcall hyperupcall commented Dec 21, 2024

This is a follow-up to #640 that will fix #639

In this PR, I applied the fix for the potentially undefined navigator in the same way that was done in supports-color

@sindresorhus sindresorhus merged commit 4ebb62d into chalk:main Dec 21, 2024
1 of 3 checks passed
Blankll added a commit to geek-fun/serverlessinsight that referenced this pull request Feb 10, 2025
![snyk-top-banner](https://redirect.github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)


<h3>Snyk has created this PR to upgrade chalk from 5.3.0 to 5.4.1.</h3>

:information_source: Keep your dependencies up-to-date. This makes it
easier to fix existing vulnerabilities and to more quickly identify and
fix newly disclosed vulnerabilities when they affect your project.

<hr/>


- The recommended version is **2 versions** ahead of your current
version.

- The recommended version was released **a month ago**.



<details>
<summary><b>Release notes</b></summary>
<br/>
  <details>
    <summary>Package name: <b>chalk</b></summary>
    <ul>
      <li>
<b>5.4.1</b> - <a
href="https://redirect.github.com/chalk/chalk/releases/tag/v5.4.1">2024-12-21</a></br><ul>
<li>Fix <code>navigator</code> not defined <code>ReferenceError</code>
(<a class="issue-link js-issue-link" data-error-text="Failed to load
title" data-id="2754056423" data-permission-text="Title is private"
data-url="chalk/chalk#642"
data-hovercard-type="pull_request"
data-hovercard-url="/chalk/chalk/pull/642/hovercard"
href="https://redirect.github.com/chalk/chalk/pull/642">#642</a>) <a
class="commit-link" data-hovercard-type="commit"
data-hovercard-url="https://github.com/chalk/chalk/commit/4ebb62d1ca70c122674558a88932ddf6545fe9ef/hovercard"
href="https://redirect.github.com/chalk/chalk/commit/4ebb62d1ca70c122674558a88932ddf6545fe9ef"><tt>4ebb62d</tt></a></li>
</ul>
<p><a class="commit-link"
href="https://redirect.github.com/chalk/chalk/compare/v5.4.0...v5.4.1"><tt>v5.4.0...v5.4.1</tt></a></p>
      </li>
      <li>
<b>5.4.0</b> - <a
href="https://redirect.github.com/chalk/chalk/releases/tag/v5.4.0">2024-12-18</a></br><ul>
<li>Update <code>CIRCLECI</code> environments to return level 3 color
support <a class="commit-link" data-hovercard-type="commit"
data-hovercard-url="https://github.com/chalk/chalk/commit/f8381204fb096207074089f5ab265fffff6bc341/hovercard"
href="https://redirect.github.com/chalk/chalk/commit/f8381204fb096207074089f5ab265fffff6bc341"><tt>f838120</tt></a></li>
</ul>
<p><a class="commit-link"
href="https://redirect.github.com/chalk/chalk/compare/v5.3.0...v5.4.0"><tt>v5.3.0...v5.4.0</tt></a></p>
      </li>
      <li>
<b>5.3.0</b> - <a
href="https://redirect.github.com/chalk/chalk/releases/tag/v5.3.0">2023-06-29</a></br><ul>
<li>Add <code>sideEffects</code> field to package.json <a
class="commit-link" data-hovercard-type="commit"
data-hovercard-url="https://github.com/chalk/chalk/commit/5aafc0af74d06c89a2a4567aaf9d84d44af4a3aa/hovercard"
href="https://redirect.github.com/chalk/chalk/commit/5aafc0af74d06c89a2a4567aaf9d84d44af4a3aa"><tt>5aafc0a</tt></a></li>
<li>Add support for Gitea Actions (<a class="issue-link js-issue-link"
data-error-text="Failed to load title" data-id="1779402065"
data-permission-text="Title is private"
data-url="chalk/chalk#603"
data-hovercard-type="pull_request"
data-hovercard-url="/chalk/chalk/pull/603/hovercard"
href="https://redirect.github.com/chalk/chalk/pull/603">#603</a>) <a
class="commit-link" data-hovercard-type="commit"
data-hovercard-url="https://github.com/chalk/chalk/commit/29b856959f4bee5a514c7ed48a1f6879686eadf2/hovercard"
href="https://redirect.github.com/chalk/chalk/commit/29b856959f4bee5a514c7ed48a1f6879686eadf2"><tt>29b8569</tt></a></li>
</ul>
<p><a class="commit-link"
href="https://redirect.github.com/chalk/chalk/compare/v5.2.0...v5.3.0"><tt>v5.2.0...v5.3.0</tt></a></p>
      </li>
    </ul>
from <a href="https://redirect.github.com/chalk/chalk/releases">chalk
GitHub release notes</a>
  </details>
</details>

---

> [!IMPORTANT]
>
> - Check the changes in this PR to ensure they won't cause issues with
your project.
> - This PR was automatically created by Snyk using the credentials of a
real user.

---

**Note:** _You are seeing this because you or someone else with access
to this repository has authorized Snyk to open upgrade PRs._

**For more information:** <img
src="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6InJyWmxZcEdHY2RyTHZsb0lYd0dUcVg4WkFRTnNCOUEwIiwiYW5vbnltb3VzSWQiOiJkZDEwOGYyYi02NTQwLTRiZmQtOTI0YS00NjFjYmJjMjI1ZmMiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6ImRkMTA4ZjJiLTY1NDAtNGJmZC05MjRhLTQ2MWNiYmMyMjVmYyJ9fQ=="
width="0" height="0"/>

> - 🧐 [View latest project
report](https://app.snyk.io/org/blankll/project/9c72c875-e7a2-4e68-85a9-7b26a5bc5b32?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)
> - 📜 [Customise PR
templates](https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/customize-pr-templates?utm_source=&utm_content=fix-pr-template)
> - 🛠 [Adjust upgrade PR
settings](https://app.snyk.io/org/blankll/project/9c72c875-e7a2-4e68-85a9-7b26a5bc5b32/settings/integration?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr)
> - 🔕 [Ignore this dependency or unsubscribe from future upgrade
PRs](https://app.snyk.io/org/blankll/project/9c72c875-e7a2-4e68-85a9-7b26a5bc5b32/settings/integration?pkg&#x3D;chalk&amp;utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr#auto-dep-upgrades)

[//]: #
'snyk:metadata:{"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"chalk","from":"5.3.0","to":"5.4.1"}],"env":"prod","hasFixes":false,"isBreakingChange":false,"isMajorUpgrade":false,"issuesToFix":[],"prId":"dd108f2b-6540-4bfd-924a-461cbbc225fc","prPublicId":"dd108f2b-6540-4bfd-924a-461cbbc225fc","packageManager":"npm","priorityScoreList":[],"projectPublicId":"9c72c875-e7a2-4e68-85a9-7b26a5bc5b32","projectUrl":"https://app.snyk.io/org/blankll/project/9c72c875-e7a2-4e68-85a9-7b26a5bc5b32?utm_source=github&utm_medium=referral&page=upgrade-pr","prType":"upgrade","templateFieldSources":{"branchName":"default","commitMessage":"default","description":"default","title":"default"},"templateVariants":[],"type":"auto","upgrade":[],"upgradeInfo":{"versionsDiff":2,"publishedDate":"2024-12-21T17:04:53.006Z"},"vulns":[]}'

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
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.

Not handling navigator being undefined
2 participants
0