Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
Signed-off-by: Mario Kozjak <[email protected]>
  • Loading branch information
mkozjak committed Feb 25, 2025
1 parent fdbc12a commit 1f811e2
Show file tree
Hide file tree
Showing 13 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion dist/index.browser-bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.browser.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ var CommonClient = class extends eventemitter3.EventEmitter {
this.max_reconnects = max_reconnects;
this.rest_options = rest_options;
this.current_reconnects = 0;
this.generate_request_id = generate_request_id || (() => ++this.rpc_id);
this.generate_request_id = generate_request_id || (() => Number(this.rpc_id) + 1);
if (!dataPack) this.dataPack = new DefaultDataPack();
else this.dataPack = dataPack;
if (this.autoconnect)
Expand Down
2 changes: 1 addition & 1 deletion dist/index.browser.cjs.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/index.browser.d.mts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ interface IQueueElement {
timeout?: ReturnType<typeof setTimeout>;
}
interface IQueue {
[x: number]: IQueueElement;
[x: number | string]: IQueueElement;
}
interface IWSRequestParams {
[x: string]: any;
Expand Down Expand Up @@ -80,7 +80,7 @@ declare class CommonClient extends EventEmitter {
reconnect?: boolean;
reconnect_interval?: number;
max_reconnects?: number;
}, generate_request_id?: (method: string, params: object | Array<any>) => number, dataPack?: DataPack<object, string>);
}, generate_request_id?: (method: string, params: object | Array<any>) => number | string, dataPack?: DataPack<object, string>);
/**
* Connects to a defined server if not connected already.
* @method
Expand Down Expand Up @@ -219,7 +219,7 @@ declare class WebSocketBrowserImpl extends EventEmitter {
declare function WebSocket$1(address: string, options: IWSClientAdditionalOptions): WebSocketBrowserImpl;

declare class Client extends CommonClient {
constructor(address?: string, { autoconnect, reconnect, reconnect_interval, max_reconnects, }?: IWSClientAdditionalOptions, generate_request_id?: (method: string, params: object | Array<any>) => number);
constructor(address?: string, { autoconnect, reconnect, reconnect_interval, max_reconnects, }?: IWSClientAdditionalOptions, generate_request_id?: (method: string, params: object | Array<any>) => number | string);
}

export { type BrowserWebSocketType, Client, CommonClient, type DataPack, DefaultDataPack, type ICommonWebSocket, type ICommonWebSocketFactory, type IQueue, type IWSClientAdditionalOptions, type IWSRequestParams, type NodeWebSocketType, type NodeWebSocketTypeOptions, WebSocket$1 as WebSocket };
6 changes: 3 additions & 3 deletions dist/index.browser.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ interface IQueueElement {
timeout?: ReturnType<typeof setTimeout>;
}
interface IQueue {
[x: number]: IQueueElement;
[x: number | string]: IQueueElement;
}
interface IWSRequestParams {
[x: string]: any;
Expand Down Expand Up @@ -80,7 +80,7 @@ declare class CommonClient extends EventEmitter {
reconnect?: boolean;
reconnect_interval?: number;
max_reconnects?: number;
}, generate_request_id?: (method: string, params: object | Array<any>) => number, dataPack?: DataPack<object, string>);
}, generate_request_id?: (method: string, params: object | Array<any>) => number | string, dataPack?: DataPack<object, string>);
/**
* Connects to a defined server if not connected already.
* @method
Expand Down Expand Up @@ -219,7 +219,7 @@ declare class WebSocketBrowserImpl extends EventEmitter {
declare function WebSocket$1(address: string, options: IWSClientAdditionalOptions): WebSocketBrowserImpl;

declare class Client extends CommonClient {
constructor(address?: string, { autoconnect, reconnect, reconnect_interval, max_reconnects, }?: IWSClientAdditionalOptions, generate_request_id?: (method: string, params: object | Array<any>) => number);
constructor(address?: string, { autoconnect, reconnect, reconnect_interval, max_reconnects, }?: IWSClientAdditionalOptions, generate_request_id?: (method: string, params: object | Array<any>) => number | string);
}

export { type BrowserWebSocketType, Client, CommonClient, type DataPack, DefaultDataPack, type ICommonWebSocket, type ICommonWebSocketFactory, type IQueue, type IWSClientAdditionalOptions, type IWSRequestParams, type NodeWebSocketType, type NodeWebSocketTypeOptions, WebSocket$1 as WebSocket };
2 changes: 1 addition & 1 deletion dist/index.browser.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ var CommonClient = class extends EventEmitter {
this.max_reconnects = max_reconnects;
this.rest_options = rest_options;
this.current_reconnects = 0;
this.generate_request_id = generate_request_id || (() => ++this.rpc_id);
this.generate_request_id = generate_request_id || (() => Number(this.rpc_id) + 1);
if (!dataPack) this.dataPack = new DefaultDataPack();
else this.dataPack = dataPack;
if (this.autoconnect)
Expand Down
2 changes: 1 addition & 1 deletion dist/index.browser.mjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ var CommonClient = class extends eventemitter3.EventEmitter {
this.max_reconnects = max_reconnects;
this.rest_options = rest_options;
this.current_reconnects = 0;
this.generate_request_id = generate_request_id || (() => ++this.rpc_id);
this.generate_request_id = generate_request_id || (() => Number(this.rpc_id) + 1);
if (!dataPack) this.dataPack = new DefaultDataPack();
else this.dataPack = dataPack;
if (this.autoconnect)
Expand Down
2 changes: 1 addition & 1 deletion dist/index.cjs.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/index.d.mts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ interface IQueueElement {
timeout?: ReturnType<typeof setTimeout>;
}
interface IQueue {
[x: number]: IQueueElement;
[x: number | string]: IQueueElement;
}
interface IWSRequestParams {
[x: string]: any;
Expand Down Expand Up @@ -80,7 +80,7 @@ declare class CommonClient extends EventEmitter {
reconnect?: boolean;
reconnect_interval?: number;
max_reconnects?: number;
}, generate_request_id?: (method: string, params: object | Array<any>) => number, dataPack?: DataPack<object, string>);
}, generate_request_id?: (method: string, params: object | Array<any>) => number | string, dataPack?: DataPack<object, string>);
/**
* Connects to a defined server if not connected already.
* @method
Expand Down Expand Up @@ -409,7 +409,7 @@ declare class Server extends EventEmitter {
declare function createError(code: number, details?: string): IRPCError;

declare class Client extends CommonClient {
constructor(address?: string, { autoconnect, reconnect, reconnect_interval, max_reconnects, ...rest_options }?: IWSClientAdditionalOptions & NodeWebSocketTypeOptions, generate_request_id?: (method: string, params: object | Array<any>) => number);
constructor(address?: string, { autoconnect, reconnect, reconnect_interval, max_reconnects, ...rest_options }?: IWSClientAdditionalOptions & NodeWebSocketTypeOptions, generate_request_id?: (method: string, params: object | Array<any>) => number | string);
}

export { type BrowserWebSocketType, Client, CommonClient, type DataPack, DefaultDataPack, type ICommonWebSocket, type ICommonWebSocketFactory, type IQueue, type IWSClientAdditionalOptions, type IWSRequestParams, type NodeWebSocketType, type NodeWebSocketTypeOptions, Server, WebSocket$1 as WebSocket, createError };
6 changes: 3 additions & 3 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ interface IQueueElement {
timeout?: ReturnType<typeof setTimeout>;
}
interface IQueue {
[x: number]: IQueueElement;
[x: number | string]: IQueueElement;
}
interface IWSRequestParams {
[x: string]: any;
Expand Down Expand Up @@ -80,7 +80,7 @@ declare class CommonClient extends EventEmitter {
reconnect?: boolean;
reconnect_interval?: number;
max_reconnects?: number;
}, generate_request_id?: (method: string, params: object | Array<any>) => number, dataPack?: DataPack<object, string>);
}, generate_request_id?: (method: string, params: object | Array<any>) => number | string, dataPack?: DataPack<object, string>);
/**
* Connects to a defined server if not connected already.
* @method
Expand Down Expand Up @@ -409,7 +409,7 @@ declare class Server extends EventEmitter {
declare function createError(code: number, details?: string): IRPCError;

declare class Client extends CommonClient {
constructor(address?: string, { autoconnect, reconnect, reconnect_interval, max_reconnects, ...rest_options }?: IWSClientAdditionalOptions & NodeWebSocketTypeOptions, generate_request_id?: (method: string, params: object | Array<any>) => number);
constructor(address?: string, { autoconnect, reconnect, reconnect_interval, max_reconnects, ...rest_options }?: IWSClientAdditionalOptions & NodeWebSocketTypeOptions, generate_request_id?: (method: string, params: object | Array<any>) => number | string);
}

export { type BrowserWebSocketType, Client, CommonClient, type DataPack, DefaultDataPack, type ICommonWebSocket, type ICommonWebSocketFactory, type IQueue, type IWSClientAdditionalOptions, type IWSRequestParams, type NodeWebSocketType, type NodeWebSocketTypeOptions, Server, WebSocket$1 as WebSocket, createError };
2 changes: 1 addition & 1 deletion dist/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ var CommonClient = class extends EventEmitter {
this.max_reconnects = max_reconnects;
this.rest_options = rest_options;
this.current_reconnects = 0;
this.generate_request_id = generate_request_id || (() => ++this.rpc_id);
this.generate_request_id = generate_request_id || (() => Number(this.rpc_id) + 1);
if (!dataPack) this.dataPack = new DefaultDataPack();
else this.dataPack = dataPack;
if (this.autoconnect)
Expand Down
2 changes: 1 addition & 1 deletion dist/index.mjs.map

Large diffs are not rendered by default.

0 comments on commit 1f811e2

Please sign in to comment.