@ocap/resolver 1.29.17 → 1.29.19

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 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.17",
6
+ "version": "1.29.19",
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.17",
47
- "@ocap/indexdb-memory": "1.29.17",
48
- "@ocap/statedb-memory": "1.29.17",
46
+ "@arcblock/jwt": "1.29.19",
47
+ "@ocap/indexdb-memory": "1.29.19",
48
+ "@ocap/statedb-memory": "1.29.19",
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.17",
56
- "@arcblock/did-ext": "1.29.17",
57
- "@arcblock/did-util": "1.29.17",
55
+ "@arcblock/did": "1.29.19",
56
+ "@arcblock/did-ext": "1.29.19",
57
+ "@arcblock/did-util": "1.29.19",
58
58
  "@arcblock/nft-display": "^3.2.3",
59
- "@arcblock/validator": "1.29.17",
60
- "@ocap/config": "1.29.17",
61
- "@ocap/indexdb": "1.29.17",
62
- "@ocap/mcrypto": "1.29.17",
63
- "@ocap/message": "1.29.17",
64
- "@ocap/state": "1.29.17",
65
- "@ocap/tx-protocols": "1.29.17",
66
- "@ocap/types": "1.29.17",
67
- "@ocap/util": "1.29.17",
68
- "@ocap/wallet": "1.29.17",
59
+ "@arcblock/validator": "1.29.19",
60
+ "@ocap/config": "1.29.19",
61
+ "@ocap/indexdb": "1.29.19",
62
+ "@ocap/mcrypto": "1.29.19",
63
+ "@ocap/message": "1.29.19",
64
+ "@ocap/state": "1.29.19",
65
+ "@ocap/tx-protocols": "1.29.19",
66
+ "@ocap/types": "1.29.19",
67
+ "@ocap/util": "1.29.19",
68
+ "@ocap/wallet": "1.29.19",
69
69
  "debug": "^4.4.3",
70
70
  "express": "^4.22.1",
71
71
  "lodash": "^4.17.23",