@rfkit/json-rpc-websocket 0.2.1 → 0.2.2

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/index.d.ts CHANGED
@@ -4,7 +4,8 @@
4
4
  */
5
5
  export { JsonRpcWebSocketClient as default } from './core/client';
6
6
  export { JsonRpcWebSocketClient } from './core/client';
7
- export type { JsonRpcRequest, JsonRpcResponse, JsonRpcSuccess, JsonRpcError, JsonRpcNotification, JsonRpcMessage, JsonRpcErrorCode, ConnectionOptions, RequestOptions, NotificationOptions, StreamOptions, StreamController, SocketEvents, PerformanceStats, ConnectionState, MessageEventData, SocketEvent, } from './types';
7
+ export type { JsonRpcRequest, JsonRpcResponse, JsonRpcSuccess, JsonRpcError, JsonRpcNotification, JsonRpcMessage, JsonRpcErrorCode, ConnectionOptions, RequestOptions, NotificationOptions, StreamOptions, StreamController, SocketEvents, PerformanceStats, ConnectionState, MessageEventData, } from './types';
8
+ export { SocketEvent } from './types';
8
9
  export { encode, decode, serialize, deserialize } from './pack';
9
10
  export type { SerializeOptions, DeserializeOptions } from './pack/types';
10
11
  export { generateUUID } from './tools';
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,sBAAsB,IAAI,OAAO,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAGvD,YAAY,EAEV,cAAc,EACd,eAAe,EACf,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAEhB,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAEhB,WAAW,GACZ,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAChE,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGzE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,sBAAsB,IAAI,OAAO,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAGvD,YAAY,EAEV,cAAc,EACd,eAAe,EACf,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAEhB,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,gBAAgB,GACjB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGtC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAChE,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGzE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC"}
package/index.js CHANGED
@@ -882,4 +882,4 @@ class JsonRpcWebSocketClient extends EventEmitter {
882
882
  this.connect();
883
883
  }
884
884
  }
885
- export { JsonRpcWebSocketClient, decode, JsonRpcWebSocketClient as default, pack_deserialize as deserialize, encode, generateUUID, pack_serialize as serialize };
885
+ export { JsonRpcWebSocketClient, SocketEvent, decode, JsonRpcWebSocketClient as default, pack_deserialize as deserialize, encode, generateUUID, pack_serialize as serialize };
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "types": "index.d.ts",
6
6
  "author": "Hxgh",
7
7
  "license": "MIT",
8
- "version": "0.2.1",
8
+ "version": "0.2.2",
9
9
  "private": false,
10
10
  "keywords": [
11
11
  "json-rpc",