@nmtjs/client 0.14.2 → 0.14.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/common.d.ts +7 -10
- package/package.json +9 -9
package/dist/common.d.ts
CHANGED
|
@@ -7,6 +7,11 @@ export { ErrorCode, ProtocolBlob, type ProtocolBlobMetadata, TransportType, } fr
|
|
|
7
7
|
export * from './types.ts';
|
|
8
8
|
export declare class ClientError extends ProtocolError {
|
|
9
9
|
}
|
|
10
|
+
export interface BaseClientOptions<SafeCall extends boolean = false> {
|
|
11
|
+
timeout: number;
|
|
12
|
+
autoreconnect?: boolean;
|
|
13
|
+
safe?: SafeCall;
|
|
14
|
+
}
|
|
10
15
|
export declare abstract class BaseClient<APIContract extends TAnyAPIContract = TAnyAPIContract, SafeCall extends boolean = false, InputTypeProvider extends TypeProvider = TypeProvider, OutputTypeProvider extends TypeProvider = TypeProvider, Routes extends {
|
|
11
16
|
contract: APIContract['router'];
|
|
12
17
|
routes: ResolveAPIRouterRoutes<APIContract['router'], InputTypeProvider, OutputTypeProvider>;
|
|
@@ -15,11 +20,7 @@ export declare abstract class BaseClient<APIContract extends TAnyAPIContract = T
|
|
|
15
20
|
routes: ResolveAPIRouterRoutes<APIContract['router'], InputTypeProvider, OutputTypeProvider>;
|
|
16
21
|
}> {
|
|
17
22
|
readonly transport: ProtocolTransport;
|
|
18
|
-
readonly options:
|
|
19
|
-
timeout: number;
|
|
20
|
-
autoreconnect?: boolean;
|
|
21
|
-
safe?: SafeCall;
|
|
22
|
-
};
|
|
23
|
+
readonly options: BaseClientOptions<SafeCall>;
|
|
23
24
|
_: {
|
|
24
25
|
api: Routes;
|
|
25
26
|
safe: SafeCall;
|
|
@@ -28,11 +29,7 @@ export declare abstract class BaseClient<APIContract extends TAnyAPIContract = T
|
|
|
28
29
|
protected callers: ClientCallers<Routes, SafeCall>;
|
|
29
30
|
auth: any;
|
|
30
31
|
protected reconnectTimeout: number;
|
|
31
|
-
constructor(transport: ProtocolTransport, options:
|
|
32
|
-
timeout: number;
|
|
33
|
-
autoreconnect?: boolean;
|
|
34
|
-
safe?: SafeCall;
|
|
35
|
-
});
|
|
32
|
+
constructor(transport: ProtocolTransport, options: BaseClientOptions<SafeCall>);
|
|
36
33
|
protected _call(procedure: string, payload: any, options: ProtocolBaseClientCallOptions): Promise<any>;
|
|
37
34
|
get call(): ClientCallers<Routes, SafeCall>;
|
|
38
35
|
setAuth(auth: any): void;
|
package/package.json
CHANGED
|
@@ -19,23 +19,23 @@
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@nmtjs/
|
|
23
|
-
"@nmtjs/
|
|
24
|
-
"@nmtjs/protocol": "0.14.
|
|
25
|
-
"@nmtjs/common": "0.14.
|
|
22
|
+
"@nmtjs/type": "0.14.3",
|
|
23
|
+
"@nmtjs/contract": "0.14.3",
|
|
24
|
+
"@nmtjs/protocol": "0.14.3",
|
|
25
|
+
"@nmtjs/common": "0.14.3"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@nmtjs/type": "0.14.
|
|
29
|
-
"@nmtjs/contract": "0.14.
|
|
30
|
-
"@nmtjs/common": "0.14.
|
|
31
|
-
"@nmtjs/protocol": "0.14.
|
|
28
|
+
"@nmtjs/type": "0.14.3",
|
|
29
|
+
"@nmtjs/contract": "0.14.3",
|
|
30
|
+
"@nmtjs/common": "0.14.3",
|
|
31
|
+
"@nmtjs/protocol": "0.14.3"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
34
|
"dist",
|
|
35
35
|
"LICENSE.md",
|
|
36
36
|
"README.md"
|
|
37
37
|
],
|
|
38
|
-
"version": "0.14.
|
|
38
|
+
"version": "0.14.3",
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "tsc",
|
|
41
41
|
"type-check": "tsc --noEmit"
|