samchon / typia

Super-fast/easy runtime validators and serializers via transformation
https://typia.io/
MIT License
4.64k stars 160 forks source link

`ImportProgrammer.IOptions` for multiple transformers case. #1336

Closed samchon closed 1 month ago

samchon commented 1 month ago

When @nestia/core calls AssertProgrammer like functions, the transformed code occurs duplicated importment statement error. To solve this problem, I've decided to add ImportTransformer.IOptions.internalPrefix to avoid such situation.

For reference, the typia's transformer will assign the typia_transform_ prefix to there, and @nestia/core will do nestia_core_transform_.

pkg-pr-new[bot] commented 1 month ago

Open in Stackblitz

npm i https://pkg.pr.new/typia@1336

commit: 3611a72

socket-security[bot] commented 1 month ago

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@types/inquirer@8.2.10 None +1 75.2 kB types
npm/@typescript-eslint/eslint-plugin@7.18.0 Transitive: environment, eval, filesystem, shell, unsafe +114 17.1 MB jameshenry
npm/@typescript-eslint/parser@7.18.0 Transitive: environment, eval, filesystem, shell, unsafe +112 13.9 MB jameshenry
npm/rollup@4.24.0 None +18 41.9 MB eventualbuddha, lukastaegert, rich_harris, ...2 more
npm/ts-expose-internals@5.5.4 None 0 1.53 MB nonara
npm/typia@7.0.0-dev.20241021-2 Transitive: environment, filesystem, network, shell +64 13.5 MB samchon

🚮 Removed packages: npm/physical-cpu-count@2.0.0, npm/prettier@2.8.8, npm/reflect-metadata@0.1.14, npm/tgrid@0.10.3, npm/typia@7.0.0-dev.20241020, npm/zod@3.23.8

View full report↗︎