{"_id":"mock-http","_rev":"25-c84485c3d072b2a6073693b2b1224b78","name":"mock-http","dist-tags":{"latest":"1.1.1"},"versions":{"0.0.1":{"name":"mock-http","version":"0.0.1","keywords":["mock","http","request","response","stream"],"author":{"name":"commenthol","email":"commenthol@gmail.com"},"license":"MIT","_id":"mock-http@0.0.1","maintainers":[{"name":"commenthol","email":"commenthol@gmail.com"}],"homepage":"https://github.com/commenthol/mock-http","bugs":{"url":"https://github.com/commenthol/mock-http/issues"},"dist":{"shasum":"5c7c970e8be02379d764f59c3e8d6d25c54a208d","tarball":"https://registry.npmjs.org/mock-http/-/mock-http-0.0.1.tgz","integrity":"sha512-dQ6Tm2LOU3b7qDZgm2fnNA2iZtQh3vv8qUFN0m8E3/fByLFm/ZvHc1ToqvOvb9pbR2pJpsfSRAdOkJ+jHJYj8Q==","signatures":[{"sig":"MEUCIGH33GD06F4brPoTzFtDeVlHlZ/TZKACkhSv+t5cVEs9AiEAqB1ee/pwuJiEXGtPhc8t1FazHyqxGWfrFmkGeNR0ZHE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"5c7c970e8be02379d764f59c3e8d6d25c54a208d","engines":{"node":">=0.8.0"},"gitHead":"6bbf4a31bcd6aeb0bfe28233adf27ad4a514aa8b","scripts":{"doc":"jsdoc -c doc/conf.json -d doc index.js lib/*.js","lint":"jshint *.js */*.js","test":"mocha"},"_npmUser":{"name":"commenthol","email":"commenthol@gmail.com"},"repository":{"url":"github.com/commenthol/mock-http","type":"git"},"_npmVersion":"1.4.28","description":"mock http request response","directories":{"test":"test"},"dependencies":{"streamss-shim":"^0.0.1"},"devDependencies":{"mocha":"^2.1.0","streamss":"^0.1.1","connect-chain-if":"^0.0.3"}},"0.0.2":{"name":"mock-http","version":"0.0.2","keywords":["mock","http","request","response","stream"],"author":{"name":"commenthol","email":"commenthol@gmail.com"},"license":"MIT","_id":"mock-http@0.0.2","maintainers":[{"name":"commenthol","email":"commenthol@gmail.com"}],"homepage":"https://github.com/commenthol/mock-http","bugs":{"url":"https://github.com/commenthol/mock-http/issues"},"dist":{"shasum":"528222adaf9f1bae1c60694f67cb5cc8c7bef952","tarball":"https://registry.npmjs.org/mock-http/-/mock-http-0.0.2.tgz","integrity":"sha512-1u7mrvs6WXPhH8vMal2IQ44/GAt9w3MR5jt8V3uCFTJFAUI8qRKaVBfNxIotlCu4q5//uu+BnWWv03UNUyTyUQ==","signatures":[{"sig":"MEUCIQDz60u7z1mvy60x7eZ4Buod4esb7MzIbxxqC0veUmT/2wIgeyV0Mu9nuDdDsWV2y9l/T7NSIdAOTfUbNJheTZBWJOc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"528222adaf9f1bae1c60694f67cb5cc8c7bef952","engines":{"node":">=0.8.0"},"gitHead":"37dbba8d3cb298c5c999ea09f598f015f96eed36","scripts":{"doc":"jsdoc -c doc/conf.json -d doc index.js lib/*.js","lint":"jshint *.js */*.js","test":"mocha"},"_npmUser":{"name":"commenthol","email":"commenthol@gmail.com"},"repository":{"url":"github.com/commenthol/mock-http","type":"git"},"_npmVersion":"1.4.28","description":"mock http request response","directories":{"test":"test"},"dependencies":{"streamss-shim":"^0.0.1"},"devDependencies":{"mocha":"^2.1.0","streamss":"^0.1.1","connect-chain-if":"^0.0.3"}},"0.0.3":{"name":"mock-http","version":"0.0.3","keywords":["mock","http","request","response","stream"],"author":{"name":"commenthol","email":"commenthol@gmail.com"},"license":"MIT","_id":"mock-http@0.0.3","maintainers":[{"name":"commenthol","email":"commenthol@gmail.com"}],"homepage":"https://github.com/commenthol/mock-http","bugs":{"url":"https://github.com/commenthol/mock-http/issues"},"dist":{"shasum":"c9b4b3d53efb98a58b6e5e9d51f5bceb135b5ee1","tarball":"https://registry.npmjs.org/mock-http/-/mock-http-0.0.3.tgz","integrity":"sha512-DZ364f7IQs8ULqc8eOY0hz1tfOrcpjb6tNuJmVYpwCJIAKG9NzFUuT92T7WbjkAEr06lUfK5lK5RvQ39veZDrA==","signatures":[{"sig":"MEUCIQDRZAra+XdxwufjZhOWBXkzui+9+0wYtfLQkh9oFfClIwIgN8FiTY8T9eCUjAFHaBoFgraPaqK29k3Oejr3f5ycEbw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"c9b4b3d53efb98a58b6e5e9d51f5bceb135b5ee1","engines":{"node":">=0.8.0"},"gitHead":"684ae0519994b06a2cd129b5be45863af7cfaa03","scripts":{"doc":"jsdoc -c jsdoc.json -d jsdoc index.js lib/*.js","lint":"jshint *.js */*.js","test":"mocha","cover":"istanbul cover _mocha --report lcov --report text -- -R dot --check-leaks test/*.mocha.js"},"_npmUser":{"name":"commenthol","email":"commenthol@gmail.com"},"repository":{"url":"github.com/commenthol/mock-http","type":"git"},"_npmVersion":"2.0.0","description":"mock http request response","directories":{"test":"test"},"dependencies":{"streamss-shim":"~0.0.1"},"devDependencies":{"mocha":"*","streamss":"~0.2.3","connect-chain-if":"~0.0.3"}},"0.0.4":{"name":"mock-http","version":"0.0.4","keywords":["mock","http","request","response","stream"],"author":{"name":"commenthol","email":"commenthol@gmail.com"},"license":"MIT","_id":"mock-http@0.0.4","maintainers":[{"name":"commenthol","email":"commenthol@gmail.com"}],"homepage":"https://github.com/commenthol/mock-http","bugs":{"url":"https://github.com/commenthol/mock-http/issues"},"dist":{"shasum":"3b3000625bbeb7cb0da708c6833d422ba24b6c74","tarball":"https://registry.npmjs.org/mock-http/-/mock-http-0.0.4.tgz","integrity":"sha512-A/586wRQYfPoB/BgoEHuLnXpNbLrOPMQKBhaeM8oHVj2AfGqlYHtAm8BeGOv02CYin7O7fGIEru5fHdBCdgG9w==","signatures":[{"sig":"MEUCICv3NxV3hESC4ZIQsvRaYbc6MZaqSm4ezPwD40DhJbcfAiEA4tEXd0NFtQm2ahsTshMnxWNme6A6AiJDrfGGmKQkOg8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","engines":{"node":">=0.8.0"},"scripts":{"doc":"jsdoc -c jsdoc.json -d jsdoc index.js lib/*.js","lint":"jshint *.js */*.js","test":"mocha","cover":"istanbul cover _mocha --report lcov --report text -- -R dot --check-leaks test/*.mocha.js"},"_npmUser":{"name":"commenthol","email":"commenthol@gmail.com"},"repository":{"url":"github.com/commenthol/mock-http","type":"git"},"_npmVersion":"1.2.30","description":"mock http request response","directories":{"test":"test"},"dependencies":{"streamss-shim":"~0.0.1"},"devDependencies":{"mocha":"*","streamss":"~0.2.3","connect-chain-if":"~0.0.3"}},"0.0.5":{"name":"mock-http","version":"0.0.5","keywords":["mock","http","request","response","stream"],"author":{"name":"commenthol","email":"commenthol@gmail.com"},"license":"MIT","_id":"mock-http@0.0.5","maintainers":[{"name":"commenthol","email":"commenthol@gmail.com"}],"homepage":"https://github.com/commenthol/mock-http","bugs":{"url":"https://github.com/commenthol/mock-http/issues"},"dist":{"shasum":"bff2de97bdcf3e1dee344c3a463b9dda7e3730d0","tarball":"https://registry.npmjs.org/mock-http/-/mock-http-0.0.5.tgz","integrity":"sha512-t9zk3HtYbUt0j7w7Q/S2TVgg7zACHyD8/CopG32iU2g3St5e0tVgVFoENnmKAXWHaSzebOnPwT9MWtnGAg+Zew==","signatures":[{"sig":"MEUCIDUlIOXYiRmCpBG5fvaZ4Nl+oIGkMAxuMoKDg3s+JkApAiEA7rUpYbB0BH6F8CO09AWIv4if7mUbEdlWzyHjNTeJ240=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"bff2de97bdcf3e1dee344c3a463b9dda7e3730d0","engines":{"node":">=0.8.0"},"gitHead":"10acf1db677d2dddce06cdf1ce612bb27b4e8236","scripts":{"doc":"jsdox -o doc index.js lib/*.js","lint":"jshint *.js */*.js","test":"mocha","cover":"istanbul cover _mocha --report lcov --report text -- -R dot --check-leaks test/*.mocha.js"},"_npmUser":{"name":"commenthol","email":"commenthol@gmail.com"},"repository":{"url":"github.com/commenthol/mock-http","type":"git"},"_npmVersion":"2.7.4","description":"mock http request response","directories":{"test":"test"},"_nodeVersion":"0.12.2","dependencies":{"mergee":"~0.1.1","streamss-shim":"~0.0.1"},"devDependencies":{"mocha":"*","streamss":"~0.2.3","connect-chain-if":"~0.0.3"}},"0.0.6":{"name":"mock-http","version":"0.0.6","keywords":["mock","http","request","response","stream"],"author":{"name":"commenthol","email":"commenthol@gmail.com"},"license":"MIT","_id":"mock-http@0.0.6","maintainers":[{"name":"commenthol","email":"commenthol@gmail.com"}],"homepage":"https://github.com/commenthol/mock-http","bugs":{"url":"https://github.com/commenthol/mock-http/issues"},"dist":{"shasum":"51def8f43227d4bb1d0bbb008060299d631a2671","tarball":"https://registry.npmjs.org/mock-http/-/mock-http-0.0.6.tgz","integrity":"sha512-tr5nzqzBIFeXQc03A4lxbFDl9JBFNhIBrGImo8KRR0sicg3FaVSTEsqo+OO6QEHg2Qi9jSTDjBLXSndFu6jIpQ==","signatures":[{"sig":"MEUCIQDT8zmf+fOutgFuYKZUjSbd2nuZT3u4STeqvAMiL56v0AIgSQ/VRIH/1LQpxsFhIqhmMGYoaTM8OUYqPbO3rLtpXbw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"51def8f43227d4bb1d0bbb008060299d631a2671","engines":{"node":">=0.8.0"},"gitHead":"eeb91eb8fad2be73a84106ae4b9e661899cf0c8f","scripts":{"doc":"jsdox -o doc index.js lib/*.js","lint":"jshint *.js */*.js","test":"mocha","cover":"istanbul cover _mocha --report lcov --report text -- -R dot --check-leaks test/*.mocha.js"},"_npmUser":{"name":"commenthol","email":"commenthol@gmail.com"},"repository":{"url":"github.com/commenthol/mock-http","type":"git"},"_npmVersion":"2.11.2","description":"mock http request response","directories":{"test":"test"},"_nodeVersion":"0.12.5","dependencies":{"mergee":"~0.1.1","streamss-shim":"~0.0.1"},"devDependencies":{"mocha":"*","streamss":"~0.2.3","connect-chain-if":"~0.0.3"}},"0.0.7":{"name":"mock-http","version":"0.0.7","keywords":["mock","http","request","response","stream"],"author":{"name":"commenthol","email":"commenthol@gmail.com"},"license":"MIT","_id":"mock-http@0.0.7","maintainers":[{"name":"commenthol","email":"commenthol@gmail.com"}],"homepage":"https://github.com/commenthol/mock-http","bugs":{"url":"https://github.com/commenthol/mock-http/issues"},"dist":{"shasum":"c6de2687c651ab8776c73305502c579b34df507d","tarball":"https://registry.npmjs.org/mock-http/-/mock-http-0.0.7.tgz","integrity":"sha512-KMh+hQc3T7dcy5E0KttOwrF6mwkjTN9doViL71HmfQpVhv0TTLLY7Mol0hhpM+y0i5RFLWuBJzkSw0nRVWalRg==","signatures":[{"sig":"MEUCIQC2jXm3miI8BnA0RvW68eARdbFVqvvU7Se3b0TQdADxTgIgJOGLC9zX6O1sYSGZMhIU7svpxDZEkVq8SSX9dvm1Kno=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"c6de2687c651ab8776c73305502c579b34df507d","engines":{"node":">=0.8.0"},"gitHead":"4d26a858a6595b4789ca2dde3470b9a5668162d4","scripts":{"doc":"jsdox -o doc index.js lib/*.js","lint":"jshint *.js */*.js","test":"mocha","cover":"istanbul cover _mocha --report lcov --report text -- -R dot --check-leaks test/*.mocha.js"},"_npmUser":{"name":"commenthol","email":"commenthol@gmail.com"},"repository":{"url":"github.com/commenthol/mock-http","type":"git"},"_npmVersion":"2.11.2","description":"mock http request response","directories":{"test":"test"},"_nodeVersion":"0.12.5","dependencies":{"mergee":"~0.1.1","streamss-shim":"~0.0.1"},"devDependencies":{"mocha":"*","streamss":"~0.2.3","connect-chain-if":"~0.0.3"}},"0.0.9":{"name":"mock-http","version":"0.0.9","keywords":["mock","http","request","response","stream"],"author":{"name":"commenthol","email":"commenthol@gmail.com"},"license":"MIT","_id":"mock-http@0.0.9","maintainers":[{"name":"commenthol","email":"commenthol@gmail.com"}],"homepage":"https://github.com/commenthol/mock-http","bugs":{"url":"https://github.com/commenthol/mock-http/issues"},"dist":{"shasum":"8193af57ae09559f812892e6b5568be39d0887e0","tarball":"https://registry.npmjs.org/mock-http/-/mock-http-0.0.9.tgz","integrity":"sha512-w2Q6kthUyKPu1jIAcia9oAVaKjqOtYGZdcGgQM533kIDwZpnkeIvieTx+17TMhX1zfB6w3iTP7ltSWIFO4dt+A==","signatures":[{"sig":"MEYCIQDcS89AarISDk2/CcP77bOGWjnWkYPCp/O3Ii9j2UouQwIhANfzByPwFEtqbuy1DOxdT6kQEoFgMF+DcXi/P3NJAKP7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"8193af57ae09559f812892e6b5568be39d0887e0","engines":{"node":">=0.8.0"},"gitHead":"3932921b08543ff10a4ca8aee3fcc0cd8bde4c61","scripts":{"doc":"jsdox -o doc index.js lib/*.js","lint":"jshint *.js */*.js","test":"mocha","cover":"istanbul cover _mocha --report lcov --report text -- -R dot --check-leaks test/*.mocha.js"},"_npmUser":{"name":"commenthol","email":"commenthol@gmail.com"},"repository":{"url":"github.com/commenthol/mock-http","type":"git"},"_npmVersion":"3.3.12","description":"mock http request response","directories":{"test":"test"},"_nodeVersion":"5.2.0","dependencies":{"mergee":"~0.1.1","streamss-shim":"~0.0.1"},"devDependencies":{"mocha":"*","streamss":"~0.2.3","connect-chain-if":"~0.0.3"}},"0.0.10":{"name":"mock-http","version":"0.0.10","keywords":["mock","http","request","response","stream"],"author":{"name":"commenthol","email":"commenthol@gmail.com"},"license":"MIT","_id":"mock-http@0.0.10","maintainers":[{"name":"commenthol","email":"commenthol@gmail.com"}],"homepage":"https://github.com/commenthol/mock-http","bugs":{"url":"https://github.com/commenthol/mock-http/issues"},"dist":{"shasum":"ed8cee23a52382e3eea416f295e901481755466f","tarball":"https://registry.npmjs.org/mock-http/-/mock-http-0.0.10.tgz","integrity":"sha512-US9utCYfsnMGCuXNvvyGk1ocS9OpI1c79mBPtXX9fH2Yz9zH3pyqSgzcOGYzjmmgIg/dUYUlh24UG/7dqozDiA==","signatures":[{"sig":"MEUCIFyM6Zwm3x8fnZLGiFElUxw2+hovqFaqj7VvhgivuFpBAiEA+j+gd13j/exwJBK2I7Nzy10e2r8UAVeQQpSzuhyV/uc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"ed8cee23a52382e3eea416f295e901481755466f","engines":{"node":">=0.8.0"},"gitHead":"799fb42279053e402493e79faaee06d3f444604b","scripts":{"doc":"jsdox -o doc index.js lib/*.js","lint":"eslint '*.js' '**/*.js'","test":"mocha","cover":"istanbul cover _mocha --report lcov --report text -- -R dot --check-leaks test/*.mocha.js"},"_npmUser":{"name":"commenthol","email":"commenthol@gmail.com"},"repository":{"url":"github.com/commenthol/mock-http","type":"git"},"_npmVersion":"4.0.5","description":"mock http request response","directories":{"test":"test"},"_nodeVersion":"7.4.0","dependencies":{"mergee":"~0.2.4","streamss-shim":"~0.0.2"},"eslintConfig":{"rules":{},"extends":"standard","plugins":["standard"]},"devDependencies":{"mocha":"*","streamss":"~0.2.5","connect-chain-if":"~0.0.3"},"_npmOperationalInternal":{"tmp":"tmp/mock-http-0.0.10.tgz_1484943882516_0.14616207662038505","host":"packages-12-west.internal.npmjs.com"}},"1.0.0":{"name":"mock-http","version":"1.0.0","keywords":["mock","http","request","response","stream"],"author":{"name":"commenthol","email":"commenthol@gmail.com"},"license":"MIT","_id":"mock-http@1.0.0","maintainers":[{"name":"commenthol","email":"commenthol@gmail.com"}],"homepage":"https://github.com/commenthol/mock-http","bugs":{"url":"https://github.com/commenthol/mock-http/issues"},"dist":{"shasum":"3e08bfd36f9e68feb77759d18c6addac373c0667","tarball":"https://registry.npmjs.org/mock-http/-/mock-http-1.0.0.tgz","fileCount":12,"integrity":"sha512-Iy55XlxnLu5yARDUcvPStzXqxQhdSJbFB1Z/nJKGY97n7P/XS1Mcyb5yhMkDWa9sy0BNXWWqWe1HN78DbmStrQ==","signatures":[{"sig":"MEUCIQDe/DkuGQ0pEdguEkPjVH0RoRMPZYiCF7GzpBKBOQEW1gIgbpRGE1hUmmkuiOUgih+N0XaXr/XIjzjAvWn0mFUN7sw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42972,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbhlE5CRA9TVsSAnZWagAAIWAP/jbsPjnmlcRktQypuupi\nVerdfxdLK5s8Uc4nVgD/cnIvfcdh4ZuQY9HDi/OGSCTX26UtZzK+OKTMuQ90\ndDmj2/hMNe/JzRAz3yzePbjJ2P5KnllqfI8++alYwa6dHrv2g7VwSfgp/V0Q\n1RXOBv4ocq2NpLQmYv2yX8ucXvMQQ8Iy/SOtbLAxn3xeaWtyJAG4dOAxilH7\np7M7aVIGGPADL2EUbCVz+Kp+nyxVZY6TdbHvHThBzUHWB/ixVpCt7kTJV9Yj\nI53/jwoezLEn7MMoYYrLx/s0v5H0dfng14wSCBJS5C/vLMsQECRpBRd3CPBc\nskN/26N3nXbdwl69kL2Sz952Af4DOI+8QuOs8qZTe79U4P6DMHZ4ezieYQOC\nPRnSNQNJN18fN/+meL6naI8DmFO8Ve++pgHYQk8aO4/ye6Vbm6bdqyExax6D\ne6dKsaPXVnJRRIon8SqX/aj2b79GioccgakjdTfWJ1rVyN6xJLWA0bA08qCX\nmBEWb1wY8NLRDoRK7hRNGjNCslU7oi6SmdxgN4kwPWOnR4XG95VzptQ8ZqDi\ncBDnl2wxXF+jPkBVF/2ZCZbit/UsJD3001+QVrOmwv+FV6VxgLGdhzTNzoK8\n+bg2J4ZnZ46WUuMu367mGp2p6MrFbn4rUTtLf4v/EKzpLCpTR8Su8jw+GfIL\nA5Ia\r\n=L6A+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engines":{"node":">=6.0.0"},"gitHead":"4a6ced68f28fcd35c3e7a9ff84d9a9597df2c93d","scripts":{"doc":"jsdox -o doc index.js lib/*.js","lint":"eslint '*.js' '**/*.js'","test":"mocha","cover":"nyc -r lcov -r text npm test"},"_npmUser":{"name":"commenthol","email":"commenthol@gmail.com"},"repository":{"url":"github.com/commenthol/mock-http","type":"git"},"_npmVersion":"6.2.0","description":"mock http request response","directories":{"test":"test"},"_nodeVersion":"10.9.0","dependencies":{"mergee":"^0.2.4"},"eslintConfig":{"rules":{},"extends":"standard","plugins":["standard"]},"_hasShrinkwrap":false,"devDependencies":{"mocha":"*","streamss":"^1.0.0","connect-chain-if":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mock-http_1.0.0_1535529273333_0.5691508092909794","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"mock-http","version":"1.0.1","keywords":["mock","http","request","response","stream"],"author":{"name":"commenthol","email":"commenthol@gmail.com"},"license":"MIT","_id":"mock-http@1.0.1","maintainers":[{"name":"commenthol","email":"commenthol@gmail.com"}],"homepage":"https://github.com/commenthol/mock-http","bugs":{"url":"https://github.com/commenthol/mock-http/issues"},"dist":{"shasum":"eff0c5629f7b4844846ca4b6c330fc8c8b326acb","tarball":"https://registry.npmjs.org/mock-http/-/mock-http-1.0.1.tgz","fileCount":12,"integrity":"sha512-VpaVBYXK6q/AhofHblQJ/yhFfPBuVHMoUrBEhaL9QZ+nJlp4JyRWE6Nu9CR2AT6MKyvy9MVbAhoNm7FJEBiWTQ==","signatures":[{"sig":"MEUCIFJWYE2TPspf7xP9s2abIuFOBKB+3BYyDBzwWYAT2J0qAiEAn6cOQk+76sshgldCrJWS0oZP59Bxoqpp1opXYXw14RA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43854,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc0fSbCRA9TVsSAnZWagAAApsP/14GA3MGY0o7bU8Mp9XS\nTDgrEi+eaZ93MI8OKIlaNBAGdDjpvb9d2yohg9zYhunVk+6mW8T4v5Ci4gvf\n6sqntHi5GPoHHV4qzxL1DSOQKsCdK656wu1XrumollVvDx3xCMZOJWgrEj+m\nRbmTFx3bWCO3+F1cHmU/J+Im6VVybW1zwYP36mzIBzzVEvJjPGmQkI3ZDc7J\n3UoUyey++7W9sLmQg8HEyTbk8m9BEBLBdadZZ9B0jfBZHzmktopsm/N1qHmb\ncPtBWqgZD16H3L1eghLGH+ASg+5HR3mnLAk/1RZ3kJ1xZdCwmGuTYNEKxRYB\nIGz+RUjdRyXkK8+DJQ/Fhp7HLs9DzQzy+kImfJe2woZ6zcQmhcOIrQBJhxRw\nrk6bdsV9KoGlyb1A0CwxkRI4NQNDTPnmQLv8RlTGu6ZpUJSzCcmDRldEHeDh\nuaXlid/FI9UikKuAjLI09ST7wj6bos3Ep0ou9QOH3jtynoHnlJd5MhJBRtWh\nr/eVTAxyPSu8wciT6bi+mXRDmYoVnInc5yozmO65ZEY3zu+RiRHa1z+DlTa4\nXAdGAEG3xspO+DXsQ8h5EVUroJfuCVDN2NXQIEuZNvVbMSye9X1JTrIF+diB\nS2rT1chmhKFWgA+OpuBsaZu7I+KexUt4L0qI5hIh8mVs+6YsQCpbY67H82Fs\nHSi7\r\n=41Nj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engines":{"node":">=6.0.0"},"gitHead":"7d5fd914dc969bad2e44cc12d4f3d20f29746b6b","scripts":{"doc":"jsdox -o doc index.js lib/*.js","lint":"eslint '*.js' '**/*.js'","test":"mocha","cover":"nyc -r lcov -r text npm test"},"_npmUser":{"name":"commenthol","email":"commenthol@gmail.com"},"repository":{"url":"github.com/commenthol/mock-http","type":"git"},"_npmVersion":"6.9.0","description":"mock http request response","directories":{"test":"test"},"_nodeVersion":"12.1.0","dependencies":{"mergee":"^0.2.5"},"eslintConfig":{"rules":{},"extends":"standard","plugins":["standard"]},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^6.1.4","streamss":"^1.0.1","connect-chain-if":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mock-http_1.0.1_1557263515044_0.6761816959550879","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"mock-http","version":"1.0.2","keywords":["http","mock","request","response","stream"],"author":{"name":"commenthol","email":"commenthol@gmail.com"},"license":"MIT","_id":"mock-http@1.0.2","maintainers":[{"name":"commenthol","email":"commenthol@gmail.com"}],"homepage":"https://github.com/commenthol/mock-http","bugs":{"url":"https://github.com/commenthol/mock-http/issues"},"dist":{"shasum":"abbfac184004983f7e771764e70a5882ee6c407f","tarball":"https://registry.npmjs.org/mock-http/-/mock-http-1.0.2.tgz","fileCount":13,"integrity":"sha512-pxCCxgLJJNWJBeH023hOSw5tkVluOhks4wIn1tS5qwRgpLuR0U2mk4ohZN+dMiZ8eKLIi7BqDXopvnx6wPlshw==","signatures":[{"sig":"MEYCIQCoZ2ZeoQOWDAxJ3zAa0Lct8Y/FssVDolwh655GwCM5+QIhALYYfiWXYCwLfVcSXSLdntzfP3PZ6pn+uYk0NUrKUYAJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":45379,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJds9wpCRA9TVsSAnZWagAARwMP/0xcuMu72GssBCG+z8Kt\n3wYvWEvbcnlrxz4FIWuWksFXZij18k9M5pWBYi7UZ7mfp86vX9b2ECI5eIup\nfxPj1y1R1m49895iD6h/wxRBZvWHumOdMCiw0ohrc7oP0EidYTo18PZGo0op\nHd/t1nvWgwqn7lmmzjZDvKhhZ+OkOmpVMfluXiUBSgGb+SOgbpUANmBxB4sc\n91viO9NLBfzKm2dwyARfx37VwkEFN6BOefHOFmFY7KYxV2Mh4eEapNq7vd5m\naaHzPhZDMeFQsVBHD9NrQVnlJ9wpSSOvWCrV9I946XGI1bLlsnstyJc96x+t\nKGAXWNr63sBauzGFZQ0DiuKxIXDZ+vKCcwkxZmImJETnH0dMKhjG2w2LHYoy\nisqiQZ2ueWINY+0GohaLtvzYy1qxtJiNRqnOgezx2aqpTiNLl0lBpJcJnbKl\nmbFUmFyqSLr7Xwl/vHNB73NVqLpyCis1kxLSN3msa+oi23fMsxCVmF644hZl\n5kzKyMjIauNyQAYX+rkmB1ZkBLLilI0Cld5JUk7CG/wvqBsZgfFGOkyB6Sl2\nOsQ+W9JW6N2HmsVCeGedFPkSkolH/pxx6yNms9JKJSHNqkEj3rBHaOg5e62h\nC1PBXbV0M/hWt6Ui7YhF7kPd5kvuZRiKEZ6uSZETUX4TwrEmU3vBr91n1knR\nLD5m\r\n=NIWU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","engines":{"node":">=6.0.0"},"gitHead":"9f549638e823a0f7972984fd32d29e209c6300d0","scripts":{"all":"npm run lint && npm t","doc":"jsdox -o doc index.js lib/*.js","lint":"eslint '*.js' '**/*.js'","test":"mocha","cover":"nyc -r lcov -r text npm test"},"_npmUser":{"name":"commenthol","email":"commenthol@gmail.com"},"repository":{"url":"github.com/commenthol/mock-http","type":"git"},"_npmVersion":"6.12.0","description":"mock http request response","directories":{"test":"test"},"_nodeVersion":"13.0.1","dependencies":{"mergee":"^1.0.0"},"eslintConfig":{"rules":{},"extends":"standard","plugins":["standard"]},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^6.2.2","streamss":"^1.0.2","connect-chain-if":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mock-http_1.0.2_1572068393589_0.22234457890447157","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"mock-http","version":"1.1.0","keywords":["http","mock","request","response","stream"],"author":{"name":"commenthol","email":"commenthol@gmail.com"},"license":"MIT","_id":"mock-http@1.1.0","maintainers":[{"name":"commenthol","email":"commenthol@gmail.com"}],"homepage":"https://github.com/commenthol/mock-http","bugs":{"url":"https://github.com/commenthol/mock-http/issues"},"dist":{"shasum":"b89380a718a103fc5801095804bedd0b20f7638c","tarball":"https://registry.npmjs.org/mock-http/-/mock-http-1.1.0.tgz","fileCount":9,"integrity":"sha512-H2HMGaHNQPWY8PdeEw4RFux2WEOHD6eJAtN3+iFELik5kGjPKAcoyPWcsC2vgDiTa2yimAEDssmMed51e+cBKQ==","signatures":[{"sig":"MEQCIE50gD8fd4auXqlWHF3vUcYxep4K5p3oXGxDUJZwLLMuAiBGMlu2FnyPN2XzWl2TpzEJo77Xo5YfUGQ7n9KyJGfi0g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26329,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqH/0CRA9TVsSAnZWagAA5foP/3j5YwksxaBq3s/OkbDO\neVLBBT2cNHAt1rQ9FUvb0A8jnBUh5DuquP4yhcNEbBr16HuFXs2qu6LXiMON\nd8AYA0pjd/O6IiEFXVjn+06VuKVE6Kbqdq0ATl7ciNR8Adb9JMnOA6he1c8+\nBDvYToPA8BLt/f4hAprYFPyw48CI5ykYeU+xwOyw8a14wlXMM+YZq8Ifvabb\niWV95rQNRGI2qU3edEIJqdRd0FUFntV2gYRXg74ASh5vC5Y+tAvnUpVcKJwc\n4Js1Yxr6x+CWPXNVvQVbWZ9S4Cnmbs0+BYfSFFB8/vNSqskM2/M9YmwsruTu\nogr+kIg0Bc25fTEy06E8GYEQt9w8E3deOrbNXqGVkTzxKX5lLiI35XProOnA\nGjCNXaCowf+/3mSbaCQUCyqLivJl5yO+PXLhWYzCDTBXLsWTaiEXO3zyo8aD\ny587pZsrBBogUoXT7sKbpMowbovxleXqwzwTxWlNHBMMAG3TyWrE4dfJzSc0\nuaTBPWTV5umqrEgBx/3u2vEAxMwf96r25BczOsdzDFPpcfTp7RPfU7GRvG+I\nD+h225oER56L+xsNBDFKCmBfvG4M6eQVZAyC7b4U5xZNqsw8TqbJr9UJC/Hu\n8iTS9CaNekD2g5p41pBTRTJNPPxtICf/Wzn4euGR/ziyv5hl9ULQCgcppHb8\ngTlg\r\n=2aF6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","engines":{"node":">=6.0.0"},"gitHead":"6fd89755e39ddf384c536224a8e73444c21f8262","scripts":{"all":"npm run lint && npm t","doc":"jsdox -o doc index.js lib/*.js","lint":"eslint '*.js' '**/*.js'","test":"mocha","cover":"nyc -r lcov -r text npm test"},"_npmUser":{"name":"commenthol","email":"commenthol@gmail.com"},"repository":{"url":"github.com/commenthol/mock-http","type":"git"},"_npmVersion":"6.14.4","description":"mock http request response","directories":{"test":"test"},"_nodeVersion":"14.0.0","dependencies":{"mergee":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.1.2","eslint":"^6.8.0","streamss":"^2.0.0","connect-chain-if":"^1.0.0","eslint-plugin-node":"^11.1.0","eslint-plugin-import":"^2.20.2","eslint-plugin-promise":"^4.2.1","eslint-config-standard":"^14.1.1","eslint-plugin-standard":"^4.0.1"},"_npmOperationalInternal":{"tmp":"tmp/mock-http_1.1.0_1588101107457_0.5275025039427899","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"mock-http","version":"1.1.1","description":"mock http request response","keywords":["http","mock","request","response","stream"],"homepage":"https://github.com/commenthol/mock-http","bugs":{"url":"https://github.com/commenthol/mock-http/issues"},"repository":{"type":"git","url":"github.com/commenthol/mock-http"},"license":"MIT","author":{"name":"commenthol","email":"commenthol@gmail.com"},"main":"index.js","types":"index.d.ts","directories":{"test":"test"},"dependencies":{"mergee":"^1.0.1"},"devDependencies":{"connect-chain-if":"^1.0.0","eslint":"^6.8.0","eslint-config-standard":"^14.1.1","eslint-plugin-import":"^2.20.2","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","mocha":"^7.1.2","streamss":"^2.0.0"},"engines":{"node":">=6.0.0"},"scripts":{"all":"npm run lint && npm t","cover":"nyc -r lcov -r text npm test","doc":"jsdox -o doc index.js lib/*.js","lint":"eslint '*.js' '**/*.js'","test":"mocha"},"_id":"mock-http@1.1.1","_integrity":"sha512-97fZUUUd+/cUhLv1nNoMpB2vjNS1rNqfuXqxcWXZNiDjEQbwbiZfxnkvg1YpUDJS6LP99Ic5OVVszu+bQDQcDg==","_resolved":"/private/var/folders/jn/j_n1qy1n4wndh914ylvswrfw0000gn/T/62e339147ed4ab722c222e824fe85214/mock-http-1.1.1.tgz","_from":"file:mock-http-1.1.1.tgz","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-97fZUUUd+/cUhLv1nNoMpB2vjNS1rNqfuXqxcWXZNiDjEQbwbiZfxnkvg1YpUDJS6LP99Ic5OVVszu+bQDQcDg==","shasum":"66741fb3865f38e25d3d9e2fcb5fbe2519b40d07","tarball":"https://registry.npmjs.org/mock-http/-/mock-http-1.1.1.tgz","fileCount":9,"unpackedSize":26328,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAOJUODGfNgqFDA0O9eOYOF6ufvL9s1pwbaQw4wRK7OQAiEAjJnTPJfzRPNJkXVTn01D3eib4tfjVQCKpZCDbCWb48g="}]},"_npmUser":{"name":"commenthol","email":"commenthol@gmail.com"},"maintainers":[{"name":"commenthol","email":"commenthol@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mock-http_1.1.1_1739393565335_0.8139305594198971"},"_hasShrinkwrap":false}},"time":{"created":"2014-12-30T10:54:32.365Z","modified":"2025-02-12T20:52:45.664Z","0.0.1":"2014-12-30T10:54:32.365Z","0.0.2":"2014-12-30T11:06:47.342Z","0.0.3":"2015-01-17T07:56:41.302Z","0.0.4":"2015-03-22T07:05:32.339Z","0.0.5":"2015-04-15T20:15:21.112Z","0.0.6":"2015-06-29T19:20:49.792Z","0.0.7":"2015-06-29T19:43:07.253Z","0.0.8":"2015-12-15T22:07:25.803Z","0.0.9":"2015-12-15T22:19:25.107Z","0.0.10":"2017-01-20T20:24:44.495Z","1.0.0":"2018-08-29T07:54:33.461Z","1.0.1":"2019-05-07T21:11:55.218Z","1.0.2":"2019-10-26T05:39:53.687Z","1.1.0":"2020-04-28T19:11:47.659Z","1.1.1":"2025-02-12T20:52:45.514Z"},"bugs":{"url":"https://github.com/commenthol/mock-http/issues"},"author":{"name":"commenthol","email":"commenthol@gmail.com"},"license":"MIT","homepage":"https://github.com/commenthol/mock-http","keywords":["http","mock","request","response","stream"],"repository":{"type":"git","url":"github.com/commenthol/mock-http"},"description":"mock http request response","maintainers":[{"name":"commenthol","email":"commenthol@gmail.com"}],"readme":"# mock-http\n\n[![NPM version](https://badge.fury.io/js/mock-http.svg)](https://npmjs.com/package/mock-http)\n[![Build Status](https://secure.travis-ci.org/commenthol/mock-http.svg?branch=master)](https://travis-ci.org/commenthol/mock-http)\n\n> Mock http request response\n\nThis module provides a mock to the server side request and response classes without the need of creating a socket.\nThe full API as documented on <http://nodejs.org/api/http.html> is supported.\n\nAll methods can be used to mock a client requests on the server as well as server responses such allowing to unit-test e.g. connect middleware.\n\n\n## Table of Contents\n\n<!-- !toc (minlevel=2 omit=\"Table of Contents\") -->\n\n* [Request](#request)\n* [Response](#response)\n* [Usage](#usage)\n* [Documentation](#documentation)\n* [Contribution and License Agreement](#contribution-and-license-agreement)\n* [License](#license)\n\n<!-- toc! -->\n\n## Request\n\nMock implementation of Class [http.IncomingMessage](http://nodejs.org/api/http.html#http_http_incomingmessage)\n\nIt behaves like the class, apart from really handling a socket. I.e. it implements the Readable Stream Class as well.\nAll methods can be used to mock a client request on the server such allowing to unit-test e.g. connect middleware\n\n\n## Response\n\nMock implementation of Class [http.ServerResponse](http://nodejs.org/api/http.html#http_class_http_serverresponse)\n\nIt behaves like the class, apart from really handling a socket. I.e. it implements the Writable Stream Class as well.\nAll methods can be used to mock a server response such allowing to unit-test e.g. connect middleware\n\nStates are stored in the internal object `Response._internal` and can be queried from your unit-tests\n\n```js\n_internal: {\n  headers: {},             // {Object}  Response headers\n  trailers: {},            // {Object}  Trailing Response headers\n  buffer: Buffer.from(''), // {Buffer}  Internal buffer represents response body\n  timedout: false,         // {Boolean} If true than `Response.setTimeout` was called.\n  ended: false,            // {Boolean} If true than `Response.end` was called.\n}\n```\n\n## Usage\n\nThis is a unit-test using mocha which illustrates the usage. The example can be found in [./test/index.mocha.js](./test/index.mocha.js)\n\n```js\ndescribe('example', function(){\n    // a middleware function under test\n    var middleware = function(req, res, next) {\n        var regex = /^(?:\\/test)(\\/.*|$)/;\n        req.params = '';\n\n        req.on('data', function(data){\n            req.params += data; // a simple body parser\n        });\n        req.on('end', function(){\n            if (regex.test(req.url)) {\n                req.url = req.url.replace(regex, '$1') || '/';\n                res.writeHead(200, { 'Cache-Control': 'max-age=300'});\n                res.write('this is a test');\n                res.end();\n            }\n            else {\n                next && next();\n            }\n        });\n    };\n    it('shall respond with a 200', function(done){\n        var req = new mock.Request({\n                    url: '/test',\n                    method: 'POST',\n                    buffer: Buffer.from('name=mock&version=first')\n                });\n        var res = new mock.Response({\n                onEnd: function() {\n                    // the test ends here\n                    assert.equal(req.url, '/');\n                    assert.equal(req.params, 'name=mock&version=first');\n                    assert.equal(res.statusCode, 200);\n                    assert.equal(res.headersSent, true);\n                    assert.equal(res.getHeader('Cache-Control'), 'max-age=300');\n                    assert.equal(res.hasEnded(), true);\n                    done();\n                }\n            });\n        middleware(req, res, function(){\n            assert.equal('test never', 'reaches here');\n        });\n    });\n    it('shall call next middleware', function(done){\n        var req = new mock.Request({\n                    url: '/other',\n                    method: 'POST',\n                    buffer: Buffer.from('name=mock&version=first')\n                });\n        var res = new mock.Response({\n                onEnd: function() {\n                    assert.equal('test never', 'reaches here');\n                }\n            });\n        middleware(req, res, function(){\n            // the test ends here\n            assert.equal(req.url, '/other');\n            assert.equal(res.headersSent, false);\n            assert.equal(res.hasEnded(), false);\n            done();\n        });\n    });\n});\n```\n\n## Documentation\n\nDocumentation can be found in [./doc](./doc/index.html).\n\n\n## Contribution and License Agreement\n\nIf you contribute code to this project, you are implicitly allowing your code\nto be distributed under the MIT license. You are also implicitly verifying that\nall code is your original work.\n\n* `npm test` - runs the tests\n* `npm run lint` - runs jshint for linting\n* `npm run doc` - generates the docs in ./doc - requires `npm i -g jsdoc`\n\n## License\n\nCopyright (c) 2014-present Commenthol. (MIT License)\n\nSee [LICENSE][] for more info.\n\n[LICENSE]: ./LICENSE\n","readmeFilename":"README.md"}