@cheqd/sdk 5.1.0-develop.1 → 5.1.0-develop.3

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 (38) hide show
  1. package/build/cjs/index.d.ts +2 -2
  2. package/build/cjs/index.d.ts.map +1 -1
  3. package/build/cjs/index.js +2 -2
  4. package/build/cjs/index.js.map +1 -1
  5. package/build/cjs/modules/_.d.ts +1 -1
  6. package/build/cjs/modules/_.d.ts.map +1 -1
  7. package/build/cjs/modules/did.d.ts +4 -4
  8. package/build/cjs/modules/did.d.ts.map +1 -1
  9. package/build/cjs/modules/did.js +7 -7
  10. package/build/cjs/modules/did.js.map +1 -1
  11. package/build/cjs/modules/feemarket.d.ts +4 -4
  12. package/build/cjs/modules/feemarket.d.ts.map +1 -1
  13. package/build/cjs/modules/feemarket.js +8 -8
  14. package/build/cjs/modules/feemarket.js.map +1 -1
  15. package/build/cjs/modules/resource.d.ts +4 -4
  16. package/build/cjs/modules/resource.d.ts.map +1 -1
  17. package/build/cjs/modules/resource.js +10 -10
  18. package/build/cjs/modules/resource.js.map +1 -1
  19. package/build/cjs/querier.d.ts +2 -2
  20. package/build/cjs/querier.d.ts.map +1 -1
  21. package/build/cjs/querier.js +6 -6
  22. package/build/cjs/querier.js.map +1 -1
  23. package/build/cjs/registry.d.ts +1 -1
  24. package/build/cjs/registry.d.ts.map +1 -1
  25. package/build/cjs/registry.js +4 -4
  26. package/build/cjs/registry.js.map +1 -1
  27. package/build/cjs/signer.d.ts +9 -9
  28. package/build/cjs/signer.d.ts.map +1 -1
  29. package/build/cjs/signer.js +29 -29
  30. package/build/cjs/signer.js.map +1 -1
  31. package/build/cjs/types.d.ts +6 -6
  32. package/build/cjs/types.d.ts.map +1 -1
  33. package/build/cjs/utils.d.ts +7 -7
  34. package/build/cjs/utils.d.ts.map +1 -1
  35. package/build/cjs/utils.js +25 -25
  36. package/build/cjs/utils.js.map +1 -1
  37. package/package.json +117 -74
  38. package/preinstall.js +24 -0
