{"_id":"@amateury/lettuce","_rev":"15-98a182a54630f55f2367b4aa3a8ce999","name":"@amateury/lettuce","dist-tags":{"latest":"2.3.2"},"versions":{"1.0.0":{"name":"@amateury/lettuce","version":"1.0.0","keywords":["lettuce","validator","validation","express","connect","api","argument","amateur"],"author":{"name":"Brayan Salgado"},"license":"MIT","_id":"@amateury/lettuce@1.0.0","maintainers":[{"name":"binariado","email":"binariado@gmail.com"}],"homepage":"https://github.com/amateury/lettuce#readme","bugs":{"url":"https://github.com/amateury/lettuce/issues"},"dist":{"shasum":"6e65de360a6af398147988f321359197dfe60fd2","tarball":"https://registry.npmjs.org/@amateury/lettuce/-/lettuce-1.0.0.tgz","fileCount":22,"integrity":"sha512-tKMJVhVWlh/011wXLFPG0oFmHWz7tf+TUzwU1lT5E1XrL0l2nEBlt5mbwEPW4uREeNkjFMLOCBiYlb4PUzeuaA==","signatures":[{"sig":"MEQCIGm1DirUcx1Fz3+n50XdSLqpcVTdQfH9l/ElXGYM6j7lAiAo0Rzu/C+IOm1Jc+6+YfwDlwMtV6AU10tqEhdGLCM6hg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":145090,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8YajCRA9TVsSAnZWagAAM80P/jvTdBAJvvLiEqk5pdV6\nwpk6aGZGb/w8+ItasE9uCsNSfBq6ixrkffnPzucOeEb25rkOprDkDNT++0sy\ntqIrliO9wc4kmn/ASaIeVbzO9BTkrslYUv+Syb0orzwQqRXdvhVuL5AHbepM\nbQnlxtVEzwCKPclSDiYpazZg4hdEUei6qazM3mmM1dHuLCYLEDrwK2KdOSbY\n88hVeB9jGXCbtmnuxjlifnNDFCw+MMbBGFkmJFActBy2MK1zpm9DRVMAL5YO\nNX4KbFAYdxy46egvIgDx85Jrii4MfpG3wd24BFClIQTCGvK9udDyiN66PlxR\nmyKIwAleXB9u+hxCzVtkMlAtBdkeRPXVh+WK+H5czUI1XebK1ruLlGh/JipM\nMToz56eI82cpiFXcTrCHhDZqU2JxOBHqjRmQ2/WkMT9nLAcmJI0+jPG+BZ7P\nALgTJyZbV9lBP57+9Ev+5/azGPpG72CE12I+LcjUdPHdF30AnmH4GwZ5Sj1k\npNeMQf7bNqHizd790h5dSV1sjDH8vKW4ZrAzGuVzVZiOQfyBQyc5kgPm9/xM\ntBUGVgzBEzN1iTfaEiyhsyJzxw2TXLeHHkJHcoVrBRNirOs2DASpUd2lIXzZ\nEQPVVAZFAA9oaoDJACOBefwegkWfEHITyyL1f6iMx86q3gQZDozMMkoPZJLK\n+Anb\r\n=vYoy\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"ts-jest","testEnvironment":"node"},"main":"build/index.js","types":"build/index.d.ts","module":"build/index.es.mjs","gitHead":"67730fbb688c7b0c8e6ee58db4f162d08ada359b","scripts":{"test":"jest","build":"npx webpack --config webpack.config.js --mode=production","watch":"webpack --config webpack.config.js --mode=development -w","prepare":"husky install","build:dev":"npx webpack --config webpack.config.js --mode=development","prepublish":"npm run build","test-coverage":"jest --coverage --detectOpenHandles && coveralls < coverage/lcov.info"},"_npmUser":{"name":"binariado","email":"binariado@gmail.com"},"repository":{"url":"git+https://github.com/amateury/lettuce.git","type":"git"},"_npmVersion":"7.20.5","description":"It is a library that allows a rigorous validation of the data, according to a specific pattern (a scheme).","directories":{},"_nodeVersion":"14.16.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^27.4.7","husky":"^7.0.4","ts-jest":"^27.1.3","webpack":"^5.65.0","ts-loader":"^9.2.6","babel-jest":"^27.4.6","typescript":"^4.5.4","@types/jest":"^27.4.0","webpack-cli":"^4.9.1"},"_npmOperationalInternal":{"tmp":"tmp/lettuce_1.0.0_1643218595432_0.89681117491365","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@amateury/lettuce","version":"1.1.0","keywords":["lettuce","validator","validation","express","connect","api","argument","amateur"],"author":{"name":"Brayan Salgado"},"license":"MIT","_id":"@amateury/lettuce@1.1.0","maintainers":[{"name":"binariado","email":"binariado@gmail.com"}],"homepage":"https://github.com/amateury/lettuce#readme","bugs":{"url":"https://github.com/amateury/lettuce/issues"},"dist":{"shasum":"0e057a81526eedd78618d35a815b7e90bd472546","tarball":"https://registry.npmjs.org/@amateury/lettuce/-/lettuce-1.1.0.tgz","fileCount":22,"integrity":"sha512-gOXQH2btuhkTSSnNnwnR/0GoY2OVI0bWwnWsFDm8b6dNQmQSmYPqxcuXk1DSgmXpZs2XmFczmxLup55j4gH6Gg==","signatures":[{"sig":"MEUCIQD0/sv5N5NjKaFY16DE7/ow6aE12CePOdNDwYQM/9J9UwIgVHR9dv/9KKJQx9hRkdCbPN460FT2+ZOmXZkeEnLJwGA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":145090,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh80aiCRA9TVsSAnZWagAArccP/0hwD2IJ+7ntN0ryvE2C\nf6vATtUNwWVz3YW4WcoaCrC6eZskEfcKPOvpNVIXMOeZJuzqHeK7UAWKQ/32\n/xgF0ieAUaqNhaL9uXHGUcQma5+30L2BdtPeBMhL0HeIvxuAVV2xewR6P2k5\nmPLsD3BZ6ZAAZAavM+O3P50bDBjtz+sA2o8XhDDopdXGr3+oJTdTy8htSM4P\nP1N8Abila5gMWmolxcFZQvMHCl1lsukTMLAihYHeFkYDIrfa1D9AZTgS0Q/3\n5ZaefcKuxYD8ShxnfeCvzik/fJcOrnREMSIe0BZH37t1XzXxOn49xQjjuTBO\niAkEeHzTM/Hz26Z+XdTHBJEWVzZ+Nd37DOHKTgUDq9MWk4bo5VFqmTt4ITdH\nQOfiTFie6O3QIrc4T/lBW1Vloj3Y9qdwSXpN8wrTltvJ3Fukdb3JzNdeCkty\nfSCgKSYaDwL+3z1EClkuQEon91ezqw/83oHGij6NXi3VOFqWahQ+8C0HvkLL\nNUv1a/hvUtuE5gGX98AhzY67t+XE5fwZjyfC62rPfTqrJMAfmA1ue/65UeSd\n37Nt9SYehwmgqXnyVLWAfs0+NVzsOOiue6kOAFGNCrtXZLBVgAFXrvcZlJAP\nlAhemo835OUspjlqgZlDyEaMUzEUUvGO7sJkeQM5/+kJaYI6fRGDCvZiDqwb\nSF1q\r\n=VwrB\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"preset":"ts-jest","testEnvironment":"node"},"main":"build/index.js","types":"build/index.d.ts","module":"build/index.es.mjs","gitHead":"ff0a0327582c34c997b608bad89bdced195cc2eb","scripts":{"test":"jest","build":"npx webpack --config webpack.config.js --mode=production","watch":"webpack --config webpack.config.js --mode=development -w","prepare":"husky install","build:dev":"npx webpack --config webpack.config.js --mode=development","prepublish":"npm run build","test-coverage":"jest --coverage --detectOpenHandles && coveralls < coverage/lcov.info"},"_npmUser":{"name":"binariado","email":"binariado@gmail.com"},"repository":{"url":"git+https://github.com/amateury/lettuce.git","type":"git"},"_npmVersion":"7.20.5","description":"It is a library that allows a rigorous validation of the data, according to a specific pattern (a scheme).","directories":{},"_nodeVersion":"14.16.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^27.4.7","husky":"^7.0.4","ts-jest":"^27.1.3","webpack":"^5.65.0","ts-loader":"^9.2.6","babel-jest":"^27.4.6","typescript":"^4.5.4","@types/jest":"^27.4.0","webpack-cli":"^4.9.1"},"_npmOperationalInternal":{"tmp":"tmp/lettuce_1.1.0_1643333282616_0.14374212833855204","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@amateury/lettuce","version":"2.0.0","keywords":["lettuce","validator","validation","api","argument","amateur"],"author":{"name":"Brayan Salgado"},"license":"MIT","_id":"@amateury/lettuce@2.0.0","maintainers":[{"name":"binariado","email":"binariado@gmail.com"}],"homepage":"https://github.com/amateury/lettuce#readme","bugs":{"url":"https://github.com/amateury/lettuce/issues"},"dist":{"shasum":"73cc071126562483557f0f620a8901c1fe83ccd5","tarball":"https://registry.npmjs.org/@amateury/lettuce/-/lettuce-2.0.0.tgz","fileCount":14,"integrity":"sha512-0GJHyISXw3HB2XTjGAUBnf4k9AEiF4jeIWrsT95MizHfDtsY4XtLiZoW25DZl2R89KQ+X1t/EoDlThF+2TQj9Q==","signatures":[{"sig":"MEUCIGRnFGQsDA4QA+um3DHiZ35npfxPPlaj9Ew7SXNzcJmcAiEApgS1hwMeUbhcvBl6VA59t59/wpnWsFGEmvN1i84h6QQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":93364,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiwM0LACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqDYg/8DeImcLwxXS3LwKXUJJMNcT2x2lDCddclnnLWe6uIyGQ9ri86\r\nC/XCkgTFaBEcpQvwtc4rFGyJ/I+/ITIolLxQ259CuqvXzL4wfpfSsWUAvEXd\r\nczlsuxXM3W9hm3xYxB9eMrzw8UNhzvniVrX/ELLz1IgJhfnqYBYlE1YIM2Dy\r\nuBkr1vtLAqsVHVFH5dQAXHl0QXfe4wnRk8/Z8XPtImoHZdpme6AdjTBmTg3S\r\nyWa1/P6PqHbbS5tyImGfribJLOxi7dBYdA5vCv+I3jDXLmR2Gtp5q4pmKTx4\r\ngJQGtmhdTDzKK1yNUQD/Z+RaakqmQf/2Nuz6uYUM24HdFXbqURUKJDyH8DE6\r\ntkcy7PAKb8nq59zG6Yk+l2zXjJ1msv4YE6lNMhyJAOu6v0bHx3ConU6bUYnB\r\nBCPtD+Ct/tAQVFITM0oSpCq2q42p/GCpapsmXcToNo+eqLU8ItLkM6b8ciVp\r\n0BXNh3iUL/l8A+c+uoZjWmI0koRgjCCDxrGMpIw+w7TqW+9dtgaUBTJlmst9\r\nkzWxzC4Hk4Rm8LPgJq4CiVc2kukZPdbrjxsrMsmjoPA7fXtqzmK63koSF/8l\r\nSxNTXas9ZS/g3ZhHxss/kgJsiVrvYE22Xhiw8btsjBlC8YzN4yOeCjWoYC1C\r\np/u/b92ezdbY798Hqk4HRetWoTFfFO8ILDs=\r\n=n43S\r\n-----END PGP SIGNATURE-----\r\n"},"main":"build/index.js","types":"build/index.d.ts","module":"build/index.es.mjs","gitHead":"65c5678b70781f46bc37bbef008ff78e0f16a263","scripts":{"lint":"eslint . --ext .ts","test":"mocha","build":"npx webpack --config webpack.config.js --mode=production","watch":"webpack --config webpack.config.js --mode=development -w","prepare":"husky install","lint-fix":"eslint . --ext .ts --fix","build:dev":"npx webpack --config webpack.config.js --mode=development","coveralls":"npm run coverage:report  && coveralls < coverage/lcov.info","prepublish":"npm run build","coverage:report":"nyc npm test && nyc report --reporter=lcov"},"_npmUser":{"name":"binariado","email":"binariado@gmail.com"},"repository":{"url":"git+https://github.com/amateury/lettuce.git","type":"git"},"_npmVersion":"8.5.5","description":"It is a library that allows a rigorous validation of the data, according to a specific pattern (a scheme).","directories":{},"_nodeVersion":"16.15.0","_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","chai":"^4.3.6","husky":"^8.0.1","mocha":"^10.0.0","eslint":"^8.15.0","ts-node":"^10.7.0","webpack":"^5.73.0","prettier":"^2.6.2","coveralls":"^3.1.1","ts-loader":"^9.3.0","typescript":"^4.6.4","@babel/core":"^7.18.2","@types/chai":"^4.3.1","@types/node":"^17.0.35","webpack-cli":"^4.9.2","@types/mocha":"^9.1.1","@babel/register":"^7.17.7","@babel/preset-env":"^7.18.2","eslint-plugin-tsdoc":"^0.2.16","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.0.0","@babel/preset-typescript":"^7.17.12","@typescript-eslint/parser":"^5.25.0","@typescript-eslint/eslint-plugin":"^5.25.0"},"_npmOperationalInternal":{"tmp":"tmp/lettuce_2.0.0_1656802571230_0.2562981128944861","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"@amateury/lettuce","version":"2.0.1","keywords":["lettuce","validator","validation","api","argument","amateur"],"author":{"name":"Brayan Salgado"},"license":"MIT","_id":"@amateury/lettuce@2.0.1","maintainers":[{"name":"binariado","email":"binariado@gmail.com"}],"homepage":"https://github.com/amateury/lettuce#readme","bugs":{"url":"https://github.com/amateury/lettuce/issues"},"dist":{"shasum":"c8c5e8ac8e6dcbceea021946e3f8b526abfbbfeb","tarball":"https://registry.npmjs.org/@amateury/lettuce/-/lettuce-2.0.1.tgz","fileCount":14,"integrity":"sha512-vEV3ry+fy9HC8IrsPJ9kVryD4GnoJgbvFTV7p6blAbufm40/avLG5xJTLXd5x4O3H0XSQjZ5OBENnvKDOUzhhg==","signatures":[{"sig":"MEUCIED6mnYFZrL/i2VMrseOqCNgLzcSA4xeopAGLAvn+B5nAiEAk95LiXDEA+ikPUfjpMzbiOaJeiaUO5NKuho6fiP7mPc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":224069,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixRw0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp76RAApNAPXY3U5d6BboTvMrmmj/cM3uUoaXW6pPpH/eUG9uNzmWof\r\nj8w4TN+gJS3u0PG6jquaZd4ghomNsUUcFvHHTB+ncZtishMLzLrLLERDsIsg\r\n4ss0BZ9GfozIvM6ft6onpR7pXrbdqG8Xo5I/Iwaitjo4YuAoKjxJjGdWq1Cs\r\nhz/capOSKVE1GaoN7ycoptRIeES/CBjalqqGnd3RKjjN9hicFHZ/fX20ytt/\r\nQ13y74wEW8QbaDw+4e1z7Yl9v1ReuK4PeulYEdKbGtsk/mXWPhThiQOLXFa8\r\njyH8UDT8OfTBoe1Lr4hmGC0kJahlqsH2Z7A+XNzKv5C9kzjpvIHD/YK6a9bq\r\nNYg1DrYFAAg2XkI+1mwhFtNPDJYwmm//C15w2NvJN5S4J+PxZad0n+DPdGqe\r\nS6q1AbCKk5NQv7b//SB60XHXSD9P7nVZZtQLmqsetd+9t/nVSJ90ztoipAZh\r\nx0Hl5gbY364eixATn6P8PVxTFgYdbdQw2xyatUcIUKd10qE4fZjDe25a9Z+P\r\nEMIeQfsUxNP3FCdvTexUPYYg8PW7xPHEDzrTo2aJlu4fc2H7Vae3+S4qAUyb\r\nFVNxH/ydygxdARYG81uKAzaRIRwchPEes+5ZjhyANTscYpBsYMVexr6X1LpX\r\n0LyalNJbBOOceOW1rKcupNsBt1cW9otqeMQ=\r\n=4vOD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"build/index.js","types":"build/index.d.ts","module":"build/index.es.mjs","gitHead":"83dba1aaa011038e00ee929f13c4248a37922b1f","scripts":{"lint":"eslint . --ext .ts","test":"mocha","build":"rollup -c --compact","prepare":"husky install","lint-fix":"eslint . --ext .ts --fix","coveralls":"npm run coverage:report  && coveralls < coverage/lcov.info","prepublish":"npm run build","coverage:report":"nyc npm test && nyc report --reporter=lcov"},"_npmUser":{"name":"binariado","email":"binariado@gmail.com"},"umd:main":"build/index.umd.js","repository":{"url":"git+https://github.com/amateury/lettuce.git","type":"git"},"_npmVersion":"8.5.5","description":"It is a library that allows a rigorous validation of the data, according to a specific pattern (a scheme).","directories":{},"_nodeVersion":"16.15.0","_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","chai":"^4.3.6","husky":"^8.0.1","mocha":"^10.0.0","tslib":"^2.4.0","eslint":"^8.15.0","rollup":"^2.75.7","ts-node":"^10.7.0","prettier":"^2.6.2","coveralls":"^3.1.1","ts-loader":"^9.3.0","typescript":"^4.6.4","@babel/core":"^7.18.2","@types/chai":"^4.3.1","@types/node":"^17.0.35","@types/mocha":"^9.1.1","@babel/register":"^7.17.7","@babel/preset-env":"^7.18.2","eslint-plugin-tsdoc":"^0.2.16","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.0.0","@rollup/plugin-commonjs":"^22.0.1","@babel/preset-typescript":"^7.17.12","@typescript-eslint/parser":"^5.25.0","rollup-plugin-typescript2":"^0.32.1","@rollup/plugin-node-resolve":"^13.3.0","@typescript-eslint/eslint-plugin":"^5.25.0","rollup-plugin-peer-deps-external":"^2.2.4"},"_npmOperationalInternal":{"tmp":"tmp/lettuce_2.0.1_1657084979930_0.4737723106990306","host":"s3://npm-registry-packages"}},"2.0.2":{"name":"@amateury/lettuce","version":"2.0.2","keywords":["lettuce","validator","validation","api","argument","amateur"],"author":{"name":"Brayan Salgado"},"license":"MIT","_id":"@amateury/lettuce@2.0.2","maintainers":[{"name":"binariado","email":"binariado@gmail.com"}],"homepage":"https://github.com/amateury/lettuce#readme","bugs":{"url":"https://github.com/amateury/lettuce/issues"},"dist":{"shasum":"67bcb361fd9cb0cba494d0f30e3d5f76a8edaa96","tarball":"https://registry.npmjs.org/@amateury/lettuce/-/lettuce-2.0.2.tgz","fileCount":14,"integrity":"sha512-vAg8u6tBkokGM0HXrYeaNRao0UBMcig2QpGtSHS5BR7k2n8AR64RetNOpBHfSPtyZpfLPVXIC5KpCyvAUuxtXQ==","signatures":[{"sig":"MEUCIQDesFIMDPsQDp76ZGelFqqGisrS3aqCTBPgj7wzxgaSVgIgEeHZwNYbx2oNhL/gaVuvNAMK4EIiOeH6mwm/sycIw0s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":224186,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWqBJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmphdQ//bmH6uVkKGWBRi1E/Nk2b3Tmr9DuUr6qil82sRMtr7zS5inEs\r\nStysfuwskArFXB9F9A7lgorwzYtCixjWyyK6lb3K1Bi0z4Fqw1rDFxzWMqE4\r\nVQoQL2FNNVD9tD481ZYCRCBvcQd7QDpv82zJ9/2jNR0KcT3h3NENLFZ9v1oV\r\nnGFb81CKkeA6Ms95Urw8LJy6UtovU31XtYCrckT+jZODBOJ+ZkZlhB0xdk79\r\nsNXpyrbb9M3makJC/PZFfPDOkWUgUNBBJ3UABRtkILBXs/UA4yqGcDH7LL+Q\r\n8NCknernaVtWcSCC4cFRYqfrFyYkBkHYE1LSy7OfnijYam5NOpz7ynokYMrf\r\nVy7N1QQeLOPF5o2Rn/Lbu4pAw6jhGGo7bNt30Y5tH5st4G7JR9QWxCpkrFqT\r\nPCfKX9P35HBp2HU7OUTlQ/zwTikjdcA7z4KI1hx46jvJdlRt9uPD93HPSfnD\r\n5i6YxCwGqzeezyZ6iu2BK0pF4OFKbXK2zbyvgHO76Vr5gYr2M2F0Tjn3Q/Pg\r\nYSSJPgsyGY1f90ddvL+17NpX8JgPna3v9TQN3DdqOz2YrpBVwQqZ3zlZ5/CL\r\nc3kQ2NucMqFXN2F7WejSaJoBK9BLZeqoSXo0z82t958gGH9gMamnMrEHKK32\r\noxUmVfq/1rBSAb9axlXGienx2WfFwk02WFs=\r\n=UNdY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"build/index.js","types":"build/index.d.ts","module":"build/index.es.mjs","gitHead":"90bdff149459378a5124b2e74515a295fa6138e1","scripts":{"lint":"eslint . --ext .ts","test":"mocha","build":"rollup -c --compact","prepare":"husky install","lint-fix":"eslint . --ext .ts --fix","coveralls":"npm run coverage:report  && coveralls < coverage/lcov.info","prepublish":"npm run build","coverage:report":"nyc npm test && nyc report --reporter=lcov"},"_npmUser":{"name":"binariado","email":"binariado@gmail.com"},"umd:main":"build/index.umd.js","repository":{"url":"git+https://github.com/amateury/lettuce.git","type":"git"},"_npmVersion":"8.16.0","description":"It is a library that allows a rigorous validation of the data, according to a specific pattern (a scheme).","directories":{},"_nodeVersion":"18.7.0","_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","chai":"^4.3.6","husky":"^8.0.1","mocha":"^10.0.0","tslib":"^2.4.0","eslint":"^8.15.0","rollup":"^2.75.7","ts-node":"^10.7.0","prettier":"^2.6.2","coveralls":"^3.1.1","ts-loader":"^9.3.0","typescript":"^4.6.4","@babel/core":"^7.18.2","@types/chai":"^4.3.1","@types/node":"^17.0.35","@types/mocha":"^9.1.1","@babel/register":"^7.17.7","@babel/preset-env":"^7.18.2","eslint-plugin-tsdoc":"^0.2.16","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.0.0","@rollup/plugin-commonjs":"^22.0.1","@babel/preset-typescript":"^7.17.12","@typescript-eslint/parser":"^5.25.0","rollup-plugin-typescript2":"^0.32.1","@rollup/plugin-node-resolve":"^13.3.0","@typescript-eslint/eslint-plugin":"^5.25.0","rollup-plugin-peer-deps-external":"^2.2.4"},"_npmOperationalInternal":{"tmp":"tmp/lettuce_2.0.2_1666883657591_0.5949485767124714","host":"s3://npm-registry-packages"}},"2.1.4":{"name":"@amateury/lettuce","version":"2.1.4","keywords":["lettuce","validator","validation","api","argument","amateur"],"author":{"name":"Brayan Salgado"},"license":"MIT","_id":"@amateury/lettuce@2.1.4","maintainers":[{"name":"binariado","email":"binariado@gmail.com"}],"homepage":"https://github.com/amateury/lettuce#readme","bugs":{"url":"https://github.com/amateury/lettuce/issues"},"dist":{"shasum":"7fa2b18ded2b60cc5ae5650cdf353ca46e3014db","tarball":"https://registry.npmjs.org/@amateury/lettuce/-/lettuce-2.1.4.tgz","fileCount":14,"integrity":"sha512-vQTGIH3I3YUVPXNcSniAMPNg6SMGtUOCIZFtN1AesO0VU8kfuF3S5LhPjWk+Bjipif1cni7JuDZaevkIGvHoUQ==","signatures":[{"sig":"MEYCIQCg7Vk//QQyBPWmv9yQLY0aXrutbjEO5LVbOnCxhqQrgwIhAOfYuaCr58s37z4Wc5PyZaIH6LFcW6/gEMJEzHXTenm9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":238171,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYSOoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpxbg/+P69B2G/pUrt34Akq++hbel6nMnW2H2kPPd5fK78vrx2cKrmi\r\nVn2YUoXEUJjj7lfw6DVjAdrE/jGsvQzFXbSJZxk8q0Nu9JfeY1lYnVovl1I5\r\nV1UZif/brljVma0RXx2l2KS7T5dIinXYi+cawaweUpY8uc+5nSX7cRM2e3Zg\r\nfVvFF8GRolw2TLplBiNscEtn1mI3g1x4H3QCGwVezcfMQB+Yj/JMQmD1bfsE\r\n2HE/zi3ra5zyZqHvdJmtkLXEkO0PQJss1PUMLtSDVTw7JFXyP6JAMEQz1ESu\r\nNHqLzeUB65T06b99glyU0cSpRzjcVx/Vb6QHoKxTXTzfZxVuoDtYVWaXKWL1\r\ns1t4PV+pKOvD7UmXCdWawrRzawkxTya1i4Qb06RlxGZNZbIaZNOym3jbCKiW\r\nEFXZNA3wVNSMSZROWQ+jcb/5TAZIuYdGXYb8cNBJ8Jh+XBf5FwS/kQRtAkka\r\ncyDlqgJgzoa05lYB8FAcYnEpMXOhtb/akGRtaUwNJy0zG3ysM95KWYHoHB5w\r\nh+n6nyj2LHq88Soyzo5GJ6+hKeGoJp3/OxF/38I6g6QpGF8lFWWeG9DDf/O2\r\nEvMs9wqgYzmHaQak+4f/zM5lf+vaaq8zIoFrPJ0lI17pPt+q7MgLVe4W/wnN\r\nc9qgn1yeOf9c/bMMex2perVacoztL37tCBo=\r\n=ZTEE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"build/index.js","types":"build/index.d.ts","module":"build/index.es.mjs","gitHead":"37435e86170f35d482cc7cfe414511cb461d25ee","scripts":{"lint":"eslint . --ext .ts","test":"mocha","build":"rollup -c --compact","prepare":"husky install","lint-fix":"eslint . --ext .ts --fix","coveralls":"npm run coverage:report  && coveralls < coverage/lcov.info","prepublish":"npm run build","coverage:report":"nyc npm test && nyc report --reporter=lcov"},"_npmUser":{"name":"binariado","email":"binariado@gmail.com"},"umd:main":"build/index.umd.js","repository":{"url":"git+https://github.com/amateury/lettuce.git","type":"git"},"_npmVersion":"8.16.0","description":"It is a library that allows a rigorous validation of the data, according to a specific pattern (a scheme).","directories":{},"_nodeVersion":"18.7.0","_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","chai":"^4.3.6","husky":"^8.0.1","mocha":"^10.0.0","tslib":"^2.4.0","eslint":"^8.15.0","rollup":"^2.75.7","ts-node":"^10.7.0","prettier":"^2.6.2","coveralls":"^3.1.1","ts-loader":"^9.3.0","typescript":"^4.6.4","@babel/core":"^7.18.2","@types/chai":"^4.3.1","@types/node":"^17.0.35","@types/mocha":"^9.1.1","@babel/register":"^7.17.7","@babel/preset-env":"^7.18.2","eslint-plugin-tsdoc":"^0.2.16","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.0.0","@rollup/plugin-commonjs":"^22.0.1","@babel/preset-typescript":"^7.17.12","@typescript-eslint/parser":"^5.25.0","rollup-plugin-typescript2":"^0.32.1","@rollup/plugin-node-resolve":"^13.3.0","@typescript-eslint/eslint-plugin":"^5.25.0","rollup-plugin-peer-deps-external":"^2.2.4"},"_npmOperationalInternal":{"tmp":"tmp/lettuce_2.1.4_1667310503983_0.996345658616332","host":"s3://npm-registry-packages"}},"2.1.5":{"name":"@amateury/lettuce","version":"2.1.5","keywords":["lettuce","validator","validation","api","argument","amateur"],"author":{"name":"Brayan Salgado"},"license":"MIT","_id":"@amateury/lettuce@2.1.5","maintainers":[{"name":"binariado","email":"binariado@gmail.com"}],"homepage":"https://github.com/amateury/lettuce#readme","bugs":{"url":"https://github.com/amateury/lettuce/issues"},"dist":{"shasum":"fd7108eb42dba2579a43191b3dfda9f67c6f4e02","tarball":"https://registry.npmjs.org/@amateury/lettuce/-/lettuce-2.1.5.tgz","fileCount":14,"integrity":"sha512-uuZ7m1ZiIgOwd6HgeNrCxNiJJDpPLO4M6HNUMG+qQLWo/h3iIhCmrGH8YS/eEic8xiEcL2hxWa1DIyAX9XhSdA==","signatures":[{"sig":"MEYCIQDwUlxaVrlrUwWS2Fo68YmGf6ey5Y2KPMwVPsFGGDBC9wIhAOq+/zJYE6BRzDuNXvEKunJc16Pqumdnxm3sGXR8/jqQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":239602,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjaFJ7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmofpg//QyEN6riNi+2fKtYTNiUJgp8hhKk6u1Fn3NZ4QQJaX/Vs1QUP\r\ndJVhik4yepIHRkidpvEQj3qHU3vJUG8J9oUVty/W17u0eJvZ0tie6z0PAz+m\r\nuA7cwK6hJQPfAjI272Hj/YScz5vGX1A/GnV3Z9EmT6ieCTxkwBN+AqBhc5VU\r\nQBbZJfKnA2bLc2BnPZASLVYrYqA+RJbGYrlYXHV5qGOtK8gRSyndiLqDr5y3\r\nqmE+1oXdsq4vy0xXp74enbiYEQkVesJH0svlqd54kABZyh42xXfgcWRfVwr9\r\n3GlOxlmnGGEQ0+wImj91zaJLYHjsZISV4J9mDA/Rfz9TzmxYnJe86w7CfLI9\r\n/CulW3J8tu+koijIUcjkoU2j3RhIS0PyaMj1GikCErMsnq7xWudGFH2QwjDI\r\nsIxyRFBcjC8YrZS03tNeH1yOo0wIy3y7wEoHq4jkBbIUZvxRaBZmh0RbcBL4\r\nspusAmQXAdP8sFoH6coDsWo+VO1bcQD7796EqeKli/TZ8ZsYUNykfCH6UXqB\r\nowjtA2rExHCTXu5ZRUWTKn9PeuwzCRv8A41Y2T0bgEcMCoW3TfXSGXqkUf1i\r\nU9KjtF+4sUWZ5D194Yx/hz3Z8snptooxKAqpU/t0O0/Lx9y1uWBik0oh0he6\r\nJy64g2D0QHX7Bbv0v0GqFcOrn5mJfXYJOc0=\r\n=TAyg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"build/index.js","types":"build/index.d.ts","module":"build/index.es.mjs","gitHead":"1cd0e3704661f055a3be0da3eaf451717c35cb19","scripts":{"lint":"eslint . --ext .ts","test":"mocha","build":"rollup -c --compact","prepare":"husky install","lint-fix":"eslint . --ext .ts --fix","coveralls":"npm run coverage:report  && coveralls < coverage/lcov.info","prepublish":"npm run build","coverage:report":"nyc npm test && nyc report --reporter=lcov"},"_npmUser":{"name":"binariado","email":"binariado@gmail.com"},"umd:main":"build/index.umd.js","repository":{"url":"git+https://github.com/amateury/lettuce.git","type":"git"},"_npmVersion":"8.16.0","description":"It is a library that allows a rigorous validation of the data, according to a specific pattern (a scheme).","directories":{},"_nodeVersion":"18.7.0","_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","chai":"^4.3.6","husky":"^8.0.1","mocha":"^10.0.0","tslib":"^2.4.0","eslint":"^8.15.0","rollup":"^2.75.7","ts-node":"^10.7.0","prettier":"^2.6.2","coveralls":"^3.1.1","ts-loader":"^9.3.0","typescript":"^4.6.4","@babel/core":"^7.18.2","@types/chai":"^4.3.1","@types/node":"^17.0.35","@types/mocha":"^9.1.1","@babel/register":"^7.17.7","@babel/preset-env":"^7.18.2","eslint-plugin-tsdoc":"^0.2.16","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.0.0","@rollup/plugin-commonjs":"^22.0.1","@babel/preset-typescript":"^7.17.12","@typescript-eslint/parser":"^5.25.0","rollup-plugin-typescript2":"^0.32.1","@rollup/plugin-node-resolve":"^13.3.0","@typescript-eslint/eslint-plugin":"^5.25.0","rollup-plugin-peer-deps-external":"^2.2.4"},"_npmOperationalInternal":{"tmp":"tmp/lettuce_2.1.5_1667781243090_0.5299107006501782","host":"s3://npm-registry-packages"}},"2.2.0":{"name":"@amateury/lettuce","version":"2.2.0","keywords":["lettuce","validator","validation","api","argument","amateur"],"author":{"name":"Brayan Salgado"},"license":"MIT","_id":"@amateury/lettuce@2.2.0","maintainers":[{"name":"binariado","email":"binariado@gmail.com"}],"homepage":"https://github.com/amateury/lettuce#readme","bugs":{"url":"https://github.com/amateury/lettuce/issues"},"dist":{"shasum":"6c356af9c90464e89881dbe6d8962366db26e638","tarball":"https://registry.npmjs.org/@amateury/lettuce/-/lettuce-2.2.0.tgz","fileCount":14,"integrity":"sha512-Pi4j+5qRcVbTlhgR7T1gHzKim9JRfImynQ6Xa4JOtVq8peQ+LB2+f+Ifke4FLOW/JNlf1gVmgiWzdFj5BXtF5w==","signatures":[{"sig":"MEQCIBo2hvcHCH3zS79Z/bKModFHd4DUM3IOF9u/754uw0ReAiBD5f8aJC1+zRWPB7VaPV4ZPqWqbZJkAdKEaoByUxlrVA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":254339,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjafC8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqu5xAAo7SU+hXEgAgIR7PHuxsEHBUpI25CJ/Um9R5mp94uBxSYxXXF\r\nd089BavjYB82+NJ4v0KRKKftc1KkABOSr1zb/Q3VuL3OHhFcrYZLIAafY2tL\r\n203qPWVniXlc1f3b2pY6DaqaZJRmQ83KhQNwPZEoBLereQBrG3ro/xduDrHe\r\n58uJK885jupvcKzuOGzHaWoHWqP+3VRtALgaaTXo0c82i0qDxy3wMnaxtuAW\r\n+GRhXd00Li125SstGwv2szYTzik+O3VpPVJTIm2JoWRZy0ehqwigdGDLFjt+\r\nSIvpM1+Gcw50Ak4/OQLk1LRQTf4ve8g7LRXpePjH5CWS9evJDU2l3fVY5mIL\r\nMaGbfVJ/XEkVBGOInSVuTcZJnvM9c72OPXO+jsdMobpiDkjsPPY65tJH/jHS\r\nF0/3dEkRiMaslJrLmFPxmvvdHby/mOMvKMB5s1fymYsbNe6gXP4BaXPYUmSV\r\nMpWvGbckEPhQgIeNIKKmk6O16A2Nbgxkzaz+itdLyeqG2DbQ9Db2Zs94Ctmb\r\nZkETHmvJ4/xhRozj8LHaK0+LqyDZBhn9i8Q9yedTUwXs2jYEdqIDVV8/hPed\r\n0JWRirsU5sQzZPRqj8FGok+44RKkaozG8KPOPpGvMiuCKTvC95RK3Oju+MwK\r\nh8XX5zplG3OzFsmt+ve+AApUepqsE5bpj28=\r\n=FFuC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"build/index.js","types":"build/index.d.ts","module":"build/index.es.mjs","gitHead":"612b4d9a9ddb7c57be762f34104b369b57ade876","scripts":{"lint":"eslint . --ext .ts","test":"mocha","build":"rollup -c --compact","prepare":"husky install","lint-fix":"eslint . --ext .ts --fix","coveralls":"npm run coverage:report  && coveralls < coverage/lcov.info","prepublish":"npm run build","coverage:report":"nyc npm test && nyc report --reporter=lcov"},"_npmUser":{"name":"binariado","email":"binariado@gmail.com"},"umd:main":"build/index.umd.js","repository":{"url":"git+https://github.com/amateury/lettuce.git","type":"git"},"_npmVersion":"8.16.0","description":"It is a library that allows a rigorous validation of the data, according to a specific pattern (a scheme).","directories":{},"_nodeVersion":"18.7.0","_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","chai":"^4.3.6","husky":"^8.0.1","mocha":"^10.0.0","tslib":"^2.4.0","eslint":"^8.15.0","rollup":"^2.75.7","ts-node":"^10.7.0","prettier":"^2.6.2","coveralls":"^3.1.1","ts-loader":"^9.3.0","typescript":"^4.6.4","@babel/core":"^7.18.2","@types/chai":"^4.3.1","@types/node":"^17.0.35","@types/mocha":"^9.1.1","@babel/register":"^7.17.7","@babel/preset-env":"^7.18.2","eslint-plugin-tsdoc":"^0.2.16","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.0.0","@rollup/plugin-commonjs":"^22.0.1","@babel/preset-typescript":"^7.17.12","@typescript-eslint/parser":"^5.25.0","rollup-plugin-typescript2":"^0.32.1","@rollup/plugin-node-resolve":"^13.3.0","@typescript-eslint/eslint-plugin":"^5.25.0","rollup-plugin-peer-deps-external":"^2.2.4"},"_npmOperationalInternal":{"tmp":"tmp/lettuce_2.2.0_1667887292237_0.9250045090897339","host":"s3://npm-registry-packages"}},"2.2.1":{"name":"@amateury/lettuce","version":"2.2.1","keywords":["lettuce","validator","validation","api","argument","amateur"],"author":{"name":"Brayan Salgado"},"license":"MIT","_id":"@amateury/lettuce@2.2.1","maintainers":[{"name":"binariado","email":"binariado@gmail.com"}],"homepage":"https://github.com/amateury/lettuce#readme","bugs":{"url":"https://github.com/amateury/lettuce/issues"},"dist":{"shasum":"4b5bc504a98a59e2fbc6f67d0f41fafb9b15babf","tarball":"https://registry.npmjs.org/@amateury/lettuce/-/lettuce-2.2.1.tgz","fileCount":14,"integrity":"sha512-IhyrR1wVcTqKZO53nwgvenGFOdU3dKlsTUfxg6wsZyjXZ6i6E2x/ihF/oIrG4XpXLSyvxSmjER84VX442+HXrA==","signatures":[{"sig":"MEYCIQDzL9XLhWQ6GewfNzzZbgsN0/ErT82NL6QD3JUTTX1aewIhAKEDmDo7JwC6nBIczimAt2PIeKDMca6HfEgWtcygJBRK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":254504},"main":"build/index.js","types":"build/index.d.ts","module":"build/index.es.mjs","gitHead":"fff29f7f21da042fe10f1c5cadf617c5ebe9ba34","scripts":{"lint":"eslint . --ext .ts","test":"mocha","build":"rollup -c --compact","prepare":"husky install","lint-fix":"eslint . --ext .ts --fix","coveralls":"npm run coverage:report  && coveralls < coverage/lcov.info","prepublish":"npm run build","coverage:report":"nyc npm test && nyc report --reporter=lcov"},"_npmUser":{"name":"binariado","email":"binariado@gmail.com"},"umd:main":"build/index.umd.js","repository":{"url":"git+https://github.com/amateury/lettuce.git","type":"git"},"_npmVersion":"9.8.0","description":"It is a library that allows a rigorous validation of the data, according to a specific pattern (a scheme).","directories":{},"_nodeVersion":"20.1.0","_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","chai":"^4.3.6","husky":"^8.0.1","mocha":"^10.0.0","tslib":"^2.4.0","eslint":"^8.15.0","rollup":"^2.75.7","ts-node":"^10.7.0","prettier":"^2.6.2","coveralls":"^3.1.1","ts-loader":"^9.3.0","typescript":"^4.6.4","@babel/core":"^7.18.2","@types/chai":"^4.3.1","@types/node":"^17.0.35","@types/mocha":"^9.1.1","@babel/register":"^7.17.7","@babel/preset-env":"^7.18.2","eslint-plugin-tsdoc":"^0.2.16","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.0.0","@rollup/plugin-commonjs":"^22.0.1","@babel/preset-typescript":"^7.17.12","@typescript-eslint/parser":"^5.25.0","rollup-plugin-typescript2":"^0.32.1","@rollup/plugin-node-resolve":"^13.3.0","@typescript-eslint/eslint-plugin":"^5.25.0","rollup-plugin-peer-deps-external":"^2.2.4"},"_npmOperationalInternal":{"tmp":"tmp/lettuce_2.2.1_1689540917553_0.05552858710246311","host":"s3://npm-registry-packages"}},"2.3.1":{"name":"@amateury/lettuce","version":"2.3.1","keywords":["lettuce","validator","validation","api","argument","amateur"],"author":{"name":"Brayan Salgado"},"license":"MIT","_id":"@amateury/lettuce@2.3.1","maintainers":[{"name":"binariado","email":"binariado@gmail.com"}],"homepage":"https://github.com/amateury/lettuce#readme","bugs":{"url":"https://github.com/amateury/lettuce/issues"},"dist":{"shasum":"7eee8e6609e6c62ddbf4f89bfeb8890422a2f8ef","tarball":"https://registry.npmjs.org/@amateury/lettuce/-/lettuce-2.3.1.tgz","fileCount":14,"integrity":"sha512-ucSdMZHA54jPZi9fBEHygj8uS551fBjoAuOFtBKaKYpbDNS6BPjUmv236TcgjXrgwyVXdo99KgaBAB/rvxRliw==","signatures":[{"sig":"MEQCIGeTi3Ki+3ePplPVvUSaxjXAx/JR3OB+Kvth2nd5n3QGAiAqxrRN0m6MwJs0bYHpblTpaRYGy7Mps1DLMnkEWdmQ9g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":269047},"main":"build/index.js","types":"build/index.d.ts","module":"build/index.es.mjs","gitHead":"016f324a3d1f88bcc4e6fd59632109295fd24f1b","scripts":{"lint":"eslint . --ext .ts","test":"mocha","build":"rollup -c --compact","prepare":"husky install","lint-fix":"eslint . --ext .ts --fix","coveralls":"npm run coverage:report  && coveralls < coverage/lcov.info","prepublish":"npm run build","coverage:report":"nyc npm test && nyc report --reporter=lcov"},"_npmUser":{"name":"binariado","email":"binariado@gmail.com"},"umd:main":"build/index.umd.js","repository":{"url":"git+https://github.com/amateury/lettuce.git","type":"git"},"_npmVersion":"9.8.0","description":"It is a library that allows a rigorous validation of the data, according to a specific pattern (a scheme).","directories":{},"_nodeVersion":"20.1.0","_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","chai":"^4.3.6","husky":"^8.0.1","mocha":"^10.0.0","tslib":"^2.4.0","eslint":"^8.15.0","rollup":"^2.75.7","ts-node":"^10.7.0","prettier":"^2.6.2","coveralls":"^3.1.1","ts-loader":"^9.3.0","typescript":"^4.6.4","@babel/core":"^7.18.2","@types/chai":"^4.3.1","@types/node":"^17.0.35","@types/mocha":"^9.1.1","@babel/register":"^7.17.7","@babel/preset-env":"^7.18.2","eslint-plugin-tsdoc":"^0.2.16","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.0.0","@rollup/plugin-commonjs":"^22.0.1","@babel/preset-typescript":"^7.17.12","@typescript-eslint/parser":"^5.25.0","rollup-plugin-typescript2":"^0.32.1","@rollup/plugin-node-resolve":"^13.3.0","@typescript-eslint/eslint-plugin":"^5.25.0","rollup-plugin-peer-deps-external":"^2.2.4"},"_npmOperationalInternal":{"tmp":"tmp/lettuce_2.3.1_1689561953912_0.5500500523267879","host":"s3://npm-registry-packages"}},"2.3.2":{"name":"@amateury/lettuce","version":"2.3.2","description":"It is a library that allows a rigorous validation of the data, according to a specific pattern (a scheme).","main":"build/index.js","module":"build/index.es.mjs","umd:main":"build/index.umd.js","types":"build/index.d.ts","scripts":{"test":"mocha","coverage:report":"nyc npm test && nyc report --reporter=lcov","coveralls":"npm run coverage:report  && coveralls < coverage/lcov.info","lint":"eslint . --ext .ts","lint-fix":"eslint . --ext .ts --fix","build":"rollup -c --compact","prepublish":"npm run build","prepare":"husky install"},"repository":{"type":"git","url":"git+https://github.com/amateury/lettuce.git"},"bugs":{"url":"https://github.com/amateury/lettuce/issues"},"keywords":["lettuce","validator","validation","api","argument","amateur"],"author":{"name":"Brayan Salgado"},"license":"MIT","devDependencies":{"@babel/core":"^7.18.2","@babel/preset-env":"^7.18.2","@babel/preset-typescript":"^7.17.12","@babel/register":"^7.17.7","@rollup/plugin-commonjs":"^22.0.1","@rollup/plugin-node-resolve":"^13.3.0","@types/chai":"^4.3.1","@types/mocha":"^9.1.1","@types/node":"^17.0.35","@typescript-eslint/eslint-plugin":"^5.25.0","@typescript-eslint/parser":"^5.25.0","chai":"^4.3.6","coveralls":"^3.1.1","eslint":"^8.15.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-tsdoc":"^0.2.16","husky":"^8.0.1","mocha":"^10.0.0","nyc":"^15.1.0","prettier":"^2.6.2","rollup":"^2.75.7","rollup-plugin-peer-deps-external":"^2.2.4","rollup-plugin-typescript2":"^0.32.1","ts-loader":"^9.3.0","ts-node":"^10.7.0","tslib":"^2.4.0","typescript":"^4.6.4"},"_id":"@amateury/lettuce@2.3.2","gitHead":"c1eb6c5f754773a1952e8cd6436e7a91566c26f1","homepage":"https://github.com/amateury/lettuce#readme","_nodeVersion":"22.7.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-wgkMzytguqMiknfET4kujMztCEu21mE8iHAv0lzmDHfBBcYYfcll+icQOH+rQvRnMuRZc15dUvqYPiL0gnDXpg==","shasum":"0744666c8249a1e8d552440d4e540840e7ef4062","tarball":"https://registry.npmjs.org/@amateury/lettuce/-/lettuce-2.3.2.tgz","fileCount":14,"unpackedSize":292041,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAcgo2+SYGryXZBsvvUf/gRfhIGjrkaNyjTaBWJCnJBuAiADfFBVs5KoFp73I9wzmv9zeO27BlKo54+2eBGHbO8Nhw=="}]},"_npmUser":{"name":"binariado","email":"binariado@gmail.com"},"directories":{},"maintainers":[{"name":"binariado","email":"binariado@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lettuce_2.3.2_1730938901379_0.8447999606696683"},"_hasShrinkwrap":false}},"time":{"created":"2022-01-26T17:36:35.380Z","modified":"2024-11-07T00:21:41.837Z","1.0.0":"2022-01-26T17:36:35.582Z","1.1.0":"2022-01-28T01:28:02.767Z","2.0.0":"2022-07-02T22:56:11.405Z","2.0.1":"2022-07-06T05:23:00.104Z","2.0.2":"2022-10-27T15:14:17.811Z","2.1.2":"2022-10-31T17:49:07.678Z","2.1.3":"2022-11-01T13:29:15.703Z","2.1.4":"2022-11-01T13:48:24.158Z","2.1.5":"2022-11-07T00:34:03.284Z","2.2.0":"2022-11-08T06:01:32.428Z","2.2.1":"2023-07-16T20:55:17.764Z","2.3.1":"2023-07-17T02:45:54.184Z","2.3.2":"2024-11-07T00:21:41.630Z"},"bugs":{"url":"https://github.com/amateury/lettuce/issues"},"author":{"name":"Brayan Salgado"},"license":"MIT","homepage":"https://github.com/amateury/lettuce#readme","keywords":["lettuce","validator","validation","api","argument","amateur"],"repository":{"type":"git","url":"git+https://github.com/amateury/lettuce.git"},"description":"It is a library that allows a rigorous validation of the data, according to a specific pattern (a scheme).","maintainers":[{"name":"binariado","email":"binariado@gmail.com"}],"readme":"# Lettuce 2.2\n\n[![build](https://github.com/amateury/lettuce/actions/workflows/main.yml/badge.svg)](https://github.com/amateury/lettuce/actions/workflows/main.yml) [![develop](https://github.com/amateury/lettuce/actions/workflows/develop.yml/badge.svg)](https://github.com/amateury/lettuce/actions/workflows/develop.yml) [![Coverage Status](https://coveralls.io/repos/github/amateury/lettuce/badge.svg?branch=main)](https://coveralls.io/github/amateury/lettuce?branch=main)\n\nIt is a library that allows a rigorous validation of the data, according to a specific pattern (a scheme).\n\n## Installation\n\nrequires [Node.js](https://nodejs.org/) v12+.\n\n```sh\nnpm i @amateury/lettuce --save\n```\n\n## Usage\n\n### Validator\n\n```js\nimport Lettuce from \"@amateury/lettuce\";\n\nconst scheme = [\n  {\n    target: \"email\",\n    type: String,\n    required: true,\n    strict: true,\n    regex: /^[\\w-\\\\.]+@([\\w-]+\\.)+[\\w-]{2,4}$/g,\n  },\n  {\n    target: \"name\",\n    type: String,\n    required: false,\n    strict: false,\n    min: 2,\n    max: 50,\n  },\n  {\n    target: \"password\",\n    type: String,\n    required: false,\n    strict: false,\n    min: 8,\n  }\n];\n\nconst lettuce = new Lettuce(scheme);\n\nconst values = {\n  email: \"albert@lettuce.com\",\n  name: \"Albert\",\n  password: \"$b4fei\"\n}\n\nlettuce.parser(values).then((data) => {\n  console.log(data); // successful\n}).catch((e) => {\n  console.log(e); // Error response\n});\n```\n\n#### `Example 1`\n\nThe <-parser-> method executes the data validation, if it is successful, the response message is the data sent to validation, otherwise it generates an exception:\n\n***Response successful***\n\n```json\n{\n  \"email\": \"albert@lettuce.com\",\n  \"name\": \"Albert\",\n  \"password\": \"$b4fei\"\n}\n```\n\n#### `Example 1.1`\n\n***Response error***\n\nIn the event that we send, we request that the password contain a minimum of 8 characters\n\n```json\n[\n  {\n    \"error\": [\n      \"password_min\"\n    ],\n    \"target\": \"password\",\n    \"value\": \"true\"\n  }\n]\n```\n\n#### `Example 1.2`\n\n### Schemes\n\nA schema represents a validation element, for example:\n\n#### `Example 2`\n\n```sh\n  {\n    target: \"name\",\n    type: String,\n    required: false,\n    strict: false,\n    min: 2,\n    max: 50,\n    regex: /^[\\w-\\\\.]+@([\\w-]+\\.)+[\\w-]{2,4}$/g\n  }\n```\n\nsuch a schema contains properties, each with its own validation target, for example\n\n#### Properties of a schema\n\n| property | description                                                                                                                                                                                                                                                                     |\n|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| type     | Defines the type of data to validate (String, Number, Array, Object, Boolean, etc).                                                                                                                                                                                             |\n| required | (boolean) true for required, false for not required. Default is true                                                                                                                                                                                                            |\n| min      | (number) determines the minimum value, if it is a string it will validate the number of characters, in the case of a number it will validate its value.                                                                                                                         |\n| max      | (number) determines the maximum value, the same as the min property but pointing to a maximum value.                                                                                                                                                                            |\n| value    | assigns a value, it has to be of the same declared type, it can be a function with a return value: () => uuid; o value: 'developer', when passing a function it receives the original value as a parameter, declared in the values to be validated `(value) =>  value + '_01'`. |                                                                                                                                                                                                                                                                                     |\n| strict   | (boolean) strictly determines data type validation. Default is true                                                                                                                                                                                                             |\n| regex    | Validate using regular expression.\n| compare | compare the value of an objective, with another value, it can be a comparison of equals or different (equal, distinct)                                                                                                                                                                                                                                           |\n| message | (Object or string) Create custom error messages                                                                                                                                                                                                                                            ||\n\n### Using properties in the schema: some examples\n\n#### *required and strict:*\n\nAdd a value for a specific act: it is possible to change the validation behavior to the opposite value, for example:\n\n```sh\n{ \n  target: \"phone\",\n  required: { put: false, default: true },\n  strict: { put: false, default: true },\n}\n```\n\ncall:\n\n```js\nlettuce.act(\"put\").parser(values).then((data) => {\n  console.log(data); // successful\n}).catch((e) => {\n  console.log(e); // Error response\n});\n```\n\n#### *type:*\n\nOf all the properties, type is the only one required. The data type is defined with the containers.\nexample of javascript primitives:\n\n```sh\n{ target: \"phone\", type: String }\n```\n\nIt is also possible to define multiple data types, in this case allowing string and null data types\n\n```sh\n{ target: \"phone\", type: [String, null] }\n```\n\nFor the case of choice we use it in this way\n\n```sh\n{ target: \"phone\", type: [\"active\", \"inactive\"] }\n```\n\nFor a bit more flexibility, it is possible to configure a custom data type\n\n```js\nclass MyCustomValidation {\n  static __validate__(val: string) {\n    return typeof val === \"string\";\n  }\n}\n```\n\nAnd in this way pass MyCustomValidation as the data type to validate\n\n```sh\n{ target: \"phone\", type: MyCustomValidation }\n```\n\n#### *strict:*\n\nif strict is true, and the type is a String, the value to validate is a numeric data, it will\nnot pass the validation, but if strict is false, it will accept the data type as a string if\nits conversion to a string is possible; otherwise it will throw an invalid data type error.\n\n```js\nimport Lettuce, { IScheme, TValues } from \"@amateury/lettuce\";\n\nfunction example(values: TValues[]) {\n  const sheme: IScheme[] = [\n    { target: \"phone\", type: String, strict: true }\n  ]\n  const lettuce = new Lettuce(sheme);\n  lettuce.parser(values).then((data) => data).catch((e) => {\n    console.log(e); // Error response\n  });\n}\nexample({ phone: 20 });\n```\n\n#### *compare:*\n\nCompare two values (equal, distinct)\n\n```js\nimport Lettuce, { IScheme, TValues } from \"@amateury/lettuce\";\n\nfunction example(values: TValues[]) {\n  const sheme: IScheme[] = [\n    { target: \"phone\", type: String, required: true, strict: true },\n    {\n      target: \"phone2\",\n      type: String,\n      required: true,\n      strict: true,\n      compare: {\n        distinct: \"phone\",\n      },\n    }\n    { target: \"password\", type: String, required: true, strict: true },\n    {\n      target: \"confirmPassword\",\n      type: String,\n      required: true,\n      strict: true,\n      compare: {\n        equal: \"password\",\n      },\n    }\n  ]\n  const lettuce = new Lettuce(sheme);\n  lettuce.parser().then((data) => data).catch((e) => {\n    console.log(e); // Error response\n    /**\n     * [\n     * {\n     *   \"error\": [\n     *      \"phone2_compareDistinct\",  \n     *    ],\n     *    \"target\": \"phone2\"\n     *    \"value\": \"3122345643\"\n     *  },\n     *  {\n     *    \"error\": [\n     *      \"confirmPassword_compareEqual\",  \n     *    ],\n     *    \"target\": \"confirmPassword\"\n     *    \"value\": \"$b4feiG*LNzq.\"\n     *  }\n     * ]\n     */\n  });\n}\nexample({\n    password: \"$b4feiG*LNzq\",\n    confirmPassword: \"$b4feiG*LNzq.\",\n    phone: \"3122345643\",\n    phone2: \"3122345643\",\n});\n```\n\n#### *message:*\n\nAllows you to create custom error messages\n\n```js\nimport Lettuce, { IScheme, TValues } from \"@amateury/lettuce\";\n\nfunction example(values: TValues[]) {\n  const sheme: IScheme[] = [\n    {\n      target: \"username\",\n      type: String,\n      required: true,\n      strict: true,\n      message: (message, { validKey }) => {\n        if (validKey === \"required\") {\n          return \"username_is_required\";\n        } else {\n          return message;\n        }\n      }\n    },\n    {\n      target: \"email\",\n      type: String,\n      required: true,\n      strict: true,\n      min: 125,\n      regex: /^[\\w-\\\\.]+@([\\w-]+\\.)+[\\w-]{2,4}$/g,\n      message: \"Error validation\"\n    },\n    {\n      target: \"phone\",\n      type: String,\n      max: 10,\n      min: 10,\n      required: false,\n      strict: false,\n      message: {\n        max: \"phone_max_10\"\n      }\n    },\n    {\n      target: \"fullname\",\n      type: String,\n      required: true,\n      strict: true,\n      min: 125,\n    },\n    { target: \"password\", type: String, required: true, strict: true },\n    {\n      target: \"confirmPassword\",\n      type: String,\n      required: true,\n      strict: true,\n      compare: {\n        equal: \"password\",\n      },\n      message: {\n        compareEqual: \"Passwords do not match\"\n      }\n    }\n  ]\n  const lettuce = new Lettuce(sheme);\n  lettuce.parser({ phobe: \"30012343211\", email: \"lettuce.mail.com\" }).then((data) => data).catch((e) => {\n    console.log(e); // Error response\n    /**\n     * [\n     *  {\n     *    \"error\": [\n     *      \"username_is_required\", \n     *      \"username_type\"    \n     *    ],\n     *    \"target\": \"username\"\n     *  },\n     *  {\n     *    \"error\": [\n     *      \"phone_max_10\"   \n     *    ],\n     *    \"target\": \"phone\"\n     *    \"value\": \"30012343211\"\n     *  },\n     *  {\n     *    \"error\": [\n     *      \"Error validation\"   \n     *    ],\n     *    \"target\": \"phone\"\n     *    \"value\": \"lettuce.mail.com\"\n     *  },\n     *  {\n     *    \"error\": [\n     *      \"fullname_required\"   \n     *    ],\n     *    \"target\": \"fullname\"\n     *  },\n     *  {\n     *    \"error\": [\n     *      \"Passwords do not match\",  \n     *    ],\n     *    \"target\": \"confirmPassword\"\n     *    \"value\": \"$b4feiG*LNzq.\"\n     *  }\n     * ]\n     */\n  });\n}\nexample({ phone: 20 });\n```\n\n### Using strict cycle\n\nstrictCycle allows you to generate errors strictly to the first error generated or according to\nthe interval of errors per schema. Each schema can generate a group of errors that are grouped\nin an object with the information of the errors that is an interval, strictCycle in true\nrepresents interval 1.\n\n#### `Example 2.1`\n\n```js\nimport Lettuce, { IScheme, TValues } from \"@amateury/lettuce\";\n\nasync function example(values: TValues[]) {\n  const schemas = [\n    {\n      target: \"email\",\n      type: String,\n      required: true,\n      strict: true,\n      regex: /^[\\w-\\\\.]+@([\\w-]+\\.)+[\\w-]{2,4}$/g,\n    },\n    {\n      target: \"age\",\n      type: Number,\n      min: 18,\n    },\n  ]\n  try {\n    const lettuce = new Lettuce(schemas, {\n      strictCycle: true,\n    });\n    await lettuce.parser({ email: \"lettuce\", age: 15 });\n  } catch (e) {\n    console.log(e.length); // 1\n  }\n}\nexample({ phone: 20 });\n```\n\nstrictCycle in interval 2:\n\n```js\nimport Lettuce, { IScheme, TValues } from \"@amateury/lettuce\";\n\nasync function example(values: TValues[]) {\n  try {\n    const lettuce = new Lettuce(schemas, {\n      strictCycle: 2,\n    });\n    await lettuce.parser({ email: \"lettuce\", age: 15 });\n  } catch (e) {\n    console.log(e.length); // 2\n  }\n}\nexample({ phone: 20 });\n```\n\n## New functionality\n\n[act](#required-and-strict): Allow configuring a run where required or strict values can be flexible depending on the use case.\n\n## Contribute\n\nSee [contributor guide](https://github.com/amateury/lettuce/blob/main/CODE_OF_CONDUCT.md)\n\n## Persons\n\n### Person in charge [Bryant Salgado](https://github.com/Binariado)\n\n## License\n\nMIT\n\n**Free Software**\n\n[//]: # (References used to build this document)\n","readmeFilename":"README.md"}