Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
Bump zod from 3.23.5 to 3.23.8 (#633)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Jun 1, 2024
1 parent eb25f2d commit ea15e7d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
11 changes: 7 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@actions/github": "^6.0.0",
"@github/dependency-submission-toolkit": "^2.0.4",
"packageurl-js": "^1.2.1",
"zod": "^3.23.5"
"zod": "^3.23.8"
},
"devDependencies": {
"@tsconfig/node20": "^20.1.4",
Expand Down

0 comments on commit ea15e7d

Please sign in to comment.