envio 2.19.1 → 2.19.2

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.
Files changed (2) hide show
  1. package/index.js +37 -0
  2. package/package.json +6 -5
package/index.js ADDED
@@ -0,0 +1,37 @@
1
+ // This file is needed to have control over TS version exports
2
+ // Some parts like Sury reexport are impossible to implement
3
+ // on the JS side, so we need to do it here
4
+
5
+ const envioGen = require("./src/Envio.bs.js");
6
+ Object.assign(exports, envioGen);
7
+
8
+ const Sury = require("rescript-schema");
9
+ // Important! Should match the index.d.ts file
10
+ exports.S = {
11
+ string: Sury.string,
12
+ jsonString: Sury.jsonString,
13
+ boolean: Sury.boolean,
14
+ int32: Sury.int32,
15
+ number: Sury.number,
16
+ bigint: Sury.bigint,
17
+ never: Sury.never,
18
+ union: Sury.union,
19
+ object: Sury.object,
20
+ // Might change in a near future
21
+ // custom: Sury.custom,
22
+ // Don't expose recursive for now, since it's too advanced
23
+ // recursive: Sury.recursive,
24
+ transform: Sury.transform,
25
+ refine: Sury.refine,
26
+ schema: Sury.schema,
27
+ record: Sury.record,
28
+ array: Sury.array,
29
+ tuple: Sury.tuple,
30
+ merge: Sury.merge,
31
+ optional: Sury.optional,
32
+ nullable: Sury.nullable,
33
+ bigDecimal: require("./src/bindings/BigDecimal.bs.js").schema,
34
+ // Nullish type will change in "sury@10"
35
+ // nullish: Sury.nullish,
36
+ assertOrThrow: Sury.assertOrThrow,
37
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "envio",
3
- "version": "v2.19.1",
3
+ "version": "v2.19.2",
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.19.1",
29
- "envio-linux-arm64": "v2.19.1",
30
- "envio-darwin-x64": "v2.19.1",
31
- "envio-darwin-arm64": "v2.19.1"
28
+ "envio-linux-x64": "v2.19.2",
29
+ "envio-linux-arm64": "v2.19.2",
30
+ "envio-darwin-x64": "v2.19.2",
31
+ "envio-darwin-arm64": "v2.19.2"
32
32
  },
33
33
  "dependencies": {
34
34
  "@envio-dev/hypersync-client": "0.6.3",
@@ -42,6 +42,7 @@
42
42
  "fuel.schema.json",
43
43
  "rescript.json",
44
44
  "index.d.ts",
45
+ "index.js",
45
46
  "src",
46
47
  "!src/**/*.bs.js"
47
48
  ]