@tap-payments/auth-jsconnect 2.0.41-test → 2.0.43-test

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.
@@ -11,7 +11,7 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
11
11
  entity: import("../features/app/entity/entityStore").EntityState;
12
12
  otp: import("../features/app/otp/otpStore").OtpState;
13
13
  auth: import("../features/app/auth/authStore").AuthState;
14
- }, import("redux").AnyAction, import("@reduxjs/toolkit").MiddlewareArray<[import("redux-thunk").ThunkMiddleware<{
14
+ }, import("redux").AnyAction, import("@reduxjs/toolkit").MiddlewareArray<[import("@reduxjs/toolkit").ThunkMiddleware<{
15
15
  settings: import("./settings").SettingsState;
16
16
  connect: import("../features/app/connect/connectStore").ConnectState;
17
17
  business: import("../features/app/business/businessStore").BusinessState;
@@ -1,2 +1,2 @@
1
- export declare const encryptObject: (data: unknown) => string | false;
2
- export declare const encryptString: (string: string) => string;
1
+ export declare const encryptObject: (data: unknown) => any;
2
+ export declare const encryptString: (string: string) => any;
@@ -1,5 +1,5 @@
1
- import { JSEncrypt } from 'jsencrypt';
2
1
  import { RSA_FRONTEND_MW_PUBLIC_KEY } from '../constants';
2
+ var JSEncrypt = require('jsencrypt').JSEncrypt;
3
3
  var rsa = new JSEncrypt();
4
4
  rsa.setPublicKey(RSA_FRONTEND_MW_PUBLIC_KEY);
5
5
  export var encryptObject = function (data) {
@@ -15,27 +15,27 @@ export declare const getFlowUrl: (path: string, lang: string) => string;
15
15
  export declare const getResetFlowUrl: (path: string, lang: string, operationType: string, id: string, infoId: string) => string;
16
16
  export declare const capitalizeTheFirstLetterOfEachWord: (words: string) => string;
17
17
  export declare const getRequestHeaders: (deviceInfo: DeviceInfo) => {
18
- al: string;
19
- at: string;
20
- aid: string;
21
- an: string;
22
- av: string;
23
- acv: string;
24
- asv: string;
25
- rn: string;
26
- rt: string;
27
- rb: string;
28
- rm: string;
29
- ro: string;
30
- rov: string;
31
- bn: string;
32
- bb: string;
33
- bv: string;
34
- bua: string;
18
+ al: any;
19
+ at: any;
20
+ aid: any;
21
+ an: any;
22
+ av: any;
23
+ acv: any;
24
+ asv: any;
25
+ rn: any;
26
+ rt: any;
27
+ rb: any;
28
+ rm: any;
29
+ ro: any;
30
+ rov: any;
31
+ bn: any;
32
+ bb: any;
33
+ bv: any;
34
+ bua: any;
35
35
  bi: string;
36
- ci: string;
37
- cm: string;
38
- l: string;
36
+ ci: any;
37
+ cm: any;
38
+ l: any;
39
39
  };
40
40
  export declare const removeRequestHeaders: () => void;
41
41
  export declare const getBaseUrl: () => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.0.41-test",
3
+ "version": "2.0.43-test",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",
@@ -87,7 +87,7 @@
87
87
  "i18next": "^21.8.14",
88
88
  "i18next-browser-languagedetector": "^6.1.4",
89
89
  "i18next-http-backend": "^1.4.1",
90
- "jsencrypt": "^3.2.1",
90
+ "jsencrypt": "^2.3.1",
91
91
  "lodash-es": "^4.17.21",
92
92
  "moment-hijri": "~2.1.2",
93
93
  "react": "^18.2.0",