@grandlinex/base-con 1.0.2 → 1.0.3

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.
@@ -46,12 +46,12 @@ export interface ConHandle {
46
46
  * @class
47
47
  */
48
48
  export default class BaseCon {
49
- private api;
50
- private permanentHeader;
51
- private authorization;
52
- private noAuth;
53
- private disconnected;
54
- private readonly logger;
49
+ api: string;
50
+ permanentHeader: Record<string, string>;
51
+ authorization: string | null;
52
+ noAuth: boolean;
53
+ disconnected: boolean;
54
+ logger: (arg: any) => void;
55
55
  con: ConHandle;
56
56
  reconnect: () => Promise<boolean>;
57
57
  onReconnect: (con: BaseCon) => Promise<boolean>;
@@ -96,14 +96,14 @@ export default class BaseCon {
96
96
  * @return {string} The authorization token or an empty string if none is set.
97
97
  */
98
98
  getBearer(): string | null;
99
- private p;
99
+ p(path: string, config?: ConHandleConfig): string;
100
100
  /**
101
101
  * Sends a ping request to the API to verify connectivity and version availability.
102
102
  *
103
103
  * @return {boolean} `true` if the API responded with a 200 status code and a valid version object; `false` otherwise.
104
104
  */
105
105
  ping(): Promise<boolean>;
106
- private tokenHeader;
106
+ tokenHeader(): Record<string, string>;
107
107
  setPermanentHeader(header: Record<string, string>): void;
108
108
  /**
109
109
  * Validates the current authentication token by performing a ping and a test request
@@ -46,12 +46,12 @@ export interface ConHandle {
46
46
  * @class
47
47
  */
48
48
  export default class BaseCon {
49
- private api;
50
- private permanentHeader;
51
- private authorization;
52
- private noAuth;
53
- private disconnected;
54
- private readonly logger;
49
+ api: string;
50
+ permanentHeader: Record<string, string>;
51
+ authorization: string | null;
52
+ noAuth: boolean;
53
+ disconnected: boolean;
54
+ logger: (arg: any) => void;
55
55
  con: ConHandle;
56
56
  reconnect: () => Promise<boolean>;
57
57
  onReconnect: (con: BaseCon) => Promise<boolean>;
@@ -96,14 +96,14 @@ export default class BaseCon {
96
96
  * @return {string} The authorization token or an empty string if none is set.
97
97
  */
98
98
  getBearer(): string | null;
99
- private p;
99
+ p(path: string, config?: ConHandleConfig): string;
100
100
  /**
101
101
  * Sends a ping request to the API to verify connectivity and version availability.
102
102
  *
103
103
  * @return {boolean} `true` if the API responded with a 200 status code and a valid version object; `false` otherwise.
104
104
  */
105
105
  ping(): Promise<boolean>;
106
- private tokenHeader;
106
+ tokenHeader(): Record<string, string>;
107
107
  setPermanentHeader(header: Record<string, string>): void;
108
108
  /**
109
109
  * Validates the current authentication token by performing a ping and a test request
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grandlinex/base-con",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {