effect 4.0.0-beta.86 → 4.0.0-beta.87
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/Schema.d.ts +4 -0
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +6 -2
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +2 -2
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +5 -8
- package/dist/SchemaTransformation.js.map +1 -1
- package/package.json +1 -1
- package/src/Schema.ts +6 -2
- package/src/SchemaTransformation.ts +5 -6
package/dist/Schema.js
CHANGED
|
@@ -8025,7 +8025,9 @@ export function toJsonSchemaDocument(schema, options) {
|
|
|
8025
8025
|
* @since 4.0.0
|
|
8026
8026
|
*/
|
|
8027
8027
|
export function toCodecJson(schema) {
|
|
8028
|
-
return make(toCodecJsonTop(schema.ast)
|
|
8028
|
+
return make(toCodecJsonTop(schema.ast), {
|
|
8029
|
+
schema
|
|
8030
|
+
});
|
|
8029
8031
|
}
|
|
8030
8032
|
const toCodecJsonTop = /*#__PURE__*/SchemaAST.applyToSelfOrLastLinkEncoding(ast => {
|
|
8031
8033
|
const out = toCodecJsonBase(ast, toCodecJsonTop);
|
|
@@ -8127,7 +8129,9 @@ function toCodecIsoBase(ast, recur) {
|
|
|
8127
8129
|
* @since 4.0.0
|
|
8128
8130
|
*/
|
|
8129
8131
|
export function toCodecStringTree(schema) {
|
|
8130
|
-
return make(serializerStringTree(schema.ast)
|
|
8132
|
+
return make(serializerStringTree(schema.ast), {
|
|
8133
|
+
schema
|
|
8134
|
+
});
|
|
8131
8135
|
}
|
|
8132
8136
|
/**
|
|
8133
8137
|
* Allows array schemas to decode from either an array input or a single value
|