{"_id":"zod-error","_rev":"12-b4d41b798541ca86612bb2b3a36b1113","name":"zod-error","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"zod-error","version":"1.0.0","keywords":["zod","error","validation","nodejs","typescript"],"author":{"url":"https://andrewvo.co","name":"Andrew Vo-Nguyen","email":"hello@andrewvo.co"},"license":"MIT","_id":"zod-error@1.0.0","maintainers":[{"name":"andrewvo89","email":"hello@andrewvo.co"}],"homepage":"https://github.com/andrewvo89/zod-error","dist":{"shasum":"ee588ff3b83fc246d07a2f99fb7f3637ab36195e","tarball":"https://registry.npmjs.org/zod-error/-/zod-error-1.0.0.tgz","fileCount":45,"integrity":"sha512-Eu6YF5wuvJsI5dMz8Mq1nZZPCSFIokUCUTbHSsQkEUQwquXYAzaGJEVM9Yn6OPcAEAPTJ1FSRPqmWgEfd47T6Q==","signatures":[{"sig":"MEQCIDKgIwMLlY7AelV/nkBiyDKtyaIvecaMKftI1Z51IG2HAiA/FLov8zYVXgQxg/ECC3v2L/s4Rjs27+zaie0tjablfQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":47078,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0U15ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpN1A/+IG5qf/pEkN5foK88x66ihzwWPPgV6uf1Pm6PfOCtzSJ3NdBq\r\nYHYQLIcctA/8WPw3+g0oxkBWu0eizMILyQrAGzoS+Iky771J49HwiAkxbyTE\r\n4UbR/A9Ya6A76kijFsFftlS/e/SBHyfEqrcv8Xenf24q1F/XounvMM8F2ulD\r\nLqDvLa7TFvB4pyTRwMlN/9NTNiOBm4rd9dRCIVwmCrcNsbBkefdk5Nc05ymc\r\ntU3lC65dvKXIJO6/HvyIted2DHF6ytb9AFUKPo8pF2mPovNMGXfbqLJbB0YV\r\nUAFnzUTvWIJXGX67dxL7MfH92WS8zlgS1mTCGmJtxSx8ArSjTDfeS7rbZSxO\r\nE0R6GGRBxnWQX1WthZXNaObFCpXq4i6avCtNjC4g6u004V512i43wBBeFPNC\r\nfF2aefCpc7ejTGnvefZXZC9ATujn0LSB2ZMaSGU02udn6L58wydlFOXUsdVR\r\n52KwkZj3YxdFxoMLQYGpzp+pNyvma0JaMqx65u5XOuuIfWsUUn9BOPw6J3N1\r\n38PE1oRQFu3H6MO19fG2lsO2CPu1sjEtylOThFG09pdpZKX6rQFse2okwKr+\r\n6FBgJ/DnKD4LiTEktRlUK3ih8R0RsXMkvfBzWA7CL6PV4oHLDZcMrXiMf22p\r\nPMGUtycMV2lCDua5njmsHVPlAVj9VB6z62w=\r\n=7YiS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"scripts":{"lint":"eslint","pack":"npm pack","build":"eslint && (rm -r lib || tsc -p tsconfig.json)","commit":"cz","format":"prettier --write \"src/**/*.ts\" \"src/**/*.js\"","publish":"npm publish"},"_npmUser":{"name":"andrewvo89","email":"hello@andrewvo.co"},"repository":{"url":"https://github.com/andrewvo89/zod-error","type":"git"},"description":"Utilities to format and customize Zod error messages","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2022 Andrew Vo-Nguyen\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","dependencies":{"zod":"^3.17.3"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.19.0","prettier":"^2.7.1","typescript":"^4.7.4","@types/node":"^18.0.3","eslint-config-prettier":"^8.5.0","@typescript-eslint/parser":"^5.30.6","cz-conventional-changelog":"3.3.0","@typescript-eslint/eslint-plugin":"^5.30.6"},"_npmOperationalInternal":{"tmp":"tmp/zod-error_1.0.0_1657884024968_0.7962456151384627","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"zod-error","version":"1.0.1","keywords":["zod","error","validation","nodejs","typescript"],"author":{"url":"https://andrewvo.co","name":"Andrew Vo-Nguyen","email":"hello@andrewvo.co"},"license":"MIT","_id":"zod-error@1.0.1","maintainers":[{"name":"andrewvo89","email":"hello@andrewvo.co"}],"homepage":"https://github.com/andrewvo89/zod-error","bugs":{"url":"https://github.com/andrewvo89/zod-error/issues"},"dist":{"shasum":"ff5af2f7ab69a64467a6b6c56c6df929c91c2dae","tarball":"https://registry.npmjs.org/zod-error/-/zod-error-1.0.1.tgz","fileCount":41,"integrity":"sha512-iCIBggygMeYcf1V3xzUF3cLWtvKeTNf6x4EunFn6HSomxC7INeetyQQV9IPmYyE06Q/ZOURmp2MKPCUsPsWv6w==","signatures":[{"sig":"MEQCID3vbGgnu43mTHuAbYZvEr7vWJN+XGEJ35mtce8qhH64AiB1E3kJAzQLUH/AD79qn78AMfswP19+PA+DON76TC549A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":47210,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0VJuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr0ZQ//aFByNakfVTF3HYG2kFZ2s2QRuT8macAW4y0Jf2ysXyJsL0Fh\r\nexUuAufSf+UymhjO6CrgzsbLNczTzjzU3dovbnWJjUhnNpvUsJzixcyDKjrO\r\nU8klKXLME67yOKfzpQwrJ5Gtgu7+YNEsjUxHu9N9TIkVcQpVNqfTpZYvr2aN\r\nayMp+mNFeZKAiDmwnQL5pFxixfkNHiIM2xfmeFJ25zf7lrSh5n0r2Aku/mwu\r\nXinkzPHQDRvoe82AmhPYQFdLk8n2tLIXG1b+69MPsCHWXXdnjxndzELk1HXw\r\npbbQun1hnhvr+OLI7GNt559tA2qgN2hzyh0rQmR4MF32uY+ECAdNV4jgaEBs\r\nSiQ+krvb6JbqbqrggrKtqVOld6Y6Oxcm6nLOUlt1Kpbk6QyejlGp25RC4Qwt\r\nWG22oPnSSkOXamnE8q0WnyrrJm/rds3Mu0w6BqSwAVX6p0Lo60ktFFSzkkz7\r\nrRnjDQMupNEtiK5FwsXPD9oEzu8SDrHB9HucGJPj+Q6AOICkNxEsvS4F6Be6\r\nnnSl3SuHf+FTyTp6VxceAWT1GJSPhxRVAeRlgNaH0I33KfVnUbjKgK9RUw/b\r\nqywUSYSbYzjTjlCaD4pEA5ddrtViFrC6r7R1CAsYmp/FHDmdDKerwLwGmBWJ\r\nLzqnt1DNvft1s6lrwRLdY+nlT8mY6YwT+rw=\r\n=xPS3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"2387c7f6ee8f2da6b69e35d01ecccee8184e43f1","scripts":{"lint":"eslint","pack":"npm pack","build":"eslint && rm -rf lib && tsc -p tsconfig.json","commit":"cz","format":"prettier --write \"src/**/*.ts\" \"src/**/*.js\"","publish:major":"yarn build && npm version major && npm publish","publish:minor":"yarn build && npm version minor && npm publish","publish:patch":"yarn build && npm version patch && npm publish"},"_npmUser":{"name":"andrewvo89","email":"hello@andrewvo.co"},"repository":{"url":"git+https://github.com/andrewvo89/zod-error.git","type":"git"},"_npmVersion":"6.14.17","description":"Utilities to format and customize Zod error messages","directories":{},"_nodeVersion":"14.19.3","dependencies":{"zod":"^3.17.3"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.19.0","prettier":"^2.7.1","typescript":"^4.7.4","@types/node":"^18.0.3","eslint-config-prettier":"^8.5.0","@typescript-eslint/parser":"^5.30.6","cz-conventional-changelog":"3.3.0","@typescript-eslint/eslint-plugin":"^5.30.6"},"_npmOperationalInternal":{"tmp":"tmp/zod-error_1.0.1_1657885294697_0.9023120420057478","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"zod-error","version":"1.0.2","keywords":["zod","error","validation","nodejs","typescript"],"author":{"url":"https://andrewvo.co","name":"Andrew Vo-Nguyen","email":"hello@andrewvo.co"},"license":"MIT","_id":"zod-error@1.0.2","maintainers":[{"name":"andrewvo89","email":"hello@andrewvo.co"}],"homepage":"https://github.com/andrewvo89/zod-error","bugs":{"url":"https://github.com/andrewvo89/zod-error/issues"},"dist":{"shasum":"1cc6792d352c6aae6c5eb982d7b4f98a0a33df20","tarball":"https://registry.npmjs.org/zod-error/-/zod-error-1.0.2.tgz","fileCount":41,"integrity":"sha512-MsViUolDK25w3UdcM+0e3DqLhSc78JEzxfqucfmpqIhhHMROY/fc6Snim9h89pBa/uS6objuTaI0dnONbCbtIA==","signatures":[{"sig":"MEUCIQDm0MRj/FXH7Qmg/juv5AN4FxYJP5qMFECjNQNj/ATABAIgEE12uwsr+1jOW30R4duLP/XL9C2+1PhFFf1xT1MPPyg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":47211,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0Vd5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmob7Q/+O0AXRwKPRo5tVFiGzaqjE5G8IUnRB1QyxrI6mm74H13IkP2K\r\nTqp59L7Vj2iN/cDoVUIykQjxDjf/OhEnbg3lyQEAPBN2Ztgk1Q4zhVzwn17N\r\nv9VEOevZRWCuIMZNND9Ebgz2+YrxD0uHUrgoSVutHLA4OPqWWVOg27RnGML3\r\n9VCvML53uf3/5pVg7dMlhMHokPEBOyCtAC8uEUk/RPl893P+hMV99bStsnj3\r\nzlnKCdFIfF6IdkvAitJ6JWobnZS5F2uICejITM2mEgHJY42wvQiLRY6Ka+Ii\r\nP1dquQs96JdxYtxWAjN7ufb53jxGjabPWgBHZyjZmBVntdyU4N+RVo0x8suP\r\n8uOCtXsguEIJJQIrkV6h2zrB5kFZCfOSAqRDXcU7yvFopCXY8GOMYJJtvRI2\r\n5r8IsClGH+7Gg9I7/gk452X14+3HIYkSLOl01sXPg8kqT/axqA7InowNSgzK\r\nTJvRzTbwwXQBPN4eHe5TzXACjA69iO6zK1C+aMymsWgrb0QY5h6xehmVD4RG\r\nFXCwyi5FVuPm1YN6eT9ALmU1lCxGnZd2vr1lpoBQPh12uktQP3+C320fkB+I\r\n9VWxbdpD6CDDh/88XlBMmhrDavYkoPR7Bu5CZWQa+UZ6LUH/7wFDHtdotbxg\r\nVwWS19NBXttcwUQ5j08K+XzRIznVs42QJQE=\r\n=zUhR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"0c9e330e20934f980d35ca89241635bfbc9fd0fa","scripts":{"lint":"eslint","pack":"npm pack","build":"eslint && (rm -r lib || tsc -p tsconfig.json)","commit":"cz","format":"prettier --write \"src/**/*.ts\" \"src/**/*.js\"","publish:major":"yarn build && npm version major && npm publish","publish:minor":"yarn build && npm version minor && npm publish","publish:patch":"yarn build && npm version patch && npm publish"},"_npmUser":{"name":"andrewvo89","email":"hello@andrewvo.co"},"repository":{"url":"git+https://github.com/andrewvo89/zod-error.git","type":"git"},"_npmVersion":"6.14.17","description":"Utilities to format and customize Zod error messages","directories":{},"_nodeVersion":"14.19.3","dependencies":{"zod":"^3.17.3"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.19.0","prettier":"^2.7.1","typescript":"^4.7.4","@types/node":"^18.0.3","eslint-config-prettier":"^8.5.0","@typescript-eslint/parser":"^5.30.6","cz-conventional-changelog":"3.3.0","@typescript-eslint/eslint-plugin":"^5.30.6"},"_npmOperationalInternal":{"tmp":"tmp/zod-error_1.0.2_1657886585506_0.9561031511071099","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"zod-error","version":"1.0.3","keywords":["zod","error","validation","nodejs","typescript"],"author":{"url":"https://andrewvo.co","name":"Andrew Vo-Nguyen","email":"hello@andrewvo.co"},"license":"MIT","_id":"zod-error@1.0.3","maintainers":[{"name":"andrewvo89","email":"hello@andrewvo.co"}],"homepage":"https://github.com/andrewvo89/zod-error","bugs":{"url":"https://github.com/andrewvo89/zod-error/issues"},"dist":{"shasum":"b0cd45da3a72184ca5d3627497e92538b1d902b8","tarball":"https://registry.npmjs.org/zod-error/-/zod-error-1.0.3.tgz","fileCount":73,"integrity":"sha512-VPqQz78B4Y5tuvPGpMl+4ehsMvqEP8sEmuTYGssdjBCyRaK8biyoXpZCzL0mCgU1O0qkP3GUKEo8z4lFC/Kmhg==","signatures":[{"sig":"MEUCIQC+f/bYrKEcvkydsnlaCvzi8mSdIR7PP8EJuEVFXq1LywIgGNL4QIl9JmM7gTpCvrwo+Dmp8hJiDzAZUsvV/LsTVw4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":65780,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1MogACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmraDw/+JeupYylpYhkxhj1XadZtjoovoo6ptSdAZHNPdaVheGBUiDer\r\nj0u16XkGtWsCc/EV4tpQlu8wmBHhzokYIirS/1J8otr3+l+1ScOcGTA+w8r8\r\n+xkhljTfxgvoxNRcVKzj6GIfvOQMZq2RUt3j3zfSugd0B5aeHRIycWx+TkPM\r\n5Edv/RNp2+QrOFwCXgVXCVGWWs75Bw/nQBaTy2f+fG5QSZUB+OplrLbBB2Ip\r\npMEK2kXyDEIsJe8wwRufjL6akpKzBIgzgqjlV3GSQ3ML6qj9s7nFYWJ2cS93\r\negcBbecPuKujuMS4FF8N/9RF+EGZpDP6mhP4+nI9kNqPUhgo5nXodm2I8Laj\r\nqdjcjImqdHo5uKnH5aFrxgIulDw21YuNlJrtS5RjtCRKE/3eWwEttA8cZ45N\r\nXDdZ43bjbdzZLKpOnid5wMvOnZ1EeCwh42lyQjzbVZDLdrHhkl5O6i7cduaO\r\nfXQ6DCLqcLaTPhJ9p9KCmF9EDyv6YCBGzHCSQKbcb57n2ZeInmKcFnwMQepy\r\nIGvtEfOPPhgYKh2EhYZ9JQ6Ek1aWgVI8inZ3c5JE3MWVqgjmDAV/2sbKc9pQ\r\nBvF/EI4q1ETL6zto20/boXFi2MeJ/wVmquZMmDVukMoW4FwH+XJKDVeWqD5A\r\nLcMNH1vMuYzxDRalWCPtlXjmLOi8Lwg0XxE=\r\n=y24k\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"6cacfad98841004235f9d19da4e095eca55953c4","scripts":{"lint":"eslint","pack":"npm pack","test":"jest","build":"eslint && (rm -r lib || tsc -p tsconfig.json)","commit":"cz","format":"prettier --write \"src/**/*.ts\" \"src/**/*.js\"","publish:major":"yarn build && npm version major && npm publish","publish:minor":"yarn build && npm version minor && npm publish","publish:patch":"yarn build && npm version patch && npm publish","test:coverage":"yarn test --coverage"},"_npmUser":{"name":"andrewvo89","email":"hello@andrewvo.co"},"repository":{"url":"git+https://github.com/andrewvo89/zod-error.git","type":"git"},"_npmVersion":"6.14.17","description":"Utilities to format and customize Zod error messages","directories":{},"_nodeVersion":"14.19.3","dependencies":{"zod":"^3.17.3"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.3","eslint":"^8.19.0","ts-jest":"^28.0.6","prettier":"^2.7.1","typescript":"^4.7.4","@types/jest":"^28.1.6","@types/node":"^18.0.3","eslint-config-prettier":"^8.5.0","@typescript-eslint/parser":"^5.30.6","cz-conventional-changelog":"3.3.0","@typescript-eslint/eslint-plugin":"^5.30.6"},"_npmOperationalInternal":{"tmp":"tmp/zod-error_1.0.3_1658112544499_0.8566961354750138","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"zod-error","version":"1.0.4","keywords":["zod","error","validation","nodejs","typescript"],"author":{"url":"https://andrewvo.co","name":"Andrew Vo-Nguyen","email":"hello@andrewvo.co"},"license":"MIT","_id":"zod-error@1.0.4","maintainers":[{"name":"andrewvo89","email":"hello@andrewvo.co"}],"homepage":"https://github.com/andrewvo89/zod-error","bugs":{"url":"https://github.com/andrewvo89/zod-error/issues"},"dist":{"shasum":"8605aac94e20edea8f0a5d661da03c6f5197004b","tarball":"https://registry.npmjs.org/zod-error/-/zod-error-1.0.4.tgz","fileCount":3,"integrity":"sha512-ErZS60FYnCWK5b5Fa3VXCgK84lio9nljG+ROzOFnXyLEyJonAx5M6NO7oIv7qF7VDf6rP6/bXfqHyYpnWeDreg==","signatures":[{"sig":"MEUCIEh2N8c5hBSohx3VWbiU8bm96CTndgJSTX00pz3yCFPyAiEAlpftltmAZsKOqcy7f98fktZC6L8A78G5KrLfqVdTDQo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21895,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPO3tACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmraEA//b/4YyVgjnpb89tgEV/JrpH97KWRl1Mx8Thq8mOw1TxDyO8JD\r\nFvzddxZP2COwu6JdRgilJCg8fqOQQbsCvLhoh6doGzbhiIhaV8mPhGAqrff4\r\n7EdBFEij6CLp3Os1UQck14PV8dftOfBy7wubhRxnlmzEMT2PNGXxLu4xt8Ip\r\nvoMGXiuhxZ5+odwyGDXvUryWrOow6T+Z1y6fTb6SDtTPBsLfwm7k4JUKfK6q\r\ntNU9RixSNdKADfHc/HD9pzi+tocTZt4J3nWbtCNgghGfDzaRt03hCBLvEFkM\r\n7heS2Ha6HisUquJ7bXCk0dZZXkiWe9SKXHw5Sb+lXo+xWrGu9wUaWzbWH4Jz\r\ncSX9K2/nMHeq88BzdIWXkENvRwym3+8nUHinel1+KtwrW3JI70HS8afnYLNL\r\nQnVfrkRaRqN5INZKFLTGC2c0l1nuUn5wKjQP12c/3klKSBuP6B6o6EueMmnL\r\n2VCvPsB7HOgyQK6DpA1VGn8Ke2fEILuuvw0Au++w675TIdO65dcsx044fh8D\r\nDi78DMKTB9niIB0GATk1MCyW76XnimCih4Z4h5tz2SgAvt/out3Xllo0B+tF\r\nUyAWUIq3bYZcIR1V7VYobHhOq1WCeLaGY2LOIoE3fzitvTMawC26pISnt44v\r\nWKZW49GIWabCMmt7Tkee8/OBF1agXP/rSW4=\r\n=SAb2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"567e88c9bbfa76eaeb7a0834a6bd16888340b1bb","scripts":{"lint":"eslint","pack":"npm pack","test":"jest","build":"eslint && (rm -r lib || tsc -p tsconfig.json)","commit":"cz","format":"prettier --write \"src/**/*.ts\" \"src/**/*.js\"","publish:major":"yarn build && npm version major && npm publish","publish:minor":"yarn build && npm version minor && npm publish","publish:patch":"yarn build && npm version patch && npm publish","test:coverage":"yarn test --coverage"},"_npmUser":{"name":"andrewvo89","email":"hello@andrewvo.co"},"repository":{"url":"git+https://github.com/andrewvo89/zod-error.git","type":"git"},"_npmVersion":"6.14.17","description":"Utilities to format and customize Zod error messages","directories":{},"_nodeVersion":"14.20.0","dependencies":{"zod":"^3.17.3"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.3","eslint":"^8.19.0","ts-jest":"^28.0.6","prettier":"^2.7.1","typescript":"^4.7.4","@types/jest":"^28.1.6","@types/node":"^18.0.3","eslint-config-prettier":"^8.5.0","@typescript-eslint/parser":"^5.30.6","cz-conventional-changelog":"3.3.0","@typescript-eslint/eslint-plugin":"^5.30.6"},"_npmOperationalInternal":{"tmp":"tmp/zod-error_1.0.4_1664937453192_0.4510219575413099","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"zod-error","version":"1.0.5","keywords":["zod","error","validation","nodejs","typescript"],"author":{"url":"https://andrewvo.co","name":"Andrew Vo-Nguyen","email":"hello@andrewvo.co"},"license":"MIT","_id":"zod-error@1.0.5","maintainers":[{"name":"andrewvo89","email":"hello@andrewvo.co"}],"homepage":"https://github.com/andrewvo89/zod-error","bugs":{"url":"https://github.com/andrewvo89/zod-error/issues"},"dist":{"shasum":"67f9a326ab144b75ce82e38891c394faadfbac83","tarball":"https://registry.npmjs.org/zod-error/-/zod-error-1.0.5.tgz","fileCount":73,"integrity":"sha512-dfLN+ds6YFUG3IOIrDbXewczB/fSh15GThi3SJmwL+/TAlMTPV/ebf4ttJt3MKdr1qzCYxnakWxmyOF3kI7DTA==","signatures":[{"sig":"MEUCIQDTaehU7vc/a5E7+pRcLe2PpREnJBtyH0NDCc1CnvkDhgIgUFnUPbyDu4IIi3ZKwfzr+vYCB/EDqTUxLIQjfJQjGXA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":65789,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjQ/DhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoGYg/9GaK48n08Cp+CXg+IOjRROjYLrl8lhHFEAUE2VwlKjvWDlm0b\r\ndkLW45cM3DIl4qQubm7dvNfjeFXbVFBxHn/GkaKd472ItDkgH8GC9txuP5KC\r\nxXJLYu0B6/MkcrzO9CwtXHdl65As67Ac5734o1nprUYaQ1V5dVryyeYygAe+\r\ntaJqKVPL8ggBt6t8G+VBmsHvfyPw/VgFnT7b+ZQpClR6fpYGm+gZLc7h5obP\r\ncQbvOCfQW7TmIcfumVrRVuIen7i86d4rP26Kw9jUxptp8fvghG4ZezI0jntb\r\nAurCA0utFvKrG8VVyxUwxxe+Si1MQ7+DTs4BBtiG+rymfgb2AFbPKdTllqif\r\nu74oCkNkwwXi/JgKQUgUDqO+rFjp5wfQXwepvP8QTvgzbbPMCrMyUN90Cy5i\r\nSvOn3t9fLar4ZpXWXC2K6166Hc8B8kiOU9VXP5Z72CD1F5HFf/avyjITuT9V\r\nGx1GiU7ELQ57x1FcogFy07xVrwVwToPRZOWhBHW4YAV7deorHnTR6ITSdQfI\r\nbMxRz76wneD/QQUr+dEoBDRL5RFuAPs2PW6qSlv3hfbzYtZpOTDJGAIxR+Df\r\nLQyhIvpJGMtJcSXJJSp5NtKv89wX39FuiYxVPoH2neWO1teRFOnaNDgNruWy\r\nMUfvBMzIob6Py/R6TBR4HnsCapJzRwsvvzs=\r\n=A15M\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"6e4210295d576af06ea84bc1ba012a6181a73359","scripts":{"lint":"eslint","pack":"npm pack","test":"jest","build":"eslint && (rm -r lib || tsc -p tsconfig.json)","commit":"cz","format":"prettier --write \"src/**/*.ts\" \"src/**/*.js\"","publish:major":"yarn build && npm version major && npm publish","publish:minor":"yarn build && npm version minor && npm publish","publish:patch":"yarn build && npm version patch && npm publish","test:coverage":"yarn test --coverage"},"_npmUser":{"name":"andrewvo89","email":"hello@andrewvo.co"},"repository":{"url":"git+https://github.com/andrewvo89/zod-error.git","type":"git"},"_npmVersion":"6.14.17","description":"Utilities to format and customize Zod error messages","directories":{},"_nodeVersion":"14.20.0","dependencies":{"zod":"^3.17.3"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.3","eslint":"^8.19.0","ts-jest":"^28.0.6","prettier":"^2.7.1","typescript":"^4.7.4","@types/jest":"^28.1.6","@types/node":"^18.0.3","eslint-config-prettier":"^8.5.0","@typescript-eslint/parser":"^5.30.6","cz-conventional-changelog":"3.3.0","@typescript-eslint/eslint-plugin":"^5.30.6"},"_npmOperationalInternal":{"tmp":"tmp/zod-error_1.0.5_1665396960863_0.28584519398291186","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"zod-error","version":"1.1.0","keywords":["zod","error","validation","nodejs","typescript"],"author":{"url":"https://andrewvo.co","name":"Andrew Vo-Nguyen","email":"hello@andrewvo.co"},"license":"MIT","_id":"zod-error@1.1.0","maintainers":[{"name":"andrewvo89","email":"hello@andrewvo.co"}],"homepage":"https://github.com/andrewvo89/zod-error","bugs":{"url":"https://github.com/andrewvo89/zod-error/issues"},"dist":{"shasum":"abb94577adc3613f3d6e05b928fe91cc222392b0","tarball":"https://registry.npmjs.org/zod-error/-/zod-error-1.1.0.tgz","fileCount":73,"integrity":"sha512-zZ0I9/eFQsaDqglBPOM5Y/kJzbTkoD6hNZGON/kcMe2WIfLse2DIwsZpLMfKwBmcciYaEg+DubtLMnAbZ4/rfA==","signatures":[{"sig":"MEQCIEfEM9b0IG7b/zYH9wxxsAvcI5PblupiYUPUpLIrJ4F+AiBAgslY42pApeD8S5kEukjXq7xUgb5G/L/UzumfPoQlAw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":65789,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjmTf6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqgXg//W77lI9j3IDXELu3V5iJaEIFAaO576ChRBcWGw58VLlpLMmIe\r\ndWCt1CeIJ3R+d69+6pOmeeTibvvkoIL8KMRPtx6hDj1OsHy+S4xCpg/CUVG2\r\n/86pwUa3QgsnZGTMlJ02eOTaNsk9TT2CA0Gyy2qY+PR1Z+pM0ni1fAHnKiiL\r\nEFOhmeZjBR/CHP3K6hwMY2ADdG0Ib9GD2uL0f16zvATK7qn6QmGYB04GpPcO\r\nKnA8edolm+qs9HZVPdBVq42bP/nN9gSLDDikG+fDLiF85wdCvXYm6uNX8sY+\r\nwtWMC45A+mGeqUsS/fsZE4IZyl7d0o+2sgsSoGPgGDgjAfgwP+JVcjvpWrX0\r\nEUpxOUQdlqC06Q1oTaqT1oz617dyyzbCHKJQ2GkpLoe0SdfQMWS/Vu1m2mFI\r\nVbsZfZk1U4Mivd9cLx7XSlvQSgfOEKZ9pNSzc5bgmXixaW4a41Q9pRHDIIMR\r\njWPfhueAVO98YJ8yrqHoo7cIawYjIuGn2Mr+79xPF7Wf5LqGIZypcbsTulI3\r\nniC2LlqpqUZ25R1aN0b7XV9ril89Plk4ZfxoMOue8B8idJFwcv3yNjRMug/S\r\nOmUtC5CQLWV4Zw6SUU0tl/K7T7AWnx1TGyzvlQtBoC8Za/gx6n+VnQHOt7pg\r\ndYA10nKV6HYSLc1Fnpbk8RsAXxOvkqXGxTE=\r\n=Kpxa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"ff268cd74ad535ddbe62376f723500ae291b315a","scripts":{"lint":"eslint","pack":"npm pack","test":"jest","build":"eslint && (rm -r lib || tsc -p tsconfig.json)","commit":"cz","format":"prettier --write \"src/**/*.ts\" \"src/**/*.js\"","publish:major":"yarn build && npm version major && npm publish","publish:minor":"yarn build && npm version minor && npm publish","publish:patch":"yarn build && npm version patch && npm publish","test:coverage":"yarn test --coverage"},"_npmUser":{"name":"andrewvo89","email":"hello@andrewvo.co"},"repository":{"url":"git+https://github.com/andrewvo89/zod-error.git","type":"git"},"_npmVersion":"8.19.3","description":"Utilities to format and customize Zod error messages","directories":{},"_nodeVersion":"19.2.0","dependencies":{"zod":"^3.20.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.3","eslint":"^8.19.0","ts-jest":"^28.0.6","prettier":"^2.7.1","typescript":"^4.7.4","@types/jest":"^28.1.6","@types/node":"^18.0.3","eslint-config-prettier":"^8.5.0","@typescript-eslint/parser":"^5.30.6","cz-conventional-changelog":"3.3.0","@typescript-eslint/eslint-plugin":"^5.30.6"},"_npmOperationalInternal":{"tmp":"tmp/zod-error_1.1.0_1670985722760_0.4357573452414756","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"zod-error","version":"1.1.1","keywords":["zod","error","validation","nodejs","typescript"],"author":{"url":"https://andrewvo.co","name":"Andrew Vo-Nguyen","email":"hello@andrewvo.co"},"license":"MIT","_id":"zod-error@1.1.1","maintainers":[{"name":"andrewvo89","email":"hello@andrewvo.co"}],"homepage":"https://github.com/andrewvo89/zod-error","bugs":{"url":"https://github.com/andrewvo89/zod-error/issues"},"dist":{"shasum":"93f28f80a1c63a598c5875680268517f587f6831","tarball":"https://registry.npmjs.org/zod-error/-/zod-error-1.1.1.tgz","fileCount":73,"integrity":"sha512-2V93GFtoilz42nqbmr0l874x7Or9JNRF2wIwzC+RQlhRuVKExkdGmTMv9qeurIqR/3IsrNJb/jYRA3BgELfSKg==","signatures":[{"sig":"MEQCIFDYlhfJA8i1olY5NaQt+LDS1MHp3GNf8pTHhnfb5h9hAiBMukErYAP33aHMRMuFlT5H+HhvbUZMFSg9BJujWI/17A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":65886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjz7BgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrFZQ//WV25hjdO+JXaZvVIild3/cIJCRTFnlcpNtXj9VICgNFEtRWT\r\nQu/Feif0UPV8fUumh5L3/0xCnXEPqKVC/KgBhAfrtU80ZEA/GeKUiuuV0CaR\r\nWRp2bRDHolszjMpf1biiPqG7vdPlUybZhKIR1RLLiDy6qT4IiPM2I4c69u8T\r\nDd8XGnLktdkdZyNNnkn64xQMfbA0DifY7V190BIbn0oGuN/vrnttR1PLM+Xz\r\nVqO5WEZLhl3xzzMqy1mFsVWoV0aYWV0hLOYK/FNscrL/IcSQZ0L4RxW/p3Zx\r\nik5uYWTZJOhTmZeI1epmRlwGAy8NzUc5k+sAvzDjSZQDabHJ0LZlaRb6avXY\r\n3W7r3s/imT0Q7QMyB8Y+hCebwPxwg4lRb6u9R24aVAyWueLA0nKglUSX4fmK\r\n5OAyL0ZyxEmWp/VlzoE2ivnryH0B/BDt7ZsTTMFGx8kbrUvyIuPGN8HZ8hKT\r\nUqvUtog+aZxOaA8HfvIHKxAgnH46OaYj7Rvz8CkjzErjJeuX9o+XooDNA3Nw\r\n4x8AlakBACzZ3M1mNpJ3R3V4REDQCfdoA2dQyU/7U6MZnwPSv75pNhz47/Nd\r\n6cSWcXPZXrCERv14tiKcV2g3Znot/MjSoLMAWZ55Dlg3nV3FwpKR4ZDyickI\r\nipiVqKRt0o3RV7l2/XEJvJUXkZdVS8pUTBw=\r\n=sseh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"856b65a5c1bb9def2834195841f7cc58949a6452","scripts":{"lint":"eslint","pack":"npm pack","test":"jest","build":"eslint && (rm -r lib || tsc -p tsconfig.json)","commit":"cz","format":"prettier --write \"src/**/*.ts\" \"src/**/*.js\"","release:major":"yarn build && npm version major && npm publish","release:minor":"yarn build && npm version minor && npm publish","release:patch":"yarn build && npm version patch && npm publish","test:coverage":"yarn test --coverage"},"_npmUser":{"name":"andrewvo89","email":"hello@andrewvo.co"},"repository":{"url":"git+https://github.com/andrewvo89/zod-error.git","type":"git"},"_npmVersion":"8.19.3","description":"Utilities to format and customize Zod error messages","directories":{},"_nodeVersion":"19.2.0","dependencies":{"zod":"^3.20.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.3","eslint":"^8.19.0","ts-jest":"^28.0.6","prettier":"^2.7.1","typescript":"^4.7.4","@types/jest":"^28.1.6","@types/node":"^18.0.3","eslint-config-prettier":"^8.5.0","@typescript-eslint/parser":"^5.30.6","cz-conventional-changelog":"3.3.0","@typescript-eslint/eslint-plugin":"^5.30.6"},"_npmOperationalInternal":{"tmp":"tmp/zod-error_1.1.1_1674555488096_0.577249843368298","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"zod-error","version":"1.3.0","keywords":["zod","error","validation","nodejs","typescript"],"author":{"url":"https://andrewvo.co","name":"Andrew Vo-Nguyen","email":"hello@andrewvo.co"},"license":"MIT","_id":"zod-error@1.3.0","maintainers":[{"name":"andrewvo89","email":"hello@andrewvo.co"}],"homepage":"https://github.com/andrewvo89/zod-error","bugs":{"url":"https://github.com/andrewvo89/zod-error/issues"},"dist":{"shasum":"76f96839255a6ac0859b759794fcc9668dc834fa","tarball":"https://registry.npmjs.org/zod-error/-/zod-error-1.3.0.tgz","fileCount":73,"integrity":"sha512-hgc/wSK7A1YsLIZSQceAdqjw1WSbuAIQZwGiUy/Ps4Pr0zJBrFF6YpICp9KLt4G6UjPD8LJHFH5q1z2da+A94g==","signatures":[{"sig":"MEQCIGzlVyCKN2RezEIof64NQL5pW/+u7VFT9MdraXFw0xliAiBYR4ZaXZeAUb9Q9xvQoojEcmWLSZo0FacLBQKQf6deBQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":66553,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8TNgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpA7w//e5lXCIamN4I6NDCRAbhLgIIdTF23zSkuR3pkktmxtryu/UOA\r\nuxMfZZJU/AMA4cs+ArBz6LS1YDVQ4iMGOO28EnbgHjZisgIpZqd9rAtg22+0\r\nQG8y42bFZSfQaIj7E7ADANj7FWtt3RsW+vVRn7F+fMJJ7MY+28joq2A8k03P\r\n+z1YHLJRtUO2BcIKWbCT/BDBVAXBYvZMw3h0Ahvq07tN8lmbGXN572XGjMU7\r\n46u9R3TsSQ+16Xlmx9EBM1kVTPyj0S/K+rNNm3iymmThPU1ybl0NmirG75cs\r\nIfhJZLXVQOnqZvCSCyfK/RZOSdfGu3vgOUeTeLti14bJxxRCVKTz3cqo9XU4\r\n+I1KeHaAf+jp9Zbu+7+/BQSuNWWjKsqB2lnTFl4CP3MVvzICXucWsydfVeUs\r\ni7UhuTJTdWB+NVPYIqyTJpb2gssBY2y4yIIMwiXKIOJ8voTuSfuULU0F4CIH\r\nSgcPCAgmDxxGTHy5NS9CZmbgWX5zIu6Ytf48nbka3CMOxdW6jLr9EaC+V0Mc\r\nkOHKFvB+jwXzs+u55p1Wa8H861uT5P1H98TNIT6BbzPUVdCB5jQzi7FtoAL6\r\nDEdOvuWRfTK3PMZr4nxebwIVM5khSJnyoD2II1bi0TIz/WHqK5QE8JAp/F+y\r\nR6MDIavc3Opav+/zUWt4tEguj/yZbLwNe10=\r\n=dKDd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"a5b14a1af3e2e1a788301dedbb9d05853d8bdd4a","scripts":{"lint":"eslint","pack":"npm pack","test":"jest","build":"eslint && rm -r -f lib && tsc -p tsconfig.json","commit":"cz","format":"prettier --write \"src/**/*.ts\" \"src/**/*.js\"","release:major":"yarn build && npm version major && npm publish","release:minor":"yarn build && npm version minor && npm publish","release:patch":"yarn build && npm version patch && npm publish","test:coverage":"yarn test --coverage"},"_npmUser":{"name":"andrewvo89","email":"hello@andrewvo.co"},"repository":{"url":"git+https://github.com/andrewvo89/zod-error.git","type":"git"},"_npmVersion":"8.19.3","description":"Utilities to format and customize Zod error messages","directories":{},"_nodeVersion":"19.2.0","dependencies":{"zod":"^3.20.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.3","eslint":"^8.19.0","ts-jest":"^28.0.6","prettier":"^2.7.1","typescript":"^4.7.4","@types/jest":"^28.1.6","@types/node":"^18.0.3","eslint-config-prettier":"^8.5.0","@typescript-eslint/parser":"^5.30.6","cz-conventional-changelog":"3.3.0","@typescript-eslint/eslint-plugin":"^5.30.6"},"_npmOperationalInternal":{"tmp":"tmp/zod-error_1.3.0_1676751712478_0.48440950497574886","host":"s3://npm-registry-packages"}},"1.4.0":{"name":"zod-error","version":"1.4.0","keywords":["zod","error","validation","nodejs","typescript"],"author":{"url":"https://andrewvo.co","name":"Andrew Vo-Nguyen","email":"hello@andrewvo.co"},"license":"MIT","_id":"zod-error@1.4.0","maintainers":[{"name":"andrewvo89","email":"hello@andrewvo.co"}],"homepage":"https://github.com/andrewvo89/zod-error","bugs":{"url":"https://github.com/andrewvo89/zod-error/issues"},"dist":{"shasum":"b20ea9215d291b4a58092b801475e650344b9578","tarball":"https://registry.npmjs.org/zod-error/-/zod-error-1.4.0.tgz","fileCount":74,"integrity":"sha512-6+D2SevoPpik4Dcp92CPXBQ5VTy5js0P2RR6pHJo8W6jEyfdPmj8uWz3aJqp87sfjunIe4nl4q7VOjA/T/ODSw==","signatures":[{"sig":"MEQCIEVnQwDIdlrH9UzXCVS3WwXOtDlrdZR08QUmahOMTTWSAiA22jvmYb1S4zBOj789r+KZrzW464p2JF0xEpw6Tf4l1g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":72895,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9fihACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpyiA/+OoBa6AfdM46gx1FEFwjYmHMLxSI5iTHlQ4HfH1Vh8ll7lYyh\r\noYENml/2QMSqLq5c/u371TdMGnDCLlAS2taM/mJeTtplPhoPEppLcPL4bgza\r\nf7V8zJh8LJSrFqOuHr8NpNU0LDO8qrgEjzqWicymUMrA/oSP9q2mok9oOurx\r\n2fuiS2ev6f0Hi1wbJLtxi6EhUjYBFZ6/8+bTjvzUpyHxd1a63K8RCKLTtevF\r\nruG0AkiOnbpdqF/TpD8hqGxCdYqeNx1553BWRu/QpdKvKAWnCg0ZUs8b+HY4\r\nFBBHOqPFSbq3dL4DG+8zV2nY+eEHXUWYJekw0+zE1mUn3EXGKOfYj6loM3rb\r\nnLRGTwQ6QSyYACosvxcwGgVqRNdjdXJGQimB62brOiE2QTs2CQ3zw8QCCTs1\r\nKwNVhVg9YDlXDGqZa/ob+kuJ7oUSCVxSOoyiZu5q+WgUaVGfImaRPMt0+a40\r\nJfAInN23Nf2sq6ktO0lYQe4V232Mqb4LEtrA0XOH+gagw4aqIBakncn7qyqP\r\nBRtUh+cVCPFzzkr873pt1SH6Fnu/EGSZVzb0lfAvCS78cieaSsFD7QLpOLXh\r\njQlLn6xp70T5lW1JB9uP+6f1wygdszhtvr+OOxAU52eL0d3zGfWOYffih+6u\r\njJMZfLyXdBpgOnq6oAzKK/Md7/tkqmL0QHQ=\r\n=h1Nv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"9159b53c562ea709b855ce042bbae9eabe5f71ef","scripts":{"lint":"eslint","pack":"npm pack","test":"jest","build":"eslint && rm -r -f lib && tsc -p tsconfig.json","commit":"cz","format":"prettier --write \"src/**/*.ts\" \"src/**/*.js\"","release:major":"yarn build && npm version major && npm publish","release:minor":"yarn build && npm version minor && npm publish","release:patch":"yarn build && npm version patch && npm publish","test:coverage":"yarn test --coverage"},"_npmUser":{"name":"andrewvo89","email":"hello@andrewvo.co"},"repository":{"url":"git+https://github.com/andrewvo89/zod-error.git","type":"git"},"_npmVersion":"8.19.3","description":"Utilities to format and customize Zod error messages","directories":{},"_nodeVersion":"19.2.0","dependencies":{"zod":"^3.20.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.3","eslint":"^8.19.0","ts-jest":"^28.0.6","prettier":"^2.7.1","typescript":"^4.7.4","@types/jest":"^28.1.6","@types/node":"^18.0.3","eslint-config-prettier":"^8.5.0","@typescript-eslint/parser":"^5.30.6","cz-conventional-changelog":"3.3.0","@typescript-eslint/eslint-plugin":"^5.30.6"},"_npmOperationalInternal":{"tmp":"tmp/zod-error_1.4.0_1677064353246_0.11955204405250397","host":"s3://npm-registry-packages"}},"1.5.0":{"name":"zod-error","version":"1.5.0","keywords":["zod","error","validation","nodejs","typescript"],"author":{"url":"https://andrewvo.co","name":"Andrew Vo-Nguyen","email":"hello@andrewvo.co"},"license":"MIT","_id":"zod-error@1.5.0","maintainers":[{"name":"andrewvo89","email":"hello@andrewvo.co"}],"homepage":"https://github.com/andrewvo89/zod-error","bugs":{"url":"https://github.com/andrewvo89/zod-error/issues"},"dist":{"shasum":"bfdc20532746d564c88c51bd36267d6b7d9b9a5d","tarball":"https://registry.npmjs.org/zod-error/-/zod-error-1.5.0.tgz","fileCount":73,"integrity":"sha512-zzopKZ/skI9iXpqCEPj+iLCKl9b88E43ehcU+sbRoHuwGd9F1IDVGQ70TyO6kmfiRL1g4IXkjsXK+g1gLYl4WQ==","signatures":[{"sig":"MEUCIEcUIoivl7vc0035BeWOoGfe3XwRPAL7nJzRyAIQVivLAiEAnNm3gDxL4V3TobJwHZf1XMgQk/joX+i6QF//3zfA/RI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":66719,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9f47ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqCcA//UjGzUtAFMz6HCMsHckjzQE0FEswAgO2cYqflFx/XB21K1pZE\r\nVveEHrGsGjl6PgpzeUDKoYi7Yg0XfBG8jgG7UCCT04hV1qBj5HiACYD3joub\r\nZorH/oOLj2yrz/vt1JWY4yPzdMKHHDH+s9nmsWjhamgU51m4gA8QxIt/X3aH\r\nayV1xnXbmRVkpv/GnuXPOHAx2rMcM0DHp2cxDNkPn+EF8FoqP6x98uP4X5gW\r\nl9i2vFcJyLH0Lhg38GXoVVZbKMvY2UVW/vvq48yk7aE8dKxC+3wWQwd0sCCj\r\ny0KXhV8gQ5CqgSQ1ryDJtQs9sH6QtFAi1xUOcPC9oPYqqieIu5Xa3wISM8v3\r\nY17HYjayJSfSBvNzzUiobqBDB3W3yl6SUT488snNETLUWr/rrePTWosa3Kmd\r\nD9jSY5KRYDArej571ynKqnULp39RtNSemO55PEhYIN7TPWI2Nr9cJT1U3FQU\r\n5942ip+BUfmtJjwGI4syFXBk6dW7Vxk3ls4FkOm3NUoPTxPLrtomTIhnsXGU\r\naFYmWsPpFK8Rtkfjim3YrODkmXCqvYE6ThSaSw3lctQYfl6AVCkiTWBuHJdy\r\nGNjSI7G7cXFkU/HskzMJztJQNMh5SwOyi+keUt6/Wsxb8lNg6IbotyL9LOT6\r\nejaXdSluh8zkhxPU7DThEVA6jvhfeYZXGKs=\r\n=MGy+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","types":"lib/index.d.ts","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"568b678327eb72ed4f668f78b137d8b3d7eb4614","scripts":{"lint":"eslint","pack":"npm pack","test":"jest","build":"eslint && rm -r -f lib && tsc -p tsconfig.json","commit":"cz","format":"prettier --write \"src/**/*.ts\" \"src/**/*.js\"","release:major":"yarn build && npm version major && npm publish","release:minor":"yarn build && npm version minor && npm publish","release:patch":"yarn build && npm version patch && npm publish","test:coverage":"yarn test --coverage"},"_npmUser":{"name":"andrewvo89","email":"hello@andrewvo.co"},"repository":{"url":"git+https://github.com/andrewvo89/zod-error.git","type":"git"},"_npmVersion":"8.19.3","description":"Utilities to format and customize Zod error messages","directories":{},"_nodeVersion":"19.2.0","dependencies":{"zod":"^3.20.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.3","eslint":"^8.19.0","ts-jest":"^28.0.6","prettier":"^2.7.1","typescript":"^4.7.4","@types/jest":"^28.1.6","@types/node":"^18.0.3","eslint-config-prettier":"^8.5.0","@typescript-eslint/parser":"^5.30.6","cz-conventional-changelog":"3.3.0","@typescript-eslint/eslint-plugin":"^5.30.6"},"_npmOperationalInternal":{"tmp":"tmp/zod-error_1.5.0_1677065786864_0.649037693026139","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"zod-error","license":"MIT","author":{"name":"Andrew Vo-Nguyen","email":"hello@andrewvo.co","url":"https://andrewvo.co"},"version":"2.0.0","description":"Utilities to format and customize Zod error messages","homepage":"https://github.com/andrewvo89/zod-error","repository":{"type":"git","url":"git+https://github.com/andrewvo89/zod-error.git"},"keywords":["zod","error","validation","nodejs","typescript"],"scripts":{"build":"eslint && vitest run && tsc --noEmit && rm -r -f lib && tsc -p tsconfig.json","commit":"cz","format":"prettier --write \"src/**/*.ts\" \"src/**/*.js\"","lint":"eslint","pack":"npm pack","release:major":"yarn build && npm version major && npm publish","release:minor":"yarn build && npm version minor && npm publish","release:patch":"yarn build && npm version patch && npm publish","test":"vitest run","test:coverage":"vitest run --coverage","typecheck":"tsc --noEmit"},"devDependencies":{"@types/node":"^18.0.3","@typescript-eslint/eslint-plugin":"^5.30.6","@typescript-eslint/parser":"^5.30.6","@vitest/coverage-v8":"3.2.4","@vitest/ui":"3.2.4","@zod/core":"^0.11.6","cz-conventional-changelog":"3.3.0","eslint":"^8.19.0","eslint-config-prettier":"^8.5.0","prettier":"^2.7.1","typescript":"^5.9.3","vitest":"^3.2.4","zod":"^4.1.12"},"peerDependencies":{"zod":"^4.0.0"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"main":"lib/index.js","types":"lib/index.d.ts","packageManager":"yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610","_id":"zod-error@2.0.0","gitHead":"4ed967ede532d7752b879b8df6859c0af8fa557c","bugs":{"url":"https://github.com/andrewvo89/zod-error/issues"},"_nodeVersion":"20.19.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-ivSoPm7h5SEGG8GUvQ7YTwrnEx36qNmUIU5hSIGcqcdl7+ZFoTrYXAdQEs3KP/rkihrrR9REEdOeGU+fWdMoNw==","shasum":"fc89b5a4e0d27901cb8c4cf1ad847d81511c48b5","tarball":"https://registry.npmjs.org/zod-error/-/zod-error-2.0.0.tgz","fileCount":71,"unpackedSize":73950,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDgw0QaUZPbSFPRlvhuqG86AxaHrV/LcrpiSoYZRxc7cAiBsX8vpR8KJj99QSySeXfXKh0DxyTmHNQjtXWSRDkPnjQ=="}]},"_npmUser":{"name":"andrewvo89","email":"hello@andrewvo.co"},"directories":{},"maintainers":[{"name":"andrewvo89","email":"hello@andrewvo.co"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/zod-error_2.0.0_1760762148212_0.41610303819289673"},"_hasShrinkwrap":false}},"time":{"created":"2022-07-15T11:20:24.967Z","modified":"2025-10-18T04:35:48.594Z","1.0.0":"2022-07-15T11:20:25.119Z","1.0.1":"2022-07-15T11:41:34.888Z","1.0.2":"2022-07-15T12:03:05.678Z","1.0.3":"2022-07-18T02:49:04.697Z","1.0.4":"2022-10-05T02:37:33.410Z","1.0.5":"2022-10-10T10:16:01.043Z","1.1.0":"2022-12-14T02:42:02.938Z","1.1.1":"2023-01-24T10:18:08.269Z","1.3.0":"2023-02-18T20:21:52.729Z","1.4.0":"2023-02-22T11:12:33.391Z","1.5.0":"2023-02-22T11:36:27.171Z","2.0.0":"2025-10-18T04:35:48.407Z"},"bugs":{"url":"https://github.com/andrewvo89/zod-error/issues"},"author":{"name":"Andrew Vo-Nguyen","email":"hello@andrewvo.co","url":"https://andrewvo.co"},"license":"MIT","homepage":"https://github.com/andrewvo89/zod-error","keywords":["zod","error","validation","nodejs","typescript"],"repository":{"type":"git","url":"git+https://github.com/andrewvo89/zod-error.git"},"description":"Utilities to format and customize Zod error messages","maintainers":[{"name":"andrewvo89","email":"hello@andrewvo.co"}],"readme":"<h1 align=\"center\">Zod Error</h1>\r\n\r\n<div align=\"center\">\r\n\r\n[![Status](https://img.shields.io/badge/status-active-blue)](https://github.com/andrewvo89/zod-error)\r\n[![GitHub Issues](https://img.shields.io/github/issues/andrewvo89/zod-error?color=blue)](https://github.com/andrewvo89/zod-error/issues)\r\n[![GitHub Pull Requests](https://img.shields.io/github/issues-pr/andrewvo89/zod-error?color=blue)](https://github.com/andrewvo89/zod-error/pulls)\r\n[![License](https://img.shields.io/github/license/andrewvo89/zod-error?color=blue)](/LICENSE)\r\n\r\n</div>\r\n\r\n---\r\n\r\n<p align=\"center\">Utilities to format and customize Zod error messages.</p>\r\n\r\n## Table of Contents\r\n\r\n- [About](#about)\r\n- [Installation](#installation)\r\n- [Usage](#usage)\r\n- [Authors](#authors)\r\n- [Acknowledgments](#acknowledgements)\r\n\r\n## About\r\n\r\nZod Error converts and formats Zod Issues into a customizable error message string that can be consumed by various applications such as browser error message modals or server api error messages.\r\n\r\n[Zod v4](https://zod.dev/v4) has a simple API to stringify errors. It may be sufficient enough for your needs:\r\nhttps://zod.dev/error-formatting?id=zprettifyerror\r\n\r\n### Basic Usage\r\n\r\nZod Error converts an array of Zod Issues that look like this:\r\n\r\n```ts\r\n[\r\n  {\r\n    code: 'invalid_type',\r\n    expected: 'string',\r\n    received: 'undefined',\r\n    path: ['name'],\r\n    message: 'Required',\r\n  },\r\n  {\r\n    code: 'invalid_type',\r\n    expected: 'string',\r\n    received: 'number',\r\n    path: ['pets', 1],\r\n    message: 'Expected string, received number',\r\n  },\r\n];\r\n```\r\n\r\ninto this:\r\n\r\n```\r\nError #1: Code: invalid_type ~ Path: name ~ Message: Required | Error #2: Code: invalid_type ~ Path: pets[1] ~ Message: Expected string, received number\r\n```\r\n\r\n## Versions\r\n\r\nWith the release of [Zod v4](https://zod.dev/v4), `zod-error` has moved to v2 to meet the new API.\r\n| Zod | Zod Error |\r\n|-----|-----------|\r\n| 3.x.x | 1.x.x |\r\n| 4.x.x | 2.x.x |\r\n\r\n## Installation\r\n\r\nInstall the package using your favorite package manager:\r\n\r\n```\r\nnpm install zod-error\r\nyarn add zod-error\r\npnpm add zod-error\r\n```\r\n\r\n## Usage\r\n\r\n### Message Format\r\n\r\n```\r\n\r\n🕓 2022-07-14T20:19:52.290Z ~ Error #1: Code: invalid_type ~ Path: ratings[0].speed ~ Message: Expected number, received string 🔥 Error #2: Code: invalid_enum_value ~ Path: position ~ Message: Invalid enum value. Expected 'C' | 'PF' | 'SF' | 'SG' | 'PG', received 'Center'🔚\r\n\r\n```\r\n\r\n| Value                                                                                                                                               | Description                                        |\r\n| --------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------- |\r\n| `🕓 2022-07-14T20:19:15.660Z ~`                                                                                                                     | Prefix                                             |\r\n| `~`                                                                                                                                                 | Component delimiter                                |\r\n| `Error #1:`                                                                                                                                         | Added using `options.transform()`                  |\r\n| `Code: `                                                                                                                                            | Code label                                         |\r\n| `invalid_type`                                                                                                                                      | Code value                                         |\r\n| `Path: `                                                                                                                                            | Path label                                         |\r\n| `ratings[0].speed`                                                                                                                                  | Path value                                         |\r\n| `Message: `                                                                                                                                         | Message label                                      |\r\n| `Expected number, received string`                                                                                                                  | Message value                                      |\r\n| `🔥`                                                                                                                                                | Error delimiter                                    |\r\n| `Error #2: Code: invalid_enum_value ~ Path: position ~ Message: Invalid enum value. Expected 'C' \\| 'PF' \\| 'SF' \\| 'SG'\\| 'PG', received 'Center'` | Error from second ZodIssue from Issues array input |\r\n| `🔚`                                                                                                                                                | Suffix                                             |\r\n\r\n### Options\r\n\r\nError messages are completely customizable from label names to delimiters, prefixes, suffixes and the inclusion/exclusion of components (code, path, message). An options argument can be passed to any Zod Error function as the last argument to customize the error message.\r\n\r\n| Property   | Value                                                             | Description                                                               |\r\n| ---------- | ----------------------------------------------------------------- | ------------------------------------------------------------------------- |\r\n| code?      | [CodeOptions](#codeoptions)                                       | Options to customize the code component of the error message.             |\r\n| delimiter? | [DelimiterOptions](#delimiteroptions)                             | Set the delimiter between error messages and between components.          |\r\n| maxErrors? | number                                                            | Maximum amount of error messages to display in final concatenated string. |\r\n| message?   | [MessageOptions](#messageoptions)                                 | Options to customize the message component of the error message.          |\r\n| path?      | [PathOptions](#pathoptions)                                       | Options to customize the code path of the error message.                  |\r\n| prefix?    | string                                                            | Add a prefix to the start of the final concatenated message.              |\r\n| suffix?    | string                                                            | Add a suffix to the end of the final concatenated string.                 |\r\n| transform? | (params: [TransformErrorParams](#transformerrorparams)) => string | A custom function to transform the format of each error message.          |\r\n\r\n### CodeOptions\r\n\r\n| Property   | Value                                                                     | Description                                                                                             |\r\n| ---------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |\r\n| enabled    | boolean                                                                   | Display or hide the code component of the error message. Defaults to `true`.                            |\r\n| label?     | string \\| null                                                            | Set a custom label. Defaults to `Code: `. Only available if `enabled` is `true`.                        |\r\n| transform? | (params: [TransformComponentParams](#transformcomponentparams)) => string | A custom function to transform the format of the code component. Only available if `enabled` is `true`. |\r\n\r\n### DelimiterOptions\r\n\r\n| Property   | Value  | Description                                                                                   |\r\n| ---------- | ------ | --------------------------------------------------------------------------------------------- |\r\n| component? | string | The delimiter between each component during the concatentation process. Defaults to `~`.      |\r\n| error?     | string | The delimiter between each error message during the concatentation process. Defaults to `\\|`. |\r\n\r\n### MessageOptions\r\n\r\n| Property   | Value                                                                     | Description                                                                                                |\r\n| ---------- | ------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |\r\n| enabled    | boolean                                                                   | Display or hide the message component of the error message. Defaults to `true`.                            |\r\n| label?     | string \\| null                                                            | Set a custom label. Defaults to `Message: `. Only available if `enabled` is `true`.                        |\r\n| transform? | (params: [TransformComponentParams](#transformcomponentparams)) => string | A custom function to transform the format of the message component. Only available if `enabled` is `true`. |\r\n\r\n### PathOptions\r\n\r\n| Property             | Value                                                                     | Description                                                                                                                                                              |\r\n| -------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\r\n| arraySquareBrackets? | boolean                                                                   | Adds square brackets around index number in the path. Only available if `enabled` is `true` and `type` is `objectNotation` or `breadcrumbs`. Defaults to `true`.         |\r\n| delimiter?           | string                                                                    | Set a custom delimeter between each path element. Only available if `enabled` is `true` and `type` is `breadcrumbs`. Defaults to `>`.                                    |\r\n| enabled              | boolean                                                                   | Display or hide the path component of the error message. Defaults to `true`.                                                                                             |\r\n| label?               | string \\| null                                                            | Set a custom label. Defaults to `Message: `. Only available if `enabled` is `true`.                                                                                      |\r\n| transform?           | (params: [TransformComponentParams](#transformcomponentparams)) => string | A custom function to transform the format of the message component. Only available if `enabled` is `true`.                                                               |\r\n| type                 | 'objectNotation' \\| 'zodPathArray' \\| 'breadcrumbs'                       | Sets the style of the path string.<br/>objectNotation = car.wheels[1].tyre <br/>zodPathArray = [\"car\", \"wheels\", 1, \"tyre\"]<br/>breadcrumbs = car > wheels > [1] > tyre. |\r\n\r\n### TransformComponentParams\r\n\r\n| Property  | Value  | Description                                                       |\r\n| --------- | ------ | ----------------------------------------------------------------- |\r\n| component | string | The transformed component string. Defaults to `${label}${value}`. |\r\n| label     | string | The label of the component.                                       |\r\n| value     | string | The value of the component.                                       |\r\n\r\n### TransformErrorParams\r\n\r\n| Property         | Value            | Description                                                               |\r\n| ---------------- | ---------------- | ------------------------------------------------------------------------- |\r\n| codeComponent    | string           | The transformed code component string. Defaults to `${label}${value}`.    |\r\n| errorMessage     | string           | The transformed error message consisting of all components concatentated. |\r\n| index            | string           | The index of the current error message.                                   |\r\n| issue            | z.core.$ZodIssue | The original ZodIssue object.                                             |\r\n| messageComponent | string           | The transformed message component string. Defaults to `${label}${value}`. |\r\n| pathComponent    | string           | The transformed path component string. Defaults to `${label}${value}`.    |\r\n\r\n### Examples\r\n\r\nThere are 6 ways to consume Zod Error. `generateErrorMessage()`, `generateError()`, `parse()`, `parseAsync()`, `safeParse()` and `safeParseAsync()`.\r\n\r\n#### `generateErrorMessage(issues: z.core.$ZodIssue[], options?: ErrorMessageOptions): string`\r\n\r\nFormats an array of Zod Issues as a result of `z.parse()`, `z.parseAsync()`, `z.safeParse()` or `z.safeParseAsync()` and outputs as a single string. Multiple errors are concatenated into a single readable string.\r\n\r\n```ts\r\nimport { generateErrorMessage, ErrorMessageOptions } from 'zod-error';\r\nimport { z } from 'zod';\r\n\r\nenum Color {\r\n  Red = 'Red',\r\n  Blue = 'Blue',\r\n}\r\n\r\nconst options: ErrorMessageOptions = {\r\n  delimiter: {\r\n    error: ' 🔥 ',\r\n  },\r\n  transform: ({ errorMessage, index }) => `Error #${index + 1}: ${errorMessage}`,\r\n};\r\n\r\nconst schema = z.object({\r\n  color: z.enum(Color),\r\n  shape: z.string(),\r\n  size: z.number().gt(0),\r\n});\r\n\r\nconst data = {\r\n  color: 'Green',\r\n  size: -1,\r\n};\r\n\r\nconst result = schema.safeParse(data);\r\nif (!result.success) {\r\n  const errorMessage = generateErrorMessage(result.error.issues, options);\r\n  throw new Error(errorMessage);\r\n}\r\n```\r\n\r\nError Message:\r\n\r\n```\r\nError #1: Code: invalid_enum_value ~ Path: color ~ Message: Invalid enum value. Expected 'Red' | 'Blue', received 'Green' 🔥 Error #2: Code: invalid_type ~ Path: shape ~ Message: Required 🔥 Error #3: Code: too_small ~ Path: size ~ Message: Number must be greater than 0\r\n```\r\n\r\n#### `generateError(issues: z.core.$ZodIssue[], options?: ErrorMessageOptions): Error`\r\n\r\nFormats an array of Zod Issues as a result of `z.parse()`, `z.parseAsync()`, `z.safeParse()` or `z.safeParseAsync()` and outputs as a JavaScript Error object. Multiple errors are concatenated into a single readable string.\r\n\r\n```ts\r\nimport { ErrorMessageOptions, generateError } from 'zod-error';\r\nimport { z } from 'zod';\r\n\r\nconst options: ErrorMessageOptions = {\r\n  maxErrors: 2,\r\n  delimiter: {\r\n    component: ' - ',\r\n  },\r\n  path: {\r\n    enabled: true,\r\n    type: 'zodPathArray',\r\n    label: 'Zod Path: ',\r\n  },\r\n  code: {\r\n    enabled: false,\r\n  },\r\n  message: {\r\n    enabled: true,\r\n    label: '',\r\n  },\r\n};\r\n\r\nconst schema = z.object({\r\n  dates: z.object({\r\n    purchased: z.date(),\r\n    fulfilled: z.date(),\r\n  }),\r\n  item: z.string(),\r\n  price: z.number(),\r\n});\r\n\r\nconst data = {\r\n  dates: { purchased: 'yesterday' },\r\n  item: 1,\r\n  price: '1,000',\r\n};\r\n\r\ntry {\r\n  schema.parse(data);\r\n} catch (error) {\r\n  const genericError = generateError(error, options);\r\n  throw genericError;\r\n}\r\n```\r\n\r\nError Message:\r\n\r\n```\r\nZod Path: [\"dates\", \"purchased\"] - Expected date, received string | Zod Path: [\"dates\", \"fulfilled\"] - Required\r\n```\r\n\r\n#### `parse<T extends z.ZodTypeAny>(schema: T, data: unknown, options?: ErrorMessageOptions): T['_output']`\r\n\r\nReplaces Zod's `.parse()` function by replacing Zod's `ZodError` with a generic JavaScript `Error` object where the custom formatted message can be accessed on `error.message`.\r\n\r\n```ts\r\nimport { ErrorMessageOptions, parse } from 'zod-error';\r\nimport { z } from 'zod';\r\n\r\nconst options: ErrorMessageOptions = {\r\n  delimiter: {\r\n    error: ' ',\r\n  },\r\n  path: {\r\n    enabled: true,\r\n    type: 'objectNotation',\r\n    transform: ({ label, value }) => `<${label}: ${value}>`,\r\n  },\r\n  code: {\r\n    enabled: true,\r\n    transform: ({ label, value }) => `<${label}: ${value}>`,\r\n  },\r\n  message: {\r\n    enabled: true,\r\n    transform: ({ label, value }) => `<${label}: ${value}>`,\r\n  },\r\n  transform: ({ errorMessage }) => `👉 ${errorMessage} 👈`,\r\n};\r\n\r\nconst schema = z.object({\r\n  animal: z.enum(['🐶', '🐱', '🐵']),\r\n  quantity: z.number().gte(1),\r\n});\r\n\r\nconst data = {\r\n  animal: '🐼',\r\n  quantity: 0,\r\n};\r\n\r\ntry {\r\n  const safeData = parse(schema, data, options);\r\n  /**\r\n   * Asynchronous version\r\n   * const safeData = await parseAsync(schema, data, options);\r\n   */\r\n} catch (error) {\r\n  /**\r\n   * Replaces ZodError with a JavaScript\r\n   * Error object with custom formatted message.\r\n   */\r\n  if (error instanceof Error) {\r\n    console.error(error.message);\r\n  }\r\n}\r\n```\r\n\r\nError Message:\r\n\r\n```\r\n👉 <Code: : invalid_enum_value> ~ <Path: : animal> ~ <Message: : Invalid enum value. Expected '🐶' | '🐱' | '🐵', received '🐼'> 👈 👉 <Code: : too_small> ~ <Path: : quantity> ~ <Message: : Number must be greater than or equal to 1> 👈\r\n```\r\n\r\nNote:\r\n\r\n> If your schema contains an async `.refine()` or `.transform()` function, use `parseAsync()` instead.\r\n\r\n#### `safeParse<T extends z.ZodTypeAny>(schema: T, data: unknown, options?: ErrorMessageOptions): SafeParseReturnType<T['_output']`\r\n\r\nReplaces Zod's `.safeParse()` function by replacing Zod's `SafeParseReturnType` with a similar return type where if `result.success` is `false`, the custom formatted error message will be available on `result.error.message`.\r\n\r\n```ts\r\nimport { ErrorMessageOptions, safeParse } from 'zod-error';\r\nimport { z } from 'zod';\r\n\r\nconst options: ErrorMessageOptions = {\r\n  prefix: `Time: ${new Date().toISOString()} ~ `,\r\n  suffix: '🔚',\r\n};\r\n\r\nconst schema = z.object({\r\n  id: z.uuid(),\r\n  timestamp: z.number(),\r\n  message: z.string().min(5),\r\n});\r\n\r\nconst data = {\r\n  id: 'ID001',\r\n  timestamp: new Date(),\r\n  message: 'lol!',\r\n};\r\n\r\nconst result = safeParse(schema, data, options);\r\n/**\r\n * Asynchronous version\r\n * const result = await safeParseAsync(schema, data, options);\r\n */\r\nif (!result.success) {\r\n  /**\r\n   * Replaces Zod's error object with custom\r\n   * error object with formatted message.\r\n   */\r\n  const message = result.error.message;\r\n  console.error(message);\r\n} else {\r\n  const safeData = result.data;\r\n}\r\n```\r\n\r\nError Message:\r\n\r\n```\r\nTime: 2022-07-14T11:10:10.602Z ~ Code: invalid_string ~ Path: id ~ Message: Invalid uuid | Code: invalid_type ~ Path: timestamp ~ Message: Expected number, received date | Code: too_small ~ Path: message ~ Message: String must contain at least 5 character(s)🔚\r\n```\r\n\r\nNote:\r\n\r\n> If your schema contains an async `.refine()` or `.transform()` function, use `safeParseAsync()` instead.\r\n\r\n## Authors\r\n\r\n- [@andrewvo89](https://github.com/andrewvo89) - Idea & Initial work.\r\n\r\nSee also the list of [contributors](https://github.com/andrewvo89/zod-error/contributors) who participated in this project.\r\n\r\n## Acknowledgements\r\n\r\n- [Zod](https://zod.dev/) for an amazing validation library.\r\n","readmeFilename":"README.md"}