ggez-banking-sdk 0.1.101 → 0.1.102

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,8 @@ declare class CookiesHelper {
7
7
  static GetUSR: () => USR;
8
8
  static SetUSR: (deviceId: string, userId: string) => void;
9
9
  static GetDeviceSecurityCode: () => string;
10
- static SET: (key: string, value: string, expires?: Date) => void;
11
10
  static GET: (key: string) => string | undefined;
11
+ static SET: (key: string, value: string, expires?: Date) => void;
12
+ static REMOVE: (key: string) => void;
12
13
  }
13
14
  export { CookiesHelper };
@@ -114,6 +114,9 @@ CookiesHelper.GetDeviceSecurityCode = () => {
114
114
  };
115
115
  // #endregion
116
116
  // #region "Getters & Setters"
117
+ CookiesHelper.GET = (key) => {
118
+ return Cookies.get(key);
119
+ };
117
120
  CookiesHelper.SET = (key, value, expires) => {
118
121
  const defaultExpireDate = new Date(Date.now() + 1000 * 60 * 60 * 24 * 365);
119
122
  Cookies.set(key, value, {
@@ -123,7 +126,7 @@ CookiesHelper.SET = (key, value, expires) => {
123
126
  expires: expires || defaultExpireDate,
124
127
  });
125
128
  };
126
- CookiesHelper.GET = (key) => {
127
- return Cookies.get(key);
129
+ CookiesHelper.REMOVE = (key) => {
130
+ Cookies.remove(key);
128
131
  };
129
132
  export { CookiesHelper };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.1.101",
3
+ "version": "0.1.102",
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",