{"_id":"macaroon","_rev":"18-b5b40e79210e7ec4769db699c1dfdf8e","name":"macaroon","description":"Macaroons: cookies with contextual caveats for decentralized authorization in the cloud.","dist-tags":{"latest":"3.0.4"},"versions":{"0.0.1":{"name":"macaroon","author":{"name":"Roger Peppe","email":"rogpeppe@gmail.com"},"bugs":{"url":"http://github.com/go-macaroon/js-macaroon/issues"},"dependencies":{"sjcl":"1.x.x","tweetnacl":">= 0.x.x"},"description":"macaroons: cookies with contextual caveats for decentralized authorization in the cloud","devDependencies":{"mocha":"2.x.x"},"files":["macaroon.js","test"],"homepage":"http://github.com/go-macaroon/js-macaroon","keywords":["authorization","cookie"],"license":"BSD-3-Clause","main":"macaroon.js","repository":{"type":"git","url":"http://github.com/go-macaroon/js-macaroon.git"},"scripts":{"test":"node_modules/mocha/bin/mocha test/test.js"},"version":"0.0.1","gitHead":"c12aa344e478f58e8b5c9123354503e5cd55f4a4","_id":"macaroon@0.0.1","_shasum":"fd722547e15742bb7706634b1b7f91cbf19a5913","_from":".","_npmVersion":"2.1.17","_nodeVersion":"0.10.25","_npmUser":{"name":"rogpeppe","email":"rogpeppe@gmail.com"},"maintainers":[{"name":"rogpeppe","email":"rogpeppe@gmail.com"}],"dist":{"shasum":"fd722547e15742bb7706634b1b7f91cbf19a5913","tarball":"https://registry.npmjs.org/macaroon/-/macaroon-0.0.1.tgz","integrity":"sha512-G8axsvDQvmSpuhU3ppJ5dU9qk7QR7/+nq9bCXWqfLv63qt/s+tkKVwIoaDM+1ID7KhNYj1plcuGt7WZ6vDkNkw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNsggpuccbvqKkVk7K720nXP0Y79i/Uo3fuIoSs7V+1gIhAJYAUA0KPZMSTbZfjOcJX9LoElvC7fEQlMlWsZC0zDfM"}]},"directories":{}},"0.0.2":{"name":"macaroon","author":{"name":"Roger Peppe","email":"rogpeppe@gmail.com"},"bugs":{"url":"http://github.com/go-macaroon/js-macaroon/issues"},"dependencies":{"sjcl":"1.x.x","tweetnacl":">= 0.x.x"},"description":"macaroons: cookies with contextual caveats for decentralized authorization in the cloud","devDependencies":{"mocha":"2.x.x"},"files":["macaroon.js","test"],"homepage":"http://github.com/go-macaroon/js-macaroon","keywords":["authorization","cookie"],"license":"BSD-3-Clause","main":"macaroon.js","repository":{"type":"git","url":"http://github.com/go-macaroon/js-macaroon.git"},"scripts":{"test":"node_modules/mocha/bin/mocha test/test.js"},"version":"0.0.2","gitHead":"9cd8730191d37c30f29741207ace5eb4846097ff","_id":"macaroon@0.0.2","_shasum":"7b2a0eb8b2fa1e28cdd4a171edd7ed786f099076","_from":".","_npmVersion":"2.1.17","_nodeVersion":"0.10.25","_npmUser":{"name":"rogpeppe","email":"rogpeppe@gmail.com"},"maintainers":[{"name":"rogpeppe","email":"rogpeppe@gmail.com"}],"dist":{"shasum":"7b2a0eb8b2fa1e28cdd4a171edd7ed786f099076","tarball":"https://registry.npmjs.org/macaroon/-/macaroon-0.0.2.tgz","integrity":"sha512-2zRA8TmfbSI9a9PJaeFXJei0MJXUghdnfD7o0h5wp/1lZBPucc+jrwUki9eNpP6dsp6dZttA28gMkC891ND5sg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH4P7O7ff0H8INeLn5GLmfGTgUomAIYj8aNHmDxrKwcQAiB7omU7jc9l+4IRRiBWu5+5FKGP3qY5hh3AVx+Go+Tm9w=="}]},"directories":{}},"0.0.3":{"name":"macaroon","author":{"name":"Roger Peppe","email":"rogpeppe@gmail.com"},"bugs":{"url":"http://github.com/go-macaroon/js-macaroon/issues"},"dependencies":{"sjcl":"1.x.x","tweetnacl":">= 0.x.x"},"description":"macaroons: cookies with contextual caveats for decentralized authorization in the cloud","devDependencies":{"mocha":"2.x.x"},"files":["macaroon.js","test"],"homepage":"http://github.com/go-macaroon/js-macaroon","keywords":["authorization","cookie"],"license":"BSD-3-Clause","main":"macaroon.js","repository":{"type":"git","url":"http://github.com/go-macaroon/js-macaroon.git"},"scripts":{"test":"node_modules/mocha/bin/mocha test/test.js"},"version":"0.0.3","gitHead":"8750cd529d5b4da5e27fc8ef43e7d451d5be4097","_id":"macaroon@0.0.3","_shasum":"ea5f38427d3ced952f245418e2ebf9fdb5f3db9f","_from":".","_npmVersion":"2.1.17","_nodeVersion":"0.10.25","_npmUser":{"name":"rogpeppe","email":"rogpeppe@gmail.com"},"maintainers":[{"name":"rogpeppe","email":"rogpeppe@gmail.com"}],"dist":{"shasum":"ea5f38427d3ced952f245418e2ebf9fdb5f3db9f","tarball":"https://registry.npmjs.org/macaroon/-/macaroon-0.0.3.tgz","integrity":"sha512-Cbo6Xlx6XeRKt8x52BgDqnmgEjSoBcHHyQ856rpCy/c2C2TVRIak2hCdC2SQglPwI3RnIfeeO2gbg/mSo1z8fQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEaNnyv2k/1AzO9EAETfUBMYs6ymJyk3mbzNkMZVz8KaAiEAunOkqtSNYrapxxt2ry5ynfjq7RNmeVg7oJZdhbusnv8="}]},"directories":{}},"1.0.0":{"name":"macaroon","author":{"name":"Roger Peppe","email":"rogpeppe@gmail.com"},"bugs":{"url":"http://github.com/go-macaroon/js-macaroon/issues"},"dependencies":{"sjcl":"1.x.x","tweetnacl":">= 0.x.x"},"description":"macaroons: cookies with contextual caveats for decentralized authorization in the cloud","devDependencies":{"mocha":"2.x.x"},"files":["macaroon.js","test"],"homepage":"http://github.com/go-macaroon/js-macaroon","keywords":["authorization","cookie"],"license":"BSD-3-Clause","main":"macaroon.js","repository":{"type":"git","url":"http://github.com/go-macaroon/js-macaroon.git"},"scripts":{"test":"node_modules/mocha/bin/mocha test/test.js"},"version":"1.0.0","gitHead":"f680b04b26648a6da077290bd1afdaf6366b748a","_id":"macaroon@1.0.0","_shasum":"2eb33fd6e4ceab2ed63a2c1155d70638b0826df8","_from":".","_npmVersion":"2.1.17","_nodeVersion":"0.10.37","_npmUser":{"name":"rogpeppe","email":"rogpeppe@gmail.com"},"maintainers":[{"name":"rogpeppe","email":"rogpeppe@gmail.com"}],"dist":{"shasum":"2eb33fd6e4ceab2ed63a2c1155d70638b0826df8","tarball":"https://registry.npmjs.org/macaroon/-/macaroon-1.0.0.tgz","integrity":"sha512-k7kd34+xHmKyZc/+hLKF7shYYmqfqYiqGAxHXv7kexjrllVHOr5n6mhunV0XBUMp3qRKMjTi2n4aDTQsEj893w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6z+831NMWy0HNgpGh6XyIUf3mxScS8NRhV1qsB/9cKwIhAJ9iXD7QuCwPSiMmgmyPR/WBgjxsF9mT3j4axSN2aUFS"}]},"directories":{}},"2.0.0":{"author":{"name":"Roger Peppe","url":"rogpeppe@gmail.com"},"bugs":{"url":"http://github.com/go-macaroon/js-macaroon/issues"},"contributors":[{"name":"Jeff Pihach","url":"https://fromanegg.com"}],"dependencies":{"sjcl":"^1.0.6","tweetnacl":"^0.14.5","tweetnacl-util":"^0.15.0"},"description":"Macaroons: cookies with contextual caveats for decentralized authorization in the cloud.","devDependencies":{"eslint":"^3.19.0","tap-diff":"^0.1.1","tape":"^4.6.3"},"homepage":"http://github.com/go-macaroon/js-macaroon","keywords":["authorization","cookie","macaroon"],"license":"BSD-3-Clause","main":"macaroon.js","name":"macaroon","repository":{"type":"git","url":"git+ssh://git@github.com/go-macaroon/js-macaroon.git"},"scripts":{"lint":"eslint .","test":"node test/test.js | tap-diff"},"version":"2.0.0","gitHead":"bcc5d1aac0ff139a92b41e0da4b728c265720277","_id":"macaroon@2.0.0","_npmVersion":"5.4.1","_nodeVersion":"6.11.2","_npmUser":{"name":"rogpeppe","email":"rogpeppe@gmail.com"},"dist":{"integrity":"sha512-PvFKQCbVd822RUp8YjiUXlNCIKQMTmlb/BGtj/j0JEvkQboKco3fW2HdO1kmiXa7f0+PnGaOBj69rygZoYcuWg==","shasum":"e149c7113ec7aacd5b5e4f48a29b1ef9ebfc1c70","tarball":"https://registry.npmjs.org/macaroon/-/macaroon-2.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC69z1+bAp/jqM+EWjUApklbSSEjwLCZ/qDlepn/jBQjgIhAKRfR69o5tarwmBOqJi5+hiaGTEmdJS9UwObyuw8rKmj"}]},"maintainers":[{"name":"rogpeppe","email":"rogpeppe@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/macaroon-2.0.0.tgz_1505223001219_0.8553826005663723"},"directories":{}},"2.0.1":{"author":{"name":"Roger Peppe","url":"rogpeppe@gmail.com"},"bugs":{"url":"http://github.com/go-macaroon/js-macaroon/issues"},"contributors":[{"name":"Jeff Pihach","url":"https://fromanegg.com"}],"dependencies":{"sjcl":"^1.0.6","tweetnacl":"^0.14.5","tweetnacl-util":"^0.15.0"},"description":"Macaroons: cookies with contextual caveats for decentralized authorization in the cloud.","devDependencies":{"eslint":"^3.19.0","tap-diff":"^0.1.1","tape":"^4.6.3"},"homepage":"http://github.com/go-macaroon/js-macaroon","keywords":["authorization","cookie","macaroon"],"license":"BSD-3-Clause","main":"macaroon.js","name":"macaroon","repository":{"type":"git","url":"git+ssh://git@github.com/go-macaroon/js-macaroon.git"},"scripts":{"lint":"eslint .","test":"node test/test.js | tap-diff"},"version":"2.0.1","gitHead":"2047210c3eec9e39489824d08a0142ac8e744a5b","_id":"macaroon@2.0.1","_npmVersion":"5.4.1","_nodeVersion":"6.11.2","_npmUser":{"name":"rogpeppe","email":"rogpeppe@gmail.com"},"dist":{"integrity":"sha512-VAqEx84s9Wd68C9SOHjnlZw0HIo/mxfl+fxPs04Zyf3ySJJxw2/4y9/mPshcA6Nh1JiOvb837krBeA2dcq3f/g==","shasum":"c152d3a217ee475d555645f9a34923beab22f09b","tarball":"https://registry.npmjs.org/macaroon/-/macaroon-2.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDS8iQT6ELa/l+viKQoNpr2ohsvpSWrOwq+JjmKOmIgrAIgWMw8J81zNWBGhVXTRSjzL7UMJjVoF3I1tUfiVEwFPUk="}]},"maintainers":[{"name":"rogpeppe","email":"rogpeppe@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/macaroon-2.0.1.tgz_1505226703262_0.10504157026298344"},"directories":{}},"3.0.0":{"author":{"name":"Roger Peppe","url":"rogpeppe@gmail.com"},"bugs":{"url":"http://github.com/go-macaroon/js-macaroon/issues"},"contributors":[{"name":"Jeff Pihach","url":"https://fromanegg.com"}],"dependencies":{"base64-js":"^1.2.1","benchmark":"^2.1.4","microtime":"^2.1.6","rewire":"^2.5.2","sjcl":"^1.0.6","text-encoding":"^0.6.4","tweetnacl":"^0.14.5","tweetnacl-util":"^0.15.0"},"description":"Macaroons: cookies with contextual caveats for decentralized authorization in the cloud.","devDependencies":{"eslint":"^3.19.0","tap-diff":"^0.1.1","tape":"^4.6.3"},"homepage":"http://github.com/go-macaroon/js-macaroon","keywords":["authorization","cookie","macaroon"],"license":"BSD-3-Clause","main":"macaroon.js","name":"macaroon","repository":{"type":"git","url":"git+ssh://git@github.com/go-macaroon/js-macaroon.git"},"scripts":{"lint":"eslint .","test":"node test/test.js"},"version":"3.0.0","gitHead":"61b3a8488543dbb7fc1c08eb2b0adfd7f6512fe4","_id":"macaroon@3.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"rogpeppe","email":"rogpeppe@gmail.com"},"dist":{"integrity":"sha512-hIcK3huR9SDpnzM/vq1n8HfIyPBUoJe/VHik+HF1ZL4LvGhH7zam6+QzRCFZzY+QR7eRsBV3HwP1fstLi1gARA==","shasum":"e97aeec43083bed76a5d225900306c31c863856a","tarball":"https://registry.npmjs.org/macaroon/-/macaroon-3.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHiAq6n7AvWs+13SkeL4y5lC0ewh0g7ueohmIdGqcU3kAiEAg+prZWRNyS8lUcjyP7V0wsCTD/hdrUq7Nsud1mca0LY="}]},"maintainers":[{"name":"rogpeppe","email":"rogpeppe@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/macaroon-3.0.0.tgz_1508260354687_0.8495154657866806"},"directories":{}},"3.0.1":{"author":{"name":"Roger Peppe","url":"rogpeppe@gmail.com"},"bugs":{"url":"http://github.com/go-macaroon/js-macaroon/issues"},"contributors":[{"name":"Jeff Pihach","url":"https://fromanegg.com"}],"dependencies":{"sjcl":"^1.0.6","tweetnacl":"^0.14.5","tweetnacl-util":"^0.15.0"},"description":"Macaroons: cookies with contextual caveats for decentralized authorization in the cloud.","devDependencies":{"eslint":"^3.19.0","rewire":"^2.5.2","tape":"^4.6.3"},"homepage":"http://github.com/go-macaroon/js-macaroon","keywords":["authorization","cookie","macaroon"],"license":"BSD-3-Clause","main":"macaroon.js","name":"macaroon","repository":{"type":"git","url":"git+ssh://git@github.com/go-macaroon/js-macaroon.git"},"scripts":{"lint":"eslint .","test":"node test/test.js"},"version":"3.0.1","gitHead":"5cef70f3b1abdc7228929ecbaf6f00a4fbce22e8","_id":"macaroon@3.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.6.0","_npmUser":{"name":"rogpeppe","email":"rogpeppe@gmail.com"},"dist":{"integrity":"sha512-iA/n6yjr6lW/0OlAaWXC82oZAtr39ogdyRCuFzznyq6QsrYcF7c6TQ5na3MDLg+9b4x7inkd8VJmm6Au/0II4Q==","shasum":"bd8534553d34a52f8772ef7435451f8e4ea7fe76","tarball":"https://registry.npmjs.org/macaroon/-/macaroon-3.0.1.tgz","fileCount":18,"unpackedSize":74076,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbM6FJCRA9TVsSAnZWagAAlWMP/jkPRZL7NBXMUO3QVKMD\nzLCOWL3VkMs8TlPwMtMYHrrLWA+e9Otus12Gs9Au0AONxkvbo3f2H4xB2IzZ\nDsjdUh0O2yjauapnOgN2fHR3nhpmL2/lZbkQCxIuwRlwDa/O/T9fW8yQv35q\nKcwmw+WKqwtFA2SCDQulyW89a966N/gU2AQhV+Gz1yz6NIm4HBtphBa3XZTN\nz3MqOj4bsrN49m9ssXm3imwU7iJTs99697ujzxiDjdo6fp1Zo/3zXDVauni6\nFhu7rMw3khF7bPz/hzHeh4vlTagP81BUnN7V+2h/ZAubnjglMcZnz9eAZ+zU\nqXW1qwPIRGUwuAditF8XaSHBZAYfxGLqo/zBIRj/G9SJ8LhqyafzejGUIX+0\nyeFGA0GsUw4vjGllM61BebfZc0HpF7rk//i57Gvufr20+6O+wV0z9Ds1GfQv\ndnEH2vVAEKnbIMANyn07hYZc6/qW6oerDC9o0aEfZDEsLP5dhLKaDeGxL/vO\nTtu84Y4ln+6xylxD/tkCa3fQ15RbSFTO0UW8WfZE/JlzvtT3NQ5/9+PWqsf7\n6sbE5hEbDH5olSoC9oRk5lUH6iRGWQx0w/F+Gk7ltZNoj1mVoi8ef7aOetNI\n/KiHaHwWqFxUDlOG7wUFAttoun3bzTuuW6QfWzyJnQuSjVM/g6Mu97k8TyFO\nB7F4\r\n=qPi2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQNIt/ZZSQfCrS412mhQ+af6N3+rpVG+D9C/4Z88Pq7wIgEg7g2+GWSjgrh8fWZqI/ydUawhgb88QQFLg0gqZKFRU="}]},"maintainers":[{"name":"rogpeppe","email":"rogpeppe@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/macaroon_3.0.1_1530110281724_0.7306910962318625"},"_hasShrinkwrap":false},"3.0.2":{"author":{"name":"Roger Peppe","url":"rogpeppe@gmail.com"},"bugs":{"url":"http://github.com/go-macaroon/js-macaroon/issues"},"contributors":[{"name":"Jeff Pihach","url":"https://fromanegg.com"}],"dependencies":{"sjcl":"^1.0.6","tweetnacl":"^0.14.5","tweetnacl-util":"^0.15.0"},"description":"Macaroons: cookies with contextual caveats for decentralized authorization in the cloud.","devDependencies":{"eslint":"^3.19.0","jsdoc-to-markdown":"^4.0.1","rewire":"^2.5.2","tape":"^4.6.3"},"homepage":"http://github.com/go-macaroon/js-macaroon","keywords":["authorization","cookie","macaroon"],"license":"BSD-3-Clause","main":"macaroon.js","name":"macaroon","repository":{"type":"git","url":"git+ssh://git@github.com/go-macaroon/js-macaroon.git"},"scripts":{"lint":"eslint .","test":"node test/test.js","doc":"jsdoc2md macaroon.js > README.md"},"version":"3.0.2","gitHead":"3070a33834630b0e0f19d88981367e2ee34b427a","_id":"macaroon@3.0.2","_npmVersion":"5.5.1","_nodeVersion":"8.6.0","_npmUser":{"name":"rogpeppe","email":"rogpeppe@gmail.com"},"dist":{"integrity":"sha512-9kO1O2UBKbBvJnnhbBL2VRPK9eBxNCrAiqfvwBpXT9C3XEeYw38jRATymOTSfRYdl4KowHtZjHWktFH17K64vQ==","shasum":"481a5281db2f7818d25ff25a2f46084b4b534fcb","tarball":"https://registry.npmjs.org/macaroon/-/macaroon-3.0.2.tgz","fileCount":18,"unpackedSize":84918,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbtkKVCRA9TVsSAnZWagAA+ZUQAJTHTqAFrgcMp2q9JwPt\ncZY5aUA05u0LBXl1M2KkaMi9t4IoEPty4x9IxiQLs6nv0gd3xGuI2wt9gqcx\nWBZihVSv73QjzHsSNVYEcyZQdyCjS/ebXJcTJ3gMTD+QrUJQea2aIT58bY/t\n15KB3/+baG/zkkHlUYjKGIsGLXT8pDnZtSkGV6S4dUaAQO4rkCOiJgsf9xae\nKef1Il88qjYm0+jqE7JsY4oeJHRgrtMMOAkrux6S6BPdeiflDHO1kQ+8J0tV\nNMHGHZQpZr8mFIbKBMzAYUVKrzXtwJmfi3ylmiJGZu8SKZ4HTXVbic2iFC5m\n8tF3A8Z+/4SKHZmpvz/4qXSqcYzhuCkmFn5SuDAtQs+7+qnnwaW/aoQePJ/F\nUI/jV2rqu6vDVvyImS8XMBjZgdw0fYqtTNibyTj2XhXyKyul77aT3htrIpU2\nuRVbG2bGgiTeaatnGyt1OZZN/7qSvUXx3eejtgvq+XFjNKQc2f2QRNfiiSO8\ne1IKfVqEae1z3w9vjbx5z/9UX5EmJfSmcHiMMSwSKFa9FJBmfHhAp5Fk4REA\nbqIX3P0Pc5PYEcmVy+K9SlkNqq2fWn7Ryu/umlrgv0Z4Mjia1xOoJAiNdnI5\nYk3TXMNspXdrm0NAr1TvMyUYqTQ3pLBJi1nCbDYOEIO9JOOGwMf0/wvjkguK\nJp6m\r\n=Q2Jg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvQxogdDfs/H6YBmquIUwN4HZCyr3LsxqyBlFBqgAQLwIhALPfd3teGKDmcty/8k0gxE/OdT5RJWxpPD+xTQ5szcUX"}]},"maintainers":[{"name":"rogpeppe","email":"rogpeppe@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/macaroon_3.0.2_1538671253136_0.7110176477550558"},"_hasShrinkwrap":false},"3.0.3":{"author":{"name":"Roger Peppe","url":"rogpeppe@gmail.com"},"bugs":{"url":"http://github.com/go-macaroon/js-macaroon/issues"},"contributors":[{"name":"Jeff Pihach","url":"https://fromanegg.com"}],"dependencies":{"sjcl":"^1.0.6","tweetnacl":"^1.0.0","tweetnacl-util":"^0.15.0"},"description":"Macaroons: cookies with contextual caveats for decentralized authorization in the cloud.","devDependencies":{"eslint":"^5.7.0","jsdoc-to-markdown":"^4.0.1","rewire":"^4.0.1","tape":"^4.6.3"},"homepage":"http://github.com/go-macaroon/js-macaroon","keywords":["authorization","cookie","macaroon"],"license":"BSD-3-Clause","main":"macaroon.js","name":"macaroon","repository":{"type":"git","url":"git+ssh://git@github.com/go-macaroon/js-macaroon.git"},"scripts":{"lint":"eslint .","test":"node test/test.js","check":"npm run lint && npm t","clean":"rm -rf node_modules","doc":"jsdoc2md macaroon.js > README.md"},"version":"3.0.3","gitHead":"6598b46faffd1eec434c1ca8ec820bf592d9e486","_id":"macaroon@3.0.3","_npmVersion":"5.5.1","_nodeVersion":"8.6.0","_npmUser":{"name":"rogpeppe","email":"rogpeppe@gmail.com"},"dist":{"integrity":"sha512-wjoZVisdYBcIPE5lpx2xrVq2Itjkao1iUvtzDpiieGT7Uc+EDFZVAk/pUvVubCppNc/qaF0XJKAE7Yhao0LWDw==","shasum":"70a5506345f3f13b8fe39202deae7faa81eda6ac","tarball":"https://registry.npmjs.org/macaroon/-/macaroon-3.0.3.tgz","fileCount":19,"unpackedSize":85538,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbxMWhCRA9TVsSAnZWagAAUxUP/2+Ne9NW0CwHondVi88M\nuRhWjEIdRpjlPH5ImGviuSpnLHoQvLtN3IScP2uP2cZ3o5lYbB6GEhiVWEgB\nCBxX5C8wOl3N9dFL9oWZ2+E8aBCSzMAjB+3MoQ3Aabz6hbMGlIzMXLQLU7wl\nqasWGCuzm+MDTlhXMWsfS5HO/NQzMzcRH/0sN5LfBtNajL4BIDa063fEiESY\nMq9qiXv0UEVoO7rg7sXHLEMZdQWwL6NU1q5S1FjTzXZFur/zX2Gfq5jiwbdc\nEvfE+iNutSzFPt6L2SKpErlUgqwuN6/10kJ0fRhzvGhIIPrCe3Rhu9cK8fn/\nRBFduQ6yrsXJnqdwFhOfD2spP9d8vOVtgrlr9m/BUoXD3nDKVJ1uzmHdo0Il\nJXVwqwnPBCh57Q0wLHo0Qrdn9bNoCrFiy46hZQ+J7NQTWymXrfNSID6KySBs\ny+l8InGk8vCnzPpipWHbQaC/JjNVo5rlXvxdSAK8lVTlXkcGHFnyh37uOkGY\nl576eo2tVHWPrqvM0OGWszsHInMKY8vbUm7CUa8sibiGb+5nfpZ9Qo4GUHhy\nGkybIdpQkTLu5Bz/OdZ6A3p4ocyLdkKaQZf92MboWOwEIYyEzqm/GCVkG3lp\nGsxUhHCDAGuUCJ8mNKCm/LJOSowMa0EQiENA6MLWMvLMjPSnQPbe/T4HM+OA\n2oxN\r\n=2cyq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkNZrfcxUAwj6AXHDd43TDF2mRsyR1PKuAclKnMDQVKQIhANTIRoG5IsvljywyG4o9RdXW7JvsWcxazZglEgDB0rs4"}]},"maintainers":[{"name":"rogpeppe","email":"rogpeppe@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/macaroon_3.0.3_1539622304981_0.6628960723202495"},"_hasShrinkwrap":false},"3.0.4":{"author":{"name":"Roger Peppe","url":"rogpeppe@gmail.com"},"bugs":{"url":"http://github.com/go-macaroon/js-macaroon/issues"},"contributors":[{"name":"Jeff Pihach","url":"https://fromanegg.com"}],"dependencies":{"sjcl":"^1.0.6","tweetnacl":"^1.0.0","tweetnacl-util":"^0.15.0"},"description":"Macaroons: cookies with contextual caveats for decentralized authorization in the cloud.","devDependencies":{"eslint":"^5.7.0","jsdoc-to-markdown":"^4.0.1","rewire":"^4.0.1","tape":"^4.6.3"},"homepage":"http://github.com/go-macaroon/js-macaroon","keywords":["authorization","cookie","macaroon"],"license":"BSD-3-Clause","main":"macaroon.js","name":"macaroon","repository":{"type":"git","url":"git+ssh://git@github.com/go-macaroon/js-macaroon.git"},"scripts":{"lint":"eslint .","test":"node test/test.js","check":"npm run lint && npm t","clean":"rm -rf node_modules","doc":"jsdoc2md macaroon.js > README.md"},"version":"3.0.4","gitHead":"15a163659ef213d2eee69f4605904ca52ff15426","_id":"macaroon@3.0.4","_npmVersion":"5.5.1","_nodeVersion":"8.6.0","_npmUser":{"name":"rogpeppe","email":"rogpeppe@gmail.com"},"dist":{"integrity":"sha512-Tja2jvupseKxltPZbu5RPSz2Pgh6peYA3O46YCTcYL8PI1VqtGwDqRhGfP8pows26xx9wTiygk+en62Bq+Y8JA==","shasum":"dac1a4b17cd973c1000703f40b19bdbb1d6191ce","tarball":"https://registry.npmjs.org/macaroon/-/macaroon-3.0.4.tgz","fileCount":19,"unpackedSize":88584,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcNj/YCRA9TVsSAnZWagAAkSoP/iSfc+Y9l6DM818UVC1r\nNrWH0qIRlcDDGCfKhGSWHQJB0JRErrgCD/S2g3GtGU2ADf7ZDMK4uqWTFGCQ\nKrZy64he14yIAiG2SWEFLum/6E6A4V+pyboArj1ut+ch+quoA3DJbJp6u2+N\nDnYkn3681QiqZrkFzxl5YW6xJf7MmWY4SwgMUl8SBNUSmFqG6mQc898fFG3p\nbvI6Y5TQUuXLUtMRZF16Pui81XSNtPluEG5ASd89f8fxXR2iYaVzPEw6MRFx\nITbyBqOeVSUV3N7O/kDw2uhNseN3IaYrge+uOEI4abWliy83RaUzNu8zTwep\nHChdgk5H23/fThN6uWO5NmXPe5lVKHTfBgfgTxPeSUhGRNgCLQG5w2ytFklh\n2mLFQ11RQU4qo0p/y6QIDL85041nyQK6drwN7vzbEMkDfp5CChtCtJRH36kw\n/mMmpLpGLXD8gnm+ym+ZOOmMCWTSeoQcwG+SNnLmC04uOPTyyxa9+RIFsEQb\n8vyWoQmv6ixo9ztlbDAg4tRAF59P+znKOSvhhEvIRufMhUuWj9Wv13Srjqj8\nPb9eZlR/owQwV+6OFs0MCs5IuSCYQ2bgcPXzLufIu23JyRHw79JHe4mWmMMY\nGhqp6ldCnRET16iemMDnyIp9xEzoEaCsqU7ENcRJWUtfNC11dzQ783CZu2rn\nQGTe\r\n=mTMC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCc1DkONGbY+zPhXjWAfmDMpw/X7ekz/9mWoqZ1fqbuxAIgSX5LVNBoz80uVJ6KlFzEkC4SS/Rg32dnt8YvDcyIE/g="}]},"maintainers":[{"name":"rogpeppe","email":"rogpeppe@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/macaroon_3.0.4_1547059159763_0.8018113063104868"},"_hasShrinkwrap":false}},"readme":"<a name=\"module_macaroon\"></a>\n\n## macaroon\nA JavaScript implementation of\n [macaroons](http://theory.stanford.edu/~ataly/Papers/macaroons.pdf)\n compatible with the [Go](http://github.com/go-macaroon/macaroon),\n [Python, and C ](https://github.com/rescrv/libmacaroons)\n implementations. Including functionality to interact with\n third party caveat dischargers implemented by the [Go macaroon\n bakery](http://github.com/go-macaroon-bakery/macaroon-bakery).\n It supports both version 1 and 2 macaroons in JSON and binary formats.\n\n\n* [macaroon](#module_macaroon)\n    * [Macaroon#caveats](#exp_module_macaroon--Macaroon+caveats) ⇒ <code>Array</code> ⏏\n    * [Macaroon#location](#exp_module_macaroon--Macaroon+location) ⇒ <code>string</code> ⏏\n    * [Macaroon#identifier](#exp_module_macaroon--Macaroon+identifier) ⇒ <code>Uint8Array</code> ⏏\n    * [Macaroon#signature](#exp_module_macaroon--Macaroon+signature) ⇒ <code>Uint8Array</code> ⏏\n    * [base64ToBytes(s)](#exp_module_macaroon--base64ToBytes) ⇒ <code>Uint8Array</code> ⏏\n    * [bytesToBase64(bytes)](#exp_module_macaroon--bytesToBase64) ⇒ <code>string</code> ⏏\n    * [Macaroon#addThirdPartyCaveat(rootKeyBytes, caveatIdBytes, [locationStr])](#exp_module_macaroon--Macaroon+addThirdPartyCaveat) ⏏\n    * [Macaroon#addFirstPartyCaveat(caveatIdBytes)](#exp_module_macaroon--Macaroon+addFirstPartyCaveat) ⏏\n    * [Macaroon#bindToRoot(rootSig)](#exp_module_macaroon--Macaroon+bindToRoot) ⏏\n    * [Macaroon#clone()](#exp_module_macaroon--Macaroon+clone) ⇒ <code>Macaroon</code> ⏏\n    * [Macaroon#verify(rootKeyBytes, check, discharges)](#exp_module_macaroon--Macaroon+verify) ⏏\n    * [Macaroon#exportJSON()](#exp_module_macaroon--Macaroon+exportJSON) ⇒ <code>Object</code> ⏏\n    * [Macaroon#exportBinary()](#exp_module_macaroon--Macaroon+exportBinary) ⇒ <code>Uint8Array</code> ⏏\n    * [importMacaroon(obj)](#exp_module_macaroon--importMacaroon) ⇒ <code>Macaroon</code> \\| <code>Array.&lt;Macaroon&gt;</code> ⏏\n    * [importMacaroons(obj)](#exp_module_macaroon--importMacaroons) ⇒ <code>Array.&lt;Macaroon&gt;</code> ⏏\n    * [newMacaroon()](#exp_module_macaroon--newMacaroon) ⇒ <code>Macaroon</code> ⏏\n    * [dischargeMacaroon(macaroon, getDischarge, onOk, onError)](#exp_module_macaroon--dischargeMacaroon) ⏏\n\n<a name=\"exp_module_macaroon--Macaroon+caveats\"></a>\n\n### Macaroon#caveats ⇒ <code>Array</code> ⏏\nReturn the caveats associated with the macaroon,\nas an array of caveats. A caveat is represented\nas an object with an identifier field (Uint8Array)\nand (for third party caveats) a location field (string),\nand verification id (Uint8Array).\n\n**Kind**: Exported member  \n**Returns**: <code>Array</code> - - The macaroon's caveats.  \n<a name=\"exp_module_macaroon--Macaroon+location\"></a>\n\n### Macaroon#location ⇒ <code>string</code> ⏏\nReturn the location of the macaroon.\n\n**Kind**: Exported member  \n**Returns**: <code>string</code> - - The macaroon's location.  \n<a name=\"exp_module_macaroon--Macaroon+identifier\"></a>\n\n### Macaroon#identifier ⇒ <code>Uint8Array</code> ⏏\nReturn the macaroon's identifier.\n\n**Kind**: Exported member  \n**Returns**: <code>Uint8Array</code> - - The macaroon's identifier.  \n<a name=\"exp_module_macaroon--Macaroon+signature\"></a>\n\n### Macaroon#signature ⇒ <code>Uint8Array</code> ⏏\nReturn the signature of the macaroon.\n\n**Kind**: Exported member  \n**Returns**: <code>Uint8Array</code> - - The macaroon's signature.  \n<a name=\"exp_module_macaroon--base64ToBytes\"></a>\n\n### base64ToBytes(s) ⇒ <code>Uint8Array</code> ⏏\nConvert a base64 string to a Uint8Array by decoding it.\nIt copes with unpadded and URL-safe base64 encodings.\n\n**Kind**: Exported function  \n**Returns**: <code>Uint8Array</code> - - The decoded bytes.  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| s | <code>string</code> | The base64 string to decode. |\n\n<a name=\"exp_module_macaroon--bytesToBase64\"></a>\n\n### bytesToBase64(bytes) ⇒ <code>string</code> ⏏\nConvert a Uint8Array to a base64-encoded string\nusing URL-safe, unpadded encoding.\n\n**Kind**: Exported function  \n**Returns**: <code>string</code> - - The base64-encoded result.  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| bytes | <code>Uint8Array</code> | The bytes to encode. |\n\n<a name=\"exp_module_macaroon--Macaroon+addThirdPartyCaveat\"></a>\n\n### Macaroon#addThirdPartyCaveat(rootKeyBytes, caveatIdBytes, [locationStr]) ⏏\nAdds a third party caveat to the macaroon. Using the given shared root key,\n    caveat id and location hint. The caveat id should encode the root key in\n    some way, either by encrypting it with a key known to the third party or by\n    holding a reference to it stored in the third party's storage.\n\n**Kind**: Exported function  \n\n| Param | Type |\n| --- | --- |\n| rootKeyBytes | <code>Uint8Array</code> | \n| caveatIdBytes | <code>Uint8Array</code> \\| <code>string</code> | \n| [locationStr] | <code>String</code> | \n\n<a name=\"exp_module_macaroon--Macaroon+addFirstPartyCaveat\"></a>\n\n### Macaroon#addFirstPartyCaveat(caveatIdBytes) ⏏\nAdds a caveat that will be verified by the target service.\n\n**Kind**: Exported function  \n\n| Param | Type |\n| --- | --- |\n| caveatIdBytes | <code>String</code> \\| <code>Uint8Array</code> | \n\n<a name=\"exp_module_macaroon--Macaroon+bindToRoot\"></a>\n\n### Macaroon#bindToRoot(rootSig) ⏏\nBinds the macaroon signature to the given root signature.\n    This must be called on discharge macaroons with the primary\n    macaroon's signature before sending the macaroons in a request.\n\n**Kind**: Exported function  \n\n| Param | Type |\n| --- | --- |\n| rootSig | <code>Uint8Array</code> | \n\n<a name=\"exp_module_macaroon--Macaroon+clone\"></a>\n\n### Macaroon#clone() ⇒ <code>Macaroon</code> ⏏\nReturns a copy of the macaroon. Any caveats added to the returned macaroon\n    will not effect the original.\n\n**Kind**: Exported function  \n**Returns**: <code>Macaroon</code> - - The cloned macaroon.  \n<a name=\"exp_module_macaroon--Macaroon+verify\"></a>\n\n### Macaroon#verify(rootKeyBytes, check, discharges) ⏏\nVerifies that the macaroon is valid. Throws exception if verification fails.\n\n**Kind**: Exported function  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| rootKeyBytes | <code>Uint8Array</code> | Must be the same that the macaroon was       originally created with. |\n| check | <code>function</code> | Called to verify each first-party caveat. It       is passed the condition to check (a string) and should return an error string if the condition       is not met, or null if satisfied. |\n| discharges | <code>Array</code> |  |\n\n<a name=\"exp_module_macaroon--Macaroon+exportJSON\"></a>\n\n### Macaroon#exportJSON() ⇒ <code>Object</code> ⏏\nExports the macaroon to a JSON-serializable object.\n  The version used depends on what version the\n  macaroon was created with or imported from.\n\n**Kind**: Exported function  \n<a name=\"exp_module_macaroon--Macaroon+exportBinary\"></a>\n\n### Macaroon#exportBinary() ⇒ <code>Uint8Array</code> ⏏\nExports the macaroon using binary format.\n  The version will be the same as the version that the\n  macaroon was created with or imported from.\n\n**Kind**: Exported function  \n<a name=\"exp_module_macaroon--importMacaroon\"></a>\n\n### importMacaroon(obj) ⇒ <code>Macaroon</code> \\| <code>Array.&lt;Macaroon&gt;</code> ⏏\nReturns a macaroon instance based on the object passed in.\n  If obj is a string, it is assumed to be a base64-encoded\n  macaroon in binary or JSON format.\n  If obj is a Uint8Array, it is assumed to be a macaroon in\n  binary format, as produced by the exportBinary method.\n  Otherwise obj is assumed to be a object decoded from JSON,\n  and will be unmarshaled as such.\n\n**Kind**: Exported function  \n\n| Param | Description |\n| --- | --- |\n| obj | A deserialized JSON macaroon. |\n\n<a name=\"exp_module_macaroon--importMacaroons\"></a>\n\n### importMacaroons(obj) ⇒ <code>Array.&lt;Macaroon&gt;</code> ⏏\nReturns an array of macaroon instances based on the object passed in.\n  If obj is a string, it is assumed to be a set of base64-encoded\n  macaroons in binary or JSON format.\n  If obj is a Uint8Array, it is assumed to be set of macaroons in\n  binary format, as produced by the exportBinary method.\n  If obj is an array, it is assumed to be an array of macaroon\n  objects decoded from JSON.\n  Otherwise obj is assumed to be a macaroon object decoded from JSON.\n\n  This function accepts a strict superset of the formats accepted\n  by importMacaroons. When decoding a single macaroon,\n  it will return an array with one macaroon element.\n\n**Kind**: Exported function  \n\n| Param | Description |\n| --- | --- |\n| obj | A deserialized JSON macaroon or macaroons. |\n\n<a name=\"exp_module_macaroon--newMacaroon\"></a>\n\n### newMacaroon() ⇒ <code>Macaroon</code> ⏏\nCreate a new Macaroon with the given root key, identifier, location\n  and signature and return it.\n\n**Kind**: Exported function  \n\n| Type | Description |\n| --- | --- |\n| <code>Object</code> | The necessary values to generate a macaroon.     It contains the following fields:       identifier: {String | Uint8Array}       location:   {String} (optional)       rootKey:    {String | Uint8Array}       version: {int} (optional; defaults to 2). |\n\n<a name=\"exp_module_macaroon--dischargeMacaroon\"></a>\n\n### dischargeMacaroon(macaroon, getDischarge, onOk, onError) ⏏\nGathers discharge macaroons for all third party caveats in the supplied\n  macaroon (and any subsequent caveats required by those) calling getDischarge\n  to acquire each discharge macaroon.\n\n**Kind**: Exported function  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| macaroon | <code>Macaroon</code> | The macaroon to discharge. |\n| getDischarge | <code>function</code> | Called with 5 arguments.     macaroon.location {String}     caveat.location {String}     caveat.id {String}     success {Function}     failure {Function} |\n| onOk | <code>function</code> | Called with an array argument holding the macaroon     as the first element followed by all the discharge macaroons. All the     discharge macaroons will be bound to the primary macaroon. |\n| onError | <code>function</code> | Called if an error occurs during discharge. |\n\n","maintainers":[{"name":"rogpeppe","email":"rogpeppe@gmail.com"}],"time":{"modified":"2022-06-19T15:03:13.077Z","created":"2015-01-05T10:57:59.031Z","0.0.1":"2015-01-05T10:57:59.031Z","0.0.2":"2015-01-11T22:30:00.242Z","0.0.3":"2015-01-15T11:08:58.323Z","1.0.0":"2015-10-16T08:40:38.030Z","2.0.0":"2017-09-12T13:30:02.214Z","2.0.1":"2017-09-12T14:31:44.172Z","3.0.0":"2017-10-17T17:12:36.464Z","3.0.1":"2018-06-27T14:38:01.839Z","3.0.2":"2018-10-04T16:40:53.316Z","3.0.3":"2018-10-15T16:51:45.183Z","3.0.4":"2019-01-09T18:39:19.927Z"},"homepage":"http://github.com/go-macaroon/js-macaroon","keywords":["authorization","cookie","macaroon"],"repository":{"type":"git","url":"git+ssh://git@github.com/go-macaroon/js-macaroon.git"},"author":{"name":"Roger Peppe","url":"rogpeppe@gmail.com"},"bugs":{"url":"http://github.com/go-macaroon/js-macaroon/issues"},"license":"BSD-3-Clause","readmeFilename":"README.md","contributors":[{"name":"Jeff Pihach","url":"https://fromanegg.com"}],"users":{"goliatone":true}}