@cheqd/sdk 5.1.0-develop.5 → 5.1.0-develop.6
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/package.json +23 -22
- package/build/cjs/preinstall.js +0 -24
- package/build/esm/preinstall.js +0 -24
- package/build/preinstall.js +0 -24
- package/preinstall.js +0 -24
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cheqd/sdk",
|
|
3
|
-
"version": "5.1.0-develop.
|
|
3
|
+
"version": "5.1.0-develop.6",
|
|
4
4
|
"description": "A TypeScript SDK built with CosmJS to interact with the cheqd network ledger",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Cheqd Foundation Limited (https://github.com/cheqd)",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
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
|
|
25
|
+
"build": "rm -rf build && npm run build:esm && npm run build:cjs && npm run build:types",
|
|
26
26
|
"build:esm": "cd esm && tsc -p tsconfig.json && cp package.json ../build/esm/package.json",
|
|
27
27
|
"build:cjs": "cd cjs && tsc -p tsconfig.json && cp package.json ../build/cjs/package.json",
|
|
28
28
|
"build:types": "cd esm && tsc -p tsconfig.types.json",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"test:esm": "cd esm && npm test",
|
|
31
31
|
"test:cjs": "cd cjs && npm test",
|
|
32
32
|
"format": "prettier --write '**/*.{js,ts,cjs,mjs,json}'",
|
|
33
|
-
"
|
|
33
|
+
"prepare": "husky"
|
|
34
34
|
},
|
|
35
35
|
"workspaces": [
|
|
36
36
|
"esm",
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
"@semantic-release/release-notes-generator": "^12.1.0",
|
|
66
66
|
"@types/jest": "^29.5.12",
|
|
67
67
|
"conventional-changelog-conventionalcommits": "^7.0.2",
|
|
68
|
+
"husky": "^9.1.7",
|
|
68
69
|
"jest": "^29.7.0",
|
|
69
70
|
"prettier": "^3.3.3",
|
|
70
71
|
"semantic-release": "^22.0.12",
|
|
@@ -77,43 +78,43 @@
|
|
|
77
78
|
},
|
|
78
79
|
"dependencies": {
|
|
79
80
|
"@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
81
|
"@cheqd/ts-proto-cjs": "npm:@cheqd/ts-proto@~2.4.0",
|
|
82
|
+
"@cosmjs/amino": "^0.32.4",
|
|
99
83
|
"@cosmjs/amino-cjs": "npm:@cosmjs/amino@~0.30.1",
|
|
84
|
+
"@cosmjs/crypto": "^0.32.4",
|
|
100
85
|
"@cosmjs/crypto-cjs": "npm:@cosmjs/crypto@~0.30.1",
|
|
86
|
+
"@cosmjs/encoding": "^0.32.4",
|
|
101
87
|
"@cosmjs/encoding-cjs": "npm:@cosmjs/encoding@~0.30.1",
|
|
88
|
+
"@cosmjs/math": "^0.32.4",
|
|
102
89
|
"@cosmjs/math-cjs": "npm:@cosmjs/math@~0.30.1",
|
|
90
|
+
"@cosmjs/proto-signing": "^0.32.4",
|
|
103
91
|
"@cosmjs/proto-signing-cjs": "npm:@cosmjs/proto-signing@~0.30.1",
|
|
92
|
+
"@cosmjs/stargate": "^0.32.4",
|
|
104
93
|
"@cosmjs/stargate-cjs": "npm:@cosmjs/stargate@~0.30.1",
|
|
94
|
+
"@cosmjs/tendermint-rpc": "^0.32.4",
|
|
105
95
|
"@cosmjs/tendermint-rpc-cjs": "npm:@cosmjs/tendermint-rpc@~0.30.1",
|
|
96
|
+
"@cosmjs/utils": "^0.32.4",
|
|
106
97
|
"@cosmjs/utils-cjs": "npm:@cosmjs/utils@~0.30.1",
|
|
98
|
+
"@stablelib/ed25519": "^1.0.3",
|
|
107
99
|
"@stablelib/ed25519-cjs": "npm:@stablelib/ed25519@^1.0.3",
|
|
100
|
+
"@types/secp256k1": "^4.0.6",
|
|
108
101
|
"@types/secp256k1-cjs": "npm:@types/secp256k1@^4.0.6",
|
|
102
|
+
"cosmjs-types": "^0.9.0",
|
|
109
103
|
"cosmjs-types-cjs": "npm:cosmjs-types@^0.7.2",
|
|
104
|
+
"did-jwt": "^8.0.4",
|
|
110
105
|
"did-jwt-cjs": "npm:did-jwt@^8.0.4",
|
|
106
|
+
"did-resolver": "^4.1.0",
|
|
111
107
|
"did-resolver-cjs": "npm:did-resolver@^4.1.0",
|
|
108
|
+
"exponential-backoff": "^3.1.1",
|
|
112
109
|
"exponential-backoff-cjs": "npm:exponential-backoff@^3.1.1",
|
|
110
|
+
"file-type": "^19.5.0",
|
|
113
111
|
"file-type-cjs": "npm:file-type@^16.5.4",
|
|
114
112
|
"long-cjs": "npm:long@^4.0.0",
|
|
113
|
+
"multiformats": "^13.3.0",
|
|
115
114
|
"multiformats-cjs": "npm:multiformats@^9.9.0",
|
|
115
|
+
"secp256k1": "^5.0.0",
|
|
116
116
|
"secp256k1-cjs": "npm:secp256k1@^5.0.0",
|
|
117
|
+
"uuid": "^10.0.0",
|
|
117
118
|
"uuid-cjs": "npm:uuid@^10.0.0"
|
|
118
119
|
}
|
|
119
|
-
}
|
|
120
|
+
}
|
package/build/cjs/preinstall.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
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');
|
package/build/esm/preinstall.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
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');
|
package/build/preinstall.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
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');
|
package/preinstall.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
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');
|