mutano 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/main.js +4 -1
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -246,7 +246,10 @@ async function generate(config) {
246
246
  name: fieldType
247
247
  })[0]?.enumerators.filter(
248
248
  (e) => e.type === "enumerator"
249
- ).map((e) => e.name);
249
+ ).map((e) => {
250
+ const attrs = e.attributes?.find((a) => a.name === "map");
251
+ return attrs?.args ? attrs.args[0].value.toString().replace(/"/g, "") : e.name;
252
+ });
250
253
  fieldType = "Enum";
251
254
  }
252
255
  return {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mutano",
3
3
  "type": "module",
4
- "version": "1.0.6",
4
+ "version": "1.0.7",
5
5
  "description": "Converts Prisma/MySQL schemas to Zod interfaces",
6
6
  "author": "Alisson Cavalcante Agiani <thelinuxlich@gmail.com>",
7
7
  "license": "MIT",