Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@varsityvibe/api-client

Package Overview
Dependencies
Maintainers
2
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@varsityvibe/api-client - npm Package Compare versions

Comparing version
1.3.30
to
1.3.31
+1
-1
package.json
{
"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',