package/package.json CHANGED
@@ -1,76 +1,119 @@
1
1
  {
2
- "name": "@cheqd/sdk",
3
- "version": "5.1.0-develop.1",
4
- "description": "A TypeScript SDK built with CosmJS to interact with the cheqd network ledger",
5
- "license": "Apache-2.0",
6
- "author": "Cheqd Foundation Limited (https://github.com/cheqd)",
7
- "main": "./build/cjs/index.js",
8
- "module": "./build/esm/index.js",
9
- "exports": {
10
- ".": {
11
- "types": "./build/types/index.d.ts",
12
- "import": "./build/esm/index.js",
13
- "require": "./build/cjs/index.js",
14
- "default": "./build/esm/index.js"
15
- },
16
- "./*": {
17
- "types": "./build/types/*.d.ts",
18
- "import": "./build/esm/*.js",
19
- "require": "./build/cjs/*.js",
20
- "default": "./build/esm/*.js"
21
- }
22
- },
23
- "scripts": {
24
- "clean": "rm -rf node_modules && rm -rf esm/node_modules && rm -rf cjs/node_modules && rm -f package-lock.json",
25
- "build": "rm -rf build && npm run build:esm && npm run build:cjs && npm run build:types",
26
- "build:esm": "cd esm && tsc -p tsconfig.json",
27
- "build:cjs": "cd cjs && tsc -p tsconfig.json",
28
- "build:types": "cd esm && tsc -p tsconfig.types.json",
29
- "test": "npm run test:esm && npm run test:cjs",
30
- "test:esm": "cd esm && npm test",
31
- "test:cjs": "cd cjs && npm test",
32
- "format": "prettier --write '**/*.{js,ts,cjs,mjs,json}'"
33
- },
34
- "workspaces": [
35
- "esm",
36
- "cjs"
37
- ],
38
- "repository": "https://github.com/cheqd/sdk.git",
39
- "keywords": [
40
- "cheqd",
41
- "sdk",
42
- "ssi",
43
- "did",
44
- "vc",
45
- "resources"
46
- ],
47
- "bugs": {
48
- "url": "https://github.com/cheqd/sdk/issues"
49
- },
50
- "homepage": "https://github.com/cheqd/sdk#readme",
51
- "files": [
52
- "build",
53
- "LICENSE",
54
- "package.json",
55
- "README.md"
56
- ],
57
- "devDependencies": {
58
- "@semantic-release/changelog": "^6.0.3",
59
- "@semantic-release/commit-analyzer": "^11.1.0",
60
- "@semantic-release/git": "^10.0.1",
61
- "@semantic-release/github": "^9.2.6",
62
- "@semantic-release/npm": "^11.0.3",
63
- "@semantic-release/release-notes-generator": "^12.1.0",
64
- "@types/jest": "^29.5.12",
65
- "conventional-changelog-conventionalcommits": "^7.0.2",
66
- "jest": "^29.7.0",
67
- "prettier": "^3.3.3",
68
- "semantic-release": "^22.0.12",
69
- "ts-jest": "^29.2.5",
70
- "typescript": "^5.5.4"
71
- },
72
- "publishConfig": {
73
- "registry": "https://registry.npmjs.org/",
74
- "access": "public"
75
- }
2
+ "name": "@cheqd/sdk",
3
+ "version": "5.1.0-develop.3",
4
+ "description": "A TypeScript SDK built with CosmJS to interact with the cheqd network ledger",
5
+ "license": "Apache-2.0",
6
+ "author": "Cheqd Foundation Limited (https://github.com/cheqd)",
7
+ "main": "./build/cjs/index.js",
8
+ "module": "./build/esm/index.js",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./build/types/index.d.ts",
12
+ "import": "./build/esm/index.js",
13
+ "require": "./build/cjs/index.js",
14
+ "default": "./build/esm/index.js"
15
+ },
16
+ "./*": {
17
+ "types": "./build/types/*.d.ts",
18
+ "import": "./build/esm/*.js",
19
+ "require": "./build/cjs/*.js",
20
+ "default": "./build/esm/*.js"
21
+ }
22
+ },
23
+ "scripts": {
24
+ "clean": "rm -rf node_modules && rm -rf esm/node_modules && rm -rf cjs/node_modules && rm -f package-lock.json",
25
+ "build": "rm -rf build && npm run build:esm && npm run build:cjs && npm run build:types",
26
+ "build:esm": "cd esm && tsc -p tsconfig.json",
27
+ "build:cjs": "cd cjs && tsc -p tsconfig.json",
28
+ "build:types": "cd esm && tsc -p tsconfig.types.json",
29
+ "test": "npm run test:esm && npm run test:cjs",
30
+ "test:esm": "cd esm && npm test",
31
+ "test:cjs": "cd cjs && npm test",
32
+ "format": "prettier --write '**/*.{js,ts,cjs,mjs,json}'",
33
+ "preinstall": "node preinstall.js"
34
+ },
35
+ "workspaces": [
36
+ "esm",
37
+ "cjs"
38
+ ],
39
+ "repository": "https://github.com/cheqd/sdk.git",
40
+ "keywords": [
41
+ "cheqd",
42
+ "sdk",
43
+ "ssi",
44
+ "did",
45
+ "vc",
46
+ "resources"
47
+ ],
48
+ "bugs": {
49
+ "url": "https://github.com/cheqd/sdk/issues"
50
+ },
51
+ "homepage": "https://github.com/cheqd/sdk#readme",
52
+ "files": [
53
+ "build",
54
+ "LICENSE",
55
+ "package.json",
56
+ "preinstall.js",
57
+ "README.md"
58
+ ],
59
+ "devDependencies": {
60
+ "@semantic-release/changelog": "^6.0.3",
61
+ "@semantic-release/commit-analyzer": "^11.1.0",
62
+ "@semantic-release/git": "^10.0.1",
63
+ "@semantic-release/github": "^9.2.6",
64
+ "@semantic-release/npm": "^11.0.3",
65
+ "@semantic-release/release-notes-generator": "^12.1.0",
66
+ "@types/jest": "^29.5.12",
67
+ "conventional-changelog-conventionalcommits": "^7.0.2",
68
+ "jest": "^29.7.0",
69
+ "prettier": "^3.3.3",
70
+ "semantic-release": "^22.0.12",
71
+ "ts-jest": "^29.2.5",
72
+ "typescript": "^5.5.4"
73
+ },
74
+ "publishConfig": {
75
+ "registry": "https://registry.npmjs.org/",
76
+ "access": "public"
77
+ },
78
+ "dependencies": {
79
+ "@cheqd/ts-proto": "^4.0.0",
80
+ "@cosmjs/amino": "^0.32.4",
81
+ "@cosmjs/crypto": "^0.32.4",
82
+ "@cosmjs/encoding": "^0.32.4",
83
+ "@cosmjs/math": "^0.32.4",
84
+ "@cosmjs/proto-signing": "^0.32.4",
85
+ "@cosmjs/stargate": "^0.32.4",
86
+ "@cosmjs/tendermint-rpc": "^0.32.4",
87
+ "@cosmjs/utils": "^0.32.4",
88
+ "@stablelib/ed25519": "^1.0.3",
89
+ "@types/secp256k1": "^4.0.6",
90
+ "cosmjs-types": "^0.9.0",
91
+ "did-jwt": "^8.0.4",
92
+ "did-resolver": "^4.1.0",
93
+ "exponential-backoff": "^3.1.1",
94
+ "file-type": "^19.5.0",
95
+ "multiformats": "^13.3.0",
96
+ "secp256k1": "^5.0.0",
97
+ "uuid": "^10.0.0",
98
+ "@cheqd/ts-proto-cjs": "npm:@cheqd/ts-proto@~2.4.0",
99
+ "@cosmjs/amino-cjs": "npm:@cosmjs/amino@~0.30.1",
100
+ "@cosmjs/crypto-cjs": "npm:@cosmjs/crypto@~0.30.1",
101
+ "@cosmjs/encoding-cjs": "npm:@cosmjs/encoding@~0.30.1",
102
+ "@cosmjs/math-cjs": "npm:@cosmjs/math@~0.30.1",
103
+ "@cosmjs/proto-signing-cjs": "npm:@cosmjs/proto-signing@~0.30.1",
104
+ "@cosmjs/stargate-cjs": "npm:@cosmjs/stargate@~0.30.1",
105
+ "@cosmjs/tendermint-rpc-cjs": "npm:@cosmjs/tendermint-rpc@~0.30.1",
106
+ "@cosmjs/utils-cjs": "npm:@cosmjs/utils@~0.30.1",
107
+ "@stablelib/ed25519-cjs": "npm:@stablelib/ed25519@^1.0.3",
108
+ "@types/secp256k1-cjs": "npm:@types/secp256k1@^4.0.6",
109
+ "cosmjs-types-cjs": "npm:cosmjs-types@^0.7.2",
110
+ "did-jwt-cjs": "npm:did-jwt@^8.0.4",
111
+ "did-resolver-cjs": "npm:did-resolver@^4.1.0",
112
+ "exponential-backoff-cjs": "npm:exponential-backoff@^3.1.1",
113
+ "file-type-cjs": "npm:file-type@^16.5.4",
114
+ "long-cjs": "npm:long@^4.0.0",
115
+ "multiformats-cjs": "npm:multiformats@^9.9.0",
116
+ "secp256k1-cjs": "npm:secp256k1@^5.0.0",
117
+ "uuid-cjs": "npm:uuid@^10.0.0"
118
+ }
76
119
  }
