envio 2.27.0 → 2.27.1

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/index.d.ts CHANGED
@@ -126,4 +126,5 @@ export declare namespace S {
126
126
  // Nullish type will change in "sury@10"
127
127
  // export const nullish: typeof Sury.nullish;
128
128
  export const assertOrThrow: typeof Sury.assertOrThrow;
129
+ export const parseOrThrow: typeof Sury.parseOrThrow;
129
130
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "envio",
3
- "version": "v2.27.0",
3
+ "version": "v2.27.1",
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.27.0",
29
- "envio-linux-arm64": "v2.27.0",
30
- "envio-darwin-x64": "v2.27.0",
31
- "envio-darwin-arm64": "v2.27.0"
28
+ "envio-linux-x64": "v2.27.1",
29
+ "envio-linux-arm64": "v2.27.1",
30
+ "envio-darwin-x64": "v2.27.1",
31
+ "envio-darwin-arm64": "v2.27.1"
32
32
  },
33
33
  "dependencies": {
34
34
  "@envio-dev/hypersync-client": "0.6.5",
@@ -76,7 +76,7 @@ let make = (
76
76
  }
77
77
 
78
78
  let trackNewStatus = (sourceManager: t, ~newStatus) => {
79
- let promCounter = switch newStatus {
79
+ let promCounter = switch sourceManager.status {
80
80
  | Idle => Prometheus.IndexingIdleTime.counter
81
81
  | WaitingForNewBlock => Prometheus.IndexingSourceWaitingTime.counter
82
82
  | Querieng => Prometheus.IndexingQueryTime.counter
@@ -51,8 +51,9 @@ function make(sources, maxPartitionConcurrency, newBlockFallbackStallTimeoutOpt,
51
51
  }
52
52
 
53
53
  function trackNewStatus(sourceManager, newStatus) {
54
+ var match = sourceManager.status;
54
55
  var promCounter;
55
- switch (newStatus) {
56
+ switch (match) {
56
57
  case "Idle" :
57
58
  promCounter = Prometheus.IndexingIdleTime.counter;
58
59
  break;