Skip to content

Commit b5c64c8

Browse files
committed
Apply recent JS additions
1 parent 8cbe2f8 commit b5c64c8

File tree

1 file changed

+37
-2
lines changed
  • docs/els-for-runtimes-and-libraries/request

1 file changed

+37
-2
lines changed

docs/els-for-runtimes-and-libraries/request/README.md

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,17 @@ TuxCare provides ELS for Request as an NPM package, hosted on a secure internal
8787
8888
</TableTabs>
8989
90-
5. Run the following command to install ELS for Request dependencies (token for the TuxCare repository will be automatically picked up from your `.npmrc` file):
90+
5. You need to remove the `node_modules` directory and the `package-lock.json` file, and also clear the `npm cache` before installing the patched packages. Use the following commands:
91+
92+
<CodeWithCopy>
93+
94+
```text
95+
rm -rf node_modules package-lock.json && npm cache clean --force
96+
```
97+
98+
</CodeWithCopy>
99+
100+
6. Run the following command to install ELS for Request dependencies (token for the TuxCare repository will be automatically picked up from your `.npmrc` file):
91101

92102
<CodeWithCopy>
93103

@@ -105,10 +115,35 @@ TuxCare provides ELS for Request as an NPM package, hosted on a secure internal
105115
2 critical severity vulnerabilities
106116
```
107117

108-
6. You've successfully integrated the TuxCare ELS for Request repository into your project.
118+
7. You've successfully integrated the TuxCare ELS for Request repository into your project.
109119

110120
## Vulnerability Exploitability eXchange (VEX)
111121

112122
VEX is a machine-readable format that tells you if a known vulnerability and is actually exploitable in your product. It reduces false positives, helps prioritize real risks.
113123

114124
TuxCare provides VEX for Request ELS versions: [security.tuxcare.com/vex/cyclonedx/els_lang_javascript/request/](https://security.tuxcare.com/vex/cyclonedx/els_lang_javascript/request/).
125+
126+
## How to Upgrade to a Newer Version of TuxCare Packages
127+
128+
If you have already installed a package with a `tuxcare.1` suffix and want to upgrade to a newer release (for example, `tuxcare.3`), there are two options:
129+
130+
* **Option 1**. Run the `npm install` command with the specific version. This will automatically update both `package.json` and `package-lock.json`:
131+
132+
<CodeWithCopy>
133+
134+
```text
135+
npm install request@npm:@els-js/[email protected]
136+
```
137+
138+
</CodeWithCopy>
139+
140+
* **Option 2**. Update the version string in your `package.json`, remove installed files and clear npm cache to avoid conflicts:
141+
142+
<CodeWithCopy>
143+
144+
```text
145+
rm -rf node_modules package-lock.json && npm cache clean --force
146+
npm install
147+
```
148+
149+
</CodeWithCopy>

0 commit comments

Comments
 (0)