envio 2.28.0-alpha.3 → 2.28.0

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.
@@ -447,10 +447,9 @@ type t = {
447
447
  streamEvents: (~query: query, ~config: streamConfig) => promise<eventStream>,
448
448
  }
449
449
 
450
- @module("@envio-dev/hypersync-client") @scope("HypersyncClient") external new: cfg => t = "new"
451
-
450
+ @module("@envio-dev/hypersync-client") @scope("HypersyncClient") external make: cfg => t = "new"
452
451
  let make = (~url, ~apiToken, ~httpReqTimeoutMillis, ~maxNumRetries) =>
453
- new({
452
+ make({
454
453
  url,
455
454
  enableChecksumAddresses: true,
456
455
  bearerToken: apiToken,
@@ -503,4 +502,6 @@ module Decoder = {
503
502
 
504
503
  @module("@envio-dev/hypersync-client") @scope("Decoder")
505
504
  external fromSignatures: array<string> => t = "fromSignatures"
505
+ // Keep the @envio-dev/hypersync-client import inside of the package
506
+ let fromSignatures = fromSignatures
506
507
  }
@@ -88,8 +88,13 @@ function toUnderlying(_d) {
88
88
  };
89
89
  }
90
90
 
91
+ function fromSignatures(prim) {
92
+ return HypersyncClient.Decoder.fromSignatures(prim);
93
+ }
94
+
91
95
  var Decoder = {
92
- toUnderlying: toUnderlying
96
+ toUnderlying: toUnderlying,
97
+ fromSignatures: fromSignatures
93
98
  };
94
99
 
95
100
  exports.QueryTypes = QueryTypes;