envio 2.32.8 → 2.32.10
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "envio",
|
|
3
|
-
"version": "v2.32.
|
|
3
|
+
"version": "v2.32.10",
|
|
4
4
|
"description": "A latency and sync speed optimized, developer friendly blockchain data indexer.",
|
|
5
5
|
"bin": "./bin.js",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://envio.dev",
|
|
27
27
|
"optionalDependencies": {
|
|
28
|
-
"envio-linux-x64": "v2.32.
|
|
29
|
-
"envio-linux-arm64": "v2.32.
|
|
30
|
-
"envio-darwin-x64": "v2.32.
|
|
31
|
-
"envio-darwin-arm64": "v2.32.
|
|
28
|
+
"envio-linux-x64": "v2.32.10",
|
|
29
|
+
"envio-linux-arm64": "v2.32.10",
|
|
30
|
+
"envio-darwin-x64": "v2.32.10",
|
|
31
|
+
"envio-darwin-arm64": "v2.32.10"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@elastic/ecs-pino-format": "1.4.0",
|
|
@@ -104,9 +104,11 @@ module GetLogs = {
|
|
|
104
104
|
// Remap "type" -> "kind" on the transaction object at runtime before validation.
|
|
105
105
|
// The latest hypersync client renamed "kind" to "type" but v2 consumers expect "kind".
|
|
106
106
|
let transaction: Js.Dict.t<unknown> = event.transaction->Utils.magic
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
if transaction->Utils.magic {
|
|
108
|
+
switch transaction->Js.Dict.get("type") {
|
|
109
|
+
| Some(v) => transaction->Js.Dict.set("kind", v)
|
|
110
|
+
| None => ()
|
|
111
|
+
}
|
|
110
112
|
}
|
|
111
113
|
|
|
112
114
|
let missingParams = []
|
|
@@ -77,9 +77,12 @@ async function query(client, fromBlock, toBlock, logSelections, fieldSelection,
|
|
|
77
77
|
}
|
|
78
78
|
var items = Belt_Array.map(res.data, (function (item) {
|
|
79
79
|
var transaction = item.transaction;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
if (transaction) {
|
|
81
|
+
var v = Js_dict.get(transaction, "type");
|
|
82
|
+
if (v !== undefined) {
|
|
83
|
+
transaction["kind"] = Caml_option.valFromOption(v);
|
|
84
|
+
}
|
|
85
|
+
|
|
83
86
|
}
|
|
84
87
|
var missingParams = [];
|
|
85
88
|
var returnedObj = item.log;
|