@arrirpc/typebox-adapter 0.74.1 → 0.75.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/dist/index.cjs CHANGED
@@ -22,13 +22,13 @@ function typeboxAdapter(input) {
22
22
  context.errors = typeboxErrorsToArriErrors(
23
23
  compiled.Errors(parsedVal)
24
24
  );
25
- return undefined;
25
+ return void 0;
26
26
  }
27
27
  if (compiled.Check(val)) {
28
28
  return val;
29
29
  }
30
30
  context.errors = typeboxErrorsToArriErrors(compiled.Errors(val));
31
- return undefined;
31
+ return void 0;
32
32
  },
33
33
  coerce(val, context) {
34
34
  try {
@@ -38,7 +38,7 @@ function typeboxAdapter(input) {
38
38
  instancePath: "/",
39
39
  message: err instanceof Error ? err.message : `${err}`
40
40
  });
41
- return undefined;
41
+ return void 0;
42
42
  }
43
43
  },
44
44
  validate(val) {
@@ -52,7 +52,7 @@ function typeboxAdapter(input) {
52
52
  instancePath: "/",
53
53
  message: err instanceof Error ? err.message : `${err}`
54
54
  });
55
- return undefined;
55
+ return void 0;
56
56
  }
57
57
  }
58
58
  };
package/dist/index.mjs CHANGED
@@ -20,13 +20,13 @@ function typeboxAdapter(input) {
20
20
  context.errors = typeboxErrorsToArriErrors(
21
21
  compiled.Errors(parsedVal)
22
22
  );
23
- return undefined;
23
+ return void 0;
24
24
  }
25
25
  if (compiled.Check(val)) {
26
26
  return val;
27
27
  }
28
28
  context.errors = typeboxErrorsToArriErrors(compiled.Errors(val));
29
- return undefined;
29
+ return void 0;
30
30
  },
31
31
  coerce(val, context) {
32
32
  try {
@@ -36,7 +36,7 @@ function typeboxAdapter(input) {
36
36
  instancePath: "/",
37
37
  message: err instanceof Error ? err.message : `${err}`
38
38
  });
39
- return undefined;
39
+ return void 0;
40
40
  }
41
41
  },
42
42
  validate(val) {
@@ -50,7 +50,7 @@ function typeboxAdapter(input) {
50
50
  instancePath: "/",
51
51
  message: err instanceof Error ? err.message : `${err}`
52
52
  });
53
- return undefined;
53
+ return void 0;
54
54
  }
55
55
  }
56
56
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arrirpc/typebox-adapter",
3
- "version": "0.74.1",
3
+ "version": "0.75.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -22,11 +22,11 @@
22
22
  "directory": "languages/ts/ts-schema-typebox-adapter"
23
23
  },
24
24
  "dependencies": {
25
- "@arrirpc/schema": "0.74.1",
26
- "json-schema-to-atd": "0.74.1"
25
+ "@arrirpc/schema": "0.75.1",
26
+ "json-schema-to-atd": "0.75.1"
27
27
  },
28
28
  "devDependencies": {
29
- "@arrirpc/server": "0.74.1"
29
+ "@arrirpc/server": "0.75.1"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "@sinclair/typebox": "^0.32"