@varsityvibe/api-client
Advanced tools
+1
-1
| { | ||
| "name": "@varsityvibe/api-client", | ||
| "description": "API client for the Varsity Vibe web and mobile apps", | ||
| "version": "1.3.30", | ||
| "version": "1.3.31", | ||
| "author": "Tiaan du Plessis <tiaanduplessis@hotmail.com>", | ||
@@ -6,0 +6,0 @@ "type": "module", |
@@ -14,3 +14,3 @@ import client from '../utils/fetch-client' | ||
| */ | ||
| get (body = {}, config = { headers: { 'X-TENANT-ID': 'J|45_fqw', sensitive: true } }) { | ||
| get (body = {}, config = { headers: { 'X-TENANT-ID': process.env.TENANT_ID, sensitive: true } }) { | ||
| config.params = body | ||
@@ -17,0 +17,0 @@ return client.get('/v2/deals', config) |
@@ -50,3 +50,3 @@ import axios from 'axios' | ||
| method: 'post', | ||
| url: 'https://api2.varsityvibe.co.za/api/v2/members/upload_photo', | ||
| url: `${process.env.API_BASE_URL}${path}/upload_photo`, | ||
| data: formData, | ||
@@ -71,3 +71,3 @@ headers: { ...headers, 'Content-Type': 'multipart/form-data' }, | ||
| const fieldName = type === 'local' ? 'id_number' : 'passport_number' | ||
| return axios.post(`https://api2.varsityvibe.co.za/api${path}/sb_free_verification?api_key=${apiKey}&${fieldName}=${number}`, config) | ||
| return axios.post(`${process.env.API_BASE_URL}${path}/sb_free_verification?api_key=${apiKey}&${fieldName}=${number}`, config) | ||
| }, | ||
@@ -74,0 +74,0 @@ |
@@ -21,3 +21,3 @@ import client from '../utils/fetch-client' | ||
| return fetch( | ||
| `https://api2.varsityvibe.co.za/api/v2/redemption/validate?voucher_id=${id}&api_key=${apiKey}`, | ||
| `${process.env.API_BASE_URL}/v2/redemption/validate?voucher_id=${id}&api_key=${apiKey}`, | ||
| { | ||
@@ -24,0 +24,0 @@ method: 'GET', |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
205451
-0.01%9
50%