@sinclair/typebox 0.25.1 → 0.25.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.
- package/compiler/compiler.js +1 -1
- package/package.json +1 -1
package/compiler/compiler.js
CHANGED
|
@@ -375,7 +375,7 @@ var TypeCompiler;
|
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
function CreateExpression(schema, value) {
|
|
378
|
-
return [...Visit(schema, value)].join(' && ')
|
|
378
|
+
return `(${[...Visit(schema, value)].join(' && ')})`;
|
|
379
379
|
}
|
|
380
380
|
function CreateFunctionName($id) {
|
|
381
381
|
return `check_${$id.replace(/-/g, '_')}`;
|