modality-kit 0.14.15 → 0.14.16

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.
@@ -16,7 +16,7 @@ export { JSONRPCUtils } from "./JSONRPCUtils";
16
16
  export { JSONRPCManager } from "./jsonrpc-manager";
17
17
  export { JSONRPCErrorCode } from "./schemas/jsonrpc";
18
18
  export type { JSONRPCManagerEvents, JSONRPCManagerConfig, } from "./jsonrpc-manager";
19
- export type { JSONRPCMessage, JSONRPCRequest, JSONRPCNotification, JSONRPCResponse, JSONRPCBatchRequest, JSONRPCBatchResponse, JSONRPCErrorResponse, JSONRPCValidationResult, JSONRPCError, JSONRPCParams, CommandExecuteParams, NotificationSendParams, } from "./schemas/jsonrpc";
19
+ export type { JSONRPCMessage, JSONRPCRequest, JSONRPCNotification, JSONRPCResponse, JSONRPCBatchRequest, JSONRPCBatchResponse, JSONRPCErrorResponse, JSONRPCValidationResult, JSONRPCError, JSONRPCParams, JSONRPCId, CommandExecuteParams, NotificationSendParams, } from "./schemas/jsonrpc";
20
20
  export { ERROR_METHOD_NOT_FOUND } from "./jsonrpc-manager";
21
21
  export { WebSocketClient } from "./websocket-client";
22
22
  export { LruCache } from "./lruCache";
@@ -12,6 +12,10 @@
12
12
  * Or as object: { methodName: JSONRPCMethod<MyParams, MyResult> }
13
13
  */
14
14
  export type JSONRPCMethod<TParams = JSONRPCParams, TResult = any> = (method: string, params?: TParams, options?: any) => Promise<TResult>;
15
+ /**
16
+ * JSON-RPC 2.0 ID type - string, number, or null
17
+ */
18
+ export type JSONRPCId = string | number | null;
15
19
  /**
16
20
  * JSON-RPC 2.0 Request object
17
21
  */
@@ -81,10 +85,6 @@ export declare const JSONRPC_VERSION: "2.0";
81
85
  * See: https://www.jsonrpc.org/specification#parameter_structures
82
86
  */
83
87
  export type JSONRPCParams = Record<any, any> | any[] | null;
84
- /**
85
- * JSON-RPC 2.0 ID type - string, number, or null
86
- */
87
- export type JSONRPCId = string | number | null;
88
88
  /**
89
89
  * JSON-RPC 2.0 Error object
90
90
  */
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
- "version": "0.14.15",
2
+ "version": "0.14.16",
3
3
  "name": "modality-kit",
4
4
  "repository": {
5
5
  "type": "git",
6
- "url": "https://github.com/react-atomic/modality"
6
+ "url": "git+https://github.com/react-atomic/modality.git"
7
7
  },
8
8
  "homepage": "https://github.com/react-atomic/modality/tree/main/modality-kit",
9
9
  "description": "A TypeScript-based toolkit for building web applications and managing communication with a backend server. It provides a set of utilities and components for handling JSON-RPC messages, managing pending operations, and creating reactive web components.",
10
- "keywords": ["modality-kit"],
10
+ "keywords": [
11
+ "modality-kit"
12
+ ],
11
13
  "author": "Hill <hill@kimo.com>",
12
14
  "license": "ISC",
13
15
  "devDependencies": {
@@ -32,5 +34,9 @@
32
34
  "test": "npm run build && bun test",
33
35
  "prepublishOnly": "npm t"
34
36
  },
35
- "files": ["package.json", "README.md", "dist"]
37
+ "files": [
38
+ "package.json",
39
+ "README.md",
40
+ "dist"
41
+ ]
36
42
  }