@ocap/resolver 1.13.77 → 1.13.81
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/lib/index.js +4 -0
- package/package.json +12 -12
package/lib/index.js
CHANGED
|
@@ -156,6 +156,10 @@ module.exports = class OCAPResolver {
|
|
|
156
156
|
async sendTx({ tx: txBase64 }) {
|
|
157
157
|
debug('sendTx', txBase64);
|
|
158
158
|
|
|
159
|
+
if (process.env.CHAIN_MODE === 'readonly') {
|
|
160
|
+
throw new CustomError('FORBIDDEN', 'This chain node is running in readonly mode');
|
|
161
|
+
}
|
|
162
|
+
|
|
159
163
|
// 0. create new context
|
|
160
164
|
const context = { txBase64, statedb: this.statedb, config: this.config };
|
|
161
165
|
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.13.
|
|
6
|
+
"version": "1.13.81",
|
|
7
7
|
"description": "GraphQL resolver built upon ocap statedb and GQL layer",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -22,18 +22,18 @@
|
|
|
22
22
|
"jest": "^27.3.1"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@arcblock/did": "1.13.
|
|
26
|
-
"@arcblock/did-util": "1.13.
|
|
27
|
-
"@ocap/config": "1.13.
|
|
28
|
-
"@ocap/indexdb": "1.13.
|
|
29
|
-
"@ocap/mcrypto": "1.13.
|
|
30
|
-
"@ocap/message": "1.13.
|
|
31
|
-
"@ocap/state": "1.13.
|
|
32
|
-
"@ocap/tx-protocols": "1.13.
|
|
33
|
-
"@ocap/util": "1.13.
|
|
34
|
-
"@ocap/validator": "1.13.
|
|
25
|
+
"@arcblock/did": "1.13.81",
|
|
26
|
+
"@arcblock/did-util": "1.13.81",
|
|
27
|
+
"@ocap/config": "1.13.81",
|
|
28
|
+
"@ocap/indexdb": "1.13.81",
|
|
29
|
+
"@ocap/mcrypto": "1.13.81",
|
|
30
|
+
"@ocap/message": "1.13.81",
|
|
31
|
+
"@ocap/state": "1.13.81",
|
|
32
|
+
"@ocap/tx-protocols": "1.13.81",
|
|
33
|
+
"@ocap/util": "1.13.81",
|
|
34
|
+
"@ocap/validator": "1.13.81",
|
|
35
35
|
"debug": "^4.3.2",
|
|
36
36
|
"lodash": "^4.17.21"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "30dc84516ba83034ddd347bede3b9487e8973cba"
|
|
39
39
|
}
|