{"_id":"doubleagent","_rev":"12-28cc8dfcb822ed3c6a917e1431157314","name":"doubleagent","description":"A superagent based async/await friendly testing util","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"doubleagent","version":"1.0.0","description":"A superagent based async/await friendly testing util","main":"src/double-agent.js","scripts":{"test":"mocha --compilers js:babel-core/register test/**_test.js"},"repository":{"type":"git","url":"git+https://github.com/MadRabbit/double-agent.git"},"keywords":["http","tdd","bdd","async","await","test","superagent"],"author":{"name":"Nikolay Nemshilov"},"license":"MIT","bugs":{"url":"https://github.com/MadRabbit/double-agent/issues"},"homepage":"https://github.com/MadRabbit/double-agent#readme","dependencies":{"superagent":"^1.7.1"},"devDependencies":{"babel-core":"^6.4.5","babel-plugin-syntax-async-functions":"^6.3.13","babel-plugin-transform-async-to-generator":"^6.4.6","babel-plugin-transform-es2015-modules-commonjs":"^6.4.5","body-parser":"^1.14.2","expect.js":"^0.3.1","express":"^4.13.4","mocha":"^2.3.4"},"gitHead":"e126857021ea7741e0ddbe7c5c103ccefe7c14d6","_id":"doubleagent@1.0.0","_shasum":"dd93929e3aec0913b07de4a3b9f9cfe119fd526a","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.5.0","_npmUser":{"name":"nikolay_nemshilov","email":"nemshilov@gmail.com"},"dist":{"shasum":"dd93929e3aec0913b07de4a3b9f9cfe119fd526a","tarball":"https://registry.npmjs.org/doubleagent/-/doubleagent-1.0.0.tgz","integrity":"sha512-Vo6OOleVdSypwp6Xc/2HvotOPZ5sjWdHl8l9+JTKi34wuut/tjDkvXcsvshkBpUDtvKCWZonKZPRG3PPM1so8Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEGy4I/idpsT7MudO4CsEc/cC5GLyfEOSWtiJLuJ+1FgAiBoFJsKd0dTqdmJbg894KKFEfYSkiFHfGr6KH248JPPQQ=="}]},"maintainers":[{"name":"nikolay_nemshilov","email":"nemshilov@gmail.com"}],"directories":{}},"1.0.1":{"name":"doubleagent","version":"1.0.1","description":"A superagent based async/await friendly testing util","main":"src/doubleagent.js","scripts":{"test":"mocha --compilers js:babel-core/register test/**_test.js"},"repository":{"type":"git","url":"git+https://github.com/MadRabbit/doubleagent.git"},"keywords":["http","tdd","bdd","async","await","test","superagent"],"author":{"name":"Nikolay Nemshilov"},"license":"MIT","bugs":{"url":"https://github.com/MadRabbit/doubleagent/issues"},"homepage":"https://github.com/MadRabbit/doubleagent#readme","dependencies":{"superagent":"^1.7.1"},"devDependencies":{"babel-core":"^6.4.5","babel-plugin-syntax-async-functions":"^6.3.13","babel-plugin-transform-async-to-generator":"^6.4.6","babel-plugin-transform-es2015-modules-commonjs":"^6.4.5","body-parser":"^1.14.2","expect.js":"^0.3.1","express":"^4.13.4","mocha":"^2.3.4"},"gitHead":"12968adf1b6e1560f9dfd1f3f7d1886283b7bd0f","_id":"doubleagent@1.0.1","_shasum":"4fb7fa0ba59aa06421d901d41327594940b11824","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.5.0","_npmUser":{"name":"nikolay_nemshilov","email":"nemshilov@gmail.com"},"dist":{"shasum":"4fb7fa0ba59aa06421d901d41327594940b11824","tarball":"https://registry.npmjs.org/doubleagent/-/doubleagent-1.0.1.tgz","integrity":"sha512-BcqbKr/DKKWv98YJS4dTN/WqvPY/s81rvPgCmCFC6iTQm/Fdfxx6hcw/flcTDYjJJkqFNGWp/mgFHRejFiPt1Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID5JvML9f2mV4BLIkNoHKErmhojsnZjn0YnsSOu4H5f9AiEA4+CN+3n+s+fuXRlH0AgiUX4/r3zauY1k+uAUQAiXkqY="}]},"maintainers":[{"name":"nikolay_nemshilov","email":"nemshilov@gmail.com"}],"directories":{}},"1.0.2":{"name":"doubleagent","version":"1.0.2","description":"A superagent based async/await friendly testing util","main":"src/doubleagent.js","scripts":{"test":"mocha --compilers js:babel-core/register test/**_test.js"},"repository":{"type":"git","url":"git+https://github.com/MadRabbit/doubleagent.git"},"keywords":["http","tdd","bdd","async","await","test","superagent"],"author":{"name":"Nikolay Nemshilov"},"license":"MIT","bugs":{"url":"https://github.com/MadRabbit/doubleagent/issues"},"homepage":"https://github.com/MadRabbit/doubleagent#readme","dependencies":{"superagent":"^1.7.1"},"devDependencies":{"babel-core":"^6.4.5","babel-plugin-syntax-async-functions":"^6.3.13","babel-plugin-transform-async-to-generator":"^6.4.6","babel-plugin-transform-es2015-modules-commonjs":"^6.4.5","body-parser":"^1.14.2","expect.js":"^0.3.1","express":"^4.13.4","mocha":"^2.3.4"},"gitHead":"03ba9efb29cdaf994370dac884beb1f64a3deca4","_id":"doubleagent@1.0.2","_shasum":"7c0839d321ef6a1f3dbede275448862cb44b1e63","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.5.0","_npmUser":{"name":"nikolay_nemshilov","email":"nemshilov@gmail.com"},"dist":{"shasum":"7c0839d321ef6a1f3dbede275448862cb44b1e63","tarball":"https://registry.npmjs.org/doubleagent/-/doubleagent-1.0.2.tgz","integrity":"sha512-Qstvlta3MEfWbNTuF18gV4XLXv81VX1uo3w1BdWJubRLfAQzkBF2ADgoauPpouzX7py+BsyGvcFUOz7F+Z34hg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHvBGO4RypEPrpjgSIYpVk78okYU1iiXdjFL7PvbNTKWAiAF43qiJM9etA5KdV1Jdz+R78QfUlt8cRfMDoE9iS3bQw=="}]},"maintainers":[{"name":"nikolay_nemshilov","email":"nemshilov@gmail.com"}],"directories":{}},"1.1.0":{"name":"doubleagent","version":"1.1.0","description":"A superagent based async/await friendly testing util","main":"src/doubleagent.js","scripts":{"test":"mocha --compilers js:babel-core/register test/**_test.js"},"repository":{"type":"git","url":"git+https://github.com/MadRabbit/doubleagent.git"},"keywords":["http","tdd","bdd","async","await","test","superagent"],"author":{"name":"Nikolay Nemshilov"},"license":"MIT","bugs":{"url":"https://github.com/MadRabbit/doubleagent/issues"},"homepage":"https://github.com/MadRabbit/doubleagent#readme","dependencies":{"superagent":"^2.0.0"},"devDependencies":{"babel-core":"^6.9.1","babel-plugin-syntax-async-functions":"^6.8.0","babel-plugin-transform-async-to-generator":"^6.8.0","babel-plugin-transform-es2015-modules-commonjs":"^6.10.3","body-parser":"^1.15.2","expect.js":"^0.3.1","express":"^4.14.0","mocha":"^2.5.3"},"gitHead":"db2e0e295210eac7e92167c8fc0149fb4abfd590","_id":"doubleagent@1.1.0","_shasum":"88cef6dce9cd30c11b6094c5fb7e5f1fd9f00732","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.2","_npmUser":{"name":"nikolay_nemshilov","email":"nemshilov@gmail.com"},"dist":{"shasum":"88cef6dce9cd30c11b6094c5fb7e5f1fd9f00732","tarball":"https://registry.npmjs.org/doubleagent/-/doubleagent-1.1.0.tgz","integrity":"sha512-DxqZW5V3C3EiZQ6rJUHM5oisM5bXFTV67yqEXOqYFdACpSc8r1kAcsxQna0Wv7EJahueG9ER2TkV1Yg0n8rxSg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMbVhtqetvSHmGvQIEC9s9W85USg/wucJ5K5hoXrlgMwIhAKifoSpHGAn4TKG3GjuNHRatwXa/caGxxVdT6mpHpkVJ"}]},"maintainers":[{"name":"nikolay_nemshilov","email":"nemshilov@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/doubleagent-1.1.0.tgz_1466483464368_0.2657350937370211"},"directories":{}},"1.1.1":{"name":"doubleagent","version":"1.1.1","description":"A superagent based async/await friendly testing util","main":"src/doubleagent.js","types":"src/doubleagent.d.ts","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/MadRabbit/doubleagent.git"},"keywords":["http","tdd","bdd","async","await","test","superagent"],"author":{"name":"Nikolay Nemshilov"},"license":"MIT","bugs":{"url":"https://github.com/MadRabbit/doubleagent/issues"},"homepage":"https://github.com/MadRabbit/doubleagent#readme","dependencies":{"superagent":"^3.8.2"},"devDependencies":{"body-parser":"^1.18.2","expect.js":"^0.3.1","express":"^4.16.2","mocha":"^4.0.1"},"gitHead":"5049e99fa2ca717128d12f9a86b0aa82b330ae14","_id":"doubleagent@1.1.1","_npmVersion":"5.6.0","_nodeVersion":"9.3.0","_npmUser":{"name":"nikolay_nemshilov","email":"nemshilov@gmail.com"},"dist":{"integrity":"sha512-09pMJnEWmva8qBlNuyv2h/oJdG6ca0KSgyLDH0zzU+64XzVJgdLZF+yWWBnLMi8Y1AVgfuzSglm2QhIRZ14o5w==","shasum":"ef67a7704bd6a5b2f25526cbeac6d732e9cbe919","tarball":"https://registry.npmjs.org/doubleagent/-/doubleagent-1.1.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBVtRBV2owzBgLnydUP6jJMRZ1T6be0S1+zwmcsveNcHAiEAiW64mWYGOx1OVyug2UAlGeEVFXepdtQkLnovoTcmfeU="}]},"maintainers":[{"name":"nikolay_nemshilov","email":"nemshilov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/doubleagent-1.1.1.tgz_1513307696379_0.8051368810702115"},"directories":{}},"1.2.0":{"name":"doubleagent","version":"1.2.0","description":"A superagent based async/await friendly testing util","main":"src/doubleagent.js","types":"src/doubleagent.d.ts","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/MadRabbit/doubleagent.git"},"keywords":["http","tdd","bdd","async","await","test","superagent"],"author":{"name":"Nikolay Nemshilov"},"license":"MIT","bugs":{"url":"https://github.com/MadRabbit/doubleagent/issues"},"homepage":"https://github.com/MadRabbit/doubleagent#readme","dependencies":{"superagent":"^4.0.0-beta.5"},"devDependencies":{"@types/superagent":"^3.8.4","body-parser":"^1.18.3","expect.js":"^0.3.1","express":"^4.16.3","mocha":"^5.2.0"},"gitHead":"1cd0a8c7d32fc90f1b6112927adbe4f2901418a1","_id":"doubleagent@1.2.0","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"nikolay_nemshilov","email":"nemshilov@gmail.com"},"dist":{"integrity":"sha512-ex+y0UK8SJAMnJE4n5mDqg+vS5O+QlKB0K+jWLoceMaTLurIotSXq6oMgrSdaBf1EYaE0kea073zDvJpblphJA==","shasum":"f59807b03ef562abf539073e625165952717fba0","tarball":"https://registry.npmjs.org/doubleagent/-/doubleagent-1.2.0.tgz","fileCount":6,"unpackedSize":8987,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbqFbWCRA9TVsSAnZWagAA+pYP/jJXVh8+/wpfeQJgaZ6H\nRgvstrdNqQ1JKVz5N1WqbRWVZ9HD2qVlpCN4rto4mygrGhrTXVT/tcmH/2qE\nEKL4rDOs49KWnVmF4tm/05dXogjibfLKOqD8gpQ7qw++8pS7CMetArErouwV\n2dZMqvULXhOC1oNXgPkCLn3Ntjx+C0An4y/hlOuWSL8M/bt341rM0fer1UTK\nQ+BaDUpXeJIOybkZ5OOiSTjix1OrYE37Yk93Y9qG/EajIXeeK4h+SSxKHJ01\nYZdB25jkDyWMU1l01lq4uR1TLC4aSCIR1wD0ulBdJEYuizQxBt9LPEsaalhC\n0404uNRGkQ/IhLWkV5+BgfhMLDHoQ7Zn+iO8zMRSm6uNVpqsxFjKOMBQwVsu\nAlKmje47TX4rxRYWMxLKxTkqu136FSipHtzEIVPVBKubrS65VE6dltyIHfiW\n1sioyFrAGaBZ2Kc6KCIqyhGaal0xHacI5nkVv5dXox5noV2803YFkcErQdVI\nQQY8+TG8spL6sS3XWqu+Xo1AW1C7+RQpUWPSru5S7LEuV/1b+56ltb2DalVy\ngYqv5QdJ03hceUEcsiX2guzyo+L+3Bdp4ZSZ9TM1a98xZ4+YbW7zT3nqpV58\nsEs2hFWmB0PaYXPCWBarDDK46pbYkrGErOUEpezicx9Z0ugGFNeYrFch1PcH\n/IlL\r\n=4hnx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHkLjlhL9jbhNXCm0Ig/a61G4Hv9ibj1F8da8l/YAEXAAiEAqdcB0y19NeMXjpkZ3I5uhVnvoxdWcY6SoFiAYhET+OQ="}]},"maintainers":[{"name":"nikolay_nemshilov","email":"nemshilov@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/doubleagent_1.2.0_1537758934419_0.43386182913409455"},"_hasShrinkwrap":false},"1.3.0":{"name":"doubleagent","version":"1.3.0","description":"A superagent based async/await friendly testing util","main":"src/doubleagent.js","types":"src/doubleagent.d.ts","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/MadRabbit/doubleagent.git"},"keywords":["http","tdd","bdd","async","await","test","superagent"],"author":{"name":"Nikolay Nemshilov"},"license":"MIT","bugs":{"url":"https://github.com/MadRabbit/doubleagent/issues"},"homepage":"https://github.com/MadRabbit/doubleagent#readme","dependencies":{"superagent":"^5.1.0"},"devDependencies":{"@types/superagent":"^4.1.3","body-parser":"^1.19.0","expect.js":"^0.3.1","express":"^4.17.1","mocha":"^6.2.0"},"gitHead":"683cb2c5890a2b5315e5dfb3ba51591b358117c0","_id":"doubleagent@1.3.0","_nodeVersion":"12.7.0","_npmVersion":"6.10.0","dist":{"integrity":"sha512-n0bQEMHYFfRXxvBdXdUVtZzpAwK81kd7fPDIRESEFcNqEqgW/fBBkskGyuGhHcjryy+GaP+Inv+iEpv0JJ/ebw==","shasum":"cedffb4fd0212d2f0c7283021fc0312d2a259929","tarball":"https://registry.npmjs.org/doubleagent/-/doubleagent-1.3.0.tgz","fileCount":7,"unpackedSize":10866,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddfWvCRA9TVsSAnZWagAA6XwP+gKiOtoAcOf9/eLI4dzn\nzck/xwUY5smt2kMJO/unk1g73oajqnIOBhU/EaRqyDJk01UpEV9I0gYNYUUN\nViORM0hLw7RqnuNbg7ddxZjSj2X+AJk2oraRBPmhvn/3vs5I2aWSMkRFC9IV\nIfdcpcUrz/mtQrmj0h0Oevhzuwn6RYsQcJ8U8jUf8xLj2d9FmyyRBOFSwi/0\nOmDdm4B4BWxOha3t1c+6WdWSIbwDAwUIO4DECF0UwdIYX3y9TYv6fX08GP+t\nrq3QwYXhDCK9/Fs6owWL2um6qjMQwfaOhFvAI44xpJTnVX1MkqVbwQgqXh7o\nlm89SclsRCERgqnA9sViEXjtGzXTAwUhV8xn4PebQkBEVtYWHQmBhgfQp61W\nl84SLwZNi3Ytmt8reZvI9eULIKhmuscSLHOAaJcoiSYB5vkQGcxkgherNiNV\nf0mYctYPa7BAIvE3/oB3wenreskLynLuhqjw+5eksOwHUi4bsuZ4Ud5r9Fmr\nlgUfi8KbhDFDIdit0CUJ2mWRFWQTa15O7jYjxFMxmGRIz82Dsm2OpcTeUYYo\ncBk40EOJU4bbn1FCElfz+fgJcDRMFcZvKl2nT28iQ/mYqOeAWyHpBAoOT4xx\nq+ydcxZOwA/MPk9716M2rsGotVBnBjEkqLQ5pA+U99NWIX1Varh8KW59Eyt/\nMs5H\r\n=IJ++\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEUCklMLVH+UQHYU2cbfsEl9bNZUyLkieMw5aERqO5kfAiBEThBdgEVQTMBPGYxqaVr+8hh7aWCJFfKbd1Q2gXvwvQ=="}]},"maintainers":[{"name":"nikolay_nemshilov","email":"nemshilov@gmail.com"}],"_npmUser":{"name":"chappo","email":"lukeggchapman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/doubleagent_1.3.0_1568011695347_0.7381548881430797"},"_hasShrinkwrap":false},"1.3.1":{"name":"doubleagent","version":"1.3.1","description":"A superagent based async/await friendly testing util","main":"src/doubleagent.js","types":"src/doubleagent.d.ts","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/MadRabbit/doubleagent.git"},"keywords":["http","tdd","bdd","async","await","test","superagent"],"author":{"name":"Nikolay Nemshilov"},"license":"MIT","bugs":{"url":"https://github.com/MadRabbit/doubleagent/issues"},"homepage":"https://github.com/MadRabbit/doubleagent#readme","dependencies":{"superagent":"^5.1.0"},"devDependencies":{"@types/superagent":"^4.1.3","body-parser":"^1.19.0","expect.js":"^0.3.1","express":"^4.17.1","mocha":"^6.2.0"},"gitHead":"0a21dd0d4c0b7125b8f08b6c1284e677e88a8411","_id":"doubleagent@1.3.1","_nodeVersion":"12.7.0","_npmVersion":"6.10.0","dist":{"integrity":"sha512-jhatsVCbf3y1GtMKoT5uq/ZXBd8dcuSH3mdSKh0ju/eOBLUeA4Rw0KlFJRqVnqhNpWkO3R/4M02MN/qdu9ujDw==","shasum":"e63d2e59837880f86826b258068478d31b66e060","tarball":"https://registry.npmjs.org/doubleagent/-/doubleagent-1.3.1.tgz","fileCount":7,"unpackedSize":10919,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdgY72CRA9TVsSAnZWagAA80QP/jFNhId8hmqqEzkAeASU\n9zpgIWsbnCEdPSooiZYyZ8h4qeDhcfFh402wvH1bB25ENamCJ8jEnbVPtL5n\n7lfAQz/Rf3GjJ7Bgd99dNlSUrATkbJxGs9gOaRg0dIlkr8i1I6Qx+rPrnFCD\nXIOLcsBbqLpe2OW8bwC+t2ZWFRiRACA+1pRHk9JOzVSqlb4J1/oLADgdo0ua\neXiORFVGFBdlNpdAd64WCWryMb8vA16J6ZPCilFdknIeTQ8i+1e7+i3SQymH\n2+VD0ilDPHPWYEIThTzHg0cS3wJwV2bSochvTy5Q4zL3DyV0i+upj4IJRnet\n9a/0y4So4qndrDO1LZQJKyE9qP2mggE2+sLHXtjVa9LNd2PJL93W5B7la8LZ\n8uTjpoQ5KjoYlMqrscdT5r3pPB+uGVYrMAqIkBrDXIjj0zuWIPAQa5vUXG8H\n7zxzABJLirmTbbfcgkhPqi2qwJg6ok2SISWpfSRzzqOcMdKUWrYC+f8V1c2z\nMn6+TdVklDrFvesNlM9EQl512O61Wp1Kzn9CBrhQyMlutr4I+AIFfGBSE6hx\nn9aLqS6PoshrhaPSM5cuHW12hfsSK45iQFz6+JIJcGFHGKjWa6E50x4LHWCk\naUczIdudaDVX8u3wCxxGALkZ8MAC0AhE8CGH3bA+ba5Jyfu5CbASbdowVuXY\nmyp3\r\n=sG3g\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID3gQIFNFtzSNUukQvV+K0Sshxe85SqjfXzy2uLJjgt5AiAZ0tDUzER+bW2iD2GJgXplcIdg4Wr2DuGuQRkNkJCBPg=="}]},"maintainers":[{"name":"nikolay_nemshilov","email":"nemshilov@gmail.com"}],"_npmUser":{"name":"chappo","email":"lukeggchapman@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/doubleagent_1.3.1_1568771829809_0.7281426336228891"},"_hasShrinkwrap":false},"2.0.0":{"name":"doubleagent","version":"2.0.0","description":"A superagent based async/await friendly testing util","main":"dist/doubleagent.js","types":"dist/doubleagent.d.ts","scripts":{"prepare":"rm -rf dist && tsc","lint":"eslint 'src/**/*.{js,ts,tsx}'","test":"NODE_ENV=test mocha"},"lint-staged":{"*.{js,ts,tsx}":["eslint --fix","git add"]},"repository":{"type":"git","url":"git+https://github.com/MadRabbit/doubleagent.git"},"keywords":["http","tdd","bdd","async","await","test","superagent"],"author":{"name":"Nikolay Nemshilov"},"license":"MIT","bugs":{"url":"https://github.com/MadRabbit/doubleagent/issues"},"homepage":"https://github.com/MadRabbit/doubleagent#readme","dependencies":{"superagent":"^5.1.0"},"devDependencies":{"@types/chai":"^4.2.11","@types/express":"^4.17.6","@types/mocha":"^7.0.2","@types/superagent":"^4.1.3","body-parser":"^1.19.0","chai":"^4.2.0","eslint-config-compono-ts":"^1.3.0","express":"^4.17.1","husky":"^4.2.5","lint-staged":"^10.2.6","mocha":"^6.2.0","qs":"^6.9.4","ts-node":"^8.10.1","typescript":"^3.9.3"},"husky":{"hooks":{"pre-commit":"lint-staged","pre-push":"npm test"}},"gitHead":"31bcb1a085ac9da34659b4632b17e79d927686d0","_id":"doubleagent@2.0.0","_nodeVersion":"12.16.3","_npmVersion":"6.14.5","dist":{"integrity":"sha512-HX0bn/Z6izxVbQewTMeBxGvSxMbouU0PifDCugrUlL3S3Mpt03bfIEfpu8X7TEVxX/lNTHTYTL2NOMvst6Cq5Q==","shasum":"a9c2930baa134921f8356420433fcc07894caf8f","tarball":"https://registry.npmjs.org/doubleagent/-/doubleagent-2.0.0.tgz","fileCount":4,"unpackedSize":10071,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe0IthCRA9TVsSAnZWagAAKWkP/i0K9manzrMYUOg3HfXK\n8d7EyGxWqabUPZuZ8bIbEfA84ds3XmmLSXX7/ePpiHg6+OwSe8UOESKZGzjA\n8nYO/cRRcPdVeuG6rH4Amaof8VcLdPg5Kzy1URgERr0Or3Oso25I+4Z91vRm\nW1fXGV4HAeJBtlNnKhN5yRgL/dixRwAkJTZ30lSxNEHIe7mMQB6KOkh4uEf6\nu1YkxGGErzQBhRidnJkuQZSUJrfMwQJfE+JggJf677n4d8Y6dklu84YLUbbW\nuk/pC1wwh0YVbIJhK9PAo3F/OnhpKw83rxkRfKGiXRdmExAGA/CB6P5X/VO3\n8XXC7fzZCEGlOCclX+iI9Ob+w0UbySBOUenNzeUd/uArIJUbI27f64B7pwFT\nzfM3NNQbpVTdlJouA713tdKS1gFie8Gq/WBh7SY+is1We2FoC3sK0XcVepJT\nTzANIjNzdjQ61HEzoS1Jb8DdREHv5p66o2/fQHq4iSjgNPcBV3Pq+UpS4Q5n\nQXKVP5lsUQ7BB6DJ1A6qCT2RKya+vO/SI3hfrJqnjasltEmwyO2bCHt6hVGo\n3g7KuwAB+EumdZfIEHgQtzscC8ipQYkghGG72gpLX+0/hWHMvgxjH64FSOIp\nmNNDkUy4196dYJDUYkZhHaM0z6o3/i8olvcZehqTQ/UjRVLJNexwTvOsdDZ3\n9Sm3\r\n=S+QC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUtyTtfr/UJfvo37XJNnK6eV/Hpnd6XGvPMmknrX5Z4AIgTnMUV4vui0ugxCB+/lEl0VIgtn9vdHEIYu+vRGHPQ5E="}]},"maintainers":[{"name":"nikolay_nemshilov","email":"nemshilov@gmail.com"}],"_npmUser":{"name":"s-taylor","email":"nizmox@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/doubleagent_2.0.0_1590725472920_0.3915243096014076"},"_hasShrinkwrap":false}},"readme":"# Double Agent\n\n`doubleagent` is an ES7 `async/await` compatible wrapper on top of [superagent](https://github.com/visionmedia/superagent) that makes testing of expressjs/connect apps easier in a modern environment.\n\nLets say you have an [expressjs](http://expressjs.com) app, that looks somewhat like this:\n\n```js\nimport express from \"express\";\n\nconst app = express();\n\napp.get(\"/hello\", (req, res) => {\n  res.json({ok: true});\n});\n\nexport default app;\n```\n\nNow, `doubleagent` allows you to test the app like it's 2016 out there:\n\n```js\nimport { expect } from \"chai\";\nimport agent from \"doubleagent\";\nimport app from \"../src/app\";\n\ndescribe(\"app\", () => {\n  it(\"handles GET /hello\", async () => {\n    const response = await agent(app).get(\"/hello\");\n\n    expect(response.status).to.be(200);\n    expect(response.body).to.eql({ok: true});\n  });\n});\n```\n\nThere are two main points to this whole thing:\n\n1. Using ES7 `async/await` syntax for more maintainable tests codebase\n2. Use your favorite assertion library for testing\n\n## API & Usage\n\nInstallation is straight forward\n\n```\nnpm install doubleagent --save-dev\n```\n\nAs for the API, the `agent(app)` call returns a object with all the basic HTTP methods that all have the same API:\n\n```\nagent(app)[method](path[, params[, headers[, files]]]) -> Promise\n```\n\n__NOTE__: `params` are contextual, they are handled as `query` for `GET`/`HEAD` requests and as `body` for `POST`, `PUT`, etc. When files are passed the request changes into a multi-part form and params is treated as fields.\n\n### Default Headers\n\nIf you need to specify app wide default HTTP headers, just assign them to the `defaultHeaders` property:\n\n```js\nagent.defaultHeaders = { Authorization: `Bearer ${token}` };\nagent.get('/some/url'); // <- will automatically send the headers\n```\n\n__NOTE__ any headers that you send through with specific `#get`, `#post`, etc. requests _will override_ the `defaultHeaders` values.\n\n### Full URL Locations\n\nIf you need to access a full URL location to the http server that runs underneath the `doubleagent` interface, please use the `#urlFor(path)` method;\n\n```js\nagent.urlFor('/users'); // -> 'http://127.0.0.1:0/users'\n```\n\n### Custom Query String Encoding\n\nUnder the hood, `doubleagent` uses `superagent`. Superagent uses the `qs` library for both query string stringification and parsing. However you may use a different form of querystring encoding such that it matches your application. You can optionally pass in a custom parser to `doubleagent`.\n\n```js\nimport { expect } from \"chai\";\nimport agent from \"doubleagent\";\nimport app from \"../src/app\";\n\n/* define a custom stringify function */\nconst stringify = (query) => qs.stringify(query, { arrayFormat: 'indicies' });\nconst test = agent(app, { serializer: stringify });\n\ndescribe(\"app\", () => {\n  it(\"handles GET /hello\", async () => {\n    const response = await test.get(\"/hello\");\n\n    expect(response.status).to.be(200);\n    expect(response.body).to.eql({ok: true});\n  });\n});\n```\n\n## Copyright & License\n\nAll code in this library is released under the terms of the MIT license\n\nCopyright (C) 2016 Nikolay Nemshilov\n","maintainers":[{"name":"nikolay_nemshilov","email":"nemshilov@gmail.com"}],"time":{"modified":"2022-06-15T22:48:54.790Z","created":"2016-01-25T00:31:02.337Z","1.0.0":"2016-01-25T00:31:02.337Z","1.0.1":"2016-01-25T00:35:35.929Z","1.0.2":"2016-01-25T00:54:10.009Z","1.1.0":"2016-06-21T04:31:07.044Z","1.1.1":"2017-12-15T03:14:56.482Z","1.2.0":"2018-09-24T03:15:34.531Z","1.3.0":"2019-09-09T06:48:15.461Z","1.3.1":"2019-09-18T01:57:09.986Z","2.0.0":"2020-05-29T04:11:13.070Z"},"homepage":"https://github.com/MadRabbit/doubleagent#readme","keywords":["http","tdd","bdd","async","await","test","superagent"],"repository":{"type":"git","url":"git+https://github.com/MadRabbit/doubleagent.git"},"author":{"name":"Nikolay Nemshilov"},"bugs":{"url":"https://github.com/MadRabbit/doubleagent/issues"},"license":"MIT","readmeFilename":"README.md"}