@ocap/resolver 1.14.11 → 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/index.js +13 -1
- package/package.json +12 -12
package/lib/index.js
CHANGED
|
@@ -362,7 +362,19 @@ module.exports = class OCAPResolver {
|
|
|
362
362
|
}
|
|
363
363
|
|
|
364
364
|
getAssetState({ address }, ctx) {
|
|
365
|
-
return this._getState({
|
|
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.
|
|
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.
|
|
26
|
-
"@arcblock/did-util": "1.14.
|
|
27
|
-
"@arcblock/validator": "1.14.
|
|
28
|
-
"@ocap/config": "1.14.
|
|
29
|
-
"@ocap/indexdb": "1.14.
|
|
30
|
-
"@ocap/mcrypto": "1.14.
|
|
31
|
-
"@ocap/message": "1.14.
|
|
32
|
-
"@ocap/state": "1.14.
|
|
33
|
-
"@ocap/tx-protocols": "1.14.
|
|
34
|
-
"@ocap/util": "1.14.
|
|
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
35
|
"debug": "^4.3.3",
|
|
36
36
|
"lodash": "^4.17.21"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "c09e248b58e1946432517261c25d2911443a3577"
|
|
39
39
|
}
|