@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.
- package/dist/cjs/BaseCon.d.ts +8 -8
- package/dist/mjs/BaseCon.d.ts +8 -8
- package/package.json +1 -1
package/dist/cjs/BaseCon.d.ts
CHANGED
|
@@ -46,12 +46,12 @@ export interface ConHandle {
|
|
|
46
46
|
* @class
|
|
47
47
|
*/
|
|
48
48
|
export default class BaseCon {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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/dist/mjs/BaseCon.d.ts
CHANGED
|
@@ -46,12 +46,12 @@ export interface ConHandle {
|
|
|
46
46
|
* @class
|
|
47
47
|
*/
|
|
48
48
|
export default class BaseCon {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|