modality-kit 0.12.13 → 0.12.14

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -5
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -5510,14 +5510,16 @@ class JSONRPCManager extends JSONRPCCall {
5510
5510
  case "request":
5511
5511
  return await this.processRequest(validation.message, options);
5512
5512
  case "notification":
5513
- return this.processNotification(validation.message, options);
5513
+ this.processNotification(validation.message, options);
5514
+ break;
5514
5515
  case "response":
5515
5516
  const response = validation.message;
5516
5517
  logger2.info("Received response message, handling internally", [
5517
5518
  response,
5518
5519
  response.id
5519
5520
  ]);
5520
- return this.handleResponse(response);
5521
+ this.handleResponse(response);
5522
+ break;
5521
5523
  case "batch":
5522
5524
  return await this.processBatchRequest(validation.message, options);
5523
5525
  default:
@@ -5565,15 +5567,14 @@ class JSONRPCManager extends JSONRPCCall {
5565
5567
  try {
5566
5568
  const methodConfig = this.methods.get(notification.method);
5567
5569
  if (!methodConfig) {
5568
- throw new ERROR_METHOD_NOT_FOUND(`Notification method '${notification.method}' not found`);
5570
+ throw new ERROR_METHOD_NOT_FOUND(`Notification method '${notification.method}' not handled.`);
5569
5571
  }
5570
5572
  if (this.eventHandlers.onMethodCall) {
5571
5573
  this.eventHandlers.onMethodCall(notification.method, notification.params, context);
5572
5574
  }
5573
5575
  return await methodConfig.handler(notification.params, context);
5574
5576
  } catch (error) {
5575
- console.error(`Error executing notification '${notification.method}':`, error);
5576
- throw error;
5577
+ logger2.info(`Notification get exception: '${notification.method}':`, error);
5577
5578
  }
5578
5579
  }
5579
5580
  async processBatchRequest(batchRequest, options = {}) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.12.13",
2
+ "version": "0.12.14",
3
3
  "name": "modality-kit",
4
4
  "repository": {
5
5
  "type": "git",
@@ -28,7 +28,7 @@
28
28
  "build:clean": "find ./dist -name '*.*' | xargs rm -rf",
29
29
  "build:types": "bun tsc -p ./",
30
30
  "build:src": "bun build src/index.ts --outdir dist",
31
- "build": "bun run build:clean && bun run build:src && bun run build:types",
31
+ "build": "bun run build:clean && bun run build:types && bun run build:src",
32
32
  "dev": "bunx concurrently 'bun --watch tsc -p ./' 'bun build:src -- --watch --sourcemap=inline'",
33
33
  "test": "bun test",
34
34
  "prepublishOnly": "npm run build && npm run test"