{"_id":"@cogitojs/cogito","_rev":"10-cb99dd39a2efdbf9d347669cc2c405aa","name":"@cogitojs/cogito","dist-tags":{"latest":"0.2.18"},"versions":{"0.2.11":{"name":"@cogitojs/cogito","version":"0.2.11","description":"Cogito library for web app","homepage":"https://cogito.mobi/","license":"MIT","main":"umd/cogito.min.js","module":"es/index.js","scripts":{"build":"node ./tools/build.js"},"engines":{"node":">=9.0.0"},"files":["lib","es","umd","source"],"devDependencies":{"@babel/cli":"^7.0.0-beta.53","@babel/core":"^7.0.0-beta.53","@babel/plugin-proposal-class-properties":"^7.0.0-beta.53","@babel/plugin-proposal-object-rest-spread":"^7.0.0-beta.53","@babel/preset-env":"^7.0.0-beta.53","gzip-size":"^4.1.0","lodash":"^4.17.10","nock":"^9.2.5","pretty-bytes":"^4.0.2","rollup":"^0.58.2","rollup-plugin-auto-external":"^1.2.0","rollup-plugin-babel":"^4.0.0-beta.4","rollup-plugin-commonjs":"^9.1.3","rollup-plugin-node-builtins":"^2.1.2","rollup-plugin-node-resolve":"^3.3.0","rollup-plugin-replace":"^2.0.0","rollup-plugin-uglify":"^3.0.0"},"dependencies":{"@cogitojs/cogito-web3":"^0.2.11","@cogitojs/telepath-js":"^0.2.11"},"peerDependencies":{"libsodium-wrappers":"^0.7.2","truffle-contract":"^3.0.5","web3":"^1.0.0-beta.34"},"publishConfig":{"access":"public"},"_id":"@cogitojs/cogito@0.2.11","dist":{"shasum":"5a188247cba033f1655d6c0f524f24c8b1e2c40a","tarball":"https://registry.npmjs.org/@cogitojs/cogito/-/cogito-0.2.11.tgz","fileCount":20,"unpackedSize":166576,"integrity":"sha512-A5K4ofMEUHyU/YtdHYW8jLDc/HGLjrZgy2NtCemGNOrQ25Jo6cLsT2hxxr67sFPvT1Dcl8IiLbT20Goh1wIAnA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC36n6mhxGvVbGxzaBJH5B5G8VTR3roPCsCfWwP9idQlwIhAI42RQNWCvlZ6lE85Dt5oNTP5TzI2muvN+eQBUIoX9m+"}]},"maintainers":[{"name":"everydayproductive","email":"marcin@everydayproductive.com"},{"name":"jeroenknoops","email":"jeroen.knoops@gmail.com"},{"name":"markspanbroek","email":"mark@spanbroek.net"}],"_npmUser":{"name":"everydayproductive","email":"marcin@everydayproductive.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cogito_0.2.11_1532647822485_0.9768561904760666"},"_hasShrinkwrap":false},"0.2.12":{"name":"@cogitojs/cogito","version":"0.2.12","description":"Cogito library for web app","homepage":"https://cogito.mobi/","license":"MIT","main":"umd/cogito.min.js","module":"es/index.js","scripts":{"build":"node ./tools/build.js"},"engines":{"node":">=9.0.0"},"devDependencies":{"@babel/cli":"^7.0.0-beta.53","@babel/core":"^7.0.0-beta.53","@babel/plugin-proposal-class-properties":"^7.0.0-beta.53","@babel/plugin-proposal-object-rest-spread":"^7.0.0-beta.53","@babel/preset-env":"^7.0.0-beta.53","gzip-size":"^4.1.0","lodash":"^4.17.10","nock":"^9.2.5","pretty-bytes":"^4.0.2","rollup":"^0.58.2","rollup-plugin-auto-external":"^1.2.0","rollup-plugin-babel":"^4.0.0-beta.4","rollup-plugin-commonjs":"^9.1.3","rollup-plugin-node-builtins":"^2.1.2","rollup-plugin-node-resolve":"^3.3.0","rollup-plugin-replace":"^2.0.0","rollup-plugin-uglify":"^3.0.0"},"dependencies":{"@cogitojs/cogito-web3":"^0.2.12","@cogitojs/telepath-js":"^0.2.12"},"peerDependencies":{"libsodium-wrappers":"^0.7.2","truffle-contract":"^3.0.5","web3":"^1.0.0-beta.34"},"publishConfig":{"access":"public"},"_id":"@cogitojs/cogito@0.2.12","dist":{"shasum":"531b4a5232a6585941518aa82e4c91115b39dccd","tarball":"https://registry.npmjs.org/@cogitojs/cogito/-/cogito-0.2.12.tgz","integrity":"sha512-XDnO+yS/rgcSwiV2S7cw1hGYWuM4LipMhqd7zC18OR0HZ53o1Tk+laTgTszHjKTkRYzhSnba5E8YvI3rtgeuVg==","fileCount":20,"unpackedSize":130200,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbj5QjCRA9TVsSAnZWagAAYC4P/jhJ122DVZuQVn1yToXD\nVlYejbMxHWumrTsVUDm8M4J6DbSKbjVWWPqu0ki9o01DDSpKimiU1Pnrg4Qk\nDG89lfxgjMsY+C2dbkrqef/1UlwgI0xE2LBol8OCTXwL7j4MiXEao5Ree1pA\nDn8Fju8zGxlU6NwApfPxU8hqid8SEDTHMUZVVhh0zF+FLysXrzh2/j9DxawX\nmD2EwmdcJqmMn7TUFhFc+4GUOZfoq/V8IvvVAKhl+phCPtVF5NBtpZ2C64DV\nHrABVBq+hA/4ygM56F77ZK4D6I9sK6e3nxj0/ewSP8f1NvRAXhtyFrrTmzR2\noOw4tl0+EUPWC+b48KwZ+hgZFbN5wGUJL7cKKpED4MtjR6piiSkZXC/uVG/3\nUeMc0Wqidc4/DtavFZ8Om8ewN6p4WB03bKyOKe5XsqrVHkILaz9w2t3VWb9L\n+2xjgC96yNmqUiHer1Q4UvrzfwPZ3grFF/CKyis2+zFDdBIHoKugBT7JVSFH\n3YtKjy7i6hoU36B1bkeEzIrZ/8zog/uxNsUHXJ8mW65zFJpAEtVb12db+AaZ\nz7wW7620temwWX54kJpHAinlenqT8OijepLIKjDrrCKY8B11sYOHL3XCFkAg\nnB0XYpVVU1Nel1S3GEJcckDQD67x6dFRBTZPGPr1mlnVQ/mSs78wKPPvX5Dg\nOqfN\r\n=iYas\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGmXiv2d7F8huxBh+ovghTm/3Ntz82k89xUVJhqWKRDrAiEAnid2LiQpT82ar8LsRgIMiPPzuFgAaJQnckJHX3yAZKs="}]},"maintainers":[{"name":"everydayproductive","email":"marcin@everydayproductive.com"},{"name":"jeroenknoops","email":"jeroen.knoops@gmail.com"},{"name":"markspanbroek","email":"mark@spanbroek.net"}],"_npmUser":{"name":"markspanbroek","email":"mark@spanbroek.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cogito_0.2.12_1536136227409_0.11278530777301743"},"_hasShrinkwrap":false},"0.2.13":{"name":"@cogitojs/cogito","version":"0.2.13","description":"Cogito library for web app","homepage":"https://cogito.mobi/","license":"MIT","main":"umd/cogito.min.js","module":"es/index.js","scripts":{"build":"node ./tools/build.js"},"engines":{"node":">=9.0.0"},"devDependencies":{"@babel/cli":"^7.0.0-beta.53","@babel/core":"^7.0.0-beta.53","@babel/plugin-proposal-class-properties":"^7.0.0-beta.53","@babel/plugin-proposal-object-rest-spread":"^7.0.0-beta.53","@babel/preset-env":"^7.0.0-beta.53","gzip-size":"^4.1.0","lodash":"^4.17.10","nock":"^9.2.5","pretty-bytes":"^4.0.2","rollup":"^0.58.2","rollup-plugin-auto-external":"^1.2.0","rollup-plugin-babel":"^4.0.0-beta.4","rollup-plugin-commonjs":"^9.1.3","rollup-plugin-node-builtins":"^2.1.2","rollup-plugin-node-resolve":"^3.3.0","rollup-plugin-replace":"^2.0.0","rollup-plugin-uglify":"^3.0.0"},"dependencies":{"@cogitojs/cogito-web3":"^0.2.13","@cogitojs/telepath-js":"^0.2.13"},"peerDependencies":{"libsodium-wrappers":"^0.7.2","truffle-contract":"^3.0.5","web3":"^1.0.0-beta.34"},"publishConfig":{"access":"public"},"_id":"@cogitojs/cogito@0.2.13","dist":{"shasum":"fe2b8b16bc706d6b4fde40c92c6ac2293f34cdee","tarball":"https://registry.npmjs.org/@cogitojs/cogito/-/cogito-0.2.13.tgz","integrity":"sha512-5OMubI4tyCXZ52qgpnS0IiHXMOwy05yohQ5c4EaiwSMIOP+sejdlpSPknn7mw/EAPqh1GddTuKfQsTSTe9C8VQ==","fileCount":21,"unpackedSize":136066,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbpOIWCRA9TVsSAnZWagAAX8MP/1cMyFsukIqEVdqkY92P\nM7E0Ju8AkXnes8qWuxnucPBJV9u3iJyL95iCtvxzGUneYLbwYaPPjOS5+AJ2\nvukV6q70Gofw20WIljCkjAyOK39VXrQkh/fu9fINYZZYyQMDNGu9HKw27yST\n1yMcnbk1BNVgF3tdrDxXtDsceUKIEbHaZ0mctD0/AwCK7jqDVk1gKeAjqv1V\n/TLraFPSR4q1ZKgGtwIbtjRTZX9oBOBAotQuLlL7lrKjwbeOUhuXg6NYeMsH\nAYpvDckMp3vN/WW8dOgxFJfHNcBrjfF3CeT8aXxThXPGNj4NEI/2LZYrZo5C\nCVY0GzuAYhBLdUXBvMgK+5T2R+Kq54ijqjHL6MBZiS/4OaOCEfLyj7F2cjtq\n7OoTykutN4o/J+vk4jCYg1RptHw8PmdoIaTrgicy0YYN/OWOr/6v6O5WZQgK\nAlm2iJC7NTIpIuMx6NvY1rWDANIf4mCci5dyNLRZpStRORdNilFl5ZFgDJcw\nfrViSptZOHNc2Pjir99Eof5Vcsl9ylSDqUyCdwZSf9pD0LYfczS3qw16p59g\nSb+7DzFWEUwl79z8xKAHEYXbHlBH2g1vO11hgCSnmYQrSRX6I0VbHmM2AJy6\nEJCPuqJxvsiPzSZ8mQn/kL8uXqdGf8oSxtz8JRzwtVZltQ435GHqKYczCR9u\niFJt\r\n=Uv8p\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDNMApDcWPdWFVkLQPO+FkwDLRy5CYrdN5WI1lna/SEsAiAmRzbb13Jqw73BufN73bWiNb4P2sQSE2XQ0X1OoUpAfQ=="}]},"maintainers":[{"name":"everydayproductive","email":"marcin@everydayproductive.com"},{"name":"jeroenknoops","email":"jeroen.knoops@gmail.com"},{"name":"markspanbroek","email":"mark@spanbroek.net"}],"_npmUser":{"name":"everydayproductive","email":"marcin@everydayproductive.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cogito_0.2.13_1537532438173_0.597986953473393"},"_hasShrinkwrap":false},"0.2.14":{"name":"@cogitojs/cogito","version":"0.2.14","description":"Cogito library for web app","homepage":"https://cogito.mobi/","license":"MIT","main":"umd/cogito.min.js","module":"es/index.js","scripts":{"build":"node ./tools/build.js"},"engines":{"node":">=9.0.0"},"devDependencies":{"@babel/cli":"^7.0.0-beta.53","@babel/core":"^7.0.0-beta.53","@babel/plugin-proposal-class-properties":"^7.0.0-beta.53","@babel/plugin-proposal-object-rest-spread":"^7.0.0-beta.53","@babel/preset-env":"^7.0.0-beta.53","gzip-size":"^4.1.0","lodash":"^4.17.10","nock":"^9.2.5","pretty-bytes":"^4.0.2","rollup":"^0.58.2","rollup-plugin-auto-external":"^1.2.0","rollup-plugin-babel":"^4.0.0-beta.4","rollup-plugin-commonjs":"^9.1.3","rollup-plugin-node-builtins":"^2.1.2","rollup-plugin-node-resolve":"^3.3.0","rollup-plugin-replace":"^2.0.0","rollup-plugin-uglify":"^3.0.0"},"dependencies":{"@cogitojs/cogito-web3":"^0.2.14","@cogitojs/telepath-js":"^0.2.14"},"peerDependencies":{"libsodium-wrappers":"^0.7.2","truffle-contract":"^3.0.5","web3":"^1.0.0-beta.34"},"publishConfig":{"access":"public"},"_id":"@cogitojs/cogito@0.2.14","dist":{"shasum":"5cb4cb6828963cf5117ea7740e31befb82f6bf54","tarball":"https://registry.npmjs.org/@cogitojs/cogito/-/cogito-0.2.14.tgz","integrity":"sha512-q07M1HOtYkRpLbCusHCY0/CZbzg5UyBZ8O3VFKOwVylKT2fFWm5Fa/o1QUj/DDYIS59wTNEC+Ab6hDBow/95JA==","fileCount":21,"unpackedSize":136066,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbpOldCRA9TVsSAnZWagAAaIoP/RnytbntB4JT8UKOZ4+V\nLBSvfz19a6pDy5FIpW/KaAkHrAce8v7kUprsjYvS7Is3VFtCkopfUDQ8ik5G\nXUz9dBTri8gujxAbnekI3EeSaQF8fn3C3eL5hWx1rMcftT0UpyLExk+vk0em\n0r7XxSyr2oZwaFT93qo2gyyTZNVEV+gfNjzCcZYektPn2BICXVsPbfJKFwri\nD9o+dHHQH8dgz682ncKT0JqAX3IRq8J56uWR6x06J3UO5thQ838AyObyNGb2\nKEwPaEcxD92/+uAMu2MCqeRiAQ/779YxLPHrpSf++BKg0bOvNzboxG6hvwqq\nWsSC/xIEfvsIdifV1ZTGHzwyvQn/lDj4xO0Kc+CR538ybttjYCbOjG4+9t08\nUCrZf/GQanFYK2JYEzOdWy85KbdS0B7uVU4W9PoyjjZYACdVaOOV01YV9EDj\n7TYuQZWufLllUSTKKyfEKqEttyp8n4HriyfbNP+dboIQWYh9zrFciILN7+ES\nf+VPqK18hhpLW8RebNDRB/T5i9bS0fDquKLv0P33xEE7viEy5tpEj+mEiNmp\ntCOveGW1RfpwjRiL04lutN9CLkg4UN/lJOb9Z6K03If+HB29eMlNarCVNe6Q\nGgdh939yM9IvRCC2byHkbCPOP0MpixcpsqgOtGfQKTjJ9yxXrUiAGe8radfk\n1jnH\r\n=LhOK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEz0UF5kgT2uUl63wL4q70Q5VeNrMF86cQSHXF1ul1paAiEAo+z6t/kvExQlnk1mmA/hlmt/Q7nBP+nyG2hFkj7mHj8="}]},"maintainers":[{"name":"everydayproductive","email":"marcin@everydayproductive.com"},{"name":"jeroenknoops","email":"jeroen.knoops@gmail.com"},{"name":"markspanbroek","email":"mark@spanbroek.net"}],"_npmUser":{"name":"everydayproductive","email":"marcin@everydayproductive.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cogito_0.2.14_1537534300425_0.2780829675606935"},"_hasShrinkwrap":false},"0.2.15":{"name":"@cogitojs/cogito","version":"0.2.15","description":"Cogito library for web app","homepage":"https://cogito.mobi/","license":"MIT","main":"umd/cogito.min.js","module":"es/index.js","scripts":{"build":"node ./tools/build.js"},"engines":{"node":">=9.0.0"},"devDependencies":{"@babel/cli":"^7.0.0","@babel/core":"^7.0.0","@babel/plugin-proposal-class-properties":"^7.0.0","@babel/plugin-proposal-object-rest-spread":"^7.0.0","@babel/preset-env":"^7.0.0","gzip-size":"^4.1.0","lodash":"^4.17.10","nock":"^9.2.5","pretty-bytes":"^4.0.2","rollup":"^0.66.0","rollup-plugin-auto-external":"^2.0.0","rollup-plugin-babel":"^4.0.0","rollup-plugin-commonjs":"^9.1.3","rollup-plugin-node-builtins":"^2.1.2","rollup-plugin-node-resolve":"^3.3.0","rollup-plugin-replace":"^2.0.0","rollup-plugin-uglify":"^3.0.0"},"dependencies":{"@cogitojs/cogito-web3":"^0.2.15","@cogitojs/telepath-js":"^0.2.15"},"peerDependencies":{"libsodium-wrappers":"^0.7.2","truffle-contract":"^3.0.5","web3":"^1.0.0-beta.34"},"publishConfig":{"access":"public"},"_id":"@cogitojs/cogito@0.2.15","dist":{"shasum":"6226668535508b75b87a74ceb9c8f72903b3a112","tarball":"https://registry.npmjs.org/@cogitojs/cogito/-/cogito-0.2.15.tgz","integrity":"sha512-F0AakwXsA6TvGqlv0H2uOpT7BZ5HzIwVS+L8bPytZHDiS4u+CaszyEw8M4vPjwRjcR8R4Z/vSyDL8q1l237Clg==","fileCount":21,"unpackedSize":135964,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbqnQsCRA9TVsSAnZWagAALl4QAJ9X4tkIeaO5qS680lwZ\nAFOKhBrlVIYa/8k4F5HUUBRqOk32sp3eetzFZKbaq9VmgPbTStTpS/prA3Ja\ntMQwgP8bDVSVqNU56YfhHjxlFcVw4em5y0llJaCBQW8nVxdDdgJvYNVwb+IS\nv8IKU+uUsj6W8xQNOmWXkeR8iGh4KtCNZdvBEvL0/ZOi1umsEgKZAUqeUtaZ\naq2ab9fl7v9BaitTaZuwf+YCDZadq3WohLS5pJTy7QaCNT4AGQJ7DZz383VQ\nF6eB+4R5djbiFtDJwuQPMchwKzkA8sDvuZ3oukuriSj2tSx/Bmc+7BuoIHnF\npX+AOe6maEgHuk0MYPtH0u5Jhz54U3bNvwxHT3uCAkihY7a+88byWwJdZG7I\nH9W8DqhTWUBFOSTBzlNiYRgeFauGTF5VV3oOuY7YrH/ETGbMG66PIHO8aXZa\nvuhnIbSXtRWGrFW5/anm1Z38j7v9twThUWKyGwSmAcgFq8uSXwsR9hSfjzdC\nYpiBkYso44EvMS9kqC09T6w6rH5xXdbfUA7njrmhxPMaJxL943f9B7GsCD2H\newp/3t4hCQpFYvJsVV+EvotIlXfUYobYfxOlp+qyfOzJ0jf9e+5/dYubg5lp\nVlCge4vnCmc4UsF/AHrEXHqHzx6KZM39w1tAoryI3c4ZCBHmRs5IPmLxASCh\n+OeO\r\n=0pRN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbuAX54ivQSTWrpFq7Yg00JsOfhtZMwjOLV00xXkbhQwIgXjjwaGuoM0uV+Z77WJ5LdiFLIxrMPTw94cXRYEGy+lg="}]},"maintainers":[{"name":"everydayproductive","email":"marcin@everydayproductive.com"},{"name":"jeroenknoops","email":"jeroen.knoops@gmail.com"},{"name":"markspanbroek","email":"mark@spanbroek.net"}],"_npmUser":{"name":"everydayproductive","email":"marcin@everydayproductive.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cogito_0.2.15_1537897515526_0.9932734390304596"},"_hasShrinkwrap":false},"0.2.16":{"name":"@cogitojs/cogito","version":"0.2.16","description":"Cogito library for web app","homepage":"https://cogito.mobi/","license":"MIT","main":"umd/cogito.min.js","module":"es/index.js","scripts":{"build":"node ./tools/build.js"},"engines":{"node":">=9.0.0"},"devDependencies":{"@babel/cli":"^7.0.0","@babel/core":"^7.0.0","@babel/plugin-proposal-class-properties":"^7.0.0","@babel/plugin-proposal-object-rest-spread":"^7.0.0","@babel/preset-env":"^7.0.0","gzip-size":"^4.1.0","lodash":"^4.17.10","nock":"^9.2.5","pretty-bytes":"^4.0.2","rollup":"^0.66.0","rollup-plugin-auto-external":"^2.0.0","rollup-plugin-babel":"^4.0.0","rollup-plugin-commonjs":"^9.1.3","rollup-plugin-node-builtins":"^2.1.2","rollup-plugin-node-resolve":"^3.3.0","rollup-plugin-replace":"^2.0.0","rollup-plugin-uglify":"^3.0.0"},"dependencies":{"@cogitojs/cogito-web3":"^0.2.16","@cogitojs/telepath-js":"^0.2.16"},"peerDependencies":{"libsodium-wrappers":"^0.7.2","truffle-contract":"^3.0.5","web3":"^1.0.0-beta.34"},"publishConfig":{"access":"public"},"_id":"@cogitojs/cogito@0.2.16","dist":{"shasum":"3b40352cae58c79e2ead30b1b30414466629e78a","tarball":"https://registry.npmjs.org/@cogitojs/cogito/-/cogito-0.2.16.tgz","integrity":"sha512-gBNVnbqt5BnJYJ2Y7NcfiEhZ1IvTry5fqUMPkwtO5NshWTJp1RxnTti1vwmFIykWQZkuSItrtbNC5xFS8OI3rQ==","fileCount":21,"unpackedSize":135964,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbq5bRCRA9TVsSAnZWagAAhWkP/2uL4WH+8i0EtvD9VsDq\nPaR1/gwEnU30hk5yf6XpgkNWjrQ5gRCWcH1vCssX3zmHol2Bb9MsFQogYgpp\nmzcFnzSjUtHhmrrUe2ydCDtVHrxovbxS7fnnmrpUPXcgM1aPATkmQ/yZmyp/\nupxMJF/MwpZaSwM0jgI8IPYDXXQ+zXfUb1X0yLQ6N5h9eqCFKUDf2yLphOBW\n2PUWwJ2sqRgbI39C8wuK0oxd2+NKJ0m8n0BSJv99yZJfJPfgS/ZQ3PH7J2YZ\nLlKGUxD+W3mI70bI93H4rxqmBxCLO1RSHxLZAFy/KAcsaUiWrt6WQLWSZJWq\n5wOvwW7q2Crin/w6NAG68clLbCpoKNQa+3+tMRg0f93hvjkdyceFk+g7ae7A\ngZM2bptunTvfEeqNleh6BvIt0ftm5YI6ecJvo1f7Se4mcuPDb2H0PHYmKt9b\nZr5CTHf6pfVK2/VhThu+mW+IEifkcX6NGx5UFVRUfLmuxN3dfC+6tmbevM8X\nd08R3XCHfDL8L/LI2GX49nHQWHkeCgLRygAtlbH+VoW1wIoknohUP2GrwJnv\nwEceEeUcndZRijbNCdedlnq1rdMjx9362eE8zlmhcwEHdk+N1OIOckZ0HhEC\njRWNx6Mgb69jU5Vcnj2jqfYWzFrb7ghCKToxL103PpclUuHevFuuyMIB0FIX\nmfBF\r\n=/rSe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICAfex+568jXBX4LOf9avTLj0k7Ho6aYM+UdBqTZuyDCAiBq7MNDJKWjp+JYA6OpjG+LxcPM5Nw+a0/K7XNxaaE8Ug=="}]},"maintainers":[{"name":"everydayproductive","email":"marcin@everydayproductive.com"},{"name":"jeroenknoops","email":"jeroen.knoops@gmail.com"},{"name":"markspanbroek","email":"mark@spanbroek.net"}],"_npmUser":{"name":"markspanbroek","email":"mark@spanbroek.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cogito_0.2.16_1537971920738_0.28602370589870985"},"_hasShrinkwrap":false},"0.2.18":{"name":"@cogitojs/cogito","version":"0.2.18","description":"Cogito library for web app","homepage":"https://cogito.mobi/","license":"MIT","main":"umd/cogito.min.js","module":"es/index.js","scripts":{"build":"node ./tools/build.js"},"engines":{"node":">=9.0.0"},"devDependencies":{"@babel/cli":"^7.0.0","@babel/core":"^7.0.0","@babel/plugin-proposal-class-properties":"^7.0.0","@babel/plugin-proposal-object-rest-spread":"^7.0.0","@babel/preset-env":"^7.0.0","gzip-size":"^4.1.0","lodash":"^4.17.10","nock":"^9.2.5","pretty-bytes":"^4.0.2","rollup":"^0.66.0","rollup-plugin-auto-external":"^2.0.0","rollup-plugin-babel":"^4.0.0","rollup-plugin-commonjs":"^9.1.3","rollup-plugin-node-builtins":"^2.1.2","rollup-plugin-node-resolve":"^3.3.0","rollup-plugin-replace":"^2.0.0","rollup-plugin-uglify":"^3.0.0"},"dependencies":{"@cogitojs/cogito-web3":"^0.2.18","@cogitojs/telepath-js":"^0.2.18"},"peerDependencies":{"libsodium-wrappers":"^0.7.2","truffle-contract":"^3.0.5","web3":"^1.0.0-beta.34"},"publishConfig":{"access":"public"},"_id":"@cogitojs/cogito@0.2.18","dist":{"shasum":"42cf1b0e478defbeb99951f96ae1459a32f67cd9","integrity":"sha512-4sal7lkczg4mUaRQG9BA8tRziVOzx3r4sKK1Poveyzc0qJ5dEfF78chsL5uEkL9ctq3YdRcl6/Eae1Z5n21xfw==","tarball":"https://registry.npmjs.org/@cogitojs/cogito/-/cogito-0.2.18.tgz","fileCount":21,"unpackedSize":135983,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb8vnJCRA9TVsSAnZWagAAVN8P/2ULTelBQf1m7Zp9XdIl\nVbkkwLo78wZfOcoaNfNZCw8VOVtEyJkDFsa4dmK53Bjjc2uc0+IuHpq7KQx9\nDEULn2UOVjaNzAwVFUqJSLYUv2w9AwV3Z/MrlJ7BUHGt0eMBdydvbCH7JJFl\nbIkuF27ckuqGrDdSWYEMxnbkWx0MCFmRLBeSpTPIUU8JVGpWBaxo9IAkZE7Y\neiIXoNliJPXYrYevk0r1mMMQyrGS/8nP02JmnMw64naWSmLZnnFFts+Xb2Qv\nwSc4DZj1M29isoR3jMce8qARyT7wqGa+gXNLq4OFadZD31yDACeHG1B/dKTB\n1zRT53XAoOuPkg8xck/bsLdMPCXe/7+FK/G+Ln97LZjhWk1nKI5xPjF+yril\nIGy8mLLk0+x9I1k4b3Jnfxb8zNRfXu24tjU+Yt6NNARGKyMMETgvDb1E7XaQ\nljwmqV3ogFoSMizidoY6uJGU0rFc/D9jlUHHUXT8NczGqunSpHerulD23S7L\nIiqK1IHLFyJUi5nD9MwDqCDg2h6KACeVlSZy6v2i7qQru0WYi1T+Vci5NN3L\ns66B49t7cIA7xGSCLHQQhcMGbp5EUeFpeluQdqqg3L/tzj0y59ls1SCGHz8i\nnU89p/eHaw6hQu3/gNeGCnZqpfaFlfXpcXYpGQBnn7x6vg/08yWqce2n+Gxz\nVOCR\r\n=qDVK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDcmrpvDhuNKscg47mJM2aMd8G/CKtSfRLnf0nTBbhMkgIhANBbJf9LmwdT/KbphCq3c1RQcPnIs/z8YJxpa3LZ2G+C"}]},"maintainers":[{"name":"everydayproductive","email":"marcin@everydayproductive.com"},{"name":"jeroenknoops","email":"jeroen.knoops@gmail.com"},{"name":"markspanbroek","email":"mark@spanbroek.net"}],"_npmUser":{"name":"everydayproductive","email":"marcin@everydayproductive.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cogito_0.2.18_1542650312699_0.6131025578044171"},"_hasShrinkwrap":false}},"time":{"created":"2018-07-26T23:30:22.451Z","0.2.11":"2018-07-26T23:30:22.599Z","modified":"2022-06-12T16:20:46.431Z","0.2.12":"2018-09-05T08:30:27.526Z","0.2.13":"2018-09-21T12:20:38.349Z","0.2.14":"2018-09-21T12:51:40.580Z","0.2.15":"2018-09-25T17:45:15.627Z","0.2.16":"2018-09-26T14:25:20.890Z","0.2.18":"2018-11-19T17:58:32.828Z"},"maintainers":[{"email":"philips-software@philips.com","name":"philips-software-fa"},{"email":"marcin@everydayproductive.com","name":"everydayproductive"},{"email":"mark@spanbroek.net","name":"markspanbroek"},{"email":"jeroen.knoops@gmail.com","name":"jeroenknoops"}],"description":"Cogito library for web app","homepage":"https://cogito.mobi/","license":"MIT","readme":"# @cogitojs/cogito\n\n`@cogitojs/cogito` is a high level convenience components that provides a more\ndeclarative way of working with [cogito-web3], [telepath], and [Ethereum contracts].\n\n> `Cogito` currently uses Telepath with a fixed queueing service URL `https://telepath.cogito.mobi`.\n\n## Usage\n\nAdd `@cogitojs/cogito` as a dependency\n\n```bash\n$ yarn add `@cogitojs/cogito`\n```\n\n`@cogitojs/cogito` aims at making working with [cogito-web3], [telepath], and [Ethereum contracts] easier. Using `@cogitojs/cogito` you do not have know all the details about web3 providers, cogito-web3, and telepath in order to setup a working cogito ecosystem.\n\nBefore we learn how to use `Cogito`, we need first make sure we have a good understanding how Cogito looks the Ethereum contracts.\n\n## Working with Contracts\n\nDevelopers working with Ethereum contract often use a convenience package `truffle-contract`.\nTo get an instance of a contract you first import `truffle-contract`. What you will get from importing `truffle-contract` is a function that takes a contract definition as an argument and returns a proxy object that you can use to interact with your contract. Before you can do that, however, you still need to set the provider on the returned proxy object:\n\n```javascript\nimport Web3 from 'web3'\nimport initContract from 'truffle-contract'\nimport simpleStorage from 'contracts/SimpleStorage.json'\n\nconst providerUrl = 'http://localhost:9545' // example for the local development\nconst provider = new Web3.providers.HttpProvider(providerUrl)\nconst web3 = new Web3(provider)\nconst contract = initContract(simpleStorage)\ncontract.setProvider(provider)\n// or if you got web3 already initialized\ncontract.setProvider(web3.currentProvider)\n```\n\nTo get the actual instance of the contract, you can either request the *deployed* version that will\nreturn an instance of the contract deployed at the default address managed by the contract itself, *or*\na *raw* version for which you can request an instance of the contract *at* a specific address. The\n*deployed* contracts are often used as a *facade* that represents a fixed entry point to some more\ncomplex functionality. When you call methods of the *deployed* contracts, they often emit events\ncarrying addresses of other contract instances created as a result of the method invocation. In order to\nget a grip on those contract instances, you need to be able to call the `at` method of the contract\nproxy object.\n\nThe *raw* representation is therefore more versatile, because you can either request a *deployed*\nversion by calling `deployed()` method on the proxy object, or you can call `at(address)` to get\nan instance at a given `address`.\n\n`Cogito` allows you to choose which contracts you would like to have returned as *deployed* contracts and which ones as *raw* contracts. Here is an example:\n\n```javascript\nimport dataStore from 'contracts/DataStore.json'\nimport dataRequest from 'contracts/DataRequest.json'\nimport dataResponse from 'contracts/DataResponse.json'\n\nconst contractsInfo = {\n  deployedContractsInfo: [\n    { contractName: 'dataStore', contractDefinition: dataStore }\n  ],\n  rawContractsInfo: [\n    { contractName: 'dataRequest', contractDefinition: dataRequest },\n    { contractName: 'dataResponse', contractDefinition: dataResponse }\n  ]\n}\n```\n\nIn the example above, we see that `dataStore` is requested to be a *deployed* version, while `dataRequest` and `dataResponse` are specified to be returned as *raw* instances.\n\n## Creating an instance of Cogito\n\n`@cogitojs/cogito` provides one top-level abstraction: the `Cogito` class. The constructor of the\n`Cogito` class takes the description of the contracts as an input. Following on the example we show\nin the previous section:\n\n```javascript\nconst cogito = new Cogito(contractsInfo)\n```\n\nNow, in order to retrieve a properly set web3 object that uses a Cogito\nProvider over a new Telepath channel, we call:\n\n```javascript\nconst {web3, channel, contracts} = await cogito.update({ appName: 'Demo App' })\n```\n\n`web3` is an instance of web3 with a Cogito Provider over a new Telepath `channel` and `contracts`\nis an object holding the references to either deployed contracts or the raw proxies:\n\n```javascript\ncontracts.dataStore    // deployed\ncontracts.dataRequest  // raw\ncontracts.dataResponse // raw\n```\n\nThe deployed version is the ready to use *deployed* contract. For the raw versions you can either\nrequest a deployed version by calling e.g. `contracts.dataRequest.deployed()` or a version at\nthe specific `address` by calling e.g. `contracts.dataRequest.at(address)`.\n\nThe returned `channel` object is an instance of a `JsonRpcChannel` that is returned by the\n`createChannel` method of the instance of `Telepath`. It provides the channel id as `channel.id`, \nthe channel key as `channel.key`, allows to send a JSON-RPC `request` using `send(request)`, and\nprovides a convenience method to get the telepath connection url via `channel.createConnectUrl()`.\nThis connection url can be use to generate the QR-Code to be scanned by the Cogito app in order\nto establish a secure connection with the JavaScript client. To learn more about Telepath, connection URLs, and QR-Codes, please refer to the documentation of the [telepath-js] package.\n\nFinally, if you would like to use a previously created Telepath channel with given `id` and `key`,\nyou can do the following:\n\n```javascript\nconst {web3, channel, contracts} = await cogito.update({\n  channelId: id,\n  channelKey: key,\n  appName: 'Demo App'\n})\n```\n\nThis will reuse an existing Telepath channel.\n\n[Web3]: https://github.com/ethereum/web3.js\n[cogito-web3]: https://cogito.mobi/components/cogito-web3\n[telepath]: https://cogito.mobi/components/telepath-js\n[telepath-js]: https://cogito.mobi/components/telepath-js\n[Ethereum contracts]: http://www.ethdocs.org/en/latest/contracts-and-transactions/index.html\n","readmeFilename":"README.md"}