diff --git a/package.json b/package.json index 5b0ed303f5..d462b64112 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "typia", - "version": "5.3.1", + "version": "5.3.2", "description": "Superfast runtime validators with only one line", "main": "lib/index.js", "typings": "lib/index.d.ts", diff --git a/packages/benchmark/package.json b/packages/benchmark/package.json index b2bdc5622d..7162dbf78f 100644 --- a/packages/benchmark/package.json +++ b/packages/benchmark/package.json @@ -73,6 +73,6 @@ "suppress-warnings": "^1.0.2", "tstl": "^2.5.13", "uuid": "^9.0.1", - "typia": "D:\\github\\samchon\\typia\\typia-5.3.1.tgz" + "typia": "D:\\github\\samchon\\typia\\typia-5.3.2.tgz" } } \ No newline at end of file diff --git a/packages/errors/package.json b/packages/errors/package.json index bd301b8028..529fbca191 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -32,6 +32,6 @@ "typescript": "^5.3.2" }, "dependencies": { - "typia": "D:\\github\\samchon\\typia\\typia-5.3.1.tgz" + "typia": "D:\\github\\samchon\\typia\\typia-5.3.2.tgz" } } \ No newline at end of file diff --git a/packages/test/package.json b/packages/test/package.json index e2f809384c..7e56c649ee 100644 --- a/packages/test/package.json +++ b/packages/test/package.json @@ -46,6 +46,6 @@ "suppress-warnings": "^1.0.2", "tstl": "^2.5.13", "uuid": "^9.0.1", - "typia": "D:\\github\\samchon\\typia\\typia-5.3.1.tgz" + "typia": "D:\\github\\samchon\\typia\\typia-5.3.2.tgz" } } \ No newline at end of file diff --git a/packages/typescript-json/package.json b/packages/typescript-json/package.json index 92fb75e523..28dcd546ae 100644 --- a/packages/typescript-json/package.json +++ b/packages/typescript-json/package.json @@ -1,6 +1,6 @@ { "name": "typescript-json", - "version": "5.3.1", + "version": "5.3.2", "description": "Superfast runtime validators with only one line", "main": "lib/index.js", "typings": "lib/index.d.ts", @@ -56,7 +56,7 @@ }, "homepage": "https://typia.io", "dependencies": { - "typia": "5.3.1" + "typia": "5.3.2" }, "peerDependencies": { "typescript": ">=4.8.0 <5.4.0" diff --git a/src/programmers/helpers/RandomRanger.ts b/src/programmers/helpers/RandomRanger.ts index 40f06d5750..65162cfac0 100644 --- a/src/programmers/helpers/RandomRanger.ts +++ b/src/programmers/helpers/RandomRanger.ts @@ -23,6 +23,13 @@ export namespace RandomRanger { if (props.minimum === undefined && props.maximum === undefined) return undefined; + if (props.maximum !== undefined && props.minimum === undefined) { + if (props.maximum <= 0) { + props.maximum = 0; + props.minimum = 0; + } else if (props.maximum < defs.gap) + props.minimum = defs.minimum === 0 ? 0 : 1; + } props.minimum ??= defs.minimum; props.maximum ??= defs.maximum; if (props.maximum < props.minimum) (props.maximum as number) += defs.gap; diff --git a/src/transformers/CallExpressionTransformer.ts b/src/transformers/CallExpressionTransformer.ts index 4d925af239..397ad286fe 100644 --- a/src/transformers/CallExpressionTransformer.ts +++ b/src/transformers/CallExpressionTransformer.ts @@ -127,16 +127,8 @@ export namespace CallExpressionTransformer { const isTarget = (location: string): boolean => { const files: string[] = Object.keys(FUNCTORS); - return files.some( - (f) => - location.includes( - path.join("node_modules", "typia", "lib", `${f}.d.ts`), - ) || - location === path.resolve(path.join(__dirname, "..", `${f}.ts`)) || - location === - path.resolve( - path.join(__dirname, "..", "..", "..", "src", `${f}.ts`), - ), + return files.some((f) => + location.includes(path.join("node_modules", "typia", "lib", `${f}.d.ts`)), ); }; } diff --git a/website/package-lock.json b/website/package-lock.json index b27ae42604..a6de0171f9 100644 --- a/website/package-lock.json +++ b/website/package-lock.json @@ -31,7 +31,7 @@ "prettier": "^2.8.8", "rimraf": "^5.0.0", "ts-node": "^10.9.1", - "typia": "^5.3.1" + "typia": "^5.3.2" } }, "node_modules/@babel/code-frame": { @@ -7642,9 +7642,9 @@ } }, "node_modules/typia": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/typia/-/typia-5.3.1.tgz", - "integrity": "sha512-FJpOBt6F7LX64tuev/XXBmQivrFO91R3Mzje9J3p040N79s5lipgzVqJ2EtnT/PCSYnCZ0xs7YRi+0wKu6ZBIQ==", + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/typia/-/typia-5.3.2.tgz", + "integrity": "sha512-e6saEuAlqWMlx9uHNDHSS1bY4G1cOxW508k+Ebhjb3E9lhVRzH62FrXBkCrA+pyQCiJUDWvDwCVb40ed6+kdvA==", "dev": true, "dependencies": { "commander": "^10.0.0", diff --git a/website/package.json b/website/package.json index 4945230565..c7cf958a50 100644 --- a/website/package.json +++ b/website/package.json @@ -41,6 +41,6 @@ "prettier": "^2.8.8", "rimraf": "^5.0.0", "ts-node": "^10.9.1", - "typia": "^5.3.1" + "typia": "^5.3.2" } } diff --git a/website/public/sitemap-0.xml b/website/public/sitemap-0.xml index 528e61c071..920767df99 100644 --- a/website/public/sitemap-0.xml +++ b/website/public/sitemap-0.xml @@ -1,23 +1,23 @@ -https://typia.io/2023-11-27T08:14:01.523Zdaily0.7 -https://typia.io/docs/2023-11-27T08:14:01.524Zdaily0.7 -https://typia.io/docs/json/parse/2023-11-27T08:14:01.524Zdaily0.7 -https://typia.io/docs/json/schema/2023-11-27T08:14:01.524Zdaily0.7 -https://typia.io/docs/json/stringify/2023-11-27T08:14:01.524Zdaily0.7 -https://typia.io/docs/misc/2023-11-27T08:14:01.524Zdaily0.7 -https://typia.io/docs/protobuf/decode/2023-11-27T08:14:01.524Zdaily0.7 -https://typia.io/docs/protobuf/encode/2023-11-27T08:14:01.524Zdaily0.7 -https://typia.io/docs/protobuf/message/2023-11-27T08:14:01.524Zdaily0.7 -https://typia.io/docs/pure/2023-11-27T08:14:01.524Zdaily0.7 -https://typia.io/docs/random/2023-11-27T08:14:01.524Zdaily0.7 -https://typia.io/docs/setup/2023-11-27T08:14:01.524Zdaily0.7 -https://typia.io/docs/utilization/nestjs/2023-11-27T08:14:01.524Zdaily0.7 -https://typia.io/docs/utilization/prisma/2023-11-27T08:14:01.524Zdaily0.7 -https://typia.io/docs/utilization/trpc/2023-11-27T08:14:01.524Zdaily0.7 -https://typia.io/docs/validators/assert/2023-11-27T08:14:01.524Zdaily0.7 -https://typia.io/docs/validators/is/2023-11-27T08:14:01.524Zdaily0.7 -https://typia.io/docs/validators/tags/2023-11-27T08:14:01.524Zdaily0.7 -https://typia.io/docs/validators/validate/2023-11-27T08:14:01.524Zdaily0.7 -https://typia.io/playground/2023-11-27T08:14:01.524Zdaily0.7 +https://typia.io/2023-11-29T17:50:58.866Zdaily0.7 +https://typia.io/docs/2023-11-29T17:50:58.867Zdaily0.7 +https://typia.io/docs/json/parse/2023-11-29T17:50:58.867Zdaily0.7 +https://typia.io/docs/json/schema/2023-11-29T17:50:58.867Zdaily0.7 +https://typia.io/docs/json/stringify/2023-11-29T17:50:58.867Zdaily0.7 +https://typia.io/docs/misc/2023-11-29T17:50:58.867Zdaily0.7 +https://typia.io/docs/protobuf/decode/2023-11-29T17:50:58.867Zdaily0.7 +https://typia.io/docs/protobuf/encode/2023-11-29T17:50:58.867Zdaily0.7 +https://typia.io/docs/protobuf/message/2023-11-29T17:50:58.867Zdaily0.7 +https://typia.io/docs/pure/2023-11-29T17:50:58.867Zdaily0.7 +https://typia.io/docs/random/2023-11-29T17:50:58.867Zdaily0.7 +https://typia.io/docs/setup/2023-11-29T17:50:58.867Zdaily0.7 +https://typia.io/docs/utilization/nestjs/2023-11-29T17:50:58.867Zdaily0.7 +https://typia.io/docs/utilization/prisma/2023-11-29T17:50:58.867Zdaily0.7 +https://typia.io/docs/utilization/trpc/2023-11-29T17:50:58.867Zdaily0.7 +https://typia.io/docs/validators/assert/2023-11-29T17:50:58.867Zdaily0.7 +https://typia.io/docs/validators/is/2023-11-29T17:50:58.867Zdaily0.7 +https://typia.io/docs/validators/tags/2023-11-29T17:50:58.867Zdaily0.7 +https://typia.io/docs/validators/validate/2023-11-29T17:50:58.867Zdaily0.7 +https://typia.io/playground/2023-11-29T17:50:58.867Zdaily0.7 \ No newline at end of file