@remnawave/xtls-sdk 0.4.0 → 0.4.1
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/build/index.d.ts +2 -2
- package/build/index.d.ts.map +1 -1
- package/build/index.js +4 -2
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Channel } from 'nice-grpc';
|
|
1
|
+
import { Channel, ChannelOptions } from 'nice-grpc';
|
|
2
2
|
import { StatsService } from './src/stats/stats.service';
|
|
3
3
|
import { HandlerService } from './src/handler/handler.service';
|
|
4
4
|
import { RouterService } from './src/router/router.service';
|
|
@@ -7,6 +7,6 @@ export declare class XtlsApi {
|
|
|
7
7
|
readonly stats: StatsService;
|
|
8
8
|
readonly handler: HandlerService;
|
|
9
9
|
readonly router: RouterService;
|
|
10
|
-
constructor(ip: string, port: string);
|
|
10
|
+
constructor(ip: string, port: string, options?: ChannelOptions);
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,qBAAa,OAAO;IAChB,SAAgB,OAAO,EAAE,OAAO,CAAC;IACjC,SAAgB,KAAK,EAAE,YAAY,CAAC;IACpC,SAAgB,OAAO,EAAE,cAAc,CAAC;IACxC,SAAgB,MAAM,EAAE,aAAa,CAAC;gBAC1B,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc;CASjE"}
|
package/build/index.js
CHANGED
|
@@ -6,8 +6,10 @@ const stats_service_1 = require("./src/stats/stats.service");
|
|
|
6
6
|
const handler_service_1 = require("./src/handler/handler.service");
|
|
7
7
|
const router_service_1 = require("./src/router/router.service");
|
|
8
8
|
class XtlsApi {
|
|
9
|
-
constructor(ip, port) {
|
|
10
|
-
this.channel = (0, nice_grpc_1.createChannel)(`${ip}:${port}
|
|
9
|
+
constructor(ip, port, options) {
|
|
10
|
+
this.channel = (0, nice_grpc_1.createChannel)(`${ip}:${port}`, undefined, {
|
|
11
|
+
...options,
|
|
12
|
+
});
|
|
11
13
|
this.stats = new stats_service_1.StatsService(this.channel);
|
|
12
14
|
this.handler = new handler_service_1.HandlerService(this.channel);
|
|
13
15
|
this.router = new router_service_1.RouterService(this.channel);
|