ggez-banking-sdk 0.2.26 → 0.2.28

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.
@@ -75,10 +75,10 @@ declare const regexPatterns: {
75
75
  ACSText100CharRegexPattern: RegExp;
76
76
  SortCodeRegexPattern: RegExp;
77
77
  PageSizeRegexPattern: RegExp;
78
- YearandMonthRegexPattern: RegExp;
78
+ YearAndMonthRegexPattern: RegExp;
79
79
  ENText25CharRegexPattern: RegExp;
80
80
  LatitudeRegexPattern: RegExp;
81
- Integernumbersexcept0RegexPattern: RegExp;
81
+ IntegerNumbersExcept0RegexPattern: RegExp;
82
82
  CreditCardExpiryDateRegexPattern: RegExp;
83
83
  AssetNameRegexPattern: RegExp;
84
84
  SharePriceRegexPattern: RegExp;
@@ -73,10 +73,10 @@ const regexPatterns = {
73
73
  ACSText100CharRegexPattern: /^[ A-Za-z0-9_@./#&+-=|]{0,100}$/,
74
74
  SortCodeRegexPattern: /^[0-9]{6}$/,
75
75
  PageSizeRegexPattern: /^(100|[0-9]{0,2})$/,
76
- YearandMonthRegexPattern: /^[0-9]{4}[\-]((1[0-2])|(0?[1-9]))$/,
76
+ YearAndMonthRegexPattern: /^[0-9]{4}[\-]((1[0-2])|(0?[1-9]))$/,
77
77
  ENText25CharRegexPattern: /^|[a-zA-Z]+(\s{0,1}[a-zA-Z]){0,25}$/u,
78
78
  LatitudeRegexPattern: /^(-?[1-8]?\d(?:\.\d{1,8})?|90(?:\.0{1,8})?)$/,
79
- Integernumbersexcept0RegexPattern: /[1-9]{1}\d{0,3}/,
79
+ IntegerNumbersExcept0RegexPattern: /[1-9]{1}\d{0,3}/,
80
80
  CreditCardExpiryDateRegexPattern: /^(0[1-9]|1[0-2])\/\d{2}$/,
81
81
  AssetNameRegexPattern: /^(?!.--)[\p{L}\p{N}][^/$%^+=<>|\n\r\b\t]{1,100}$/u,
82
82
  SharePriceRegexPattern: /^(?!0*\.?0{1,6}$)\d+(\.\d{1,6})?$/,
@@ -38,7 +38,7 @@ declare class CookiesHelper {
38
38
  GetUSR(): Promise<USR>;
39
39
  SetUSR(deviceId: string, userId: string): Promise<void>;
40
40
  ValidateUSR(USR: string): Promise<boolean>;
41
- GetDeviceSecurityCode(): Promise<any>;
41
+ GetDeviceSecurityCode(): Promise<string>;
42
42
  GetAccessToken(): Promise<string>;
43
43
  SetAccessToken(accessToken: string, expires: number): Promise<void>;
44
44
  ValidateAccessToken(accessToken: string): Promise<boolean>;
@@ -242,8 +242,14 @@ class CookiesHelper {
242
242
  }
243
243
  const { key, iv } = CipherHelper.GenerateByUserID(USR.user_id.toString());
244
244
  const DUID = IID + "." + DEK;
245
- const encryptedJSON = CipherHelper.EncryptAsJson(DUID, "device_security_code", key, iv);
246
- const { device_security_code } = JSON.parse(encryptedJSON);
245
+ // const encryptedJSON = CipherHelper.EncryptAsJson(
246
+ // DUID,
247
+ // "device_security_code",
248
+ // key,
249
+ // iv
250
+ // );
251
+ // const { device_security_code } = JSON.parse(encryptedJSON);
252
+ const device_security_code = CipherHelper.Encrypt(DUID, key, iv);
247
253
  return device_security_code;
248
254
  }
249
255
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.2.26",
3
+ "version": "0.2.28",
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",