{"_id":"superagent-intercept","_rev":"7-3eb0bac0c3d2f4b6535f8f9514d3cb50","name":"superagent-intercept","description":"Add functions that will be called during end() e.g. for handling error conditions without having the same code all over the place.","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"superagent-intercept","version":"0.1.0","description":"Add functions that will be called during end() e.g. for handling error conditions without having the same code all over the place.","main":"src/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/codesuki/superagent-intercept.git"},"keywords":["superagent","intercept","middleware","ajax","request"],"author":{"name":"Neri Marschik","email":"marschik_neri@cyberagent.co.jp","url":"http://www.cyberagent.co.jp"},"license":"MIT","bugs":{"url":"https://github.com/codesuki/superagent-intercept/issues"},"homepage":"https://github.com/codesuki/superagent-intercept","gitHead":"126f0a9978cf1066b62938e76bc175fd0344f353","_id":"superagent-intercept@0.1.0","_shasum":"01ae9a7e5f220dbdac0b47810724ebbcad9098b7","_from":".","_npmVersion":"2.3.0","_nodeVersion":"0.10.33","_npmUser":{"name":"codesuki","email":"marschik_neri@cyberagent.co.jp"},"maintainers":[{"name":"codesuki","email":"marschik_neri@cyberagent.co.jp"}],"dist":{"shasum":"01ae9a7e5f220dbdac0b47810724ebbcad9098b7","tarball":"https://registry.npmjs.org/superagent-intercept/-/superagent-intercept-0.1.0.tgz","integrity":"sha512-FyPU2dZHQxLrsxCguiSTUIiXLeUsGUlcInf3OWOxtDyT54L3Dd+b1dhbV5TU98Ons065srznU2FG9GSXx013vA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBQpvexGOl9bki8D83K7Bmk4+iPRl19z/5BQmv1oNm6wAiBFAPIt2CD9rn0aBRbnKGQ9fRW5rzj99jJeFD6mVNxfoA=="}]}},"0.1.1":{"name":"superagent-intercept","version":"0.1.1","description":"Add functions that will be called during end() e.g. for handling error conditions without having the same code all over the place.","main":"src/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/codesuki/superagent-intercept.git"},"keywords":["superagent","intercept","middleware","ajax","request"],"author":{"name":"Neri Marschik","email":"marschik_neri@cyberagent.co.jp","url":"http://www.cyberagent.co.jp"},"license":"MIT","bugs":{"url":"https://github.com/codesuki/superagent-intercept/issues"},"homepage":"https://github.com/codesuki/superagent-intercept","gitHead":"09e7dccb97d3a1704c18816e99482b4927992ad1","_id":"superagent-intercept@0.1.1","_shasum":"9f937bc826f149d2d3737c9b8e2383c3081ce804","_from":".","_npmVersion":"2.3.0","_nodeVersion":"0.10.33","_npmUser":{"name":"codesuki","email":"marschik_neri@cyberagent.co.jp"},"maintainers":[{"name":"codesuki","email":"marschik_neri@cyberagent.co.jp"}],"dist":{"shasum":"9f937bc826f149d2d3737c9b8e2383c3081ce804","tarball":"https://registry.npmjs.org/superagent-intercept/-/superagent-intercept-0.1.1.tgz","integrity":"sha512-JILLsgIpfrdl1T+GQrhG1ClXhJw+R4O76OCgmQCpx63zOd2TMFVXbEBYV6iOIdsljT3E777w9hpMHGoc+P62ng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICyLs1P7JvaHuMKGZzT5BH/aps2/swhT0GbrieD51+3FAiAzHckdz/PLJaTr72TvGGNrfwrjCGYiht/y4wlHaCOh9w=="}]}},"0.1.2":{"name":"superagent-intercept","version":"0.1.2","description":"Add functions that will be called during end() e.g. for handling error conditions without having the same code all over the place.","main":"src/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/codesuki/superagent-intercept.git"},"keywords":["superagent","intercept","middleware","ajax","request"],"author":{"name":"Neri Marschik","email":"marschik_neri@cyberagent.co.jp","url":"http://www.cyberagent.co.jp"},"license":"MIT","bugs":{"url":"https://github.com/codesuki/superagent-intercept/issues"},"homepage":"https://github.com/codesuki/superagent-intercept","gitHead":"d2d95586350db1a7961d4dbc4432729c3c765297","_id":"superagent-intercept@0.1.2","_shasum":"a6269dfb4bd86d51b8d99a55c12b0604685bd54b","_from":".","_npmVersion":"3.9.3","_nodeVersion":"6.2.1","_npmUser":{"name":"codesuki","email":"marschik_neri@cyberagent.co.jp"},"maintainers":[{"name":"codesuki","email":"marschik_neri@cyberagent.co.jp"}],"dist":{"shasum":"a6269dfb4bd86d51b8d99a55c12b0604685bd54b","tarball":"https://registry.npmjs.org/superagent-intercept/-/superagent-intercept-0.1.2.tgz","integrity":"sha512-J/XRQXPkGYWs7h+ZEY43Zn+pkaiOo8t+XdkLbXhXEqVEAAQcvUR1H+cbd83skokkZexUJ01wO2S+zTqAHJiNZg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDx4lGGboHeUk32vViPIVgCSHuTr+fCrMnD0I2eTuGlwgIhAKyJKYjk7MrRobkD67Q4LdSDbqutfQ6b8HYAFy0AYz5S"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/superagent-intercept-0.1.2.tgz_1471237240878_0.5734321714844555"}}},"readme":"# superagent-intercept\nAdd interceptors that will be called during end() e.g. for handling error conditions without having the same code all over the place.\n\n## Support\nPlease consider supporting the project by starring it on GitHub :)\n\nhttps://github.com/codesuki/superagent-intercept\n\n## Install\n```\nnpm install superagent-intercept\n```\n\n## Example\n```javascript\nlet AuthIntercept = require('superagent-intercept')((err, res) => {\n\tif (res.status == 401) {\n\t   // route to login\n\t}\n});\n\nrequest.get('/api/something/' + someId).use(AuthIntercept).end((err, res) {\n\t// AuthIntercept will be called here.\n\t// ... code ...\n});\n```\n","maintainers":[{"name":"codesuki","email":"marschik_neri@cyberagent.co.jp"}],"time":{"modified":"2022-06-27T02:12:01.167Z","created":"2015-03-04T07:12:25.132Z","0.1.0":"2015-03-04T07:12:25.132Z","0.1.1":"2015-03-19T09:22:15.452Z","0.1.2":"2016-08-15T05:00:41.129Z"},"homepage":"https://github.com/codesuki/superagent-intercept","keywords":["superagent","intercept","middleware","ajax","request"],"repository":{"type":"git","url":"git+https://github.com/codesuki/superagent-intercept.git"},"author":{"name":"Neri Marschik","email":"marschik_neri@cyberagent.co.jp","url":"http://www.cyberagent.co.jp"},"bugs":{"url":"https://github.com/codesuki/superagent-intercept/issues"},"license":"MIT","readmeFilename":"README.md"}