{"_id":"proptypes","_rev":"16-72d762c80a56cb5283c7aeff313cdf71","name":"proptypes","time":{"modified":"2022-06-24T20:28:34.707Z","created":"2015-06-20T17:00:53.667Z","0.0.1":"2015-06-20T17:00:53.667Z","0.0.2":"2015-06-20T19:45:50.023Z","0.14.0":"2015-10-20T02:00:57.753Z","0.14.1":"2015-11-08T18:14:25.782Z","0.14.2":"2016-02-06T15:06:12.365Z","0.14.3":"2016-02-06T15:10:30.398Z","0.14.4":"2017-02-03T16:02:14.258Z","1.0.0":"2017-04-25T02:05:21.801Z","1.1.0":"2017-06-03T01:29:01.249Z"},"maintainers":[{"name":"acdlite","email":"acdlite@me.com"},{"name":"developit","email":"jason@developit.ca"}],"dist-tags":{"latest":"1.1.0"},"description":"React's PropTypes, packaged up as a standalone module.","readme":"# proptypes\n\n> React's [PropTypes], packaged up as a standalone module.\n\n**DISCLAIMER:**\nThis is literally copied from the React 0.14 codebase.\nIf you're using PropTypes with React, it would be silly to reference this standalone version.\n\n\n## Usage\n\n```js\nfunction check(props, propTypes) {\n  for (let prop in propTypes) {\n    if (propTypes.hasOwnProperty(prop)) {\n      let err = propTypes[prop](props, prop, 'name', 'prop');\n      if (err) {\n        console.warn(err);\n        return false;\n      }\n    }\n  }\n  return true;\n}\n\nlet valid = check({\n  a: 42,\n  b: 'News'\n}, {\n  a: PropTypes.number,\n  b: PropTypes.oneOf(['News', 'Photos'])\n});\n\nvalid;  // true\n```\n\n## Production build\n\n### Disabling\n\nWith webpack:\n\n```js\nmodule.exports = {\n  resolve: {\n    alias: {\n      proptypes: 'proptypes/disabled',\n    }\n  }\n};\n```\n\n### Removing the definitions with React \n\nWhen you are using this package with React like API, you might want to save bandwidth by removing the definitions.\nYou can use [babel-plugin-transform-react-remove-prop-types](https://github.com/oliviertassinari/babel-plugin-transform-react-remove-prop-types) for that use case, for instance:\n\n```js\n// In\nconst Baz = (props) => (\n  <div {...props} />\n);\n\nBaz.propTypes = {\n  className: PropTypes.string\n};\n\n// Out\nconst Baz = (props) => (\n  <div {...props} />\n);\n```\n\n## License\n\nBSD\n\n[PropTypes]: https://github.com/facebook/react/blob/master/src/isomorphic/classic/types/ReactPropTypes.js\n","versions":{"0.14.0":{"name":"proptypes","version":"0.14.0","description":"React's PropTypes, packaged up as a standalone module.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/developit/proptypes.git"},"homepage":"https://github.com/developit/proptypes","license":"BSD","gitHead":"e1e47c9a3c1c46c9dc281bf6fa9b95dc5a597533","bugs":{"url":"https://github.com/developit/proptypes/issues"},"_id":"proptypes@0.14.0","scripts":{},"_shasum":"30c123f206c625f51233f9a8a62289971bcdfb00","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"developit","email":"jason@developit.ca"},"maintainers":[{"name":"developit","email":"jason@developit.ca"}],"dist":{"shasum":"30c123f206c625f51233f9a8a62289971bcdfb00","tarball":"https://registry.npmjs.org/proptypes/-/proptypes-0.14.0.tgz","integrity":"sha512-nvbqoJow43omYjde/E/DMPCSrGCBcYM9EvLB51jh209fHWJ9DPx7lww2IcBQh7s1ts+fd0cdIMYM3t8twIlKdw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEv9aa1KbzU7/hnAxjt8axFOdf/5rE1XN6pKU5kzQXFnAiBbh1GrWvDlEy0NJtkRV62hjSX2cUteyT7PAdCDVCG9lQ=="}]}},"0.14.1":{"name":"proptypes","version":"0.14.1","description":"React's PropTypes, packaged up as a standalone module.","main":"index.js","scripts":{"build":"babel -f $npm_package_main -s -o $npm_package_main < src/index.js"},"repository":{"type":"git","url":"git+https://github.com/developit/proptypes.git"},"homepage":"https://github.com/developit/proptypes","license":"BSD","devDependencies":{"babel":"^5.8.29"},"gitHead":"7abe4c9ee3aace4584ee95b28842abec16fdc2de","bugs":{"url":"https://github.com/developit/proptypes/issues"},"_id":"proptypes@0.14.1","_shasum":"3a461e9aaf53697e2c9057a870c0ffb0cf155933","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"developit","email":"jason@developit.ca"},"maintainers":[{"name":"developit","email":"jason@developit.ca"}],"dist":{"shasum":"3a461e9aaf53697e2c9057a870c0ffb0cf155933","tarball":"https://registry.npmjs.org/proptypes/-/proptypes-0.14.1.tgz","integrity":"sha512-VTZBLx1sY96PWvWTVlMqYFwwl8r46hbXJITSGFT4iEK5B1Pjb17X+I9iy79Q+VzuZzP3QIaHnOjXfULpmqyQ5w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSgrBisEeWi7B4AzsVuveJgucuXPL2xqK2Ik7OwR95ewIgIybmo3wdzhund0JP8Pg4N8Lpfklxec54abbxW6YbPUs="}]}},"0.14.2":{"name":"proptypes","amdName":"PropTypes","version":"0.14.2","description":"React's PropTypes, packaged up as a standalone module.","main":"index.js","scripts":{"build":"babel -f $npm_package_main -m umd --module-id $npm_package_amdName -s -o $npm_package_main < src/index.js","release":"npm run -s build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"},"repository":{"type":"git","url":"git+https://github.com/developit/proptypes.git"},"homepage":"https://github.com/developit/proptypes","license":"BSD","devDependencies":{"babel":"^5.8.29"},"gitHead":"333a3abe271fb7046272872ee4752b6de7831eca","bugs":{"url":"https://github.com/developit/proptypes/issues"},"_id":"proptypes@0.14.2","_shasum":"caabbce98d1e77e225eca233ed3179a0a5980e32","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"developit","email":"jason@developit.ca"},"maintainers":[{"name":"developit","email":"jason@developit.ca"}],"dist":{"shasum":"caabbce98d1e77e225eca233ed3179a0a5980e32","tarball":"https://registry.npmjs.org/proptypes/-/proptypes-0.14.2.tgz","integrity":"sha512-z1Ai4KJ0YX4cC3CMIyntkQRnxZGBGC44GOKa37EGyx9cTm3ONNoHlXt8wzawHWXKOY7asHNb+JoQYxYQVklXcg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4sEQCmpfV9DHqK80SmbhFCCGPape3RTfTPmK1gkyOuwIhAKiXDORtZtu6t+pof4w3cvg9nSkKn9PBUUihxW6N/AQG"}]},"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/proptypes-0.14.2.tgz_1454771169509_0.03426334448158741"}},"0.14.3":{"name":"proptypes","amdName":"PropTypes","version":"0.14.3","description":"React's PropTypes, packaged up as a standalone module.","main":"index.js","scripts":{"build":"babel -f $npm_package_main -m umd --module-id $npm_package_amdName -s -o $npm_package_main < src/index.js","release":"npm run -s build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"},"repository":{"type":"git","url":"git+https://github.com/developit/proptypes.git"},"homepage":"https://github.com/developit/proptypes","license":"BSD","devDependencies":{"babel":"^5.8.29"},"gitHead":"811dbc81913555301ff3d82339f40f35e1542bff","bugs":{"url":"https://github.com/developit/proptypes/issues"},"_id":"proptypes@0.14.3","_shasum":"948d47f0ef1b501e34d934e42b39d60d26a8bf9d","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"developit","email":"jason@developit.ca"},"maintainers":[{"name":"developit","email":"jason@developit.ca"}],"dist":{"shasum":"948d47f0ef1b501e34d934e42b39d60d26a8bf9d","tarball":"https://registry.npmjs.org/proptypes/-/proptypes-0.14.3.tgz","integrity":"sha512-46xFJuZWgAQXhQ0YMXMkjwxgPTKOgoA2Drjc0eunKUoZhj6THW/pbXBYrUpkUdi6vDrD7LUCKoAOQ5a/+HooUg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZZWHnh6u5rtsjXEZUJoGJTMp+0Hn37UZ/ucKpuf/CUAIhAKWd0LmWNtag2V4w8TheUgGbjrhfkyUzlLuj7bDqjx9B"}]},"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/proptypes-0.14.3.tgz_1454771427982_0.8191728536039591"}},"0.14.4":{"name":"proptypes","amdName":"PropTypes","version":"0.14.4","description":"React's PropTypes, packaged up as a standalone module.","main":"index.js","scripts":{"build":"babel -f $npm_package_main -m umd --module-id $npm_package_amdName -s -o $npm_package_main < src/index.js","release":"npm run -s build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"},"files":["src","index.js","index.js.map"],"repository":{"type":"git","url":"git+https://github.com/developit/proptypes.git"},"homepage":"https://github.com/developit/proptypes","license":"BSD","devDependencies":{"babel":"^5.8.29"},"gitHead":"35cd5b3417b2e24edc023f742e2d34f38761c286","bugs":{"url":"https://github.com/developit/proptypes/issues"},"_id":"proptypes@0.14.4","_shasum":"1ead7600d44472a614aa1cf0c4cccee7d867997d","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"developit","email":"jason@developit.ca"},"maintainers":[{"name":"developit","email":"jason@developit.ca"}],"dist":{"shasum":"1ead7600d44472a614aa1cf0c4cccee7d867997d","tarball":"https://registry.npmjs.org/proptypes/-/proptypes-0.14.4.tgz","integrity":"sha512-LZUGYEcGc6hXz3UNB0QvYUHomaiSeJSEXZVN0fiNf7FgoPrnTT4tWn/VzqQIUyTb6bOiqBxb+G7wcLQalJZfkA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvGZU1REC5O0OOYTzf/PjM/P2j/SRL4R2Qw8ZXyQth5AIgIbQ/uxvHVfHwb0a7Bn6f4+dFySLSF0oPszHNQJyeygA="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/proptypes-0.14.4.tgz_1486137734022_0.8539393085520715"}},"1.0.0":{"name":"proptypes","amdName":"PropTypes","version":"1.0.0","description":"React's PropTypes, packaged up as a standalone module.","main":"index.js","scripts":{"build":"babel --module-id $npm_package_amdName -s -d . src","release":"npm run -s build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"},"files":["src","index.js","index.js.map","disabled.js","disabled.js.map"],"repository":{"type":"git","url":"git+https://github.com/developit/proptypes.git"},"homepage":"https://github.com/developit/proptypes","license":"BSD","devDependencies":{"babel-cli":"^6.23.0","babel-preset-env":"^1.2.1"},"gitHead":"6e5abf0ab1fae40dc88cdefbd6ae864ebedfc21f","bugs":{"url":"https://github.com/developit/proptypes/issues"},"_id":"proptypes@1.0.0","_shasum":"ba831a653aab89862f28a084cebbc0cdf9f1b09b","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"developit","email":"jason@developit.ca"},"dist":{"shasum":"ba831a653aab89862f28a084cebbc0cdf9f1b09b","tarball":"https://registry.npmjs.org/proptypes/-/proptypes-1.0.0.tgz","integrity":"sha512-vuccd7gGbsDlwBQBHpUDfNBBSGo1NMu5H31b6yma1ZkqegOqtwjeMzz5pFXv1447eH9JdIj+7DeSubZcX9aYfQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEbA4vrvwlWJ/HOi1A1VDtNRnfjgbFEsVVM/z5rejpZEAiEAgXZbvMlRIQbtTvZgKetkPFQdKumTJqaSpui0XKJnXpE="}]},"maintainers":[{"name":"acdlite","email":"acdlite@me.com"},{"name":"developit","email":"jason@developit.ca"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/proptypes-1.0.0.tgz_1493085921583_0.40092003415338695"}},"1.1.0":{"name":"proptypes","amdName":"PropTypes","version":"1.1.0","description":"React's PropTypes, packaged up as a standalone module.","main":"index.js","scripts":{"build":"babel --module-id $npm_package_amdName -s -d . src","release":"npm run -s build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"},"files":["src","index.js","index.js.map","disabled.js","disabled.js.map"],"repository":{"type":"git","url":"git+https://github.com/developit/proptypes.git"},"homepage":"https://github.com/developit/proptypes","license":"BSD","devDependencies":{"babel-cli":"^6.23.0","babel-preset-env":"^1.2.1"},"gitHead":"c3dfd2c51965ad2e587db78810968cef609490b7","bugs":{"url":"https://github.com/developit/proptypes/issues"},"_id":"proptypes@1.1.0","_shasum":"78b3828a5aa6bb1308939e0de3c6044dfd4bd239","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"developit","email":"jason@developit.ca"},"dist":{"shasum":"78b3828a5aa6bb1308939e0de3c6044dfd4bd239","tarball":"https://registry.npmjs.org/proptypes/-/proptypes-1.1.0.tgz","integrity":"sha512-589N0gHNvg6ocCDia1knxMwguEcZq1qyD8fVxFZEdZP0YKI+GTHyflsJH2mYE0YZbo1KNj5W8avdSR4iJDV+fw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAsjqo1V6fRBC7BxWeWth+ZLTn2sDJi/o0SBpZOINn1IAiEA0JqrEpcVjIUQS4yOQtvmw66T1RaCi9HT/9ZnWTwozrQ="}]},"maintainers":[{"name":"acdlite","email":"acdlite@me.com"},{"name":"developit","email":"jason@developit.ca"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/proptypes-1.1.0.tgz_1496453341127_0.8228477237280458"}}},"homepage":"https://github.com/developit/proptypes","repository":{"type":"git","url":"git+https://github.com/developit/proptypes.git"},"bugs":{"url":"https://github.com/developit/proptypes/issues"},"license":"BSD","readmeFilename":"README.md","users":{"developit":true,"suddi":true,"pnhoang":true}}