{"_id":"@stamp/collision","_rev":"26-593805704cb9d2b7ab53568ea6a8a7e3","name":"@stamp/collision","description":"Detect and manipulate method collisions","dist-tags":{"latest":"1.1.0","lerna-temp":"0.2.4"},"versions":{"0.1.0":{"name":"@stamp/collision","version":"0.1.0","description":"Detect and manipulate method collisions","main":"index.js","repository":{"type":"git","url":"https://github.com/stampit-org/stamp/tree/master/packages/collision"},"author":"","license":"MIT","dependencies":{"@stamp/compose":"^0.1.1","@stamp/is":"^0.1.1"},"_id":"@stamp/collision@0.1.0","scripts":{},"_shasum":"0c8e7f6900ec516d9ea29880661296001486235d","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.1","_npmUser":{"name":"stamp","email":"vasyl.boroviak@gmail.com"},"dist":{"shasum":"0c8e7f6900ec516d9ea29880661296001486235d","tarball":"https://registry.npmjs.org/@stamp/collision/-/collision-0.1.0.tgz","integrity":"sha512-bN7uKn8OoqmEi8yYYQqDQNL+MB4gufPrfSy7gK0JzAdqT94uzcUv3e38ZPFByoJsONaZuvfpG8u6w5jlwSLpww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFEMfJT9IIWESlcfvEypKLsbmTbbtZI1Nbye6YftDaPZAiARGnur+vjhgNykDN21ZDurdTyAQTakm1PRXrzeVYbvCQ=="}]},"maintainers":[{"name":"stamp","email":"vasyl.boroviak@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/collision-0.1.0.tgz_1486469649073_0.6543358690105379"},"directories":{}},"0.1.2":{"name":"@stamp/collision","version":"0.1.2","description":"Detect and manipulate method collisions","main":"index.js","repository":{"type":"git","url":"https://github.com/stampit-org/stamp/tree/master/packages/collision"},"author":"","license":"MIT","dependencies":{"@stamp/compose":"^0.1.1","@stamp/is":"^0.1.1"},"_id":"@stamp/collision@0.1.2","scripts":{},"_shasum":"bfb4dee3b7651fae718396dde1785eb580b291ff","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.1","_npmUser":{"name":"stamp","email":"vasyl.boroviak@gmail.com"},"dist":{"shasum":"bfb4dee3b7651fae718396dde1785eb580b291ff","tarball":"https://registry.npmjs.org/@stamp/collision/-/collision-0.1.2.tgz","integrity":"sha512-ZsgbBaeZI/q1xdO68HaJ3HJMcvJjQtNbwQ3HKKk00vPx5JLFztR48n7Fjq8wE2bSLNGNe6E8yUUoUtSfgj8nkg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICHHjjITZ9B7yfVWd/AoBv7JmdWERyhgANmCtrgpdLLpAiEA/x2W3ssA1ZpVhadlS+du40LOlkF7XalLJVoVlvQTlXU="}]},"maintainers":[{"name":"stamp","email":"vasyl.boroviak@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/collision-0.1.2.tgz_1486470211743_0.2127911332063377"},"directories":{}},"0.1.3":{"name":"@stamp/collision","version":"0.1.3","description":"Detect and manipulate method collisions","main":"index.js","repository":{"type":"git","url":"https://github.com/stampit-org/stamp/tree/master/packages/collision"},"author":"","license":"MIT","dependencies":{"@stamp/compose":"^0.1.1","@stamp/is":"^0.1.1"},"_id":"@stamp/collision@0.1.3","scripts":{},"_shasum":"1c59e8552c66ec28269e667f68b32c03db9169cb","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.1","_npmUser":{"name":"stamp","email":"vasyl.boroviak@gmail.com"},"dist":{"shasum":"1c59e8552c66ec28269e667f68b32c03db9169cb","tarball":"https://registry.npmjs.org/@stamp/collision/-/collision-0.1.3.tgz","integrity":"sha512-WZgQ20YL8Tvq6QCcjItAG3V0mHvnkl6kM8wLzZxie3r8jJF5X13xoN5cvG5NIMNdvps3HdDjMjJ0Ca1nPk7+LQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHEa8j8AT5T/i1Jw+XqzYSynnC7INRUDJDY2/Go3F3cQIhAJXfqMIFuraYz99JXgRTnuZoa0OfYjPt8d6y8MGDyAUz"}]},"maintainers":[{"name":"stamp","email":"vasyl.boroviak@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/collision-0.1.3.tgz_1487056348757_0.7518229701090604"},"directories":{}},"0.2.0":{"name":"@stamp/collision","version":"0.2.0","description":"Detect and manipulate method collisions","main":"index.js","repository":{"type":"git","url":"https://github.com/stampit-org/stamp/tree/master/packages/collision"},"author":"","license":"MIT","dependencies":{"@stamp/compose":"^0.1.1","@stamp/core":"^0.1.2","@stamp/is":"^0.1.1"},"_id":"@stamp/collision@0.2.0","scripts":{},"_shasum":"a053d9f01dde20e245755e3a39602f9a551a11b7","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.1","_npmUser":{"name":"stamp","email":"vasyl.boroviak@gmail.com"},"dist":{"shasum":"a053d9f01dde20e245755e3a39602f9a551a11b7","tarball":"https://registry.npmjs.org/@stamp/collision/-/collision-0.2.0.tgz","integrity":"sha512-tTkXHnPkQiekw/IqCqpBzx5tmw/WAgg7jsZhgDkJB7F7xPmYpgzrrVXwrrgXPYwqNLVBblzBGTcEe6geAYr6Mg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsz2Z9M4YBeT4/+g7TOe6rGS7/K6Y+t4OaCz+mHxDc8wIgKJqHstO3HGv7aCQfh68x872PfemJRLIjX3Y/3EFmS7E="}]},"maintainers":[{"name":"stamp","email":"vasyl.boroviak@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/collision-0.2.0.tgz_1488438448198_0.2659318740479648"},"directories":{}},"0.2.2":{"name":"@stamp/collision","version":"0.2.2","description":"Detect and manipulate method collisions","main":"index.js","repository":{"type":"git","url":"https://github.com/stampit-org/stamp/tree/master/packages/collision"},"author":"","license":"MIT","dependencies":{"@stamp/compose":"^0.1.3","@stamp/core":"^0.1.2","@stamp/is":"^0.1.1"},"_id":"@stamp/collision@0.2.2","scripts":{},"_shasum":"a7130c297c5ad51b9f5cfab708441c36e8d99ff8","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.1","_npmUser":{"name":"stamp","email":"vasyl.boroviak@gmail.com"},"dist":{"shasum":"a7130c297c5ad51b9f5cfab708441c36e8d99ff8","tarball":"https://registry.npmjs.org/@stamp/collision/-/collision-0.2.2.tgz","integrity":"sha512-6J9wl2Ksav4KX2svb3krL/bzezOt0/h3uVWX4GYbEM/SdwC+cY4MDRook8zOt4IPdJtF7wA970tPDHTXBm93bQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICqo8ozV/fRLBrlIUT5Hh+y2F7PPr9Zr4MB5gYgMqqGEAiEA9Ql0fb5W29bvTJrljAzYlL5dmxGmjnOb12mS0d5UYY0="}]},"maintainers":[{"name":"stamp","email":"vasyl.boroviak@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/collision-0.2.2.tgz_1492178927977_0.2665682148654014"},"directories":{}},"0.2.3":{"name":"@stamp/collision","version":"0.2.3","description":"Detect and manipulate method collisions","main":"index.js","repository":{"type":"git","url":"https://github.com/stampit-org/stamp/tree/master/packages/collision"},"author":"","license":"MIT","dependencies":{"@stamp/compose":"^0.1.5","@stamp/core":"^0.1.2","@stamp/is":"^0.1.1"},"_id":"@stamp/collision@0.2.3","scripts":{},"_shasum":"43685988348461ec4f25ae7f633c6907b9741c12","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.1","_npmUser":{"name":"stamp","email":"vasyl.boroviak@gmail.com"},"dist":{"shasum":"43685988348461ec4f25ae7f633c6907b9741c12","tarball":"https://registry.npmjs.org/@stamp/collision/-/collision-0.2.3.tgz","integrity":"sha512-yXnkC6kN5urB2C/sfbNW/rxSV7jQqbWCPpYbJ9mOv5tfTlMBO6748OJhxTXMy5Eiv23gjW41hAQ80CCQQfmmBw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFRHXIe1R9FDiWjziik5mSuklCu+zoixr+5sOFU2g1PEAiEAu+NVMMTYV/qmPYHwJ2Lc7tYDKXqiAkiTriniTqjttvQ="}]},"maintainers":[{"name":"stamp","email":"vasyl.boroviak@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/collision-0.2.3.tgz_1492872635603_0.2739323489367962"},"directories":{}},"0.2.4":{"name":"@stamp/collision","version":"0.2.4","description":"Detect and manipulate method collisions","main":"index.js","repository":{"type":"git","url":"https://github.com/stampit-org/stamp/tree/master/packages/collision"},"author":"","license":"MIT","dependencies":{"@stamp/compose":"^0.1.6","@stamp/core":"^0.1.2","@stamp/is":"^0.1.1"},"_id":"@stamp/collision@0.2.4","scripts":{},"_shasum":"3a0e8bbe0f6cc643c9166e4e88a188dbad09101d","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.1","_npmUser":{"name":"stamp","email":"vasyl.boroviak@gmail.com"},"dist":{"shasum":"3a0e8bbe0f6cc643c9166e4e88a188dbad09101d","tarball":"https://registry.npmjs.org/@stamp/collision/-/collision-0.2.4.tgz","integrity":"sha512-zj5sO99qf5YUzvmaxLxa4cww4Uek0j34huPzN+o8+NMf+bflEFap4rYG3P/KeKCKASrF/MOwi8b9cU+ejiodww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDs0wfWdusc1Tk3A55iz6pzHnWQ5Vt//FDwvA8RO75e3QIgBX75v3ND0yMgaJLkNcDqvP3Umd/bb7axrxEsPtlaEII="}]},"maintainers":[{"name":"koresar","email":"kore.sar@gmail.com"},{"name":"stamp","email":"vasyl.boroviak@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/collision-0.2.4.tgz_1493829242347_0.10399188892915845"},"directories":{}},"0.2.5":{"name":"@stamp/collision","version":"0.2.5","description":"Detect and manipulate method collisions","main":"index.js","repository":{"type":"git","url":"https://github.com/stampit-org/stamp/tree/master/packages/collision"},"author":"","license":"MIT","dependencies":{"@stamp/compose":"^0.1.6","@stamp/core":"^0.1.2","@stamp/is":"^0.1.1"},"_id":"@stamp/collision@0.2.5","scripts":{},"_shasum":"072df04590f76a36c900608570c9fd14e1103b27","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.1","_npmUser":{"name":"stamp","email":"vasyl.boroviak@gmail.com"},"dist":{"shasum":"072df04590f76a36c900608570c9fd14e1103b27","tarball":"https://registry.npmjs.org/@stamp/collision/-/collision-0.2.5.tgz","integrity":"sha512-GIftFWi7Fa9lVrkbzCq1lpqBbrcZGdiAayrBnzA7gPScHW11ksFaTI8A+XVuV5y86SctbRashdqk7Xjssg2niA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE0+1byg03l3AkxNkvNCVdUDruyyAu+dG8F0Qr+Xu6B7AiBG37jDolPGp5f8fJGnvEmFvM82Dj8PUS1M6mPGb+wsJg=="}]},"maintainers":[{"name":"koresar","email":"kore.sar@gmail.com"},{"name":"stamp","email":"vasyl.boroviak@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/collision-0.2.5.tgz_1494588956274_0.10700722620822489"},"directories":{}},"1.0.0":{"name":"@stamp/collision","version":"1.0.0","description":"Detect and manipulate method collisions","main":"index.js","repository":{"type":"git","url":"https://github.com/stampit-org/stamp/tree/master/packages/collision"},"author":"","license":"MIT","dependencies":{"@stamp/compose":"^1.0.0","@stamp/core":"^1.0.0","@stamp/is":"^0.1.1"},"_id":"@stamp/collision@1.0.0","scripts":{},"_shasum":"7b16a0a6f1634ed23cdcaa2e265844d9fbf55059","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.1","_npmUser":{"name":"stamp","email":"vasyl.boroviak@gmail.com"},"dist":{"shasum":"7b16a0a6f1634ed23cdcaa2e265844d9fbf55059","tarball":"https://registry.npmjs.org/@stamp/collision/-/collision-1.0.0.tgz","integrity":"sha512-Qu/KObzJeKrJVPngY28QGitiYSiR3N9haQp9vHC71czBgEQH8rx1MRK265Zj/jLxWT5o1ympyTXrX+CQMVBk6w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGXS2wvFybkrzFqaOp92JY1qfsmgm2C8X2dGCiqrrKESAiBAh6PGvXguBvX+hEqiRX2bmDo1bNUJBr47eD7+ts0NAQ=="}]},"maintainers":[{"name":"koresar","email":"kore.sar@gmail.com"},{"name":"stamp","email":"vasyl.boroviak@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/collision-1.0.0.tgz_1501340949414_0.48406993434764445"},"directories":{}},"1.0.1":{"name":"@stamp/collision","version":"1.0.1","description":"Detect and manipulate method collisions","main":"index.js","repository":{"type":"git","url":"https://github.com/stampit-org/stamp/tree/master/packages/collision"},"author":"","license":"MIT","dependencies":{"@stamp/compose":"^1.0.0","@stamp/core":"^1.0.0","@stamp/is":"^0.1.1"},"_id":"@stamp/collision@1.0.1","scripts":{},"_shasum":"6f351d3ef34d52df9cd454d8f3ebe635b8544946","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.1","_npmUser":{"name":"stamp","email":"vasyl.boroviak@gmail.com"},"dist":{"shasum":"6f351d3ef34d52df9cd454d8f3ebe635b8544946","tarball":"https://registry.npmjs.org/@stamp/collision/-/collision-1.0.1.tgz","integrity":"sha512-cad9krp/xBexreW9fzTWtgrKqi1M43Y9QM0sfm/oWtE+e18uII/TcWQ7UqMFShGNSs3qT1KI54U7qcALStlkyA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDnP1wQaIeEMflFDJf43GzzpNGvxMKRLywCN9p5HRNCgIhAJn4ypsDEHGFJcas1xNpWgD927Tqm0HsTRfombphU63A"}]},"maintainers":[{"name":"koresar","email":"kore.sar@gmail.com"},{"name":"stamp","email":"vasyl.boroviak@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/collision-1.0.1.tgz_1501378205876_0.7738148847129196"},"directories":{}},"1.0.2":{"name":"@stamp/collision","version":"1.0.2","description":"Detect and manipulate method collisions","main":"index.js","repository":{"type":"git","url":"https://github.com/stampit-org/stamp/tree/master/packages/collision"},"author":"","license":"MIT","dependencies":{"@stamp/compose":"^1.0.2","@stamp/core":"^1.0.1","@stamp/is":"^1.0.0"},"_id":"@stamp/collision@1.0.2","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"koresar","email":"kore.sar@gmail.com"},"dist":{"integrity":"sha512-HmJIhOwLisq/sIpiA6ihZvm5vzJdJIxXE0y0IEfiAvvwE97rUc2x5xynwPYVtHvjEY9l2hSRtkkmJ6i97qLDQw==","shasum":"8c113085e0d4c1f5e93b06805eb6cb6c1e30c822","tarball":"https://registry.npmjs.org/@stamp/collision/-/collision-1.0.2.tgz","fileCount":4,"unpackedSize":16648,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0FnmsxICML7SbfMK3dSsR9WXDk2hu93BSzWuno9jjyQIgLNsbX7fmWXYL0T5YLOFfUhtsMg2uqOjCx6xZMhBaZCI="}]},"maintainers":[{"name":"koresar","email":"kore.sar@gmail.com"},{"name":"stamp","email":"vasyl.boroviak@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/collision_1.0.2_1520502740954_0.5427767109335255"},"_hasShrinkwrap":false},"1.1.0":{"name":"@stamp/collision","version":"1.1.0","description":"Detect and manipulate method collisions","main":"index.js","repository":{"type":"git","url":"https://github.com/stampit-org/stamp/tree/master/packages/collision"},"author":"","license":"MIT","dependencies":{"@stamp/compose":"^1.0.2","@stamp/core":"^1.0.1","@stamp/is":"^1.0.0"},"_id":"@stamp/collision@1.1.0","_npmVersion":"5.10.0","_nodeVersion":"8.9.1","_npmUser":{"name":"stamp","email":"kore.sar+stampit@gmail.com"},"dist":{"integrity":"sha512-n2x/DASKPrm73dMMmoffypMPDON1hUbSNnV/JRKdhfR85/WBpAmdTHDySz7gOTEGMVzmeEAkPiPCJHesTF0Aew==","shasum":"67826d2e71c3cc9c34f250088ebbdfa3655d99d1","tarball":"https://registry.npmjs.org/@stamp/collision/-/collision-1.1.0.tgz","fileCount":4,"unpackedSize":16843,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbBBjdCRA9TVsSAnZWagAA778P/2DdP9HqbwoO/+k6MbLq\nZVUSk4+u/6UuwtnxsZP5B/V8lvgy4ddQgrICilXZd3lX/LyHtwMWxcnehnS2\nbN8xVCsbTz9BUb4Yv/B3Gm03lks9Zr6t0POPI9QpenwJg+FaFMu+Z8L9SPV7\n+wh0LdBGbUCykVvACffjd/WYilZjaO3l1rqHXW3E2LLtm3rlaFFozaYDOq0x\nHFNqTgnp8D7WKZIuskLAvpDARbp4z7waz56AwSqVVJcR6CeTh9u6OBn2yvKY\nzSlE2ejQP9zZGUnsM6BrgX5jp48B2m+lSCDVrpTrezItxj03siHFk55XSHVV\npWfDUkOjeO2NAyarjBpwFILbxrvbSS9IFw/3/y81eJkE/fPtvhPgy4HRHEB5\nWAWTi5G0LDlday1TytKAxSoTjpkFV19JwgQV9M03XwFMvhC7VENgwDeP3+vI\nBOyaWCN9RQM8OIY5J39u1ip2Sssy3wi3f+hnEPcSVC1IlD48kp/bSM6+mTIf\nljs7lKFg2jcRE8WqoZSX5paup9DpqqnijREs5voxHCjSpEpV73uIyNPGUugY\na7rjWQsQhOeKqLsbp+DJ5tUrBHdeOmq/tLSd0A5aU59Btni9mhiighgosuPd\nKA52xoshc0zSwLxI1PHxwLf+D9GtpS7LkDw3i/OTBrNAlhGWlic0NbMgS2Sf\nqPmz\r\n=Go1e\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJFsb9ZVH0TuoDH1BtTDaLslTcUGX4VopD/bjVpxzwUwIhAIWfwH8lmlxpSLqP7nIAZ/xrqbXHddDWIW8+jdnSmdoN"}]},"maintainers":[{"name":"koresar","email":"kore.sar@gmail.com"},{"name":"stamp","email":"vasyl.boroviak@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/collision_1.1.0_1526995164026_0.6130200108261823"},"_hasShrinkwrap":false}},"readme":"# @stamp/collision\n\n_Controls collision behavior: forbid or defer_\n\nThis stamp (aka behavior) will check if there are any conflicts on every `compose` call. \nThrows an `Error` in case of a forbidden collision or ambiguous setup.\n\n## Usage\n\n```js\nimport Collision from '@stamp/collision';\n\nconst ForbidRedrawCollision = Collision.collisionSetup({forbid: ['redraw']});\n```\n\nOr if you don't want to import the stamp you can import only the method:\n```js\nimport {collisionSetup} from '@stamp/collision';\nconst ForbidRedrawCollision = collisionSetup({forbid: ['redraw']});\n```\n\n\nThe `defer` collects same named methods and wraps them into a single method.\n```js\nimport Collision from '@stamp/collision';\n\nimport {Border, Button, Graph} from './drawable/primitives';\n\nconst UiComponent = Collision.collisionSetup({defer: ['draw']})\n.compose(Border, Button, Graph);\n\nconst component = UiComponent();\ncomponent.draw(); // will draw() all three primitives\n```\n\n## API\n\n### Static methods\n\n#### collisionSetup\nForbid or Defer an exclusive method\n`stamp.collisionSetup({forbid: ['methodName1'], defer: ['methodName2']}) -> Stamp`\n\n#### collisionProtectAnyMethod\nForbid any collisions, excluding those allowed\n`stamp.collisionProtectAnyMethod({allow: ['methoName']}) -> Stamp`\n\n#### collisionSettingsReset\nRemove any Collision settings from the stamp\n`stamp.collisionSettingsReset() -> Stamp`\n\n## Example\n\nSee the comments in the code:\n```js\nimport compose from '@stamp/compose';\nimport Collision from '@stamp/collision';\nimport Privatize from '@stamp/privatize';\n\n// General purpose behavior to defer \"draw()\" method collisions\nconst DeferDraw = Collision.collisionSetup({defer: ['draw']});\n\nconst Border = compose(DeferDraw, {\n  methods: {\n    draw: jest.fn() // Spy function\n  }\n});\nconst Button = compose(DeferDraw, {\n  methods: {\n    draw: jest.fn() // Spy function\n  }\n});\n\n// General purpose behavior to privatize the \"draw()\" method\nconst PrivateDraw = Privatize.privatizeMethods('draw');\n\n// General purpose behavior to forbid the \"redraw()\" method collision\nconst ForbidRedrawCollision = Collision.collisionSetup({forbid: ['redraw']});\n\n// The aggregating component\nconst ModalDialog = compose(PrivateDraw) // privatize the \"draw()\" method\n  .compose(Border, Button) // modal will consist of Border and Button\n  .compose(ForbidRedrawCollision) // there can be only one \"redraw()\" method\n  .compose({\n    methods: {\n      // the public method which calls the deferred private methods\n      redraw(int) {\n        this.draw(int);\n      }\n    }\n  });\n\n// Creating an instance of the stamp\nconst dialog = ModalDialog();\n\n// Check if the \"draw()\" method is actually privatized\nexpect(dialog.draw).toBeUndefined();\n\n// Calling the public method, which calls the deferred private methods\ndialog.redraw(42);\n\n// Check if the spy \"draw()\" deferred functions were actually invoked\nexpect(Border.compose.methods.draw).toBeCalledWith(42);\nexpect(Button.compose.methods.draw).toBeCalledWith(42);\n\n// Make sure the ModalDialog throws every time on the \"redraw()\" collisions\nconst HaveRedraw = compose({methods: {redraw() {}}})\nexpect(() => compose(ModalDialog, HaveRedraw)).toThrow();\n```\n","maintainers":[{"name":"koresar","email":"kore.sar@gmail.com"},{"name":"stamp","email":"vasyl.boroviak@gmail.com"}],"time":{"modified":"2022-06-13T00:22:10.581Z","created":"2017-02-07T12:14:09.289Z","0.1.0":"2017-02-07T12:14:09.289Z","0.1.2":"2017-02-07T12:23:31.962Z","0.1.3":"2017-02-14T07:12:30.452Z","0.2.0":"2017-03-02T07:07:30.061Z","0.2.1":"2017-04-14T13:07:30.534Z","0.2.2":"2017-04-14T14:08:48.265Z","0.2.3":"2017-04-22T14:50:35.856Z","0.2.4":"2017-05-03T16:34:02.621Z","0.2.5":"2017-05-12T11:35:59.497Z","1.0.0":"2017-07-29T15:09:09.701Z","1.0.1":"2017-07-30T01:30:05.993Z","1.0.2":"2018-03-08T09:52:21.011Z","1.1.0":"2018-05-22T13:19:24.082Z"},"repository":{"type":"git","url":"https://github.com/stampit-org/stamp/tree/master/packages/collision"},"license":"MIT","readmeFilename":"README.md"}