Skip to content

Commit 8cbe2f8

Browse files
committed
Add Request (JS) page
1 parent 2cdf84b commit 8cbe2f8

File tree

3 files changed

+116
-0
lines changed

3 files changed

+116
-0
lines changed

docs/.vuepress/components/ELSTechnology.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ const techData = [
189189
{
190190
name: "request",
191191
versions: "2.88.0 | 2.88.2",
192+
link: "./request/",
192193
},
193194
{
194195
name: "tough-cookie",

docs/.vuepress/config-client/sidebar.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export default {
5757
"/els-for-runtimes-and-libraries/php/",
5858
"/els-for-runtimes-and-libraries/python/",
5959
"/els-for-runtimes-and-libraries/python-libraries/",
60+
"/els-for-runtimes-and-libraries/request/",
6061
"/els-for-runtimes-and-libraries/spring/",
6162
]
6263
},
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
# Request
2+
3+
Endless Lifecycle Support (ELS) for Request from TuxCare provides security fixes for Request versions that have reached their end of life. This allows you to continue running Request applications without vulnerability concerns, even after official support has ended.
4+
5+
## Supported Request Versions
6+
7+
* Request 2.88.0, 2.88.2
8+
9+
## Connection to ELS for Request Repository
10+
11+
This guide outlines the steps needed to integrate the TuxCare ELS for Request repository.
12+
13+
## Step 1: Get Token
14+
15+
You need a token in order to use TuxCare ELS Request repository. Anonymous access is disabled. To receive the token, please contact [[email protected]](mailto:[email protected]).
16+
17+
## Step 2: Set Up ELS for Request
18+
19+
TuxCare provides ELS for Request as an NPM package, hosted on a secure internal registry. Follow the steps below to add it to your project and get started.
20+
21+
1. Navigate to the root directory of your Request project.
22+
2. Create a `.npmrc` file or update it if it already exists.
23+
24+
**Example:**
25+
26+
```text
27+
my-request-project/
28+
├── node_modules/
29+
├── package.json
30+
├── .npmrc ⚠️ ← Create it here
31+
└── package-lock.json
32+
```
33+
34+
3. Use an editor of your choice (e.g., VS Code) to add the following registry address line:
35+
36+
<CodeWithCopy>
37+
38+
```text
39+
registry=https://registry.npmjs.org/
40+
@els-js:registry=https://nexus.repo.tuxcare.com/repository/els_js/
41+
//nexus.repo.tuxcare.com/repository/els_js/:_auth=${TOKEN}
42+
```
43+
44+
</CodeWithCopy>
45+
46+
:::warning
47+
Replace ${TOKEN} with the token you received from [[email protected]](mailto:[email protected]).
48+
:::
49+
50+
4. Update your `package.json` file to replace your Request dependencies with the TuxCare packages:
51+
52+
<TableTabs label="Choose Request version: " >
53+
54+
<template #Request_2.88.0>
55+
56+
<CodeWithCopy>
57+
58+
```text
59+
"dependencies": {
60+
"request": "npm:@els-js/[email protected]"
61+
},
62+
"overrides": {
63+
"request": "npm:@els-js/[email protected]"
64+
}
65+
```
66+
67+
</CodeWithCopy>
68+
69+
</template>
70+
71+
<template #Request_2.88.2>
72+
73+
<CodeWithCopy>
74+
75+
```text
76+
"dependencies": {
77+
"request": "npm:@els-js/[email protected]"
78+
},
79+
"overrides": {
80+
"request": "npm:@els-js/[email protected]"
81+
}
82+
```
83+
84+
</CodeWithCopy>
85+
86+
</template>
87+
88+
</TableTabs>
89+
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):
91+
92+
<CodeWithCopy>
93+
94+
```text
95+
npm install
96+
```
97+
98+
</CodeWithCopy>
99+
100+
Example output:
101+
102+
```text
103+
added 49 packages, and audited 50 packages in 2s
104+
105+
2 critical severity vulnerabilities
106+
```
107+
108+
6. You've successfully integrated the TuxCare ELS for Request repository into your project.
109+
110+
## Vulnerability Exploitability eXchange (VEX)
111+
112+
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.
113+
114+
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/).

0 commit comments

Comments
 (0)