envio 2.11.8 → 2.11.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 +5 -5
- package/src/Utils.res +10 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "envio",
|
|
3
|
-
"version": "v2.11.
|
|
3
|
+
"version": "v2.11.10",
|
|
4
4
|
"description": "A latency and sync speed optimized, developer friendly blockchain data indexer.",
|
|
5
5
|
"bin": "./bin.js",
|
|
6
6
|
"repository": {
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
},
|
|
24
24
|
"homepage": "https://envio.dev",
|
|
25
25
|
"optionalDependencies": {
|
|
26
|
-
"envio-linux-x64": "v2.11.
|
|
27
|
-
"envio-linux-arm64": "v2.11.
|
|
28
|
-
"envio-darwin-x64": "v2.11.
|
|
29
|
-
"envio-darwin-arm64": "v2.11.
|
|
26
|
+
"envio-linux-x64": "v2.11.10",
|
|
27
|
+
"envio-linux-arm64": "v2.11.10",
|
|
28
|
+
"envio-darwin-x64": "v2.11.10",
|
|
29
|
+
"envio-darwin-arm64": "v2.11.10"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@envio-dev/hypersync-client": "0.6.3",
|
package/src/Utils.res
CHANGED
|
@@ -241,6 +241,16 @@ module String = {
|
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
+
module Result = {
|
|
245
|
+
let forEach = (result, fn) => {
|
|
246
|
+
switch result {
|
|
247
|
+
| Ok(v) => fn(v)
|
|
248
|
+
| Error(_) => ()
|
|
249
|
+
}
|
|
250
|
+
result
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
244
254
|
/**
|
|
245
255
|
Useful when an unsafe unwrap is needed on Result type
|
|
246
256
|
and Error holds an exn. This is better than Result.getExn
|