ggez-banking-sdk 0.1.87 → 0.1.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/helper/api/axiosHelper.js +1 -0
- package/dist/utils/chainAddressMasking.d.ts +1 -1
- package/dist/utils/chainAddressMasking.js +1 -1
- package/dist/utils/copyText.d.ts +2 -1
- package/dist/utils/copyText.js +13 -4
- package/dist/utils/countryAndCurrencyData.d.ts +1 -1
- package/dist/utils/countryAndCurrencyData.js +1 -1
- package/dist/utils/enumToOption.d.ts +2 -1
- package/dist/utils/enumToOption.js +3 -2
- package/dist/utils/getEnumName.d.ts +1 -1
- package/dist/utils/getEnumName.js +1 -1
- package/dist/utils/index.d.ts +13 -14
- package/dist/utils/index.js +13 -14
- package/package.json +1 -1
@@ -1,2 +1,2 @@
|
|
1
1
|
declare function chainAddressMasking(address: string): string;
|
2
|
-
export
|
2
|
+
export { chainAddressMasking };
|
package/dist/utils/copyText.d.ts
CHANGED
package/dist/utils/copyText.js
CHANGED
@@ -1,9 +1,18 @@
|
|
1
|
-
|
1
|
+
const handleCopy = async (text) => {
|
2
2
|
try {
|
3
|
-
text && await navigator.clipboard.writeText(text);
|
4
|
-
return {
|
3
|
+
text && (await navigator.clipboard.writeText(text));
|
4
|
+
return {
|
5
|
+
text: text,
|
6
|
+
status: "success",
|
7
|
+
message: "Text copied to clipboard successfully.",
|
8
|
+
};
|
5
9
|
}
|
6
10
|
catch (error) {
|
7
|
-
return {
|
11
|
+
return {
|
12
|
+
text: text,
|
13
|
+
status: "failed",
|
14
|
+
message: `Error copying text to clipboard: ${error}`,
|
15
|
+
};
|
8
16
|
}
|
9
17
|
};
|
18
|
+
export { handleCopy };
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
function enumsToOptions(enumObject, translateFile, t) {
|
2
2
|
const lst = [];
|
3
3
|
let keys = Object.keys(enumObject).sort();
|
4
4
|
const length = keys.length;
|
@@ -8,8 +8,9 @@ export default function enumsToOptions(enumObject, translateFile, t) {
|
|
8
8
|
continue;
|
9
9
|
lst.push({
|
10
10
|
value: Number(key),
|
11
|
-
label: t(`${translateFile}${
|
11
|
+
label: t(`${translateFile}${enumObject[key].toString()}`),
|
12
12
|
});
|
13
13
|
}
|
14
14
|
return lst;
|
15
15
|
}
|
16
|
+
export { enumsToOptions };
|
@@ -1 +1 @@
|
|
1
|
-
export
|
1
|
+
export declare function getEnumName(enumObject: any, index: number | string, translateFile?: string, t?: any): any;
|
package/dist/utils/index.d.ts
CHANGED
@@ -1,14 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
export { GenerateSourceID, generatekeyAndIvUsingUserID, sortUserInfo, decryptString, encryptString, generatekeyAndIv, paddingLeft, handleCopy, chainAddressMasking, UseCountryAndCurrencyData, useRegExp, getEnumName, getCountryName, enumsToOptions, generateOneLiner, maskMiddleOfString, getStateByCountry, };
|
1
|
+
export * from "./generateSourceId";
|
2
|
+
export * from "./sortUserInfo";
|
3
|
+
export * from "./handleEncryption";
|
4
|
+
export * from "./copyText";
|
5
|
+
export * from "./chainAddressMasking";
|
6
|
+
export * from "./countryAndCurrencyData";
|
7
|
+
export * from "./regex";
|
8
|
+
export * from "./getEnumName";
|
9
|
+
export * from "./getCountryName";
|
10
|
+
export * from "./enumToOption";
|
11
|
+
export * from "./generateOneLiner";
|
12
|
+
export * from "./maskingFunction";
|
13
|
+
export * from "./getStateByCountryCode";
|
package/dist/utils/index.js
CHANGED
@@ -1,14 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
export { GenerateSourceID, generatekeyAndIvUsingUserID, sortUserInfo, decryptString, encryptString, generatekeyAndIv, paddingLeft, handleCopy, chainAddressMasking, UseCountryAndCurrencyData, useRegExp, getEnumName, getCountryName, enumsToOptions, generateOneLiner, maskMiddleOfString, getStateByCountry, };
|
1
|
+
export * from "./generateSourceId";
|
2
|
+
export * from "./sortUserInfo";
|
3
|
+
export * from "./handleEncryption";
|
4
|
+
export * from "./copyText";
|
5
|
+
export * from "./chainAddressMasking";
|
6
|
+
export * from "./countryAndCurrencyData";
|
7
|
+
export * from "./regex";
|
8
|
+
export * from "./getEnumName";
|
9
|
+
export * from "./getCountryName";
|
10
|
+
export * from "./enumToOption";
|
11
|
+
export * from "./generateOneLiner";
|
12
|
+
export * from "./maskingFunction";
|
13
|
+
export * from "./getStateByCountryCode";
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ggez-banking-sdk",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.89",
|
4
4
|
"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
5
|
"types": "dist/index.d.ts",
|
6
6
|
"main": "dist/index.js",
|