@ocap/indexdb 1.17.8 → 1.17.11
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/util.js +16 -9
- package/package.json +4 -4
package/lib/util.js
CHANGED
@@ -58,15 +58,22 @@ const createIndexedAsset = (x) => ({
|
|
58
58
|
tags: x.tags,
|
59
59
|
});
|
60
60
|
|
61
|
-
const createIndexedDelegation = (x, ctx) =>
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
61
|
+
const createIndexedDelegation = (x, ctx) => {
|
62
|
+
const result = {
|
63
|
+
address: x.address,
|
64
|
+
data: x.data,
|
65
|
+
genesisTime: x.context.genesisTime,
|
66
|
+
renaissanceTime: x.context.renaissanceTime,
|
67
|
+
ops: x.ops,
|
68
|
+
};
|
69
|
+
if (ctx.senderState) {
|
70
|
+
result.from = get(ctx, 'senderState.address', '');
|
71
|
+
}
|
72
|
+
if (ctx.receiverState) {
|
73
|
+
result.to = get(ctx, 'receiverState.address', '');
|
74
|
+
}
|
75
|
+
return result;
|
76
|
+
};
|
70
77
|
|
71
78
|
const createIndexedToken = (x) => ({
|
72
79
|
address: x.address,
|
package/package.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
"publishConfig": {
|
4
4
|
"access": "public"
|
5
5
|
},
|
6
|
-
"version": "1.17.
|
6
|
+
"version": "1.17.11",
|
7
7
|
"description": "Defines the basic interface for OCAP IndexDB",
|
8
8
|
"main": "lib/main.js",
|
9
9
|
"files": [
|
@@ -25,10 +25,10 @@
|
|
25
25
|
"jest": "^27.5.1"
|
26
26
|
},
|
27
27
|
"dependencies": {
|
28
|
-
"@ocap/state": "1.17.
|
29
|
-
"@ocap/util": "1.17.
|
28
|
+
"@ocap/state": "1.17.11",
|
29
|
+
"@ocap/util": "1.17.11",
|
30
30
|
"kareem": "^2.4.1",
|
31
31
|
"lodash": "^4.17.21"
|
32
32
|
},
|
33
|
-
"gitHead": "
|
33
|
+
"gitHead": "32ee93b1f1026709bb1b00a58b4b3dc5d551f94a"
|
34
34
|
}
|