New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ggez-banking-sdk

Package Overview
Dependencies
Maintainers
0
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ggez-banking-sdk - npm Package Compare versions

Comparing version

to
0.0.6

24

dist/bank-system/helper/dataStructure.js

@@ -93,3 +93,3 @@ "use strict";

type: 1,
country_code: values.country,
country_code: values.mobileNumberCountry,
number: values.mobileNumber,

@@ -143,6 +143,8 @@ is_primary: 1,

},
], custom_field: {
referral_code: values.referralCode,
type: values.referralCodeType,
}, geo_coordinates: values.geoCoordinates });
], custom_field: values.referralCode && values.referralCodeType
? {
referral_code: values.referralCode,
type: values.referralCodeType,
}
: null, geo_coordinates: values.geoCoordinates });
return data;

@@ -176,3 +178,3 @@ };

type: 1,
country_code: values.country,
country_code: values.mobileNumberCountry,
number: values.mobileNumber,

@@ -231,6 +233,8 @@ is_primary: 1,

},
], custom_field: {
referral_code: values.referralCode,
type: values.referralCodeType,
}, geo_coordinates: values.geoCoordinates, client_time_zone: `UTC ${dayjs_1.default.tz(new Date()).format("Z")}` });
], custom_field: values.referralCode && values.referralCodeType
? {
referral_code: values.referralCode,
type: values.referralCodeType,
}
: null, geo_coordinates: values.geoCoordinates, client_time_zone: `UTC ${dayjs_1.default.tz(new Date()).format("Z")}` });
return data;

@@ -237,0 +241,0 @@ };

@@ -23,2 +23,3 @@ import { Dispatch, SetStateAction } from "react";

geoCoordinates?: IGeoCoordinates;
mobileNumberCountry: string;
}

@@ -59,2 +60,3 @@ export interface LoginRequestInterface {

geoCoordinates?: IGeoCoordinates;
mobileNumberCountry: string;
}

@@ -61,0 +63,0 @@ export interface LoginWithGoogleInterface {

export declare function getCountryName(code: number): string;
export declare function getCountryCodeByISO_A2(ISO_A2: string): number;

@@ -7,2 +7,3 @@ "use strict";

exports.getCountryName = getCountryName;
exports.getCountryCodeByISO_A2 = getCountryCodeByISO_A2;
const countries_1 = __importDefault(require("../content/countries"));

@@ -14,4 +15,17 @@ function getCountryName(code) {

}
const country = countries_1.default.filter((country) => country.Code === code)[0];
const country = countries_1.default.find((country) => {
if (country.Code === code) {
return country;
}
});
return (_a = country === null || country === void 0 ? void 0 : country.Name) !== null && _a !== void 0 ? _a : "";
}
function getCountryCodeByISO_A2(ISO_A2) {
var _a;
const country = countries_1.default.find((country) => {
if (country.ISO_A2 === ISO_A2) {
return country;
}
});
return (_a = country === null || country === void 0 ? void 0 : country.Code) !== null && _a !== void 0 ? _a : 0;
}
{
"name": "ggez-banking-sdk",
"version": "0.0.5",
"version": "0.0.6",
"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",

Sorry, the diff of this file is too big to display