ggez-banking-sdk
Advanced tools
Comparing version 0.0.98 to 0.0.99
@@ -174,5 +174,8 @@ "use strict"; | ||
const client = new clientjs_1.ClientJS(); | ||
let customField = { promotion_data: {} }; | ||
let customField = null; | ||
if (values.referralCode && values.referralCodeType) { | ||
customField.promotion_data["referral_data"] = { | ||
if (!customField) { | ||
customField = { promotion_data: {} }; | ||
} | ||
customField.promotion_data.referral_data = { | ||
code: values.referralCode, | ||
@@ -183,3 +186,6 @@ type: +values.referralCodeType, | ||
if (values.giftData) { | ||
customField.promotion_data["gift_data"] = [values.giftData]; | ||
if (!customField) { | ||
customField = { promotion_data: {} }; | ||
} | ||
customField.promotion_data.gift_data = [values.giftData]; | ||
} | ||
@@ -186,0 +192,0 @@ let data = { |
@@ -9,2 +9,3 @@ import { AxiosResponse } from "axios"; | ||
installationId?: string | null; | ||
disableCache?: boolean; | ||
}; | ||
@@ -11,0 +12,0 @@ declare const Helper: (userInfo: any) => { |
@@ -270,3 +270,3 @@ "use strict"; | ||
const headerConfig = (headersData) => { | ||
const { header, isUrlEncoded, token, lang, installationId } = headersData; | ||
const { header, isUrlEncoded, token, lang, installationId, disableCache } = headersData; | ||
let headers; | ||
@@ -295,2 +295,10 @@ if (!header) | ||
} | ||
if (disableCache) { | ||
headers = { | ||
...headers, | ||
"Cache-Control": "no-cache", | ||
Pragma: "no-cache", | ||
Expires: "0", | ||
}; | ||
} | ||
return headers; | ||
@@ -297,0 +305,0 @@ }; |
@@ -238,2 +238,3 @@ "use strict"; | ||
header: false, | ||
disableCache: true, | ||
}; | ||
@@ -240,0 +241,0 @@ let headers = headerConfig(headersData); |
{ | ||
"name": "ggez-banking-sdk", | ||
"version": "0.0.98", | ||
"version": "0.0.99", | ||
"description": "A Node.js package to handle GGEZ Banking API endpoints, Simplify the process of managing CRUD operations with this efficient and easy-to-use package.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
790924
25937