@ocap/client 1.28.6 → 1.28.8
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 +1 -1
- package/dist/base.js +1 -3
- package/dist/base.js.map +1 -1
- package/dist/browser.d.ts +270 -175
- package/dist/bundle.js +1 -1
- package/dist/extension.js +0 -8
- package/dist/extension.js.map +1 -1
- package/dist/lite.js +0 -1
- package/dist/lite.js.map +1 -1
- package/dist/module.js +1 -1
- package/dist/module.js.map +1 -1
- package/dist/report.html +2 -2
- package/docs/QUERIES.md +2 -2
- package/docs/README.md +2 -2
- package/docs/api-reference-client-methods.ja.md +6 -1
- package/docs/api-reference-client-methods.md +5 -0
- package/docs/api-reference-client-methods.zh-TW.md +6 -1
- package/docs/api-reference-client-methods.zh.md +6 -1
- package/docs/api-reference-data-types.ja.md +6 -1
- package/docs/api-reference-data-types.md +6 -1
- package/docs/api-reference-data-types.zh-TW.md +6 -1
- package/docs/api-reference-data-types.zh.md +6 -1
- package/docs/api-reference-low-level-api.ja.md +9 -5
- package/docs/api-reference-low-level-api.md +9 -5
- package/docs/api-reference-low-level-api.zh-TW.md +9 -5
- package/docs/api-reference-low-level-api.zh.md +9 -5
- package/docs/api-reference-query-mutation-methods.ja.md +5 -3
- package/docs/api-reference-query-mutation-methods.md +4 -2
- package/docs/api-reference-query-mutation-methods.zh-TW.md +5 -3
- package/docs/api-reference-query-mutation-methods.zh.md +5 -3
- package/docs/api-reference-transaction-helpers.ja.md +6 -1
- package/docs/api-reference-transaction-helpers.md +5 -0
- package/docs/api-reference-transaction-helpers.zh-TW.md +6 -1
- package/docs/api-reference-transaction-helpers.zh.md +6 -1
- package/docs/api-reference.ja.md +1 -1
- package/docs/api-reference.md +1 -1
- package/docs/api-reference.zh-TW.md +1 -1
- package/docs/api-reference.zh.md +1 -1
- package/docs/core-concepts-client-architecture.ja.md +16 -11
- package/docs/core-concepts-client-architecture.md +16 -11
- package/docs/core-concepts-client-architecture.zh-TW.md +16 -11
- package/docs/core-concepts-client-architecture.zh.md +16 -11
- package/docs/core-concepts-event-subscriptions.ja.md +12 -7
- package/docs/core-concepts-event-subscriptions.md +12 -7
- package/docs/core-concepts-event-subscriptions.zh-TW.md +12 -7
- package/docs/core-concepts-event-subscriptions.zh.md +12 -7
- package/docs/core-concepts-gas-payment.ja.md +7 -3
- package/docs/core-concepts-gas-payment.md +7 -3
- package/docs/core-concepts-gas-payment.zh-TW.md +7 -3
- package/docs/core-concepts-gas-payment.zh.md +7 -3
- package/docs/core-concepts-transaction-lifecycle.ja.md +15 -7
- package/docs/core-concepts-transaction-lifecycle.md +15 -7
- package/docs/core-concepts-transaction-lifecycle.zh-TW.md +15 -7
- package/docs/core-concepts-transaction-lifecycle.zh.md +15 -7
- package/docs/core-concepts.ja.md +1 -1
- package/docs/core-concepts.md +1 -1
- package/docs/core-concepts.zh-TW.md +1 -1
- package/docs/core-concepts.zh.md +1 -1
- package/docs/getting-started-basic-usage.ja.md +6 -1
- package/docs/getting-started-basic-usage.md +6 -1
- package/docs/getting-started-basic-usage.zh-TW.md +6 -1
- package/docs/getting-started-basic-usage.zh.md +6 -1
- package/docs/getting-started-installation.ja.md +7 -3
- package/docs/getting-started-installation.md +7 -3
- package/docs/getting-started-installation.zh-TW.md +7 -3
- package/docs/getting-started-installation.zh.md +7 -3
- package/docs/getting-started.ja.md +1 -1
- package/docs/getting-started.md +1 -1
- package/docs/getting-started.zh-TW.md +1 -1
- package/docs/getting-started.zh.md +1 -1
- package/docs/how-to-guides-delegate-permissions.ja.md +4 -1
- package/docs/how-to-guides-delegate-permissions.md +3 -0
- package/docs/how-to-guides-delegate-permissions.zh-TW.md +4 -1
- package/docs/how-to-guides-delegate-permissions.zh.md +4 -1
- package/docs/how-to-guides-manage-accounts.ja.md +4 -3
- package/docs/how-to-guides-manage-accounts.md +4 -3
- package/docs/how-to-guides-manage-accounts.zh-TW.md +4 -3
- package/docs/how-to-guides-manage-accounts.zh.md +4 -3
- package/docs/how-to-guides-manage-assets.ja.md +6 -2
- package/docs/how-to-guides-manage-assets.md +6 -2
- package/docs/how-to-guides-manage-assets.zh-TW.md +6 -2
- package/docs/how-to-guides-manage-assets.zh.md +6 -2
- package/docs/how-to-guides-manage-tokens.ja.md +8 -1
- package/docs/how-to-guides-manage-tokens.md +8 -1
- package/docs/how-to-guides-manage-tokens.zh-TW.md +8 -1
- package/docs/how-to-guides-manage-tokens.zh.md +8 -1
- package/docs/how-to-guides-stake-tokens-and-assets.ja.md +11 -5
- package/docs/how-to-guides-stake-tokens-and-assets.md +11 -5
- package/docs/how-to-guides-stake-tokens-and-assets.zh-TW.md +11 -5
- package/docs/how-to-guides-stake-tokens-and-assets.zh.md +11 -5
- package/docs/how-to-guides-transfer-tokens-and-nfts.ja.md +8 -6
- package/docs/how-to-guides-transfer-tokens-and-nfts.md +8 -6
- package/docs/how-to-guides-transfer-tokens-and-nfts.zh-TW.md +8 -6
- package/docs/how-to-guides-transfer-tokens-and-nfts.zh.md +8 -6
- package/docs/how-to-guides.ja.md +1 -1
- package/docs/how-to-guides.md +1 -1
- package/docs/how-to-guides.zh-TW.md +1 -1
- package/docs/how-to-guides.zh.md +1 -1
- package/docs/overview.ja.md +5 -3
- package/docs/overview.md +5 -3
- package/docs/overview.zh-TW.md +5 -3
- package/docs/overview.zh.md +5 -3
- package/examples/asset.js +0 -2
- package/examples/create-secondary-token.js +0 -2
- package/examples/declare.js +0 -1
- package/examples/delegate-exchange-both.js +1 -3
- package/examples/delegate-exchange.js +1 -3
- package/examples/delegate-transfer.js +0 -1
- package/examples/exchange-secondary-token.js +0 -2
- package/examples/exchange.js +0 -2
- package/examples/migrate-account.js +0 -1
- package/examples/run-no-debug.sh +0 -0
- package/examples/run.sh +0 -0
- package/examples/subscribe.js +0 -2
- package/examples/transfer-asset.js +0 -2
- package/examples/transfer-primary-token.js +0 -1
- package/examples/transfer-secondary-token.js +0 -2
- package/lib/base.js +1 -3
- package/lib/base.js.map +1 -1
- package/lib/extension.js +0 -8
- package/lib/extension.js.map +1 -1
- package/lib/lite.js +0 -1
- package/lib/lite.js.map +1 -1
- package/lib/module.js +1 -1
- package/lib/module.js.map +1 -1
- package/lib/node.d.ts +270 -175
- package/lib/node.js +1 -1
- package/lib/node.js.map +1 -1
- package/package.json +30 -32
package/lib/node.js
CHANGED
package/lib/node.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/node.js"],"names":["EventEmitter","require","GraphQLClient","NativeGraphqlClient","_getSocketOptions","_getEventImplementation","module","exports"],"mappings":";;AAAA,MAAMA,eAAeC,QAAQ,
|
|
1
|
+
{"version":3,"sources":["../src/node.js"],"names":["EventEmitter","require","GraphQLClient","NativeGraphqlClient","_getSocketOptions","_getEventImplementation","module","exports"],"mappings":";;AAAA,MAAMA,eAAeC,QAAQ,aAAR,CAArB;AACA,MAAMC,gBAAgBD,QAAQ,UAAR,CAAtB;;AAEA,MAAME,mBAAN,SAAkCD,aAAlC,CAAgD;AAC9CE,sBAAoB;AAClB,WAAO,EAAP;AACD;;AAEDC,4BAA0B;AACxB,WAAOL,YAAP;AACD;AAP6C;;AAUhDM,OAAOC,OAAP,GAAiBJ,mBAAjB","file":"node.js","sourcesContent":["const EventEmitter = require('node:events');\nconst GraphQLClient = require('./client');\n\nclass NativeGraphqlClient extends GraphQLClient {\n _getSocketOptions() {\n return {};\n }\n\n _getEventImplementation() {\n return EventEmitter;\n }\n}\n\nmodule.exports = NativeGraphqlClient;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ocap/client",
|
|
3
|
-
"version": "1.28.
|
|
3
|
+
"version": "1.28.8",
|
|
4
4
|
"description": "graphql client to read/write data on arcblock blockchain",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"graphql",
|
|
@@ -30,7 +30,18 @@
|
|
|
30
30
|
"lib"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@arcblock/
|
|
33
|
+
"@arcblock/did": "1.28.8",
|
|
34
|
+
"@arcblock/did-util": "1.28.8",
|
|
35
|
+
"@arcblock/jwt": "1.28.8",
|
|
36
|
+
"@arcblock/sdk-util": "^0.36.2",
|
|
37
|
+
"@arcblock/ws": "1.28.8",
|
|
38
|
+
"@ocap/asset": "1.28.8",
|
|
39
|
+
"@ocap/mcrypto": "1.28.8",
|
|
40
|
+
"@ocap/message": "1.28.8",
|
|
41
|
+
"@ocap/proto": "1.28.8",
|
|
42
|
+
"@ocap/tx-util": "1.28.8",
|
|
43
|
+
"@ocap/util": "1.28.8",
|
|
44
|
+
"@ocap/wallet": "1.28.8",
|
|
34
45
|
"blueimp-md5": "^2.19.0",
|
|
35
46
|
"buffer": "6.0.3",
|
|
36
47
|
"debug": "^4.3.6",
|
|
@@ -39,28 +50,17 @@
|
|
|
39
50
|
"lodash": "^4.17.21",
|
|
40
51
|
"react-app-polyfill": "^1.0.6",
|
|
41
52
|
"readable-stream": "3.6.0",
|
|
42
|
-
"wolfy87-eventemitter": "^5.2.9"
|
|
43
|
-
"@arcblock/did-util": "1.28.6",
|
|
44
|
-
"@arcblock/did": "1.28.6",
|
|
45
|
-
"@arcblock/jwt": "1.28.6",
|
|
46
|
-
"@arcblock/ws": "1.28.6",
|
|
47
|
-
"@ocap/asset": "1.28.6",
|
|
48
|
-
"@ocap/mcrypto": "1.28.6",
|
|
49
|
-
"@ocap/message": "1.28.6",
|
|
50
|
-
"@ocap/proto": "1.28.6",
|
|
51
|
-
"@ocap/tx-util": "1.28.6",
|
|
52
|
-
"@ocap/util": "1.28.6",
|
|
53
|
-
"@ocap/wallet": "1.28.6"
|
|
53
|
+
"wolfy87-eventemitter": "^5.2.9"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
+
"@ocap/e2e-test": "1.28.8",
|
|
57
|
+
"@ocap/tx-protocols": "1.28.8",
|
|
56
58
|
"babel-cli": "^6.26.0",
|
|
57
59
|
"babel-plugin-inline-import": "^3.0.0",
|
|
58
60
|
"babel-preset-env": "^1.7.0",
|
|
59
|
-
"eslint": "^8.57.0",
|
|
60
61
|
"graphql": "16.5.0",
|
|
61
62
|
"graphql-request": "^4.3.0",
|
|
62
63
|
"inspectpack": "^4.7.1",
|
|
63
|
-
"jest": "^29.7.0",
|
|
64
64
|
"jsdoc-to-markdown": "^7.1.1",
|
|
65
65
|
"node-polyfill-webpack-plugin": "^4.0.0",
|
|
66
66
|
"prettier": "^3.3.2",
|
|
@@ -70,9 +70,7 @@
|
|
|
70
70
|
"shelljs": "^0.8.5",
|
|
71
71
|
"webpack": "^5.94.0",
|
|
72
72
|
"webpack-bundle-analyzer": "^4.10.2",
|
|
73
|
-
"webpack-cli": "^5.1.4"
|
|
74
|
-
"@ocap/e2e-test": "1.28.6",
|
|
75
|
-
"@ocap/tx-protocols": "1.28.6"
|
|
73
|
+
"webpack-cli": "^5.1.4"
|
|
76
74
|
},
|
|
77
75
|
"remarkConfig": {
|
|
78
76
|
"plugins": [
|
|
@@ -84,20 +82,13 @@
|
|
|
84
82
|
]
|
|
85
83
|
]
|
|
86
84
|
},
|
|
87
|
-
"repository": {
|
|
88
|
-
"type": "git",
|
|
89
|
-
"url": "git+https://github.com/ArcBlock/blockchain.git"
|
|
90
|
-
},
|
|
91
|
-
"bugs": {
|
|
92
|
-
"url": "https://github.com/ArcBlock/blockchain/issues"
|
|
93
|
-
},
|
|
94
85
|
"scripts": {
|
|
95
|
-
"lint": "
|
|
96
|
-
"lint:fix": "
|
|
97
|
-
"clean": "rimraf lib && rimraf dist",
|
|
86
|
+
"lint": "biome check",
|
|
87
|
+
"lint:fix": "biome check --write",
|
|
88
|
+
"build-clean": "rimraf lib && rimraf dist",
|
|
98
89
|
"build-browser": "BABEL_ENV=browser babel ./src --out-dir ./dist --source-maps --copy-files && webpack && rm -f ./dist/node.*",
|
|
99
90
|
"build-node": "babel ./src --out-dir ./lib --source-maps --copy-files && rm -f ./lib/browser.*",
|
|
100
|
-
"build": "npm run clean && npm run build-node && npm run build-browser",
|
|
91
|
+
"build": "npm run build-clean && npm run build-node && npm run build-browser",
|
|
101
92
|
"build:watch": "babel ./src --out-dir ./lib --source-maps --copy-files --watch",
|
|
102
93
|
"gen-docs": "jsdoc2md src/client.js src/methods.js src/types.js > docs/README.md",
|
|
103
94
|
"gen-types": "node tools/gen-types.js && sed -i -E \"s/UNSUPPORTED_TX/OK/\" src/types.js && rm -f src/types.js-E",
|
|
@@ -109,7 +100,14 @@
|
|
|
109
100
|
"upgrade": "npm run update-schema && npm run build && npm run gen-queries && npm run gen-types && npm run docs && npm run build && npm run lint:fix",
|
|
110
101
|
"docs": "npm run gen-dts && npm run gen-docs && npm run cleanup-docs && npm run format-docs",
|
|
111
102
|
"cleanup-docs": "node ../../scripts/cleanup-docs.js docs/README.md $npm_package_name",
|
|
112
|
-
"test": "
|
|
103
|
+
"test": "bun test",
|
|
113
104
|
"coverage": "npm run test -- --coverage"
|
|
105
|
+
},
|
|
106
|
+
"repository": {
|
|
107
|
+
"type": "git",
|
|
108
|
+
"url": "git+https://github.com/ArcBlock/blockchain.git"
|
|
109
|
+
},
|
|
110
|
+
"bugs": {
|
|
111
|
+
"url": "https://github.com/ArcBlock/blockchain/issues"
|
|
114
112
|
}
|
|
115
|
-
}
|
|
113
|
+
}
|