@ocap/resolver 1.17.6 → 1.17.9

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 -2
  2. package/package.json +14 -14
package/lib/index.js CHANGED
@@ -164,7 +164,7 @@ module.exports = class OCAPResolver {
164
164
  }
165
165
 
166
166
  // 0. create new context
167
- const context = { txBase64, statedb: this.statedb, config: this.config };
167
+ const context = { txBase64, statedb: this.statedb, indexdb: this.indexdb, config: this.config };
168
168
 
169
169
  // 1. execute and persist the transaction
170
170
  const result = await this.executor.execute(context);
@@ -711,7 +711,7 @@ module.exports = class OCAPResolver {
711
711
 
712
712
  this.statedb.tx.on('create', async (x, ctx) => {
713
713
  try {
714
- const tx = await createIndexedTransaction(x, ctx);
714
+ const tx = await createIndexedTransaction(x, ctx, this.indexdb);
715
715
  await this.indexdb.tx.insert(tx);
716
716
  if (typeof hooks.onCreateTx === 'function') {
717
717
  await hooks.onCreateTx(tx, ctx, this.indexdb);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.17.6",
6
+ "version": "1.17.9",
7
7
  "description": "GraphQL resolver built upon ocap statedb and GQL layer",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -19,21 +19,21 @@
19
19
  "author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
20
20
  "license": "MIT",
21
21
  "devDependencies": {
22
- "jest": "^27.3.1"
22
+ "jest": "^27.5.1"
23
23
  },
24
24
  "dependencies": {
25
- "@arcblock/did": "1.17.6",
26
- "@arcblock/did-util": "1.17.6",
27
- "@arcblock/validator": "1.17.6",
28
- "@ocap/config": "1.17.6",
29
- "@ocap/indexdb": "1.17.6",
30
- "@ocap/mcrypto": "1.17.6",
31
- "@ocap/message": "1.17.6",
32
- "@ocap/state": "1.17.6",
33
- "@ocap/tx-protocols": "1.17.6",
34
- "@ocap/util": "1.17.6",
35
- "debug": "^4.3.3",
25
+ "@arcblock/did": "1.17.9",
26
+ "@arcblock/did-util": "1.17.9",
27
+ "@arcblock/validator": "1.17.9",
28
+ "@ocap/config": "1.17.9",
29
+ "@ocap/indexdb": "1.17.9",
30
+ "@ocap/mcrypto": "1.17.9",
31
+ "@ocap/message": "1.17.9",
32
+ "@ocap/state": "1.17.9",
33
+ "@ocap/tx-protocols": "1.17.9",
34
+ "@ocap/util": "1.17.9",
35
+ "debug": "^4.3.4",
36
36
  "lodash": "^4.17.21"
37
37
  },
38
- "gitHead": "68e7711c1550c24505e4b8f5de1867a6ce360be8"
38
+ "gitHead": "430c739d9f05e3f5dbd4411ee7289f9e7189f6ae"
39
39
  }