{"_id":"set-props","_rev":"13-e193302bf838c3fe69005c21ed418ba5","name":"set-props","dist-tags":{"latest":"1.0.9"},"versions":{"1.0.0":{"name":"set-props","version":"1.0.0","description":"同时设置react中Component的defaultProps和propTypes","main":"index.js","repository":{"type":"git","url":"git@gitlab.corp.qunar.com:shiyong.yin/set-props.git"},"author":{"name":"shiyong.yin","email":"1156546473@qq.com"},"license":"MIT","peerDependencies":{"lodash":"^4.17.5"},"gitHead":"103e43866d4c5471aea5d45be469bd934243deab","_id":"set-props@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"shiyong.yin","email":"1156546473@qq.com"},"dist":{"integrity":"sha512-z7QAgGM9y54xjg9HIo9Zv4BfhPlqGnn6PzrIK51iNmqInAqrSXxhPNgRRX8Q60GYSqHthepW6E8u7T1PRnlaiQ==","shasum":"f931447a1991c599d17a65f623c2bc49c0a37cd0","tarball":"https://registry.npmjs.org/set-props/-/set-props-1.0.0.tgz","fileCount":4,"unpackedSize":1715,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDvFxQ19YjvjlOJlR8n7I3X6Hg+wIzbZNjv6sgF+ayq/AiEAgh5rspKdl4aNwz+TdAscID1x8qILr1RVPHHpfmUGjtE="}]},"maintainers":[{"name":"shiyong.yin","email":"1156546473@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/set-props_1.0.0_1518337598484_0.9379356622247861"},"_hasShrinkwrap":false},"1.0.1":{"name":"set-props","version":"1.0.1","description":"同时设置react中Component的defaultProps和propTypes","main":"index.js","repository":{"type":"git","url":"git@gitlab.corp.qunar.com:shiyong.yin/set-props.git"},"author":{"name":"shiyong.yin","email":"1156546473@qq.com"},"license":"MIT","peerDependencies":{"lodash":"^4.17.5"},"gitHead":"a069f290dec3ff1818020f7fb11e27a62ceff0fa","_id":"set-props@1.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"shiyong.yin","email":"1156546473@qq.com"},"dist":{"integrity":"sha512-5quwx6mhO8iWG1QVR1vK+hcQ0XH1zimjagibz+mXWJxEGfIGOV6Tjxn1N5HOjsUw8d9u2KXhGhXnmLKkkaP3zg==","shasum":"60285816da6eb31f79a05aa87cb04a5b6e7e4e3a","tarball":"https://registry.npmjs.org/set-props/-/set-props-1.0.1.tgz","fileCount":4,"unpackedSize":1723,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBE/rjf2aVvyWOfInuRaFtzXIWFAqUBsZy8iVZ6iS5shAiEA6x+nGoQE8bAHs992/YTIzXAwDdlae/TmLwkltXjaGDg="}]},"maintainers":[{"name":"shiyong.yin","email":"1156546473@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/set-props_1.0.1_1518337708534_0.9544672642224499"},"_hasShrinkwrap":false},"1.0.2":{"name":"set-props","version":"1.0.2","description":"同时设置react中Component的defaultProps和propTypes","main":"index.js","repository":{"type":"git","url":"git@gitlab.corp.qunar.com:shiyong.yin/set-props.git"},"author":{"name":"shiyong.yin","email":"1156546473@qq.com"},"license":"MIT","peerDependencies":{"lodash":"^4.17.5"},"gitHead":"121d6d6d2e01bf204031a2fd63110ee087e8d1d8","_id":"set-props@1.0.2","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"shiyong.yin","email":"1156546473@qq.com"},"dist":{"integrity":"sha512-wSgJjInxLWYjZHfIwkBhVAife7saSocep/o90bXzfFK75BZWpHbIGoVohPaf+XUlY8aaBjXG8GnGLFOZJMZikA==","shasum":"e3f77bfeeb68355ed2be9c062f45b79bafca07a6","tarball":"https://registry.npmjs.org/set-props/-/set-props-1.0.2.tgz","fileCount":4,"unpackedSize":1238,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCz2wKNmtCbaIdsD98Dflyp5v5+p4/DpSgZ72HHSjt2KwIhAMoMomqZ9KzBv27IaQsaA4H97u32JPhP5kPliyZRKFKc"}]},"maintainers":[{"name":"shiyong.yin","email":"1156546473@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/set-props_1.0.2_1518440729144_0.9035878473514707"},"_hasShrinkwrap":false},"1.0.3":{"name":"set-props","version":"1.0.3","description":"同时设置react中Component的defaultProps和propTypes","main":"index.js","repository":{"type":"git","url":"git@gitlab.corp.qunar.com:shiyong.yin/set-props.git"},"author":{"name":"shiyong.yin","email":"1156546473@qq.com"},"license":"MIT","peerDependencies":{"lodash":"^4.17.5"},"gitHead":"814817dc361dbd0cd776d93197352946c26c1266","_id":"set-props@1.0.3","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"shiyong.yin","email":"1156546473@qq.com"},"dist":{"integrity":"sha512-kao5La2v29gyM+KodvJ3gdmwc3XmT/6T0NQN8ciWNJRul7/dIsJ1CN299u/Wc/zuXf0wU5BRfpto9YWtr82ltg==","shasum":"16a5e69c9128e28fe784e9078205b59456bd123f","tarball":"https://registry.npmjs.org/set-props/-/set-props-1.0.3.tgz","fileCount":4,"unpackedSize":1244,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEuK5cUX/m2EvkYbMbLajxIVP5kgIhuCarLaqktDZQkyAiEA+puR+f16yEhCzHJwmquPJxeDXyTInAXoIsobulFCfmA="}]},"maintainers":[{"name":"shiyong.yin","email":"1156546473@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/set-props_1.0.3_1518440791390_0.27838565041265206"},"_hasShrinkwrap":false},"1.0.4":{"name":"set-props","version":"1.0.4","description":"同时设置react中Component的defaultProps和propTypes","main":"index.js","repository":{"type":"git","url":"git@gitlab.corp.qunar.com:shiyong.yin/set-props.git"},"author":{"name":"shiyong.yin","email":"1156546473@qq.com"},"license":"MIT","peerDependencies":{"lodash":"^4.17.5"},"gitHead":"bef3f762868753a4c99b72d7780193508d4a9957","_id":"set-props@1.0.4","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"shiyong.yin","email":"1156546473@qq.com"},"dist":{"integrity":"sha512-Y6P2L72thbr/g3sk6Yt6OGsBtfmykqIR484lvP31U3ua2TxM1cYVpkPM+bTsyQ8fARKaXKS7wUf01JGUa90Aww==","shasum":"822e50803b69f51f17d8954da59ae91f7ad124c5","tarball":"https://registry.npmjs.org/set-props/-/set-props-1.0.4.tgz","fileCount":4,"unpackedSize":1334,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCv53jvI8YLB9XzVWMhh7ZC750P4CLQQ0GA/H1v7ZYIjQIgJf2ccfQ5AoiGwXLPSJiR2bo47rCWJXs4aZ15N/r4pNA="}]},"maintainers":[{"name":"shiyong.yin","email":"1156546473@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/set-props_1.0.4_1518440898726_0.10635512166818195"},"_hasShrinkwrap":false},"1.0.5":{"name":"set-props","version":"1.0.5","description":"同时设置react中Component的defaultProps和propTypes","main":"index.js","repository":{"type":"git","url":"git@gitlab.corp.qunar.com:shiyong.yin/set-props.git"},"author":{"name":"shiyong.yin","email":"1156546473@qq.com"},"license":"MIT","peerDependencies":{"lodash":"^4.17.5"},"gitHead":"2c916db9e9baf0d927c1b2cc81c8ee9d0fe95ad4","_id":"set-props@1.0.5","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"shiyong.yin","email":"1156546473@qq.com"},"dist":{"integrity":"sha512-uZ3JbANyC58l8F0qey10fqzTopRXtXwHKOOLTuPpTdZhFrsxZoxqW4dc7dM1y+fdAI3mSfqhzjVW7J/lJNzlLA==","shasum":"8ae83a6ee4cab54c3dad0c4f98d00cf053af30c3","tarball":"https://registry.npmjs.org/set-props/-/set-props-1.0.5.tgz","fileCount":4,"unpackedSize":1323,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE4NIplmTJTGUAooMslGGSIGBWq8ZQlMlugdGveaX3/pAiARAGrAVU9Ng/7YKXVjgpS/ptoswG7b0UlHECywuoOBWQ=="}]},"maintainers":[{"name":"shiyong.yin","email":"1156546473@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/set-props_1.0.5_1518582173557_0.05806942606852683"},"_hasShrinkwrap":false},"1.0.6":{"name":"set-props","version":"1.0.6","description":"同时设置react中Component的defaultProps和propTypes","main":"index.js","repository":{"type":"git","url":"git@gitlab.corp.qunar.com:shiyong.yin/set-props.git"},"author":{"name":"shiyong.yin","email":"1156546473@qq.com"},"license":"MIT","peerDependencies":{"lodash":"^4.17.5"},"gitHead":"2c916db9e9baf0d927c1b2cc81c8ee9d0fe95ad4","_id":"set-props@1.0.6","_npmVersion":"5.6.0","_nodeVersion":"8.9.1","_npmUser":{"name":"shiyong.yin","email":"1156546473@qq.com"},"dist":{"integrity":"sha512-7a96YzG6tTv1QlEAVMdf3vsaskrcG3C+2jeXiuyGj+SIQgs940sy8Kh9EOWuPGDRa1kGEI5SutjAiuC5e34k6g==","shasum":"97ff59bcae3a59cfd4a4029176b599bdd18b51eb","tarball":"https://registry.npmjs.org/set-props/-/set-props-1.0.6.tgz","fileCount":4,"unpackedSize":1351,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFfBr8MOM+U1RooK0tJd04uqK7JBdvXBuufwUanGFDehAiApHCg1mKjSx4jduHe8gy84SxsaFuy5mq4wDJnaaVJeng=="}]},"maintainers":[{"name":"shiyong.yin","email":"1156546473@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/set-props_1.0.6_1520235596791_0.2859252624000215"},"_hasShrinkwrap":false},"1.0.7":{"name":"set-props","version":"1.0.7","description":"同时设置react中Component的defaultProps和propTypes","main":"index.js","repository":{"type":"git","url":"git@gitlab.corp.qunar.com:shiyong.yin/set-props.git"},"author":{"name":"shiyong.yin","email":"1156546473@qq.com"},"license":"MIT","peerDependencies":{"lodash":"^4.17.5"},"gitHead":"2c916db9e9baf0d927c1b2cc81c8ee9d0fe95ad4","_id":"set-props@1.0.7","_npmVersion":"5.6.0","_nodeVersion":"8.9.1","_npmUser":{"name":"shiyong.yin","email":"1156546473@qq.com"},"dist":{"integrity":"sha512-JM6tj0ix68H8KpYANOjGi1xKcZRkodlVwjA3Cbc+laCHZnvKUEGMcegG5XV9fYJUAb1WmCdZ6WMQxPgO4RI1pA==","shasum":"0ca9feda9326be513e45ebfb8eed2b48b256bfb3","tarball":"https://registry.npmjs.org/set-props/-/set-props-1.0.7.tgz","fileCount":4,"unpackedSize":1369,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDDnVsGjkgOyU9qigL1Qn9kUcb0NFsKw+2rUXQ4+vWE+AiBX/Ia3c0kpv6C5qrtGPEVa1tivL4tKnRWgqGyvEfxuZQ=="}]},"maintainers":[{"name":"shiyong.yin","email":"1156546473@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/set-props_1.0.7_1520236137850_0.29421710789379585"},"_hasShrinkwrap":false},"1.0.8":{"name":"set-props","version":"1.0.8","description":"同时设置react中Component的defaultProps和propTypes","main":"index.js","repository":{"type":"git","url":"git@gitlab.corp.qunar.com:shiyong.yin/set-props.git"},"author":{"name":"shiyong.yin","email":"1156546473@qq.com"},"license":"MIT","peerDependencies":{"lodash":"^4.17.5"},"gitHead":"2c916db9e9baf0d927c1b2cc81c8ee9d0fe95ad4","_id":"set-props@1.0.8","_npmVersion":"5.6.0","_nodeVersion":"8.9.1","_npmUser":{"name":"shiyong.yin","email":"1156546473@qq.com"},"dist":{"integrity":"sha512-lzrMMoqgluCwQ4m4oWr9lhPHENsK/Ovbg6rS65eMygh5NwMftO+fjVXNxJC4sr48TurWCA1u+HsZ7K7ubIxWYg==","shasum":"d0becadad76604cafba07be03e94e0d92d47c34b","tarball":"https://registry.npmjs.org/set-props/-/set-props-1.0.8.tgz","fileCount":4,"unpackedSize":1375,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB+yig6IGldZeAoS3bWWxD6ATpJy3F6BHXLwdseTH1+aAiEApbv5So2YL9GLIaMlo84xoDAB+hbxZb0MIvg0yfdo/q8="}]},"maintainers":[{"name":"shiyong.yin","email":"1156546473@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/set-props_1.0.8_1520236390931_0.9050393593227495"},"_hasShrinkwrap":false},"1.0.9":{"name":"set-props","version":"1.0.9","description":"同时设置react中Component的defaultProps和propTypes","main":"index.js","repository":{"type":"git","url":"git@gitlab.corp.qunar.com:shiyong.yin/set-props.git"},"author":{"name":"shiyong.yin","email":"1156546473@qq.com"},"license":"MIT","peerDependencies":{"lodash":"^4.17.5"},"_id":"set-props@1.0.9","dist":{"shasum":"940e0b76671179aae61fa6d67359fcad2e654348","tarball":"https://registry.npmjs.org/set-props/-/set-props-1.0.9.tgz","fileCount":4,"unpackedSize":1149,"integrity":"sha512-uCWDJWf6WqbcUht4+L4Rw+UFYaQ2eJOEHrHPT+3XCDK6IPYn5l3Zj4iyZZUYKlBY/a9x+Nyl8UvPvzyDNibqVg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCx/9RVwr0GB7ECojmscblWXxdHWfAl0vbeC07JImysFwIhAOlVLkkT4dxUz2ifvdqNBt8NjpjPwmUJ1xQSiQqd4F85"}]},"maintainers":[{"name":"shiyong.yin","email":"1156546473@qq.com"}],"_npmUser":{"name":"shiyong.yin","email":"1156546473@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/set-props_1.0.9_1529665881234_0.36713970341773083"},"_hasShrinkwrap":false}},"time":{"created":"2018-02-11T08:26:38.483Z","1.0.0":"2018-02-11T08:26:38.546Z","modified":"2022-06-26T18:19:45.228Z","1.0.1":"2018-02-11T08:28:28.825Z","1.0.2":"2018-02-12T13:05:29.213Z","1.0.3":"2018-02-12T13:06:31.512Z","1.0.4":"2018-02-12T13:08:18.770Z","1.0.5":"2018-02-14T04:22:53.640Z","1.0.6":"2018-03-05T07:39:56.867Z","1.0.7":"2018-03-05T07:48:57.932Z","1.0.8":"2018-03-05T07:53:11.050Z","1.0.9":"2018-06-22T11:11:21.320Z"},"maintainers":[{"name":"shiyong.yin","email":"1156546473@qq.com"}],"description":"同时设置react中Component的defaultProps和propTypes","repository":{"type":"git","url":"git@gitlab.corp.qunar.com:shiyong.yin/set-props.git"},"author":{"name":"shiyong.yin","email":"1156546473@qq.com"},"license":"MIT","readme":"# set-props\n\n同时设置React/React Native中Component的defaultProps和propTypes属性\n\n# install\n\nyarn add set-props\n\n# usage\n\n```js\nimport setProps from 'set-props';\nimport React from 'react'\nimport PropTypes from 'prop-types';\n\nclass Demo extedns React.Component{\n  render(){\n    const {a, b} = this.props;\n    return (\n      <div>\n        {b} {a}\n      </div>\n    )\n  }\n}\n\nsetProps(Demo, {\n  a: [1, PropTypes.number],\n  b: ['hello', PropTypes.string],\n  ...\n})\n```","readmeFilename":"README.md"}