@ocap/resolver 1.14.8 → 1.14.12

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/hooks.js CHANGED
@@ -203,6 +203,7 @@ const onJoinRollup = async (tx, ctx, indexdb) => {
203
203
  const address = tx.tx.from;
204
204
  const doc = await ensureRollupValidator(address, tx.tx.itxJson.rollup, ctx, indexdb);
205
205
 
206
+ doc.endpoint = tx.tx.itxJson.endpoint;
206
207
  doc.joinTime = tx.time;
207
208
  doc.renaissanceTime = tx.time;
208
209
  doc.leaveTime = '';
package/lib/index.js CHANGED
@@ -9,7 +9,7 @@ const isEqual = require('lodash/isEqual');
9
9
  const uniqBy = require('lodash/unionBy');
10
10
  const Config = require('@ocap/config');
11
11
  const states = require('@ocap/state');
12
- const Joi = require('@ocap/validator');
12
+ const Joi = require('@arcblock/validator');
13
13
  const md5 = require('@ocap/util/lib/md5');
14
14
  const CustomError = require('@ocap/util/lib/error');
15
15
  const { types } = require('@ocap/mcrypto');
@@ -362,7 +362,19 @@ module.exports = class OCAPResolver {
362
362
  }
363
363
 
364
364
  getAssetState({ address }, ctx) {
365
- return this._getState({ table: 'asset', id: address, dataKey: 'data', ctx });
365
+ return this._getState({
366
+ table: 'asset',
367
+ id: address,
368
+ dataKey: 'data',
369
+ onRead: (state) => {
370
+ if (state && Array.isArray(state.tagsList)) {
371
+ state.tags = state.tagsList;
372
+ }
373
+
374
+ return state;
375
+ },
376
+ ctx,
377
+ });
366
378
  }
367
379
 
368
380
  getEvidenceState({ hash }, ctx) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.14.8",
6
+ "version": "1.14.12",
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.14.8",
26
- "@arcblock/did-util": "1.14.8",
27
- "@ocap/config": "1.14.8",
28
- "@ocap/indexdb": "1.14.8",
29
- "@ocap/mcrypto": "1.14.8",
30
- "@ocap/message": "1.14.8",
31
- "@ocap/state": "1.14.8",
32
- "@ocap/tx-protocols": "1.14.8",
33
- "@ocap/util": "1.14.8",
34
- "@ocap/validator": "1.14.8",
35
- "debug": "^4.3.2",
25
+ "@arcblock/did": "1.14.12",
26
+ "@arcblock/did-util": "1.14.12",
27
+ "@arcblock/validator": "1.14.12",
28
+ "@ocap/config": "1.14.12",
29
+ "@ocap/indexdb": "1.14.12",
30
+ "@ocap/mcrypto": "1.14.12",
31
+ "@ocap/message": "1.14.12",
32
+ "@ocap/state": "1.14.12",
33
+ "@ocap/tx-protocols": "1.14.12",
34
+ "@ocap/util": "1.14.12",
35
+ "debug": "^4.3.3",
36
36
  "lodash": "^4.17.21"
37
37
  },
38
- "gitHead": "1d41025b5e00840e7cba0887c3b60adc4f388b7a"
38
+ "gitHead": "c09e248b58e1946432517261c25d2911443a3577"
39
39
  }