{"_id":"@oddnetworks/oddworks-example-data","_rev":"25-fc747ab8bcd6e9bc3e879ea9d55bb425","name":"@oddnetworks/oddworks-example-data","description":"Example data for Oddworks server","dist-tags":{"latest":"3.0.1"},"versions":{"1.0.0":{"name":"@oddnetworks/oddworks-example-data","version":"1.0.0","description":"Example data for Oddworks server","main":"./index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/oddnetworks/oddworks-example-data.git"},"author":{"name":"Odd Networks"},"license":"Apache-2.0","bugs":{"url":"https://github.com/oddnetworks/oddworks-example-data/issues"},"homepage":"https://github.com/oddnetworks/oddworks-example-data#readme","dependencies":{"bluebird":"^3.3.5","chalk":"^1.1.3","glob":"^7.0.3","jsonwebtoken":"^6.2.0","lodash":"^4.11.2"},"gitHead":"337004ff25f21422e4e6ec655ee0790622a3181c","_id":"@oddnetworks/oddworks-example-data@1.0.0","_shasum":"91420ddadeb4acdb623588613b2392a16c0ae760","_from":".","_npmVersion":"3.8.6","_nodeVersion":"4.4.0","_npmUser":{"name":"brkattk","email":"erik.straub@oddnetworks.com"},"dist":{"shasum":"91420ddadeb4acdb623588613b2392a16c0ae760","tarball":"https://registry.npmjs.org/@oddnetworks/oddworks-example-data/-/oddworks-example-data-1.0.0.tgz","integrity":"sha512-N+sZpKWY07RHgoZGz+0PMNZrVym1aiECh1mgZa/CGPEQPs41HNCE9QI5jeHdPZcWeFCuMZMk5Z7UAr0osNxD3g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCEThxZ72Tew74N/PbAFXvaSPQfH0kr/f4zQIFA4al7vwIhAOTVEmUtbK9L80qVl8MP+MQtkfSlBGNLi/JMpdhA7o8X"}]},"maintainers":[{"name":"brkattk","email":"erik.straub@oddnetworks.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/oddworks-example-data-1.0.0.tgz_1462497734549_0.14412655122578144"},"directories":{}},"1.0.1":{"name":"@oddnetworks/oddworks-example-data","version":"1.0.1","description":"Example data for Oddworks server","main":"./index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/oddnetworks/oddworks-example-data.git"},"author":{"name":"Odd Networks"},"license":"Apache-2.0","bugs":{"url":"https://github.com/oddnetworks/oddworks-example-data/issues"},"homepage":"https://github.com/oddnetworks/oddworks-example-data#readme","dependencies":{"bluebird":"^3.3.5","chalk":"^1.1.3","glob":"^7.0.3","jsonwebtoken":"^6.2.0","lodash":"^4.11.2"},"gitHead":"5c55b1fc6f2594db527e1523bb84979b1a48ac81","_id":"@oddnetworks/oddworks-example-data@1.0.1","_shasum":"73f99deb994943f17593636cc8571309f9d86f41","_from":".","_npmVersion":"3.8.6","_nodeVersion":"4.4.0","_npmUser":{"name":"brkattk","email":"erik.straub@oddnetworks.com"},"dist":{"shasum":"73f99deb994943f17593636cc8571309f9d86f41","tarball":"https://registry.npmjs.org/@oddnetworks/oddworks-example-data/-/oddworks-example-data-1.0.1.tgz","integrity":"sha512-0e7drUr4E7x+3GSCh8mN7E/WAOX879G2M/XzvG21TaNw97cp1YIXdhJ9YXMjiuHoXuwBerE7A9JtrpPDkknr9g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIApegIe9PVW0r4WfD7O1ZRuLE0li7yeSKG88Tr/reiPtAiAJ5r0nQvGSRo2J95OBDhlqsQci6i8Tssyf6/KE88LSmA=="}]},"maintainers":[{"name":"blainsmith","email":"rebelgeek@blainsmith.com"},{"name":"brkattk","email":"erik.straub@oddnetworks.com"},{"name":"kixxauth","email":"kris@kixx.name"},{"name":"oddworks","email":"npm@oddnetworks.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/oddworks-example-data-1.0.1.tgz_1462498271580_0.9115699667017907"},"directories":{}},"1.0.2":{"name":"@oddnetworks/oddworks-example-data","version":"1.0.2","description":"Example data for Oddworks server","main":"./index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/oddnetworks/oddworks-example-data.git"},"author":{"name":"Odd Networks"},"license":"Apache-2.0","bugs":{"url":"https://github.com/oddnetworks/oddworks-example-data/issues"},"homepage":"https://github.com/oddnetworks/oddworks-example-data#readme","dependencies":{"bluebird":"^3.3.5","chalk":"^1.1.3","glob":"^7.0.3","jsonwebtoken":"^6.2.0"},"gitHead":"39cec277d79efc5f9b0e0bd1c9de42c84b908848","_id":"@oddnetworks/oddworks-example-data@1.0.2","_shasum":"fa63e777bce1cbeda43fed73e1b34cc62f493e89","_from":".","_npmVersion":"3.8.6","_nodeVersion":"4.4.0","_npmUser":{"name":"brkattk","email":"erik.straub@oddnetworks.com"},"dist":{"shasum":"fa63e777bce1cbeda43fed73e1b34cc62f493e89","tarball":"https://registry.npmjs.org/@oddnetworks/oddworks-example-data/-/oddworks-example-data-1.0.2.tgz","integrity":"sha512-NBFQqOJTC8yZUh3//ICP6jtVwmOjJT/5aT2dKNRl3vK9bljS3+/e/8fpB10paa0hfFHoTKsHl3f8kmPUmJRiWA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHeky4PmWjTYi+3VhYBd/Akjnuq9qRoFDUU8Cm2p3JAUAiEAkdQaO5/lItg3t6E2VU7tCgUoIDzO6fWmcaFt5MyJsPM="}]},"maintainers":[{"name":"blainsmith","email":"rebelgeek@blainsmith.com"},{"name":"brkattk","email":"erik.straub@oddnetworks.com"},{"name":"kixxauth","email":"kris@kixx.name"},{"name":"oddworks","email":"npm@oddnetworks.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/oddworks-example-data-1.0.2.tgz_1462910607135_0.7513249071780592"},"directories":{}},"1.1.0":{"name":"@oddnetworks/oddworks-example-data","version":"1.1.0","description":"Example data for Oddworks server","main":"./index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/oddnetworks/oddworks-example-data.git"},"author":{"name":"Odd Networks"},"license":"Apache-2.0","bugs":{"url":"https://github.com/oddnetworks/oddworks-example-data/issues"},"homepage":"https://github.com/oddnetworks/oddworks-example-data#readme","dependencies":{"bluebird":"^3.3.5","glob":"^7.0.3","jsonwebtoken":"^6.2.0"},"gitHead":"8e2cee34e504af271dc8ec2c1f6b0774dbfa23bb","_id":"@oddnetworks/oddworks-example-data@1.1.0","_shasum":"ffdf6d3bc6271d72c9bc58583ab0381b1896fd2f","_from":".","_npmVersion":"3.8.6","_nodeVersion":"4.4.0","_npmUser":{"name":"brkattk","email":"erik.straub@oddnetworks.com"},"dist":{"shasum":"ffdf6d3bc6271d72c9bc58583ab0381b1896fd2f","tarball":"https://registry.npmjs.org/@oddnetworks/oddworks-example-data/-/oddworks-example-data-1.1.0.tgz","integrity":"sha512-FsdcbyuCkWPd27pC+k5wrD85gpL0tRQ8i8q3HsFMiYZQYg99yrcewDMg+jaLDRD218oBIHefKvXcXX5sfpTi7g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHEpvGS7byYdK1hmARb7EYrPf/H7oQMjcRuIBJ96oKjwAiEAlYYToExqccqTh0DQkQBXQfo0BovgWpOjiaXVvBcmXTo="}]},"maintainers":[{"name":"blainsmith","email":"rebelgeek@blainsmith.com"},{"name":"brkattk","email":"erik.straub@oddnetworks.com"},{"name":"kixxauth","email":"kris@kixx.name"},{"name":"oddworks","email":"npm@oddnetworks.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/oddworks-example-data-1.1.0.tgz_1464030336339_0.06615804065950215"},"directories":{}},"1.2.0":{"name":"@oddnetworks/oddworks-example-data","version":"1.2.0","description":"Example data for Oddworks server","main":"./index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/oddnetworks/oddworks-example-data.git"},"author":{"name":"Odd Networks"},"license":"Apache-2.0","bugs":{"url":"https://github.com/oddnetworks/oddworks-example-data/issues"},"homepage":"https://github.com/oddnetworks/oddworks-example-data#readme","dependencies":{"bluebird":"^3.3.5","glob":"^7.0.3"},"gitHead":"3ec4574007d1aaa305fe79836571c6d2d679ad4b","_id":"@oddnetworks/oddworks-example-data@1.2.0","_shasum":"9acb77aedca817dc5598fffc94905ec90143173b","_from":".","_npmVersion":"3.8.6","_nodeVersion":"4.4.0","_npmUser":{"name":"brkattk","email":"erik.straub@oddnetworks.com"},"dist":{"shasum":"9acb77aedca817dc5598fffc94905ec90143173b","tarball":"https://registry.npmjs.org/@oddnetworks/oddworks-example-data/-/oddworks-example-data-1.2.0.tgz","integrity":"sha512-3Vv24UN/nhos0sJvg1zqTkFinGmVGrZDkHRersiLJAmkNUNP1N7m0B9T96V0fmYjWT+ej6RgT3qnts90LtRxJg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGbyghwH3ETty4PbnCivrDO5QheyuepadopEIeG6L/yMAiBiIeCIqeytmVPqr1a47RLusnIb1ecoQMglczrQPmnf1A=="}]},"maintainers":[{"name":"blainsmith","email":"rebelgeek@blainsmith.com"},{"name":"brkattk","email":"erik.straub@oddnetworks.com"},{"name":"kixxauth","email":"kris@kixx.name"},{"name":"oddworks","email":"npm@oddnetworks.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/oddworks-example-data-1.2.0.tgz_1464033339884_0.15936182625591755"},"directories":{}},"2.0.0":{"name":"@oddnetworks/oddworks-example-data","version":"2.0.0","description":"Example data for Oddworks server","main":"./index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/oddnetworks/oddworks-example-data.git"},"author":{"name":"Odd Networks"},"license":"Apache-2.0","bugs":{"url":"https://github.com/oddnetworks/oddworks-example-data/issues"},"homepage":"https://github.com/oddnetworks/oddworks-example-data#readme","dependencies":{"bluebird":"^3.3.5","glob":"^7.0.3"},"gitHead":"d30e275cfa7d7798e73f02b4d4da3530a217d21b","_id":"@oddnetworks/oddworks-example-data@2.0.0","_shasum":"6d98356beef1fefd5be044f5719a6d737c91373a","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"blainsmith","email":"rebelgeek@blainsmith.com"},"dist":{"shasum":"6d98356beef1fefd5be044f5719a6d737c91373a","tarball":"https://registry.npmjs.org/@oddnetworks/oddworks-example-data/-/oddworks-example-data-2.0.0.tgz","integrity":"sha512-BmcOOi+yF1vHNSn+Kw0R7nv0CjhbIe9KvawXW8hW1RNBUpNFVqfA2gelkMLjKHrm6H0CQNDVB1zbrYQ12s5q0g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAaptul1DM1Fv8OcO739cBMhgFcmTajsc5Lmv5bFTYTnAiEA4uPVa3CxFwhjzR4Iay+RDvBCYzirZACXFlet2OrlfJU="}]},"maintainers":[{"name":"blainsmith","email":"rebelgeek@blainsmith.com"},{"name":"brkattk","email":"erik.straub@oddnetworks.com"},{"name":"kixxauth","email":"kris@kixx.name"},{"name":"oddworks","email":"npm@oddnetworks.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/oddworks-example-data-2.0.0.tgz_1465930336031_0.916072818916291"},"directories":{}},"2.0.1":{"name":"@oddnetworks/oddworks-example-data","version":"2.0.1","description":"Example data for Oddworks server","main":"./index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/oddnetworks/oddworks-example-data.git"},"author":{"name":"Odd Networks"},"license":"Apache-2.0","bugs":{"url":"https://github.com/oddnetworks/oddworks-example-data/issues"},"homepage":"https://github.com/oddnetworks/oddworks-example-data#readme","dependencies":{"bluebird":"^3.3.5","glob":"^7.0.3"},"gitHead":"ba8918b2c3d129d0983c0530d75ae655b7933d04","_id":"@oddnetworks/oddworks-example-data@2.0.1","_shasum":"4947de6592db0e7b0a4c77e55ff3af11fdea9897","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"blainsmith","email":"rebelgeek@blainsmith.com"},"dist":{"shasum":"4947de6592db0e7b0a4c77e55ff3af11fdea9897","tarball":"https://registry.npmjs.org/@oddnetworks/oddworks-example-data/-/oddworks-example-data-2.0.1.tgz","integrity":"sha512-CNmg+nR5tmaBZmffyaiBS/70I0s1NX6zScuVBpytHRTSPKrBjghuMPdiRBH7e6zj6inzkD5y0Zttb83BTdwZDw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDb655/iElIM9OWoRoGa1AF1LWu54/lQG3KBU5ML5UHRQIhAIIW9+k5esvNPQqf/a/k9TnKDJye3laMlo6iccSdQ6ke"}]},"maintainers":[{"name":"blainsmith","email":"rebelgeek@blainsmith.com"},{"name":"brkattk","email":"erik.straub@oddnetworks.com"},{"name":"kixxauth","email":"kris@kixx.name"},{"name":"oddworks","email":"npm@oddnetworks.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/oddworks-example-data-2.0.1.tgz_1466081014624_0.9902784409932792"},"directories":{}},"2.0.2":{"name":"@oddnetworks/oddworks-example-data","version":"2.0.2","description":"Example data for Oddworks server","main":"./index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/oddnetworks/oddworks-example-data.git"},"author":{"name":"Odd Networks"},"license":"Apache-2.0","bugs":{"url":"https://github.com/oddnetworks/oddworks-example-data/issues"},"homepage":"https://github.com/oddnetworks/oddworks-example-data#readme","dependencies":{"bluebird":"^3.3.5","glob":"^7.0.3"},"gitHead":"5d0bdfd10759101b45875053c12a9961873675be","_id":"@oddnetworks/oddworks-example-data@2.0.2","_shasum":"83f0226287c71cc3cf50a90fd077b46c98d753f3","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"blainsmith","email":"rebelgeek@blainsmith.com"},"dist":{"shasum":"83f0226287c71cc3cf50a90fd077b46c98d753f3","tarball":"https://registry.npmjs.org/@oddnetworks/oddworks-example-data/-/oddworks-example-data-2.0.2.tgz","integrity":"sha512-Pt7aAaeXmpiE3s+WlY9S2EigRekJoFCtCTqVkteAsF/PZ2BgVnXH+mqTUNerPNMpH9OdxMWLZ0M0aQfcAAoxsA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICyvsfLvh/35nfqSW1xr2illISCXvH/8930Cc1sr5tERAiA31G+2epAb+TDwDU+BdYTd5oGT9N5zCdWOzfNt60gFJw=="}]},"maintainers":[{"name":"blainsmith","email":"rebelgeek@blainsmith.com"},{"name":"brkattk","email":"erik.straub@oddnetworks.com"},{"name":"kixxauth","email":"kris@kixx.name"},{"name":"oddworks","email":"npm@oddnetworks.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/oddworks-example-data-2.0.2.tgz_1466086516629_0.3872942889574915"},"directories":{}},"2.0.3":{"name":"@oddnetworks/oddworks-example-data","version":"2.0.3","description":"Example data for Oddworks server","main":"./index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/oddnetworks/oddworks-example-data.git"},"author":{"name":"Odd Networks"},"license":"Apache-2.0","bugs":{"url":"https://github.com/oddnetworks/oddworks-example-data/issues"},"homepage":"https://github.com/oddnetworks/oddworks-example-data#readme","dependencies":{"bluebird":"^3.3.5","glob":"^7.0.3"},"gitHead":"f920febe8894a43eaec84e4381041350393e862d","_id":"@oddnetworks/oddworks-example-data@2.0.3","_shasum":"3e654094fdd0b1166dc52a9a67df5bb4a9b5d0fd","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.6.0","_npmUser":{"name":"pmcconnell","email":"mcconnellpatrick@gmail.com"},"dist":{"shasum":"3e654094fdd0b1166dc52a9a67df5bb4a9b5d0fd","tarball":"https://registry.npmjs.org/@oddnetworks/oddworks-example-data/-/oddworks-example-data-2.0.3.tgz","integrity":"sha512-aZAnvWhb4i3hhFrg6xPVbH7i15L/+Q0C4Bct8OpIRPa1760f+6ricgoe4NyIz99xd70Cvfpf7zSLtwGTTBCeog==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUESOkZ8dj0QZvTcYv/H4ItmGjkE204JjSPGgAKH9x3gIhAKaCLhGM23IAQ+AVfJeXuFP1JA5XFftvM/3p7VwJFp0B"}]},"maintainers":[{"name":"blainsmith","email":"rebelgeek@blainsmith.com"},{"name":"brkattk","email":"erik.straub@oddnetworks.com"},{"name":"kixxauth","email":"kris@kixx.name"},{"name":"oddworks","email":"npm@oddnetworks.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/oddworks-example-data-2.0.3.tgz_1467381274308_0.9673606774304062"},"directories":{}},"3.0.0":{"name":"@oddnetworks/oddworks-example-data","version":"3.0.0","description":"Example data for Oddworks server","main":"./index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/oddnetworks/oddworks-example-data.git"},"author":{"name":"Odd Networks"},"license":"Apache-2.0","bugs":{"url":"https://github.com/oddnetworks/oddworks-example-data/issues"},"homepage":"https://github.com/oddnetworks/oddworks-example-data#readme","dependencies":{"bluebird":"^3.3.5","glob":"^7.0.3"},"devDependencies":{"xo":"^0.16.0"},"gitHead":"43b3f3b51f3c7fbc7499fbe628f70069916eba9c","_id":"@oddnetworks/oddworks-example-data@3.0.0","_shasum":"47fca25f0ee0e378a09e94563c45891474d77d88","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"blainsmith","email":"rebelgeek@blainsmith.com"},"dist":{"shasum":"47fca25f0ee0e378a09e94563c45891474d77d88","tarball":"https://registry.npmjs.org/@oddnetworks/oddworks-example-data/-/oddworks-example-data-3.0.0.tgz","integrity":"sha512-SknWBryrvQThapbvoVejmk8FapdyOovvPcQQdHUFvtxXhrKBEdVRpqNtc9xHdQb3z0At3MmQQUj06mtIBZF2TQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhJHj/gexQlEl6nzjXt/1IRTHyXY+unj5APAtqvV9OWQIhAN2wT3EEKDXniDfw9kmHG3gpXA42hsXZ3IYVxVw2TPl6"}]},"maintainers":[{"name":"blainsmith","email":"rebelgeek@blainsmith.com"},{"name":"brkattk","email":"erik.straub@oddnetworks.com"},{"name":"kixxauth","email":"kris@kixx.name"},{"name":"oddworks","email":"npm@oddnetworks.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/oddworks-example-data-3.0.0.tgz_1469718493412_0.25802437658421695"},"directories":{}},"3.0.1":{"name":"@oddnetworks/oddworks-example-data","version":"3.0.1","description":"Example data for Oddworks server","main":"./index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://gitlab.com/oddnetworks/oddworks/example-data.git"},"author":{"name":"Odd Networks"},"license":"Apache-2.0","bugs":{"url":"https://gitlab.com/oddnetworks/oddworks/example-data/issues"},"homepage":"https://gitlab.com/oddnetworks/oddworks/example-data#readme","dependencies":{"bluebird":"^3.3.5","glob":"^7.0.3"},"devDependencies":{"xo":"^0.16.0"},"gitHead":"7ac5f848bc76ee07df2f3d9a014294409e101d83","_id":"@oddnetworks/oddworks-example-data@3.0.1","_npmVersion":"5.6.0","_nodeVersion":"9.6.1","_npmUser":{"name":"oddworks","email":"npm@oddnetworks.com"},"dist":{"integrity":"sha512-9Uq5ZluebHJKpk9cEnYRurkyVOweToC7JC75IORNFcBfNKoU1rzujgGCjR1okeUuK2EYpJafi1sTn3weF2V3sg==","shasum":"1e2f4fb7a1c078b212bc6c2c9b479d6034a64a55","tarball":"https://registry.npmjs.org/@oddnetworks/oddworks-example-data/-/oddworks-example-data-3.0.1.tgz","fileCount":67,"unpackedSize":44547,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWbaL9jJqSaZUUr5c9qx0ttr8wcD4tzPiqdqJV8eLTVgIhALNJ36y42qzwlU9oGN5UPwB48XN1FrLR0CUx0A2zCESe"}]},"maintainers":[{"name":"blainsmith","email":"rebelgeek@blainsmith.com"},{"name":"oddworks","email":"npm@oddnetworks.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/oddworks-example-data_3.0.1_1520565483614_0.8972520804885784"},"_hasShrinkwrap":false}},"readme":"# @oddnetworks/oddworks-example-data\n\nExample seed functions that help populate our example applications with data.\n\n## Installation\n\n\t\t$ npm install --save @oddnetworks/oddworks-example-data\n\n## Usage\n\nRequire the example data package in your script\n\n\t\tconst exampleData = require('@oddnetworks/oddworks-example-data');\n\nFunctions on the module `exampleData` will take an [oddcast](https://github.com/oddnetworks/oddcast) bus, like so:\n\n\t\tconst oddcast = require('oddcast');\n\t\tconst bus = oddcast.bus();\n\n\t\texampleData.nasa(bus);\n\nThese functions return promises.\n\nIn reality, these functions can do whatever you like. We use them to send messages on the oddcast bus so that our example data is sent to any observing \"stores\". Read more about stores in [oddworks](https://gitlab.com/oddnetworks/oddworks/core)\n\n### Seed Script\n\nIn the __nasa__ example, we're loading all the relative JSON files, which each contain a single object, and sending them into our stores.\n\n__Note__: You don't have to use JSON files here. This data can come from anywhere. Any objects passed to the bus should be in the oddworks entity data format, however.\n\n```js\n\n// note: this function returns a promise\nmodule.exports = bus => {\n\n\t// first get an array of all the paths for channels and platforms\n\treturn glob('./+(channel|platform)/*.json', {cwd: __dirname})\n\n\t\t// next, load all the \"channel\" and \"platform\" objects\n\t\t.then(loadFiles)\n\n\t\t// next, ensure each of those objects are sent to our store(s)\n\t\t.then(objects => {\n\t\t\t//...\n\t\t\t// Here we send all objects to the \"seedData\" method,\n\t\t\t// which will create an array of promises\n\t\t\t// we'll wrap that in Promise.all, to ensure they all run\n\t\t\t// before continuing\n\t\t\treturn Promise.all(seedData(bus, objects));\n\t\t})\n\n\t\t// next we'll get an array of all the paths for collections,\n\t\t// promotions, videos, and views\n\t\t.then(() => {\n\t\t\treturn glob('./+(collection|promotion|video|view)/*.json', {cwd: __dirname});\n\t\t})\n\n\t\t// then load all the \"collection\", \"promotion\", \"video\" and \"view\" objects\n\t\t.then(loadFiles)\n\n\t\t// finally, we'll ensure all of the objects are sent to our store(e)\n\t\t.then(objects => {\n\t\t\t// ...\n\t\t\treturn Promise.all(seedData(bus, objects))\n\t\t});\n};\n```\n\nIn a nutshell, we're loading all of the `channel` and `platform` JSON objects first, then we're loading all the `collection`, `promotion`, `video`, and `view` JSON objects.\n\nLet's break down the `seedData` method:\n\n```js\nfunction seedData(bus, objects) {\n\t// bus is your oddcast bus\n\t// objects is an array of the objects defined within each JSON file\n\n\t// we are going to return an array of promises\n\tconst promises = [];\n\n\t// we need to iterate over all the objects and create promises for each\n\tfor(let object of objects) {\n\n\t\t// the searchable variable is set to true if the object.type is one of the searchableTypes\n\t\tconst searchable = Boolean(searchableTypes.indexOf(object.type) + 1);\n\n\t\t// by default, we use the following pattern:\n\t\tlet pattern = {role: 'store', cmd: 'set', type: object.type};\n\t\t// be sure that your oddcast bus has an observer for this command pattern\n\n\t\tif (searchable) {\n\t\t\t// searchable objects have a different pattern\n\t\t\tpattern = {role: 'catalog', cmd: 'create', searchable: true};\n\t\t\t// be sure that your oddcast bus has an observer for this command pattern\n\t\t}\n\n\t\tconst payload = {\n\t\t\tversion: 1,\n\t\t\tchannel: object.channel,\n\t\t\tplatform: object.id,\n\t\t\tscope: ['platform']\n\t\t};\n\n\t\t// ... console logging omitted - these are convenience methods\n\n\t\t// next, send the command on your oddcast bus\n\t\t// sendCommand returns a promise, so we push that to our promises array\n\t\tpromises.push(bus.sendCommand(pattern, object));\n\t}\n\n\t// finally, return our stored object promises\n\treturn promises;\n}\n```\n\n## Contributing\n\nFeel free to contribute and create additional sample data/seeds. Please make sure any data is in the public domain.\n","maintainers":[],"time":{"modified":"2022-06-12T22:11:41.792Z","created":"2016-05-06T01:22:17.051Z","1.0.0":"2016-05-06T01:22:17.051Z","1.0.1":"2016-05-06T01:31:13.147Z","1.0.2":"2016-05-10T20:03:29.673Z","1.1.0":"2016-05-23T19:05:38.556Z","1.2.0":"2016-05-23T19:55:42.487Z","2.0.0":"2016-06-14T18:52:18.267Z","2.0.1":"2016-06-16T12:43:35.640Z","2.0.2":"2016-06-16T14:15:17.702Z","2.0.3":"2016-07-01T13:54:36.710Z","3.0.0":"2016-07-28T15:08:16.214Z","3.0.1":"2018-03-09T03:18:03.779Z"},"homepage":"https://gitlab.com/oddnetworks/oddworks/example-data#readme","repository":{"type":"git","url":"git+https://gitlab.com/oddnetworks/oddworks/example-data.git"},"author":{"name":"Odd Networks"},"bugs":{"url":"https://gitlab.com/oddnetworks/oddworks/example-data/issues"},"license":"Apache-2.0","readmeFilename":"README.md"}