Skip to content
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

fix: replace ip package with default value and --host flag #2299

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

szymonrybczak
Copy link
Collaborator

@szymonrybczak szymonrybczak commented Feb 16, 2024

Summary:

Fixes #2294

In this Pull Request I've replace usage of ip package with default value localhost, and added option to specify custom if needed. (It's following the same logic that is inside start command).

Test Plan:

  1. Clone the repository and do all the required steps from the Contributing guide
  2. Run this command:
node /path/to/react-native-cli/packages/cli/build/bin.js profile-hermes

Checklist

  • Documentation is up to date to reflect these changes.
  • Follows commit message convention described in CONTRIBUTING.md

@szymonrybczak szymonrybczak marked this pull request as ready for review February 16, 2024 12:54
@github-actions github-actions bot added bugfix docs Documentation change labels Feb 16, 2024
@szymonrybczak szymonrybczak force-pushed the fix/replace-ip-package-with-localhost branch from d6cc085 to f05c777 Compare February 16, 2024 12:59
@@ -19,7 +19,6 @@
"envinfo": "^7.10.0",
"execa": "^5.0.0",
"hermes-profile-transformer": "^0.0.6",
"ip": "^1.1.5",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since it was in package.json, was it used anywhere in the doctor command?

Copy link
Collaborator Author

@szymonrybczak szymonrybczak Feb 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, i guess it was a leftover after some package refactors.

@thymikee thymikee merged commit 83cbd32 into main Feb 19, 2024
10 checks passed
@thymikee thymikee deleted the fix/replace-ip-package-with-localhost branch February 19, 2024 12:51
szymonrybczak added a commit that referenced this pull request Feb 19, 2024
thymikee pushed a commit that referenced this pull request Feb 19, 2024
szymonrybczak added a commit that referenced this pull request Feb 19, 2024
# Conflicts:
#	packages/cli-hermes/README.md
#	yarn.lock
thymikee pushed a commit that referenced this pull request Feb 19, 2024
# Conflicts:
#	packages/cli-hermes/README.md
#	yarn.lock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix docs Documentation change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🚨 Security Vulnerability: ip npm package is unsafe for use as of v1.1.8
4 participants