Merge pull request #158 from actions/dependabot/npm_and_yarn/zod-3.17.4

Bump zod from 3.17.3 to 3.17.4
This commit is contained in:
Federico Builes
2022-07-18 15:01:30 +02:00
committed by GitHub
4 changed files with 16 additions and 18 deletions

16
dist/index.js generated vendored
View File

@@ -11818,25 +11818,23 @@ class ZodString extends ZodType {
return !!this._def.checks.find((ch) => ch.kind === "cuid");
}
get minLength() {
let min = -Infinity;
this._def.checks.map((ch) => {
let min = null;
for (const ch of this._def.checks) {
if (ch.kind === "min") {
if (min === null || ch.value > min) {
if (min === null || ch.value > min)
min = ch.value;
}
}
});
}
return min;
}
get maxLength() {
let max = null;
this._def.checks.map((ch) => {
for (const ch of this._def.checks) {
if (ch.kind === "max") {
if (max === null || ch.value < max) {
if (max === null || ch.value < max)
max = ch.value;
}
}
});
}
return max;
}
}

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

14
package-lock.json generated
View File

@@ -17,7 +17,7 @@
"got": "^12.1.0",
"nodemon": "^2.0.19",
"yaml": "^2.1.1",
"zod": "^3.17.3"
"zod": "^3.17.4"
},
"devDependencies": {
"@types/node": "^16.11.44",
@@ -6910,9 +6910,9 @@
}
},
"node_modules/zod": {
"version": "3.17.3",
"resolved": "https://registry.npmjs.org/zod/-/zod-3.17.3.tgz",
"integrity": "sha512-4oKP5zvG6GGbMlqBkI5FESOAweldEhSOZ6LI6cG+JzUT7ofj1ZOC0PJudpQOpT1iqOFpYYtX5Pw0+o403y4bcg==",
"version": "3.17.4",
"resolved": "https://registry.npmjs.org/zod/-/zod-3.17.4.tgz",
"integrity": "sha512-ISRPS3fn4tekp+fYV+nLSgI9Fr5TDOm6ct0UaJoftSP8EbVeOjX5EvQP/JQn7/a9riCJa3LJzCxceErgGYeweA==",
"funding": {
"url": "https://github.com/sponsors/colinhacks"
}
@@ -12102,9 +12102,9 @@
"dev": true
},
"zod": {
"version": "3.17.3",
"resolved": "https://registry.npmjs.org/zod/-/zod-3.17.3.tgz",
"integrity": "sha512-4oKP5zvG6GGbMlqBkI5FESOAweldEhSOZ6LI6cG+JzUT7ofj1ZOC0PJudpQOpT1iqOFpYYtX5Pw0+o403y4bcg=="
"version": "3.17.4",
"resolved": "https://registry.npmjs.org/zod/-/zod-3.17.4.tgz",
"integrity": "sha512-ISRPS3fn4tekp+fYV+nLSgI9Fr5TDOm6ct0UaJoftSP8EbVeOjX5EvQP/JQn7/a9riCJa3LJzCxceErgGYeweA=="
}
}
}

View File

@@ -33,7 +33,7 @@
"got": "^12.1.0",
"nodemon": "^2.0.19",
"yaml": "^2.1.1",
"zod": "^3.17.3"
"zod": "^3.17.4"
},
"devDependencies": {
"@types/node": "^16.11.44",