@ocap/resolver 1.29.17 → 1.29.18
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/esm/index.mjs +1 -0
- package/lib/index.cjs +1 -0
- package/package.json +17 -17
package/esm/index.mjs
CHANGED
|
@@ -292,6 +292,7 @@ var OCAPResolver = class {
|
|
|
292
292
|
});
|
|
293
293
|
if (process.env.CHAIN_MODE === "readonly") throw new CustomError("FORBIDDEN", "This chain node is running in readonly mode");
|
|
294
294
|
if (this.queue.length >= txRequestConfig.maxRequest) throw new CustomError("FORBIDDEN", "Chain is busy");
|
|
295
|
+
if (!txBase64 || typeof txBase64 !== "string" || txBase64.length < 20) throw new CustomError("INVALID_TX", "Transaction data is empty or too short");
|
|
295
296
|
const context = {
|
|
296
297
|
txBase64,
|
|
297
298
|
statedb: this.statedb,
|
package/lib/index.cjs
CHANGED
|
@@ -306,6 +306,7 @@ var OCAPResolver = class {
|
|
|
306
306
|
});
|
|
307
307
|
if (process.env.CHAIN_MODE === "readonly") throw new _ocap_util_lib_error.CustomError("FORBIDDEN", "This chain node is running in readonly mode");
|
|
308
308
|
if (this.queue.length >= txRequestConfig.maxRequest) throw new _ocap_util_lib_error.CustomError("FORBIDDEN", "Chain is busy");
|
|
309
|
+
if (!txBase64 || typeof txBase64 !== "string" || txBase64.length < 20) throw new _ocap_util_lib_error.CustomError("INVALID_TX", "Transaction data is empty or too short");
|
|
309
310
|
const context = {
|
|
310
311
|
txBase64,
|
|
311
312
|
statedb: this.statedb,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.29.
|
|
6
|
+
"version": "1.29.18",
|
|
7
7
|
"description": "GraphQL resolver built upon ocap statedb and GQL layer",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"main": "./lib/index.cjs",
|
|
@@ -43,29 +43,29 @@
|
|
|
43
43
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
44
44
|
"license": "MIT",
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@arcblock/jwt": "1.29.
|
|
47
|
-
"@ocap/indexdb-memory": "1.29.
|
|
48
|
-
"@ocap/statedb-memory": "1.29.
|
|
46
|
+
"@arcblock/jwt": "1.29.18",
|
|
47
|
+
"@ocap/indexdb-memory": "1.29.18",
|
|
48
|
+
"@ocap/statedb-memory": "1.29.18",
|
|
49
49
|
"@types/express": "^4.17.23",
|
|
50
50
|
"@types/lodash": "^4.17.16",
|
|
51
51
|
"@types/node": "^20.10.0",
|
|
52
52
|
"tsdown": "^0.18.4"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@arcblock/did": "1.29.
|
|
56
|
-
"@arcblock/did-ext": "1.29.
|
|
57
|
-
"@arcblock/did-util": "1.29.
|
|
55
|
+
"@arcblock/did": "1.29.18",
|
|
56
|
+
"@arcblock/did-ext": "1.29.18",
|
|
57
|
+
"@arcblock/did-util": "1.29.18",
|
|
58
58
|
"@arcblock/nft-display": "^3.2.3",
|
|
59
|
-
"@arcblock/validator": "1.29.
|
|
60
|
-
"@ocap/config": "1.29.
|
|
61
|
-
"@ocap/indexdb": "1.29.
|
|
62
|
-
"@ocap/mcrypto": "1.29.
|
|
63
|
-
"@ocap/message": "1.29.
|
|
64
|
-
"@ocap/state": "1.29.
|
|
65
|
-
"@ocap/tx-protocols": "1.29.
|
|
66
|
-
"@ocap/types": "1.29.
|
|
67
|
-
"@ocap/util": "1.29.
|
|
68
|
-
"@ocap/wallet": "1.29.
|
|
59
|
+
"@arcblock/validator": "1.29.18",
|
|
60
|
+
"@ocap/config": "1.29.18",
|
|
61
|
+
"@ocap/indexdb": "1.29.18",
|
|
62
|
+
"@ocap/mcrypto": "1.29.18",
|
|
63
|
+
"@ocap/message": "1.29.18",
|
|
64
|
+
"@ocap/state": "1.29.18",
|
|
65
|
+
"@ocap/tx-protocols": "1.29.18",
|
|
66
|
+
"@ocap/types": "1.29.18",
|
|
67
|
+
"@ocap/util": "1.29.18",
|
|
68
|
+
"@ocap/wallet": "1.29.18",
|
|
69
69
|
"debug": "^4.4.3",
|
|
70
70
|
"express": "^4.22.1",
|
|
71
71
|
"lodash": "^4.17.23",
|