{"_id":"@amphibian/validate","_rev":"13-d350b888fcd7b45acd79a6c5e589cecb","name":"@amphibian/validate","description":"simple schema validation","dist-tags":{"latest":"1.6.1"},"versions":{"1.0.0":{"name":"@amphibian/validate","version":"1.0.0","description":"simple schema validation","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/thomaslindstr_m/validate.git"},"author":{"name":"Thomas Lindstrøm","email":"t@hom.as"},"license":"ISC","bugs":{"url":"https://gitlab.com/thomaslindstr_m/validate/issues"},"homepage":"https://gitlab.com/thomaslindstr_m/validate#README","dependencies":{"@amphibian/errors":"^1.0.5","@amphibian/for-own":"^1.0.14","@amphibian/is-array":"^1.0.5","@amphibian/is-boolean":"^1.0.5","@amphibian/is-date":"^1.0.0","@amphibian/is-function":"^1.0.2","@amphibian/is-number":"^1.0.1","@amphibian/is-object":"^1.0.5","@amphibian/is-promise":"^1.0.1","@amphibian/is-string":"^1.0.2","@amphibian/is-undefined":"^1.0.2","@amphibian/iterate-up-array":"^1.0.1","@amphibian/object-has-property":"^1.0.1"},"gitHead":"77e379a2f75e56cd6c118781fee70ba82e8e793e","_id":"@amphibian/validate@1.0.0","_npmVersion":"5.0.1","_nodeVersion":"8.0.0","_npmUser":{"name":"thomaslindstr_m2","email":"t@hom.as"},"dist":{"integrity":"sha512-WV43CfqpfKkLFhZXgxoXQjCDvvH7kEcgYAW7Sy6XkOgVDXBp8JCe2gCEBDFkucRQxbfe6kUY1uTDddlLXtkQeA==","shasum":"836827ecdb5bd6fee03f11e3d06e6c1566bd50b2","tarball":"https://registry.npmjs.org/@amphibian/validate/-/validate-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjjdSgLKTOBkRh5qmqEQECNwc3qcUBKTgLkb/G2uCwlgIhAKtf22kTT03w7/I19IPEHxho3Kc/VajHRNkawpzwVWaq"}]},"maintainers":[{"name":"thomaslindstr_m2","email":"t@hom.as"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/validate-1.0.0.tgz_1497201510954_0.1500947643071413"},"directories":{}},"1.1.0":{"name":"@amphibian/validate","version":"1.1.0","description":"simple schema validation","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/thomaslindstr_m/validate.git"},"author":{"name":"Thomas Lindstrøm","email":"t@hom.as"},"license":"ISC","bugs":{"url":"https://gitlab.com/thomaslindstr_m/validate/issues"},"homepage":"https://gitlab.com/thomaslindstr_m/validate#README","dependencies":{"@amphibian/errors":"^1.0.5","@amphibian/for-own":"^1.0.14","@amphibian/is-array":"^1.0.5","@amphibian/is-boolean":"^1.0.5","@amphibian/is-date":"^1.0.0","@amphibian/is-function":"^1.0.2","@amphibian/is-number":"^1.0.1","@amphibian/is-object":"^1.0.5","@amphibian/is-promise":"^1.0.1","@amphibian/is-string":"^1.0.2","@amphibian/is-undefined":"^1.0.2","@amphibian/iterate-up-array":"^1.0.1","@amphibian/object-has-property":"^1.0.1"},"gitHead":"eec431aaa29bf0d0b7765c76579c8edbdb1bca6e","_id":"@amphibian/validate@1.1.0","_npmVersion":"5.4.0","_nodeVersion":"8.4.0","_npmUser":{"name":"thomaslindstr_m2","email":"t@hom.as"},"dist":{"integrity":"sha512-J9I2ocbj2dAdgmV3/c27Ste6f+1GQ30J9ti44RNndUhuCAcgWZvDFz7DdC5AO98mwdxHbJUk7jZa9U5gQvS8QA==","shasum":"9669d937a3a8718101e86372e8aa6f870d2e7438","tarball":"https://registry.npmjs.org/@amphibian/validate/-/validate-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA7YSc6FFhd6T2x3lblJb/S7c6u7bt5T0Kdjob0CyTjqAiEA8+L9rsf8q7EWHHBunnBcyDqGJpmR7XqyrUlviAXuTkE="}]},"maintainers":[{"name":"thomaslindstr_m","email":"t@hom.as"},{"name":"thomaslindstr_m2","email":"t@hom.as"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/validate-1.1.0.tgz_1505339025956_0.7601738441735506"},"directories":{}},"1.2.0":{"name":"@amphibian/validate","version":"1.2.0","description":"simple schema validation","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/thomaslindstr_m/validate.git"},"author":{"name":"Thomas Lindstrøm","email":"t@hom.as"},"license":"ISC","bugs":{"url":"https://gitlab.com/thomaslindstr_m/validate/issues"},"homepage":"https://gitlab.com/thomaslindstr_m/validate#README","dependencies":{"@amphibian/errors":"^2.0.0","@amphibian/for-own":"^1.0.14","@amphibian/is-array":"^1.0.5","@amphibian/is-boolean":"^1.0.5","@amphibian/is-date":"^1.0.0","@amphibian/is-function":"^1.0.2","@amphibian/is-number":"^1.0.1","@amphibian/is-object":"^1.0.5","@amphibian/is-promise":"^1.0.1","@amphibian/is-string":"^1.0.2","@amphibian/is-undefined":"^1.0.2","@amphibian/iterate-up-array":"^1.0.1","@amphibian/object-has-property":"^1.0.1"},"gitHead":"09b68603b759da34a86379b22fd41ee7a07868d6","_id":"@amphibian/validate@1.2.0","_npmVersion":"5.4.2","_nodeVersion":"8.5.0","_npmUser":{"name":"thomaslindstr_m2","email":"t@hom.as"},"dist":{"integrity":"sha512-GdxE2t2Pw/Rc/olXpXFzpgDBS39+2uTEICXnjOrKnu6u9j6NqCv8UBTpBE4Dx0Q6TIZUirItddoTQdO9TTqkEQ==","shasum":"f74626e11a0c1005bca8c33dfd77371c65e83dfa","tarball":"https://registry.npmjs.org/@amphibian/validate/-/validate-1.2.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHGplfqh/DFftb4jryYMYwQUVVeXLDm+avL3DwdorabrAiAPGOOSXeVWJD8p9CYeEizt/xIGrGeIa6eGyxfrZE9WuQ=="}]},"maintainers":[{"name":"thomaslindstr_m","email":"t@hom.as"},{"name":"thomaslindstr_m2","email":"t@hom.as"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/validate-1.2.0.tgz_1505953186827_0.5674636198673397"},"directories":{}},"1.2.1":{"name":"@amphibian/validate","version":"1.2.1","description":"simple schema validation","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/thomaslindstr_m/validate.git"},"author":{"name":"Thomas Lindstrøm","email":"t@hom.as"},"license":"ISC","bugs":{"url":"https://gitlab.com/thomaslindstr_m/validate/issues"},"homepage":"https://gitlab.com/thomaslindstr_m/validate#README","dependencies":{"@amphibian/errors":"^2.0.0","@amphibian/for-own":"^1.0.14","@amphibian/is-array":"^1.0.5","@amphibian/is-boolean":"^1.0.5","@amphibian/is-date":"^1.0.0","@amphibian/is-function":"^1.0.2","@amphibian/is-number":"^1.0.1","@amphibian/is-object":"^1.0.5","@amphibian/is-promise":"^1.0.1","@amphibian/is-string":"^1.0.2","@amphibian/is-undefined":"^1.0.2","@amphibian/iterate-up-array":"^1.0.1","@amphibian/object-has-property":"^1.0.1"},"gitHead":"c51ac8a74e257a8042cde72fbbf30de6dcdb173c","_id":"@amphibian/validate@1.2.1","_npmVersion":"5.4.2","_nodeVersion":"8.5.0","_npmUser":{"name":"thomaslindstr_m2","email":"t@hom.as"},"dist":{"integrity":"sha512-7UOIhN2v1RuYCymzLJhVdHwyl74wtkjZjiNFO/LAn2qBg7YkYCF0OmbckAPrM/Ea/yNtW1jo/ULswZP6GbNEQg==","shasum":"241961dd2c00194bd42b2d905a11e7a0202a1de1","tarball":"https://registry.npmjs.org/@amphibian/validate/-/validate-1.2.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEWTj4IS6W7BORnXp5J/ZI00gcyQ414bdqQZn74s0wO2AiEAqu68k+2L+e0wHQSYU/xJXINoch1Uf6kJV9TSslWauMI="}]},"maintainers":[{"name":"thomaslindstr_m","email":"t@hom.as"},{"name":"thomaslindstr_m2","email":"t@hom.as"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/validate-1.2.1.tgz_1505953285209_0.5505467529874295"},"directories":{}},"1.2.2":{"name":"@amphibian/validate","version":"1.2.2","description":"simple schema validation","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/thomaslindstr_m/validate.git"},"author":{"name":"Thomas Lindstrøm","email":"t@hom.as"},"license":"ISC","bugs":{"url":"https://gitlab.com/thomaslindstr_m/validate/issues"},"homepage":"https://gitlab.com/thomaslindstr_m/validate#README","dependencies":{"@amphibian/errors":"^2.0.0","@amphibian/for-own":"^1.0.14","@amphibian/is-array":"^1.0.5","@amphibian/is-boolean":"^1.0.5","@amphibian/is-date":"^1.0.0","@amphibian/is-function":"^1.0.2","@amphibian/is-number":"^1.0.1","@amphibian/is-object":"^1.0.5","@amphibian/is-promise":"^1.0.1","@amphibian/is-string":"^1.0.2","@amphibian/is-undefined":"^1.0.2","@amphibian/iterate-up-array":"^1.0.1","@amphibian/object-has-property":"^1.0.1"},"gitHead":"9458301230b079f23a2d8a9ef53d1175c5602b07","_id":"@amphibian/validate@1.2.2","_npmVersion":"5.4.2","_nodeVersion":"8.5.0","_npmUser":{"name":"thomaslindstr_m2","email":"t@hom.as"},"dist":{"integrity":"sha512-7CXK8a9YCGQnkjXLDZCEGeEgbWs73WjttdIp6peQ0dfdCL9ppLHEin3a1Jswb/S4jNnaERkNd6xKlShxAhf2Pg==","shasum":"b4144aeacd87d703846912e0cb09fdd5b7ca3242","tarball":"https://registry.npmjs.org/@amphibian/validate/-/validate-1.2.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF1+c2U+U0jifSvcF8l2UkKNz+TxgMppSLRwE4DBnomJAiEA6558FAzhxf5Sle9c3fkuXWPTOPY2OsNKAGOK3gDgKVg="}]},"maintainers":[{"name":"thomaslindstr_m","email":"t@hom.as"},{"name":"thomaslindstr_m2","email":"t@hom.as"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/validate-1.2.2.tgz_1505953501392_0.4719406289514154"},"directories":{}},"1.3.0":{"name":"@amphibian/validate","version":"1.3.0","description":"simple schema validation","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/thomaslindstr_m/validate.git"},"author":{"name":"Thomas Lindstrøm","email":"t@hom.as"},"license":"ISC","bugs":{"url":"https://gitlab.com/thomaslindstr_m/validate/issues"},"homepage":"https://gitlab.com/thomaslindstr_m/validate#README","dependencies":{"@amphibian/errors":"^2.0.0","@amphibian/for-own":"^1.0.14","@amphibian/is-array":"^1.0.5","@amphibian/is-boolean":"^1.0.5","@amphibian/is-date":"^1.0.0","@amphibian/is-function":"^1.0.2","@amphibian/is-number":"^1.0.1","@amphibian/is-object":"^1.0.5","@amphibian/is-promise":"^1.0.1","@amphibian/is-string":"^1.0.2","@amphibian/is-undefined":"^1.0.2","@amphibian/iterate-up-array":"^1.0.1","@amphibian/object-has-property":"^1.0.1"},"gitHead":"85aa93cc48c6bad9f11a06357ee6063c67128a29","_id":"@amphibian/validate@1.3.0","_npmVersion":"5.4.2","_nodeVersion":"8.5.0","_npmUser":{"name":"thomaslindstr_m2","email":"t@hom.as"},"dist":{"integrity":"sha512-EhHb1F83PrkVh4Lqzw3vVzExKxUGtkAuombrOT24THvpKyOqGtE8+r179IJwhym/uVm1wxCwZGQwxy/2U81cDg==","shasum":"b8c3bd54a56dadd059c79c56aff0056e0177eace","tarball":"https://registry.npmjs.org/@amphibian/validate/-/validate-1.3.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFevgwBuK67AU9y1L+MqT7sTthdsSh02jWVJoXiukN/mAiBQuFJFQl9P3zwVVfH/8bqdoLcvskCLdo1o23go3sW4+w=="}]},"maintainers":[{"name":"thomaslindstr_m","email":"t@hom.as"},{"name":"thomaslindstr_m2","email":"t@hom.as"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/validate-1.3.0.tgz_1506459056041_0.4727979719173163"},"directories":{}},"1.3.1":{"name":"@amphibian/validate","version":"1.3.1","description":"simple schema validation","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/thomaslindstr_m/validate.git"},"author":{"name":"Thomas Lindstrøm","email":"t@hom.as"},"license":"ISC","bugs":{"url":"https://gitlab.com/thomaslindstr_m/validate/issues"},"homepage":"https://gitlab.com/thomaslindstr_m/validate#README","dependencies":{"@amphibian/errors":"^2.0.0","@amphibian/for-own":"^1.0.14","@amphibian/is-array":"^1.0.5","@amphibian/is-boolean":"^1.0.5","@amphibian/is-date":"^1.0.0","@amphibian/is-function":"^1.0.2","@amphibian/is-number":"^1.0.1","@amphibian/is-object":"^1.0.5","@amphibian/is-promise":"^1.0.1","@amphibian/is-string":"^1.0.2","@amphibian/is-undefined":"^1.0.2","@amphibian/iterate-up-array":"^1.0.1","@amphibian/object-has-property":"^1.0.1"},"gitHead":"cdc99adc584c6bf0ddb839df4183d364e4d7eace","_id":"@amphibian/validate@1.3.1","_npmVersion":"5.4.2","_nodeVersion":"8.5.0","_npmUser":{"name":"thomaslindstr_m2","email":"t@hom.as"},"dist":{"integrity":"sha512-rF28zA+/ZEfhgxKUBRmrtSqXqILFWqyeo9ZPMoZa/JOkkFqyudBdiSVGXTZGebKUhPRITBwwxjJH/fp4FVqOGA==","shasum":"c52a5890466f3111858287a1ac331b8b2513c6a3","tarball":"https://registry.npmjs.org/@amphibian/validate/-/validate-1.3.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/Ch33qhXn+vo7Hlqp/+vZtILJvDCylx+A5XugoUfiRwIgHH4jyMh1V6tbte7XzOovEtuuN/RjmZtOiWBM1pmgdGU="}]},"maintainers":[{"name":"thomaslindstr_m","email":"t@hom.as"},{"name":"thomaslindstr_m2","email":"t@hom.as"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/validate-1.3.1.tgz_1506460611689_0.606813267339021"},"directories":{}},"1.4.0":{"name":"@amphibian/validate","version":"1.4.0","description":"simple schema validation","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/thomaslindstr_m/validate.git"},"author":{"name":"Thomas Lindstrøm","email":"t@hom.as"},"license":"ISC","bugs":{"url":"https://gitlab.com/thomaslindstr_m/validate/issues"},"homepage":"https://gitlab.com/thomaslindstr_m/validate#README","dependencies":{"@amphibian/errors":"^2.0.0","@amphibian/for-own":"^1.0.14","@amphibian/is-array":"^1.0.5","@amphibian/is-boolean":"^1.0.5","@amphibian/is-date":"^1.0.0","@amphibian/is-function":"^1.0.2","@amphibian/is-number":"^1.0.1","@amphibian/is-object":"^1.0.5","@amphibian/is-promise":"^1.0.1","@amphibian/is-regexp":"^1.0.2","@amphibian/is-string":"^1.0.2","@amphibian/is-undefined":"^1.0.2","@amphibian/iterate-up-array":"^1.0.1","@amphibian/object-has-property":"^1.0.1"},"gitHead":"a2022ea8a4eb924bf9994f3d4136180d0bf15478","_id":"@amphibian/validate@1.4.0","_npmVersion":"5.4.2","_nodeVersion":"8.5.0","_npmUser":{"name":"thomaslindstr_m2","email":"t@hom.as"},"dist":{"integrity":"sha512-DHrbvs8wz5QfSXRRg7v3RHwkmWMTLP86QjKVZp0ZNIvhSV0h5vemROhBICOXhNyW0khfedjQ3O4PXlEQKwrtGQ==","shasum":"7431a7be7c61110d46163a3e6a49133d66234238","tarball":"https://registry.npmjs.org/@amphibian/validate/-/validate-1.4.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIMlyvE0gGqJ4mckGLkZ06tG4azHj4R9BDP0YB9BQjTAIhANvfcBTaeuL6wiB9om0gwiPh5BrazopBWl4HOo3+Q5NF"}]},"maintainers":[{"name":"thomaslindstr_m","email":"t@hom.as"},{"name":"thomaslindstr_m2","email":"t@hom.as"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/validate-1.4.0.tgz_1506460857646_0.3863497404381633"},"directories":{}},"1.5.0":{"name":"@amphibian/validate","version":"1.5.0","description":"simple schema validation","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/thomaslindstr_m/validate.git"},"author":{"name":"Thomas Lindstrøm","email":"t@hom.as"},"license":"ISC","bugs":{"url":"https://gitlab.com/thomaslindstr_m/validate/issues"},"homepage":"https://gitlab.com/thomaslindstr_m/validate#README","dependencies":{"@amphibian/errors":"^2.0.0","@amphibian/for-own":"^1.0.14","@amphibian/is-array":"^1.0.5","@amphibian/is-boolean":"^1.0.5","@amphibian/is-date":"^1.0.0","@amphibian/is-function":"^1.0.2","@amphibian/is-number":"^1.0.1","@amphibian/is-object":"^1.0.5","@amphibian/is-promise":"^1.0.1","@amphibian/is-regexp":"^1.0.2","@amphibian/is-string":"^1.0.2","@amphibian/is-undefined":"^1.0.2","@amphibian/iterate-up-array":"^1.0.1","@amphibian/object-has-property":"^1.0.1"},"devDependencies":{"jest":"^23.1.0"},"gitHead":"1ed0da0c8d1f90408ba96f4b3d3d28cea90cfd2e","_id":"@amphibian/validate@1.5.0","_npmVersion":"6.1.0","_nodeVersion":"8.11.2","_npmUser":{"name":"thomaslindstr_m","email":"t@hom.as"},"dist":{"integrity":"sha512-VOsMZ8bpuOLdqh4F2CkvwGBOH48Z/cjh8PgY+fg0gNPCcWwfOE6aekTtiIa9VZlxMc8FfsmSofn5naclzV9Wew==","shasum":"2ed29e36b294386b213e97f912b2eb1ca6c23ccb","tarball":"https://registry.npmjs.org/@amphibian/validate/-/validate-1.5.0.tgz","fileCount":5,"unpackedSize":122087,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbHiSfCRA9TVsSAnZWagAA4coP/jYzM/2I9FodBWjtMv/4\n3JjMA0Pt7hCVt6oJ5xJt1JRp54hj4YJTVCEYkkFWOEkclW21Ww+jbUS1iJZe\nYsQP+ZMBSfiW0yA3JHNWMwJVXmDQlDXbOWBcyTy4yNHPPSc1J8A21W36P5DQ\njHAVpbGN3yrv2A4sWNgPeMa+4jnuhpCRNJycvaTvIXNdCHGyiWpBlxQYNd4R\nnvN4T0HaiAV8hMA1ffbVvoKLoiu6uzPTSA4LYwW+RHSAihrqM0p3nuat4rvs\n/AdS17gGK1OcmIWtdb4R0brwxt/aF3e5y+7ZDVMZLkg0h14y02sHokDeqB+M\njoojAeTGwcpNEBuVGxOsccYl8LzBoB5aFEGYWYBz5XP7eO2xIprJ3eYd6OZ0\nxT/00Udk+nX2VnSKi51GLGIdrRdXU0u5238S65S5/6K9Fn0eMuLCH22sxb2o\n7PHWvumY9/+IaWnX2gkK9vZYqUxMK1V6o/fhiwd7hOA8jhQBJKcBuKfoTgLm\nFVf1GtWyeiUDm1ilcYenmuMnwqy+1yUfFd/I12keuroq/yukRaEtHq1cFSJ7\nrg08VnxRAcNnpKCldWmBWj2Q4DAk0oesbJMP/F2MD5IdDD0kmXjLKV0hIFcr\nEf78exSacrLPKjRImMPerNpxdNDIsorc3+zUnK+vcGOyZ3ugByXv0jVfMkDv\nbRIS\r\n=qwWf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFJSzeg9g1GjcYTf7twQqDfyctzRUFyX7wzu/mYezTilAiBj+gLZ5rwXvzRaQ0n23Q4i+sOP+NeWBBGn18mX2FDlLw=="}]},"maintainers":[],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/validate_1.5.0_1528702110349_0.11375216988267534"},"_hasShrinkwrap":false},"1.6.0":{"name":"@amphibian/validate","version":"1.6.0","description":"simple schema validation","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/thomaslindstr_m/validate.git"},"author":{"name":"Thomas Lindstrøm","email":"t@hom.as"},"license":"ISC","bugs":{"url":"https://gitlab.com/thomaslindstr_m/validate/issues"},"homepage":"https://gitlab.com/thomaslindstr_m/validate#README","dependencies":{"@amphibian/errors":"^2.0.0","@amphibian/for-own":"^1.0.14","@amphibian/is-array":"^1.0.5","@amphibian/is-boolean":"^1.0.5","@amphibian/is-date":"^1.0.0","@amphibian/is-function":"^1.0.2","@amphibian/is-number":"^1.0.1","@amphibian/is-object":"^1.0.5","@amphibian/is-promise":"^1.0.1","@amphibian/is-regexp":"^1.0.2","@amphibian/is-string":"^1.0.2","@amphibian/is-undefined":"^1.0.2","@amphibian/iterate-up-array":"^1.0.1","@amphibian/object-has-property":"^1.0.1"},"devDependencies":{"jest":"^23.1.0"},"gitHead":"e931bccb111eb16f3653ef1c9e3a15f5cdc2e627","_id":"@amphibian/validate@1.6.0","_npmVersion":"6.1.0","_nodeVersion":"8.11.2","_npmUser":{"name":"thomaslindstr_m","email":"t@hom.as"},"dist":{"integrity":"sha512-Z9t+FsqKOBXtdqifAF8R7aZguBdosiwKwDfqSgHK8FPd8RXR2Y1XMWHD155jeCiRliFCMkesHAtztXTH/LEkJw==","shasum":"3875b63ae2e85e1b78d1b4aa56fbffc8f792a54d","tarball":"https://registry.npmjs.org/@amphibian/validate/-/validate-1.6.0.tgz","fileCount":5,"unpackedSize":122285,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbHiaZCRA9TVsSAnZWagAAG18P/j2+EYOuD2tRPwjXlYgm\n/lxphXnLV1iqWaaV0W4Bd3vzD1El8Dzhl5WIYE6mtcS4qAS5EQadvHRy0f7o\nVyJMM24pLmD85hZpsF08bk2QuCxLgrd/TeehWKVXafqZOOzxqXvvpUDj/qYH\ncxP+hDu2wwMvOI57WNXqOKo3PwpIzQdjhIV670N0kSC0Cmsqkh96nbjkWTct\ncVHyC+xHazyEsiVyZp5mmI5YixycRw9OQ7kBoVYx3SLld71ikF7iUjb+lqBc\niAcDjJO1txHjykbKL6jbfpBMeZ+z/2WBuixzu+pnsv1gjJew+h0a3mT347Rv\nThd9VLwtizQxiGp1m58kUvTd/0M9qmcFwCusgy20Qvy9eVkZGE2EUrKwnfZm\naOdT2Po9hmj4G2A7JBW6F00h3oWExF3hdgtSCsI8yHd30ihgvHfnOcSdZEpR\nocTb80iZoJHS25yQRT9Zk3ks3/8RQ4CUIkuZoKyuxmQN/tlN9OqUIj8oTV1p\njB8hAg1jvw276c8nrO8jLp/mPjsPzO43jRfb6jxe7iIsn8ZtzSiSKNOF3W5m\nURb72MSbarT56gfOaqWFJmNf8ima1kVrx0Dwo8ug4JFAtaS75ZrXGla/dgH5\nOgwTpz1JJ5m7Aj991gL8acELxt3Z+URgTPqwmwb6tmux6f2BBg/KxY2GZWeQ\ntTu0\r\n=awnU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFEIgcEu2m4cTY+NGVsHKewwZMUvuqAP1MV6XjB8lTLAIgaUA0X2Wd5edih/LIur4E6sGSd0hjPSbZfd4Jue6GFOE="}]},"maintainers":[],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/validate_1.6.0_1528702617370_0.5261552375558429"},"_hasShrinkwrap":false},"1.6.1":{"name":"@amphibian/validate","version":"1.6.1","description":"simple schema validation","main":"index.js","browser":"browser.js","license":"ISC","scripts":{"test":"npm run lint -s && jest --coverage --bail --forceExit --detectOpenHandles","lint":"amphibian-linter .","prepublishOnly":"babel index.js --out-file browser.js"},"jest":{"testEnvironment":"node"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/thomaslindstr_m/validate.git"},"author":{"name":"Thomas Lindstrøm","email":"t@hom.as"},"bugs":{"url":"https://gitlab.com/thomaslindstr_m/validate/issues"},"homepage":"https://gitlab.com/thomaslindstr_m/validate#README","dependencies":{"@amphibian/errors":"^2.0.0","@amphibian/for-own":"^1.0.14","@amphibian/is-array":"^1.0.5","@amphibian/is-boolean":"^1.0.5","@amphibian/is-date":"^1.0.0","@amphibian/is-function":"^1.0.2","@amphibian/is-number":"^1.0.1","@amphibian/is-object":"^1.0.5","@amphibian/is-promise":"^1.0.1","@amphibian/is-regexp":"^1.0.2","@amphibian/is-string":"^1.0.2","@amphibian/is-undefined":"^1.0.2","@amphibian/iterate-up-array":"^1.0.1","@amphibian/object-has-property":"^1.0.1"},"devDependencies":{"@amphibian/linter":"^1.1.2","babel-cli":"^6.26.0","babel-core":"^6.26.3","babel-preset-env":"^1.7.0","jest":"^23.4.2"},"gitHead":"85e098595af935e12b8fc2d771b29cc938cb21bf","_id":"@amphibian/validate@1.6.1","_npmVersion":"6.1.0","_nodeVersion":"8.11.2","_npmUser":{"name":"thomaslindstr_m","email":"t@hom.as"},"dist":{"integrity":"sha512-nfqsCBeJzyqCgB7ou8ekmlHCbqIFaox2BDH2QUDuo7/iY+VH5iha/bOwSH9OKE1S09F0Owfc1QIV6aRaXakVfg==","shasum":"ad3d9eb35d9adac671ba31a7b6fc5989aef8b92a","tarball":"https://registry.npmjs.org/@amphibian/validate/-/validate-1.6.1.tgz","fileCount":7,"unpackedSize":221709,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbY5CcCRA9TVsSAnZWagAAwK4QAJrfGdc4E5gCSrMGEzLI\nHWLt6TaE+kTgZWV1UyR2sUVhipvWF6lt0Vs/KqseJ6iQ5l79cvsoWaSqUMPp\ncoQN3w2uqIqszWuF2VqAoZAa1vSLJJ4geOEHkeT64gNF0oytYPG8OgLKZP6a\nKgIpMuOr0h8l3K6Udyq47Q85rzoNipcAhEgQTWqJcQjFjYA4R8bbOijFS6xM\nUpmVpCXowAL46w2eoUUOZLPrnD0p2ArKq93q2K4V2SAckXl03OdbkMV4t9JK\nUm03m9X7yPR3nye7U00ptiEhz1NUeosKr8zH/cmyKELrupwhqvNFvQ/Ka/IQ\nsGcOCp+kChfN/faeAXCEq92qL73oSBH6NU+lbFV4zl216Ic5dM7fm8cfvzKG\nAI+fe19t2gucKj88+1UIWkbzWMqolF1rgDTygYnb9Dyll68FAwrRpgLkqMhS\nF6AXHP3KG3SX+cGPdagqdKm6shuGxwzzoTYPYCXPPuhTXfIm6dT0uDLWEUfo\nUuqBxtdDuB3+isi/OxlSxDnLipYSpivvtTzzEIFodISv7zaF/FeYPMHXPBRs\nlaDJOkx7ouZ8GKyNCKzpq9QF2JumKRoBSP6Rg1ZhFZ6GEG+g/RVfKI7oH0sC\nTEuPRlEtW7WQR7W7ve2KVHrskfHJcWZIi//u+w4Ngn/vX78Jxs+TtrqhsxqC\nmXP0\r\n=ZF//\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEtg+HwEQkbvd5wq4FEatTlFL6sa9egkDx+djr4cdGLgIgKzaYhzNpVBXRv9bUQfqQp7xZY/pAALC48ziGm9EZ4mA="}]},"maintainers":[],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/validate_1.6.1_1533251740078_0.07920953846348211"},"_hasShrinkwrap":false}},"readme":"# validate\n\n[![build status](https://gitlab.com/thomaslindstr_m/validate/badges/master/build.svg)](https://gitlab.com/thomaslindstr_m/validate/commits/master)\n\nsimple schema validation\n\n```\nnpm install @amphibian/validate\n```\n\n```javascript\nvar {validate} = require('@amphibian/validate');\n```\n\n## Building a schema\nSet up schemas as objects that have a `type` property with a `string` describing the expected type.\n\n```javascript\n// String schema\n{type: 'string'}\n```\n\n`type` can be any of the following: `any`, `undefined`, `boolean`, `number`, `string`, `regexp`, `array`, `object`, `date`, `function`, `promise`.\n\n#### schema.optional\n\nProvide `boolean` `optional` if `validate` shouldn't validate input when it is `undefined`.\n\n```javascript\n// NOTE Will not throw\nvalidate(undefined, {type: 'string', optional: true});\n```\n\n#### schema.test\n\nProvide `function` `test` to do your own validation after `validate` has succeeded. It is given three arguments: `input`, `objectPath`, and `objectPathArray`. `objectPath` is a readable string showing the location of the error in the provided schema. `objectPathArray` is the array representation of that string that can be passed onto other `validate` functions.\n\n```javascript\n// NOTE Will throw custom error\nvalidate('password', {\n    type: 'string',\n    test: (input, objectPath) => {\n        if (input.length < 10) {\n            throw new Error(`Password too short at \"${objectPath}\"!`);\n        }\n    }\n});\n```\n\n### Object schema\nSpecial property `properties` that describe children of the object.\n\n```javascript\n{\n    type: 'object',\n    properties: {\n        someChild: {type: 'string'},\n        otherChild: {type: 'number', optional: true}\n    }\n}\n```\n\n### Array schema\nSpecial property `indices` that describe children of the array.\n\n```javascript\n{\n    type: 'array',\n    indices: {type: 'string'}\n}\n```\n\n# Usage\n\nThe `validate` function takes two arguments: The `variable` you would like to validate, and the `schema` it should match. `validate` throws on error.\n\n```javascript\nvar {validate} = require('@amphibian/validate');\n\ntry {\n    validate({}, {type: 'string'});\n} catch (error) {\n    console.log(error.code); // > type_error\n}\n```\n\n# Errors\n\nIf the schema validation fails, an `@amphibian/error` will be thrown. The error object is an `Error` instance with a few extra properties, and looks somewhat like this:\n\n```javascript\n{\n    message: 'Invalid Input (unknown_schema_type): schema.type undefned',\n    status: 400,\n    type: 'invalid_input',\n    code: 'unknown_schema_type',\n    data: ['schema.type', 'undefned']\n}\n```\n\nThe first index of `error.data` is the path to where the error was found.\n\n# Advanced schemas\n\nTo build more advanced and complex schemas, utilize the `any` type with custom `test` parameters.\n\n```javascript\nvar {validate, expectOneToSucceed} = require('@amphibian/validate');\nvar schema = {\n    type: 'any',\n    test: (input, objectPath, objectPathArray) => {\n        try {\n            expectOneToSucceed([\n                () => validate(input, {type: 'object'}, objectPathArray),\n                () => validate(input, {type: 'array'}, objectPathArray)\n            ]);\n        } catch (error) {\n            throw new Error(`Use Object or Array at \"${objectPath}\"!`);\n        }\n    }\n};\n\nvalidate({}, schema);\n```\n","maintainers":[{"email":"t@hom.as","name":"thomaslindstr_m"}],"time":{"modified":"2022-04-04T13:51:44.042Z","created":"2017-06-11T17:18:31.824Z","1.0.0":"2017-06-11T17:18:31.824Z","1.1.0":"2017-09-13T21:43:46.919Z","1.2.0":"2017-09-21T00:19:47.776Z","1.2.1":"2017-09-21T00:21:26.100Z","1.2.2":"2017-09-21T00:25:02.415Z","1.3.0":"2017-09-26T20:50:57.007Z","1.3.1":"2017-09-26T21:16:52.612Z","1.4.0":"2017-09-26T21:20:58.570Z","1.5.0":"2018-06-11T07:28:30.406Z","1.6.0":"2018-06-11T07:36:57.435Z","1.6.1":"2018-08-02T23:15:40.155Z"},"homepage":"https://gitlab.com/thomaslindstr_m/validate#README","repository":{"type":"git","url":"git+ssh://git@gitlab.com/thomaslindstr_m/validate.git"},"author":{"name":"Thomas Lindstrøm","email":"t@hom.as"},"bugs":{"url":"https://gitlab.com/thomaslindstr_m/validate/issues"},"license":"ISC","readmeFilename":"readme.md"}