package/preinstall.js ADDED
@@ -0,0 +1,24 @@
1
+ const fs = require('fs');
2
+ const path = require('path');
3
+
4
+ const rootPackageJsonPath = path.resolve(__dirname, 'package.json');
5
+ const esmPackageJsonPath = path.resolve(__dirname, 'esm', 'package.json');
6
+ const cjsPackageJsonPath = path.resolve(__dirname, 'cjs', 'package.json');
7
+
8
+ function addSuffixedDependencies(packageJsonPath, suffix = '') {
9
+ const rootPackageJson = JSON.parse(fs.readFileSync(rootPackageJsonPath, 'utf-8'));
10
+ const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
11
+ const dependencies = packageJson.dependencies || {};
12
+
13
+ rootPackageJson.dependencies = rootPackageJson.dependencies || {};
14
+
15
+ for (const [dep, version] of Object.entries(dependencies)) {
16
+ const suffixedDep = suffix ? `${dep}${suffix}` : dep;
17
+ rootPackageJson.dependencies[suffixedDep] = suffix ? `npm:${dep}@${version}` : version;
18
+ }
19
+
20
+ fs.writeFileSync(rootPackageJsonPath, JSON.stringify(rootPackageJson, null, 4));
21
+ }
22
+
23
+ addSuffixedDependencies(esmPackageJsonPath);
24
+ addSuffixedDependencies(cjsPackageJsonPath, '-cjs');