ggez-banking-sdk 0.1.87 → 0.1.88

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.
@@ -1,2 +1,2 @@
1
1
  declare function chainAddressMasking(address: string): string;
2
- export default chainAddressMasking;
2
+ export { chainAddressMasking };
@@ -7,4 +7,4 @@ function chainAddressMasking(address) {
7
7
  }
8
8
  return "loading";
9
9
  }
10
- export default chainAddressMasking;
10
+ export { chainAddressMasking };
@@ -1,5 +1,6 @@
1
- export declare const handleCopy: (text: string | undefined) => Promise<{
1
+ declare const handleCopy: (text: string | undefined) => Promise<{
2
2
  text: string;
3
3
  status: string;
4
4
  message: string;
5
5
  }>;
6
+ export { handleCopy };
@@ -1,9 +1,18 @@
1
- export const handleCopy = async (text) => {
1
+ const handleCopy = async (text) => {
2
2
  try {
3
- text && await navigator.clipboard.writeText(text);
4
- return { text: text, status: "success", message: "Text copied to clipboard successfully." };
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 { text: text, status: "failed", message: `Error copying text to clipboard: ${error}` };
11
+ return {
12
+ text: text,
13
+ status: "failed",
14
+ message: `Error copying text to clipboard: ${error}`,
15
+ };
8
16
  }
9
17
  };
18
+ export { handleCopy };
@@ -8,4 +8,4 @@ declare const UseCountryAndCurrencyData: () => {
8
8
  value: string;
9
9
  }[];
10
10
  };
11
- export default UseCountryAndCurrencyData;
11
+ export { UseCountryAndCurrencyData };
@@ -14,4 +14,4 @@ const UseCountryAndCurrencyData = () => {
14
14
  });
15
15
  return { country, currency };
16
16
  };
17
- export default UseCountryAndCurrencyData;
17
+ export { UseCountryAndCurrencyData };
@@ -1,4 +1,5 @@
1
- export default function enumsToOptions(enumObject: any, translateFile: string, t: any): {
1
+ declare function enumsToOptions(enumObject: any, translateFile: string, t: any): {
2
2
  value: number;
3
3
  label: any;
4
4
  }[];
5
+ export { enumsToOptions };
@@ -1,4 +1,4 @@
1
- export default function enumsToOptions(enumObject, translateFile, t) {
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}${(enumObject[key]).toString()}`),
11
+ label: t(`${translateFile}${enumObject[key].toString()}`),
12
12
  });
13
13
  }
14
14
  return lst;
15
15
  }
16
+ export { enumsToOptions };
@@ -1 +1 @@
1
- export default function getEnumName(enumObject: any, index: number | string, translateFile?: string, t?: any): any;
1
+ export declare function getEnumName(enumObject: any, index: number | string, translateFile?: string, t?: any): any;
@@ -1,4 +1,4 @@
1
- export default function getEnumName(enumObject, index, translateFile, t) {
1
+ export function getEnumName(enumObject, index, translateFile, t) {
2
2
  if (translateFile && t) {
3
3
  return t(`${translateFile}${enumObject[index]?.toString()}`);
4
4
  }
@@ -1,14 +1,13 @@
1
- import { GenerateSourceID } from "./generateSourceId";
2
- import { sortUserInfo } from "./sortUserInfo";
3
- import { decryptString, encryptString, generatekeyAndIv, paddingLeft, generatekeyAndIvUsingUserID } from "./handleEncryption";
4
- import { handleCopy } from "./copyText";
5
- import chainAddressMasking from "./chainAddressMasking";
6
- import UseCountryAndCurrencyData from "./countryAndCurrencyData";
7
- import { useRegExp } from "./regex";
8
- import getEnumName from "./getEnumName";
9
- import { getCountryName } from "./getCountryName";
10
- import enumsToOptions from "./enumToOption";
11
- import { generateOneLiner } from "./generateOneLiner";
12
- import { maskMiddleOfString } from "./maskingFunction";
13
- import { getStateByCountry } from "./getStateByCountryCode";
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";
@@ -1,14 +1,13 @@
1
- import { GenerateSourceID } from "./generateSourceId";
2
- import { sortUserInfo } from "./sortUserInfo";
3
- import { decryptString, encryptString, generatekeyAndIv, paddingLeft, generatekeyAndIvUsingUserID, } from "./handleEncryption";
4
- import { handleCopy } from "./copyText";
5
- import chainAddressMasking from "./chainAddressMasking";
6
- import UseCountryAndCurrencyData from "./countryAndCurrencyData";
7
- import { useRegExp } from "./regex";
8
- import getEnumName from "./getEnumName";
9
- import { getCountryName } from "./getCountryName";
10
- import enumsToOptions from "./enumToOption";
11
- import { generateOneLiner } from "./generateOneLiner";
12
- import { maskMiddleOfString } from "./maskingFunction";
13
- import { getStateByCountry } from "./getStateByCountryCode";
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.87",
3
+ "version": "0.1.88",
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",