@ocap/sdk 1.6.3 → 1.6.10
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/README.md +5 -6
- package/index.d.ts +1015 -735
- package/lib/sdk.js +1 -1
- package/package.json +22 -21
package/lib/sdk.js
CHANGED
|
@@ -195,7 +195,7 @@ module.exports = ({ message, util, wallet, clients }) => {
|
|
|
195
195
|
debug(`create connection ${endpoint}`);
|
|
196
196
|
if (['http', 'https'].includes(parsed.protocol)) {
|
|
197
197
|
const ForgeClient = clients.http;
|
|
198
|
-
const client = new ForgeClient(
|
|
198
|
+
const client = new ForgeClient(endpoint);
|
|
199
199
|
connections[name] = { name, client, options };
|
|
200
200
|
wrapMethods(client, sdk);
|
|
201
201
|
}
|
package/package.json
CHANGED
|
@@ -1,35 +1,38 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ocap/sdk",
|
|
3
3
|
"description": "Forge javascript SDK packages all-in-one",
|
|
4
|
-
"version": "1.6.
|
|
4
|
+
"version": "1.6.10",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "wangshijun",
|
|
7
7
|
"email": "shijun@arcblock.io",
|
|
8
8
|
"url": "https://github.com/wangshijun"
|
|
9
9
|
},
|
|
10
|
+
"contributors": [
|
|
11
|
+
"wangshijun <shijun@arcblock.io> (https://github.com/wangshijun)"
|
|
12
|
+
],
|
|
10
13
|
"bugs": {
|
|
11
|
-
"url": "https://github.com/ArcBlock/
|
|
14
|
+
"url": "https://github.com/ArcBlock/asset-chain/issues",
|
|
12
15
|
"email": "shijun@arcblock.io"
|
|
13
16
|
},
|
|
14
17
|
"publishConfig": {
|
|
15
18
|
"access": "public"
|
|
16
19
|
},
|
|
17
20
|
"dependencies": {
|
|
18
|
-
"@arcblock/did-util": "
|
|
19
|
-
"@ocap/client": "
|
|
20
|
-
"@ocap/message": "
|
|
21
|
-
"@ocap/util": "
|
|
22
|
-
"@ocap/wallet": "
|
|
23
|
-
"debug": "^4.3.
|
|
21
|
+
"@arcblock/did-util": "1.6.10",
|
|
22
|
+
"@ocap/client": "1.6.10",
|
|
23
|
+
"@ocap/message": "1.6.10",
|
|
24
|
+
"@ocap/util": "1.6.10",
|
|
25
|
+
"@ocap/wallet": "1.6.10",
|
|
26
|
+
"debug": "^4.3.3",
|
|
24
27
|
"react-app-polyfill": "^1.0.1"
|
|
25
28
|
},
|
|
26
29
|
"devDependencies": {
|
|
27
30
|
"inspectpack": "^4.2.1",
|
|
28
|
-
"jest": "^
|
|
29
|
-
"jsdoc-to-markdown": "^
|
|
30
|
-
"prettier": "^2.2
|
|
31
|
-
"remark-cli": "^
|
|
32
|
-
"remark-preset-github": "^
|
|
31
|
+
"jest": "^27.3.1",
|
|
32
|
+
"jsdoc-to-markdown": "^7.1.1",
|
|
33
|
+
"prettier": "^2.3.2",
|
|
34
|
+
"remark-cli": "^10.0.1",
|
|
35
|
+
"remark-preset-github": "^4.0.1",
|
|
33
36
|
"webpack": "^4.29.6",
|
|
34
37
|
"webpack-bundle-analyzer": "^3.3.2",
|
|
35
38
|
"webpack-cli": "^3.3.0"
|
|
@@ -38,16 +41,14 @@
|
|
|
38
41
|
"plugins": [
|
|
39
42
|
"preset-github",
|
|
40
43
|
[
|
|
41
|
-
"validate-links",
|
|
42
44
|
{
|
|
43
|
-
"repository": "ArcBlock/
|
|
45
|
+
"repository": "ArcBlock/asset-chain"
|
|
44
46
|
}
|
|
45
47
|
]
|
|
46
48
|
]
|
|
47
49
|
},
|
|
48
|
-
"homepage": "https://github.com/ArcBlock/
|
|
50
|
+
"homepage": "https://github.com/ArcBlock/asset-chain/tree/master/core/forge-sdk",
|
|
49
51
|
"keywords": [
|
|
50
|
-
"forge",
|
|
51
52
|
"blockchain",
|
|
52
53
|
"arcblock",
|
|
53
54
|
"sdk",
|
|
@@ -63,20 +64,20 @@
|
|
|
63
64
|
],
|
|
64
65
|
"repository": {
|
|
65
66
|
"type": "git",
|
|
66
|
-
"url": "https://github.com/ArcBlock/
|
|
67
|
+
"url": "https://github.com/ArcBlock/asset-chain/tree/master/core/forge-sdk"
|
|
67
68
|
},
|
|
68
69
|
"scripts": {
|
|
69
70
|
"lint": "eslint lib *.js tests",
|
|
70
71
|
"lint:fix": "eslint --fix lib *.js tests",
|
|
71
72
|
"build-browser": "webpack -p",
|
|
72
73
|
"docs": "yarn gen-dts && yarn gen-docs && yarn cleanup-docs && yarn format-docs",
|
|
73
|
-
"cleanup-docs": "node ../../
|
|
74
|
+
"cleanup-docs": "node ../../scripts/cleanup-docs.js docs/README.md $npm_package_name",
|
|
74
75
|
"build": "yarn gen-docs && yarn gen-dts && yarn format-docs && yarn build-browser",
|
|
75
76
|
"gen-docs": "jsdoc2md lib/sdk.js > docs/README.md",
|
|
76
77
|
"format-docs": "remark . -o",
|
|
77
78
|
"gen-dts": "bash ./tools/gen-dts.sh index && rm -f *.*-E && prettier --write *.d.ts",
|
|
78
|
-
"test": "
|
|
79
|
+
"test": "jest --forceExit --detectOpenHandles",
|
|
79
80
|
"coverage": "yarn test -- --coverage"
|
|
80
81
|
},
|
|
81
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "ab272e8db3a15c6571cc7fae7cc3d3e0fdd4bdb1"
|
|
82
83
|
}
|