@cheqd/sdk 5.1.0-develop.3 → 5.1.0-develop.5
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/build/cjs/package.json +58 -0
- package/build/cjs/preinstall.js +24 -0
- package/build/esm/package.json +59 -0
- package/build/esm/preinstall.js +24 -0
- package/build/preinstall.js +24 -0
- package/package.json +4 -4
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cheqd/sdk-cjs",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "2.6.0",
|
|
5
|
+
"description": "A TypeScript SDK built with CosmJS to interact with cheqd network ledger",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"author": "Cheqd Foundation Limited (https://github.com/cheqd)",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./build/types/index.d.ts",
|
|
11
|
+
"require": "./build/index.js",
|
|
12
|
+
"default": "./build/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./*": {
|
|
15
|
+
"types": "./build/types/*.d.ts",
|
|
16
|
+
"require": "./build/*.js",
|
|
17
|
+
"default": "./build/*.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"test": "jest --colors --passWithNoTests --maxWorkers 1 --maxConcurrency 1",
|
|
22
|
+
"test:watch": "jest --colors --passWithNoTests --maxWorkers 1 --maxConcurrency 1 --watch",
|
|
23
|
+
"build": "npm run build:types && npm run build:cjs",
|
|
24
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
25
|
+
"build:cjs": "tsc -p tsconfig.json",
|
|
26
|
+
"format": "prettier --write '**/*.{js,ts,cjs,mjs,json}'"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@cheqd/ts-proto": "~2.4.0",
|
|
30
|
+
"@cosmjs/amino": "~0.30.1",
|
|
31
|
+
"@cosmjs/crypto": "~0.30.1",
|
|
32
|
+
"@cosmjs/encoding": "~0.30.1",
|
|
33
|
+
"@cosmjs/math": "~0.30.1",
|
|
34
|
+
"@cosmjs/proto-signing": "~0.30.1",
|
|
35
|
+
"@cosmjs/stargate": "~0.30.1",
|
|
36
|
+
"@cosmjs/tendermint-rpc": "~0.30.1",
|
|
37
|
+
"@cosmjs/utils": "~0.30.1",
|
|
38
|
+
"@stablelib/ed25519": "^1.0.3",
|
|
39
|
+
"@types/secp256k1": "^4.0.6",
|
|
40
|
+
"cosmjs-types": "^0.7.2",
|
|
41
|
+
"did-jwt": "^8.0.4",
|
|
42
|
+
"did-resolver": "^4.1.0",
|
|
43
|
+
"exponential-backoff": "^3.1.1",
|
|
44
|
+
"file-type": "^16.5.4",
|
|
45
|
+
"long": "^4.0.0",
|
|
46
|
+
"multiformats": "^9.9.0",
|
|
47
|
+
"secp256k1": "^5.0.0",
|
|
48
|
+
"uuid": "^10.0.0"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@types/node": "^18.19.47",
|
|
52
|
+
"@types/uuid": "^10.0.0",
|
|
53
|
+
"uint8arrays": "^3.1.1"
|
|
54
|
+
},
|
|
55
|
+
"engines": {
|
|
56
|
+
"node": ">=18"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -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');
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cheqd/sdk-esm",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "5.0.1",
|
|
5
|
+
"description": "A TypeScript SDK built with CosmJS to interact with cheqd network ledger",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"author": "Cheqd Foundation Limited (https://github.com/cheqd)",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./build/types/index.d.ts",
|
|
12
|
+
"import": "./build/index.js",
|
|
13
|
+
"default": "./build/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./*": {
|
|
16
|
+
"types": "./build/types/*.d.ts",
|
|
17
|
+
"import": "./build/*.js",
|
|
18
|
+
"default": "./build/*.js"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"test": "cross-env NODE_OPTIONS='--experimental-vm-modules' jest --colors --passWithNoTests --maxWorkers 1 --maxConcurrency 1",
|
|
23
|
+
"test:watch": "cross-env NODE_OPTIONS='--experimental-vm-modules' jest --colors --passWithNoTests --maxWorkers 1 --maxConcurrency 1 --watch",
|
|
24
|
+
"build": "npm run build:types && npm run build:esm",
|
|
25
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
26
|
+
"build:esm": "tsc -p tsconfig.json",
|
|
27
|
+
"format": "prettier --write '**/*.{js,ts,cjs,mjs,json}'"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@cheqd/ts-proto": "^4.0.0",
|
|
31
|
+
"@cosmjs/amino": "^0.32.4",
|
|
32
|
+
"@cosmjs/crypto": "^0.32.4",
|
|
33
|
+
"@cosmjs/encoding": "^0.32.4",
|
|
34
|
+
"@cosmjs/math": "^0.32.4",
|
|
35
|
+
"@cosmjs/proto-signing": "^0.32.4",
|
|
36
|
+
"@cosmjs/stargate": "^0.32.4",
|
|
37
|
+
"@cosmjs/tendermint-rpc": "^0.32.4",
|
|
38
|
+
"@cosmjs/utils": "^0.32.4",
|
|
39
|
+
"@stablelib/ed25519": "^1.0.3",
|
|
40
|
+
"@types/secp256k1": "^4.0.6",
|
|
41
|
+
"cosmjs-types": "^0.9.0",
|
|
42
|
+
"did-jwt": "^8.0.4",
|
|
43
|
+
"did-resolver": "^4.1.0",
|
|
44
|
+
"exponential-backoff": "^3.1.1",
|
|
45
|
+
"file-type": "^19.5.0",
|
|
46
|
+
"multiformats": "^13.3.0",
|
|
47
|
+
"secp256k1": "^5.0.0",
|
|
48
|
+
"uuid": "^10.0.0"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@types/node": "^20.16.5",
|
|
52
|
+
"@types/uuid": "^10.0.0",
|
|
53
|
+
"cross-env": "^7.0.3",
|
|
54
|
+
"uint8arrays": "^5.1.0"
|
|
55
|
+
},
|
|
56
|
+
"engines": {
|
|
57
|
+
"node": ">=20.0.0"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -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');
|
|
@@ -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');
|
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.5",
|
|
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,9 +22,9 @@
|
|
|
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",
|
|
26
|
-
"build:esm": "cd esm && tsc -p tsconfig.json",
|
|
27
|
-
"build:cjs": "cd cjs && tsc -p tsconfig.json",
|
|
25
|
+
"build": "rm -rf build && npm run build:esm && npm run build:cjs && npm run build:types && cp preinstall.js build/preinstall.js && cp preinstall.js build/esm/preinstall.js && cp preinstall.js build/cjs/preinstall.js",
|
|
26
|
+
"build:esm": "cd esm && tsc -p tsconfig.json && cp package.json ../build/esm/package.json",
|
|
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",
|
|
29
29
|
"test": "npm run test:esm && npm run test:cjs",
|
|
30
30
|
"test:esm": "cd esm && npm test",
|