drizzle-typebox 0.3.3-e6bdce6 → 0.3.3-ec2e97b
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.cjs +1 -1
- package/index.mjs +1 -1
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -26,7 +26,7 @@ const CONSTANTS = {
|
|
|
26
26
|
|
|
27
27
|
const literalSchema = typebox.Type.Union([typebox.Type.String(), typebox.Type.Number(), typebox.Type.Boolean(), typebox.Type.Null()]);
|
|
28
28
|
const jsonSchema = typebox.Type.Union([literalSchema, typebox.Type.Array(typebox.Type.Any()), typebox.Type.Record(typebox.Type.String(), typebox.Type.Any())]);
|
|
29
|
-
typebox.TypeRegistry.Set('Buffer', (_, value) => value instanceof Buffer);
|
|
29
|
+
typebox.TypeRegistry.Set('Buffer', (_, value) => value instanceof Buffer);
|
|
30
30
|
const bufferSchema = { [typebox.Kind]: 'Buffer', type: 'buffer' };
|
|
31
31
|
function mapEnumValues(values) {
|
|
32
32
|
return Object.fromEntries(values.map((value) => [value, value]));
|
package/index.mjs
CHANGED
|
@@ -24,7 +24,7 @@ const CONSTANTS = {
|
|
|
24
24
|
|
|
25
25
|
const literalSchema = Type.Union([Type.String(), Type.Number(), Type.Boolean(), Type.Null()]);
|
|
26
26
|
const jsonSchema = Type.Union([literalSchema, Type.Array(Type.Any()), Type.Record(Type.String(), Type.Any())]);
|
|
27
|
-
TypeRegistry.Set('Buffer', (_, value) => value instanceof Buffer);
|
|
27
|
+
TypeRegistry.Set('Buffer', (_, value) => value instanceof Buffer);
|
|
28
28
|
const bufferSchema = { [Kind]: 'Buffer', type: 'buffer' };
|
|
29
29
|
function mapEnumValues(values) {
|
|
30
30
|
return Object.fromEntries(values.map((value) => [value, value]));
|