diff --git a/dist/index.js b/dist/index.js index 84f9748..e4e6ce8 100644 --- a/dist/index.js +++ b/dist/index.js @@ -26340,10 +26340,13 @@ var ZodPipeline = class _ZodPipeline extends ZodType { var ZodReadonly = class extends ZodType { _parse(input) { const result = this._def.innerType._parse(input); - if (isValid(result)) { - result.value = Object.freeze(result.value); - } - return result; + const freeze = (data) => { + if (isValid(data)) { + data.value = Object.freeze(data.value); + } + return data; + }; + return isAsync(result) ? result.then((data) => freeze(data)) : freeze(result); } unwrap() { return this._def.innerType;