ggez-banking-sdk 0.2.8 → 0.2.10

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,6 @@ declare class ClientHelper {
7
7
  getCPU(): string;
8
8
  getUserAgent(): string;
9
9
  getSystemLanguage(): string;
10
- getDomain(): string;
11
10
  isHostOnly(): boolean;
12
11
  }
13
12
  export { ClientHelper };
@@ -1,5 +1,4 @@
1
1
  import { UAParser } from "ua-parser-js";
2
- import { get as getDomain } from "psl";
3
2
  class ClientHelper {
4
3
  clientBrowserData;
5
4
  constructor() {
@@ -24,18 +23,6 @@ class ClientHelper {
24
23
  getSystemLanguage() {
25
24
  return window.navigator.language;
26
25
  }
27
- getDomain() {
28
- if (!this.isHostOnly()) {
29
- const domain = getDomain(window.location.hostname);
30
- if (domain.includes("ggez"))
31
- return "ggez.one";
32
- else {
33
- return "vvtx.com";
34
- }
35
- return domain;
36
- }
37
- return undefined;
38
- }
39
26
  isHostOnly() {
40
27
  const host = window.location.hostname;
41
28
  return host === "localhost";
@@ -18,7 +18,7 @@ class CookiesHelper {
18
18
  this.errorHandler = errorHandler;
19
19
  this.Cookies = window.cookieStore;
20
20
  this.clientHelper = new ClientHelper();
21
- this.domain = this.clientHelper.getDomain();
21
+ this.domain = "vvtx.com";
22
22
  }
23
23
  // #endregion
24
24
  // #region "IID"
@@ -283,7 +283,7 @@ class CookiesHelper {
283
283
  expires: expires || defaultExpireDate,
284
284
  path: "/",
285
285
  sameSite: "lax",
286
- secure: !this.clientHelper.isHostOnly(),
286
+ secure: true,
287
287
  });
288
288
  }
289
289
  async REMOVE(key) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.2.8",
3
+ "version": "0.2.10",
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",