@kya-os/mcp-i 1.3.0 → 1.3.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.
@@ -7,17 +7,15 @@ exports.verifyProofLocally = verifyProofLocally;
7
7
  exports.verifyDIDDocumentLocally = verifyDIDDocumentLocally;
8
8
  exports.createMockProof = createMockProof;
9
9
  const crypto_1 = require("crypto");
10
+ const json_canonicalize_1 = require("json-canonicalize");
10
11
  const test_1 = require("@kya-os/contracts/test");
11
12
  const test_environment_1 = require("./test-environment");
12
13
  const mock_identity_provider_1 = require("./mock-identity-provider");
13
14
  /**
14
- * Canonicalize data using JCS (JSON Canonicalization Scheme)
15
- * For testing, we'll use a simplified version
15
+ * Canonicalize data using JCS (JSON Canonicalization Scheme) RFC 8785
16
16
  */
17
17
  function canonicalizeJSON(data) {
18
- // Simplified JCS implementation for testing
19
- // In production, this would use a proper JCS library
20
- return JSON.stringify(data, Object.keys(data).sort());
18
+ return (0, json_canonicalize_1.canonicalize)(data);
21
19
  }
22
20
  /**
23
21
  * Generate SHA-256 hash with prefix
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kya-os/mcp-i",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "The TypeScript MCP framework with identity features built-in",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",
@@ -47,7 +47,7 @@
47
47
  ],
48
48
  "dependencies": {
49
49
  "@kya-os/contracts": "^1.2.0",
50
- "@kya-os/mcp-i-core": "^1.0.0",
50
+ "@kya-os/mcp-i-core": "workspace:*",
51
51
  "@modelcontextprotocol/sdk": "^1.11.4",
52
52
  "@swc/core": "^1.11.24",
53
53
  "@types/express": "^5.0.1",
@@ -70,6 +70,7 @@
70
70
  "glob": "^11.0.2",
71
71
  "handlebars": "^4.7.7",
72
72
  "jose": "^5.2.0",
73
+ "json-canonicalize": "^2.0.0",
73
74
  "json5": "^2.2.3",
74
75
  "jsonwebtoken": "^9.0.2",
75
76
  "memfs": "^4.17.2",
@@ -104,6 +105,7 @@
104
105
  "node": ">=20.0.0"
105
106
  },
106
107
  "peerDependencies": {
108
+ "json-canonicalize": "^2.0.0",
107
109
  "swc-loader": "^0.2.6",
108
110
  "zod": "^3.22.4"
109
111
  },