ggez-banking-sdk 0.2.9 → 0.2.11
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.
|
@@ -7,7 +7,7 @@ declare class CookiesHelper {
|
|
|
7
7
|
private Cookies;
|
|
8
8
|
private errorHandler;
|
|
9
9
|
private clientHelper;
|
|
10
|
-
constructor(programId: string, errorHandler: (error: any) => void);
|
|
10
|
+
constructor(programId: string, domain: string, errorHandler: (error: any) => void);
|
|
11
11
|
GetIID(): Promise<string>;
|
|
12
12
|
SetIID(): Promise<string>;
|
|
13
13
|
ValidateIID(installationId: string): Promise<boolean>;
|
|
@@ -12,13 +12,13 @@ class CookiesHelper {
|
|
|
12
12
|
clientHelper;
|
|
13
13
|
// #endregion
|
|
14
14
|
// #region "Constructor"
|
|
15
|
-
constructor(programId, errorHandler) {
|
|
15
|
+
constructor(programId, domain, errorHandler) {
|
|
16
16
|
this.key = v4();
|
|
17
17
|
this.programId = programId;
|
|
18
18
|
this.errorHandler = errorHandler;
|
|
19
19
|
this.Cookies = window.cookieStore;
|
|
20
20
|
this.clientHelper = new ClientHelper();
|
|
21
|
-
this.domain =
|
|
21
|
+
this.domain = domain;
|
|
22
22
|
}
|
|
23
23
|
// #endregion
|
|
24
24
|
// #region "IID"
|
|
@@ -4,7 +4,7 @@ declare class StorageHelper {
|
|
|
4
4
|
cookiesHelper: CookiesHelper;
|
|
5
5
|
localStorageHelper: LocalStorageHelper;
|
|
6
6
|
errorHandler: (error: any) => void;
|
|
7
|
-
constructor(programId: string, errorHandler: (error: any) => void);
|
|
7
|
+
constructor(programId: string, domain: string, errorHandler: (error: any) => void);
|
|
8
8
|
GetCookiesHelper(): CookiesHelper;
|
|
9
9
|
GetLocalStorageHelper(): LocalStorageHelper;
|
|
10
10
|
}
|
|
@@ -7,9 +7,9 @@ class StorageHelper {
|
|
|
7
7
|
errorHandler;
|
|
8
8
|
// #endregion
|
|
9
9
|
// #region "Constructor"
|
|
10
|
-
constructor(programId, errorHandler) {
|
|
10
|
+
constructor(programId, domain, errorHandler) {
|
|
11
11
|
this.errorHandler = errorHandler;
|
|
12
|
-
this.cookiesHelper = new CookiesHelper(programId, this.errorHandler);
|
|
12
|
+
this.cookiesHelper = new CookiesHelper(programId, domain, this.errorHandler);
|
|
13
13
|
this.localStorageHelper = new LocalStorageHelper(this.cookiesHelper, this.errorHandler);
|
|
14
14
|
}
|
|
15
15
|
// #endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ggez-banking-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.11",
|
|
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",
|