@ocap/resolver 1.18.5 → 1.18.6

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.
Files changed (2) hide show
  1. package/lib/index.js +2 -1
  2. package/package.json +12 -12
package/lib/index.js CHANGED
@@ -165,7 +165,8 @@ module.exports = class OCAPResolver {
165
165
  }
166
166
 
167
167
  // 0. create new context
168
- const context = { ...ctx, txBase64, statedb: this.statedb, indexdb: this.indexdb, config: this.config };
168
+ // NOTE: if you add more fields here, please remember to change core/tx-protocols/lib/execute.js
169
+ const context = { txBase64, statedb: this.statedb, indexdb: this.indexdb, config: this.config, extra: ctx };
169
170
 
170
171
  // 1. execute and persist the transaction
171
172
  const result = await this.executor.execute(context);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.18.5",
6
+ "version": "1.18.6",
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.5.1"
23
23
  },
24
24
  "dependencies": {
25
- "@arcblock/did": "1.18.5",
26
- "@arcblock/did-util": "1.18.5",
27
- "@arcblock/validator": "1.18.5",
28
- "@ocap/config": "1.18.5",
29
- "@ocap/indexdb": "1.18.5",
30
- "@ocap/mcrypto": "1.18.5",
31
- "@ocap/message": "1.18.5",
32
- "@ocap/state": "1.18.5",
33
- "@ocap/tx-protocols": "1.18.5",
34
- "@ocap/util": "1.18.5",
25
+ "@arcblock/did": "1.18.6",
26
+ "@arcblock/did-util": "1.18.6",
27
+ "@arcblock/validator": "1.18.6",
28
+ "@ocap/config": "1.18.6",
29
+ "@ocap/indexdb": "1.18.6",
30
+ "@ocap/mcrypto": "1.18.6",
31
+ "@ocap/message": "1.18.6",
32
+ "@ocap/state": "1.18.6",
33
+ "@ocap/tx-protocols": "1.18.6",
34
+ "@ocap/util": "1.18.6",
35
35
  "debug": "^4.3.4",
36
36
  "lodash": "^4.17.21"
37
37
  },
38
- "gitHead": "427ced35db09b28201f9cb9b65abe009bd511606"
38
+ "gitHead": "48fb40b565d9cba2b67f181d9c312ba779fd750b"
39
39
  }