{"_id":"mitm","_rev":"41-f0a42c0e0bf0b690d35028d7a616ad5c","name":"mitm","dist-tags":{"latest":"1.7.3"},"versions":{"0.4.0":{"name":"mitm","version":"0.4.0","keywords":["http","https","mock","network","socket","test","webmock"],"author":{"url":"http://themoll.com","name":"Andri Möll","email":"andri@dot.ee"},"_id":"mitm@0.4.0","maintainers":[{"name":"moll","email":"andri@dot.ee"}],"homepage":"https://github.com/moll/node-mitm","bugs":{"url":"https://github.com/moll/node-mitm/issues"},"dist":{"shasum":"6c016ba4f2e27150a66724204d94390ffeed42dc","tarball":"https://registry.npmjs.org/mitm/-/mitm-0.4.0.tgz","integrity":"sha512-uiJuqctPk1neK0SKNUvdhYYCWi44+wUQDHWlIuWk6QQkQTHqW0nY2oo1MstE41JYUWygC4gl4r11VH+RI8VUsA==","signatures":[{"sig":"MEUCIH7ZfA6ITDNPWHkyKNNkVaw25gmv+dDXRAx9vtV2+yDnAiEA4z262817m0KIqGA5DnVlsE4SrLnbLrvuo9IYHHWn0lg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"6c016ba4f2e27150a66724204d94390ffeed42dc","engines":{"node":">= 0.10.24"},"scripts":{"test":"make test"},"_npmUser":{"name":"moll","email":"andri@dot.ee"},"licenses":[{"url":"https://github.com/moll/node-mitm/blob/master/LICENSE","type":"LAGPL"}],"repository":{"url":"git://github.com/moll/node-mitm.git","type":"git"},"_npmVersion":"1.4.9","description":"Intercept and mock network TCP connections and HTTP requests. Intercepts and gives you vanilla Net.Socket, Http.IncomingMessage and Http.ServerResponse to assert on and respond with. Small, fast and simple. Super useful when testing code that hits remote ","directories":{},"dependencies":{"underscore":">= 1.1.5 < 1.6"},"devDependencies":{"co":">= 3.0.4 < 4","must":"< 1","mocha":">= 1.12.0 < 2","sinon":">= 1.9 < 2"}},"0.4.1":{"name":"mitm","version":"0.4.1","keywords":["http","https","mock","network","socket","test","webmock"],"author":{"url":"http://themoll.com","name":"Andri Möll","email":"andri@dot.ee"},"_id":"mitm@0.4.1","maintainers":[{"name":"moll","email":"andri@dot.ee"}],"homepage":"https://github.com/moll/node-mitm","bugs":{"url":"https://github.com/moll/node-mitm/issues"},"dist":{"shasum":"b8d1d4e682470d1b9c63aa065e40b4669e258fe0","tarball":"https://registry.npmjs.org/mitm/-/mitm-0.4.1.tgz","integrity":"sha512-gG3v7e1kTcXyHfqK5WhapSHxkcapadGtk7Vo/KbCv5tz6DScRpXtaURD8Db402RSJdOligAHtFdiy7q6SgAFHg==","signatures":[{"sig":"MEYCIQD8tZ+oco0kw0IWdtXYf++ze9OlLEBP4PPF85HM1BJbWgIhAOu5iAQX9Kf7M4JmnQ6UrJQupf+J4ocnZArqnYg/FEiG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"b8d1d4e682470d1b9c63aa065e40b4669e258fe0","engines":{"node":">= 0.10.24"},"scripts":{"test":"make test"},"_npmUser":{"name":"moll","email":"andri@dot.ee"},"licenses":[{"url":"https://github.com/moll/node-mitm/blob/master/LICENSE","type":"LAGPL"}],"repository":{"url":"git://github.com/moll/node-mitm.git","type":"git"},"_npmVersion":"1.4.9","description":"Intercept and mock network TCP connections and HTTP requests. Intercepts and gives you vanilla Net.Socket, Http.IncomingMessage and Http.ServerResponse to assert on and respond with. Small, fast and simple. Super useful when testing code that hits remote ","directories":{},"dependencies":{"underscore":">= 1.1.5 < 1.6"},"devDependencies":{"co":">= 3.0.4 < 4","must":"< 1","mocha":">= 1.12.0 < 2","sinon":">= 1.9 < 2"}},"0.5.0":{"name":"mitm","version":"0.5.0","keywords":["http","https","mock","network","socket","test","webmock"],"author":{"url":"http://themoll.com","name":"Andri Möll","email":"andri@dot.ee"},"_id":"mitm@0.5.0","maintainers":[{"name":"moll","email":"andri@dot.ee"}],"homepage":"https://github.com/moll/node-mitm","bugs":{"url":"https://github.com/moll/node-mitm/issues"},"dist":{"shasum":"cd60932014b9b4ebfa14e21e11e36966ac33da60","tarball":"https://registry.npmjs.org/mitm/-/mitm-0.5.0.tgz","integrity":"sha512-SCDhNbSj2R3peJZD19lFw8aK7IixeE0p/6Sj9v4osW2yECT/kc9PGWXBi6PYFR5odW4TX0wosRXuAi6e0Cyy3A==","signatures":[{"sig":"MEQCIBMNbr/jX83U4KcTIi47zc+RP8RHYAGnZmPf9DxTgXQrAiAVZG7GZY38IpFMvS9STuiJIDfsnxw3omEbcKVwiQhWCQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"cd60932014b9b4ebfa14e21e11e36966ac33da60","engines":{"node":">= 0.10.24"},"scripts":{"test":"make test"},"_npmUser":{"name":"moll","email":"andri@dot.ee"},"licenses":[{"url":"https://github.com/moll/node-mitm/blob/master/LICENSE","type":"LAGPL"}],"repository":{"url":"git://github.com/moll/node-mitm.git","type":"git"},"_npmVersion":"1.4.9","description":"Intercept and mock outgoing network TCP connections and HTTP requests for testing. Intercepts and gives you a Net.Socket, Http.IncomingMessage and Http.ServerResponse to test and respond with. Useful when testing code that hits remote servers.","directories":{},"dependencies":{"underscore":">= 1.1.5 < 1.6"},"devDependencies":{"co":">= 3.0.4 < 4","must":"< 1","mocha":">= 1.12.0 < 2","sinon":">= 1.9 < 2"}},"0.5.1":{"name":"mitm","version":"0.5.1","keywords":["http","https","intercept","interception","mock","network","socket","test","webmock"],"author":{"url":"http://themoll.com","name":"Andri Möll","email":"andri@dot.ee"},"_id":"mitm@0.5.1","maintainers":[{"name":"moll","email":"andri@dot.ee"}],"homepage":"https://github.com/moll/node-mitm","bugs":{"url":"https://github.com/moll/node-mitm/issues"},"dist":{"shasum":"7265e2c3007a8fb9fd77d7eda28fb2c7a315ae08","tarball":"https://registry.npmjs.org/mitm/-/mitm-0.5.1.tgz","integrity":"sha512-I6aSg+mpvwJrbxPYiyJT4dYre4kxl7W1l1XxW7Mb6ivH7QE/5VdNxoRUi7YRLAEJPmBdGkmkTXnH0kMWhhEZIQ==","signatures":[{"sig":"MEYCIQDNoS2tFBLJnvH0J21gmW2dPRR1JhnATo0WZfiJA6MEOQIhAN1DpaI6Z2HmKziNp802cUUjd8/Pwp853R/cbl85Voo+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"7265e2c3007a8fb9fd77d7eda28fb2c7a315ae08","engines":{"node":">= 0.10.24"},"scripts":{"test":"make test"},"_npmUser":{"name":"moll","email":"andri@dot.ee"},"licenses":[{"url":"https://github.com/moll/node-mitm/blob/master/LICENSE","type":"LAGPL"}],"repository":{"url":"git://github.com/moll/node-mitm.git","type":"git"},"_npmVersion":"1.4.9","description":"Intercept and mock outgoing network TCP connections and HTTP requests for testing. Intercepts and gives you a Net.Socket, Http.IncomingMessage and Http.ServerResponse to test and respond with. Useful when testing code that hits remote servers.","directories":{},"dependencies":{"underscore":">= 1.1.5 < 1.6"},"devDependencies":{"co":">= 3.0.4 < 4","must":"< 1","mocha":">= 1.12.0 < 2","sinon":">= 1.9 < 2"}},"1.0.0":{"name":"mitm","version":"1.0.0","keywords":["http","https","intercept","interception","mock","network","socket","test","webmock"],"author":{"url":"http://themoll.com","name":"Andri Möll","email":"andri@dot.ee"},"_id":"mitm@1.0.0","maintainers":[{"name":"moll","email":"andri@dot.ee"}],"homepage":"https://github.com/moll/node-mitm","bugs":{"url":"https://github.com/moll/node-mitm/issues"},"dist":{"shasum":"0458b1ed79bcbc684d5d68a0562218205da60b07","tarball":"https://registry.npmjs.org/mitm/-/mitm-1.0.0.tgz","integrity":"sha512-iQucMAF2DEdvVlkFHTBMOaz0JO3ge8VcGp4/QjIjJuNo32o/gK8Lcm6vG7/bY2xh54IcLUXV/hbbE7OLNANn0A==","signatures":[{"sig":"MEUCICQ0bNJvEQX7QIMSUBpNzGijqyFYCG6mHcLQvYHttwnmAiEAlJoTvTZqy4Xv/TI/jeFG5MwhoxrD3tgDvusCElPEpHk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"0458b1ed79bcbc684d5d68a0562218205da60b07","engines":{"node":">= 0.10.24"},"gitHead":"c18149a59ef163e9a4de0ee6ef147d9b3ec2f09f","scripts":{"test":"make test"},"_npmUser":{"name":"moll","email":"andri@dot.ee"},"licenses":[{"url":"https://github.com/moll/node-mitm/blob/master/LICENSE","type":"LAGPL"}],"repository":{"url":"git://github.com/moll/node-mitm.git","type":"git"},"_npmVersion":"2.0.2","description":"Intercept and mock outgoing network TCP connections and HTTP requests for testing. Intercepts and gives you a Net.Socket, Http.IncomingMessage and Http.ServerResponse to test and respond with. Useful when testing code that hits remote servers.","directories":{},"_nodeVersion":"0.11.13","dependencies":{"underscore":">= 1.1.5 < 1.6"},"devDependencies":{"co":">= 3.0.4 < 4","must":"< 1","mocha":">= 1.12.0 < 2","sinon":">= 1.9 < 2"}},"1.0.1":{"name":"mitm","version":"1.0.1","keywords":["http","https","intercept","interception","mock","network","socket","test","webmock"],"author":{"url":"http://themoll.com","name":"Andri Möll","email":"andri@dot.ee"},"_id":"mitm@1.0.1","maintainers":[{"name":"moll","email":"andri@dot.ee"}],"homepage":"https://github.com/moll/node-mitm","bugs":{"url":"https://github.com/moll/node-mitm/issues"},"dist":{"shasum":"6fcd88a24bf9c881c044c03c442d4208b691c699","tarball":"https://registry.npmjs.org/mitm/-/mitm-1.0.1.tgz","integrity":"sha512-pM4Rgw8zpm0qgg56dW244FBQcxktNKwklYyLMglvd02r2qf1OZCzIk0EXxFsPo8hvL/5+ejW9mI0oDoNpWR3Hg==","signatures":[{"sig":"MEUCIGXsfMvlOKlBwjOhrr4474iXUzQ2J/Nui3E4h9kxd4WyAiEA2NJCMOXOA3Ovphbu9xFls5bc0sKdcZda73KOEt47x38=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"6fcd88a24bf9c881c044c03c442d4208b691c699","engines":{"node":">= 0.10.24"},"gitHead":"d7c70c9103ff506dde7209ddba26ef24e6e83b03","scripts":{},"_npmUser":{"name":"moll","email":"andri@dot.ee"},"licenses":[{"url":"https://github.com/moll/node-mitm/blob/master/LICENSE","type":"LAGPL"}],"repository":{"url":"git://github.com/moll/node-mitm.git","type":"git"},"_npmVersion":"2.0.2","description":"Intercept and mock outgoing network TCP connections and HTTP requests for testing. Intercepts and gives you a Net.Socket, Http.IncomingMessage and Http.ServerResponse to test and respond with. Useful when testing code that hits remote servers.","directories":{},"_nodeVersion":"0.11.14","dependencies":{"underscore":">= 1.1.5 < 1.6"},"devDependencies":{"co":">= 3.0.4 < 4","must":"< 1","mocha":">= 1.12.0 < 2","sinon":">= 1.9 < 2"}},"1.0.2":{"name":"mitm","version":"1.0.2","keywords":["http","https","intercept","interception","mock","network","socket","test","webmock"],"author":{"url":"http://themoll.com","name":"Andri Möll","email":"andri@dot.ee"},"_id":"mitm@1.0.2","maintainers":[{"name":"moll","email":"andri@dot.ee"}],"homepage":"https://github.com/moll/node-mitm","bugs":{"url":"https://github.com/moll/node-mitm/issues"},"dist":{"shasum":"f3ae2be758523b279d67ee26f2cfcfb282862f08","tarball":"https://registry.npmjs.org/mitm/-/mitm-1.0.2.tgz","integrity":"sha512-i+kVjFt3Uo+UjJd5G5drJnWfCucnVdyNQqKn+fKUZufHaWuxY28159B8V2Heq94F6kiPdh/1c3b91mXciPzgoQ==","signatures":[{"sig":"MEUCIQDaYw52KgrXq/wVtRZZg9eOyUSjEwPXWeoR5fxd4YPhggIgN/wu9MzFJ7PNZ4dWeTvmtUjzIYjywMgEW5doh+qk2Hs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"f3ae2be758523b279d67ee26f2cfcfb282862f08","engines":{"node":">= 0.10.24"},"gitHead":"974ae6ebb49d9e5d950169a7c69903f621c1126e","scripts":{},"_npmUser":{"name":"moll","email":"andri@dot.ee"},"licenses":[{"url":"https://github.com/moll/node-mitm/blob/master/LICENSE","type":"LAGPL"}],"repository":{"url":"git://github.com/moll/node-mitm.git","type":"git"},"_npmVersion":"2.0.2","description":"Intercept and mock outgoing network TCP connections and HTTP requests for testing. Intercepts and gives you a Net.Socket, Http.IncomingMessage and Http.ServerResponse to test and respond with. Useful when testing code that hits remote servers.","directories":{},"_nodeVersion":"0.11.14","dependencies":{"underscore":">= 1.1.5 < 1.6"},"devDependencies":{"co":">= 3.0.4 < 4","must":"< 1","mocha":">= 1.12.0 < 1.19","sinon":">= 1.9 < 2"}},"1.0.3":{"name":"mitm","version":"1.0.3","keywords":["http","https","intercept","interception","mock","network","socket","test","webmock"],"author":{"url":"http://themoll.com","name":"Andri Möll","email":"andri@dot.ee"},"_id":"mitm@1.0.3","maintainers":[{"name":"moll","email":"andri@dot.ee"}],"homepage":"https://github.com/moll/node-mitm","bugs":{"url":"https://github.com/moll/node-mitm/issues"},"dist":{"shasum":"a9040c4fe392f6ab6673bc8dfc63fb090fa69083","tarball":"https://registry.npmjs.org/mitm/-/mitm-1.0.3.tgz","integrity":"sha512-GlyuLY9rp0OJVsT33NuDYhCIphcEEGiXMTU3KlWrvSE2NAzwQiJgIxTSHeSsdn1t5CDigoLXEj6pNDSexfrL2g==","signatures":[{"sig":"MEUCIQDP4bVUWj5IE/WWH8o0HgBHfWA5tMU/OG8zNnY41ZoowQIgLGxOERWlcmJGQymNQJRpLnxa93FkPJY971Au5+6WRJM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"a9040c4fe392f6ab6673bc8dfc63fb090fa69083","engines":{"node":">= 0.10.24"},"gitHead":"d380b9423c8640c41e4b2214a2b10f3bd5d1bd66","scripts":{},"_npmUser":{"name":"moll","email":"andri@dot.ee"},"licenses":[{"url":"https://github.com/moll/node-mitm/blob/master/LICENSE","type":"LAGPL"}],"repository":{"url":"git://github.com/moll/node-mitm.git","type":"git"},"_npmVersion":"2.0.2","description":"Intercept and mock outgoing network TCP connections and HTTP requests for testing. Intercepts and gives you a Net.Socket, Http.IncomingMessage and Http.ServerResponse to test and respond with. Useful when testing code that hits remote servers.","directories":{},"_nodeVersion":"0.11.14","dependencies":{"underscore":">= 1.1.5 < 1.6"},"devDependencies":{"co":">= 3.0.4 < 4","must":"< 1","mocha":">= 1.12.0 < 1.19","sinon":">= 1.9 < 2"}},"1.1.0":{"name":"mitm","version":"1.1.0","keywords":["http","https","intercept","interception","mock","network","socket","tcp","test","webmock"],"author":{"url":"http://themoll.com","name":"Andri Möll","email":"andri@dot.ee"},"_id":"mitm@1.1.0","maintainers":[{"name":"moll","email":"andri@dot.ee"}],"homepage":"https://github.com/moll/node-mitm","bugs":{"url":"https://github.com/moll/node-mitm/issues"},"dist":{"shasum":"df3568a261d976c486e7c35518acf1b7976416df","tarball":"https://registry.npmjs.org/mitm/-/mitm-1.1.0.tgz","integrity":"sha512-rU5s3+o4cVn663CErAQFk5n46e8nYQySDPaSjE24XqZkhIPz/F8vUVA+wBfPFpOiSZ9rY2H0UpLyC9sMqscjTg==","signatures":[{"sig":"MEYCIQDQJFa+WMCO3hHPnGM74yzpPJHDnGopWPlwTAlBMsvVpgIhAKDrBDcoS3h4U+54fY9hb8O8bLYYmg4RfC0r0vxVva02","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"df3568a261d976c486e7c35518acf1b7976416df","engines":{"node":">= 0.10.24"},"gitHead":"7469b18f89c5d5f2016ef7b940323ad9c0ecea2b","scripts":{},"_npmUser":{"name":"moll","email":"andri@dot.ee"},"licenses":[{"url":"https://github.com/moll/node-mitm/blob/master/LICENSE","type":"LAGPL"}],"repository":{"url":"git://github.com/moll/node-mitm.git","type":"git"},"_npmVersion":"2.7.6","description":"Intercept and mock outgoing network TCP connections and HTTP requests for testing. Intercepts and gives you a Net.Socket, Http.IncomingMessage and Http.ServerResponse to test and respond with. Useful when testing code that hits remote servers.","directories":{},"_nodeVersion":"0.12.2","dependencies":{"underscore":">= 1.1.5 < 1.6"},"devDependencies":{"co":">= 3.0.4 < 4","must":"< 1","mocha":">= 1.12.0 < 1.19","sinon":">= 1.9 < 2"}},"1.2.0":{"name":"mitm","version":"1.2.0","keywords":["http","https","intercept","interception","mock","network","socket","tcp","test","webmock"],"author":{"url":"http://themoll.com","name":"Andri Möll","email":"andri@dot.ee"},"_id":"mitm@1.2.0","maintainers":[{"name":"moll","email":"andri@dot.ee"}],"homepage":"https://github.com/moll/node-mitm","bugs":{"url":"https://github.com/moll/node-mitm/issues"},"dist":{"shasum":"d998aee4cdb3fb24c9c373de6a174310bc220255","tarball":"https://registry.npmjs.org/mitm/-/mitm-1.2.0.tgz","integrity":"sha512-FHE5+TlDd6FdzymTbXZgS8QNK7dKOf08qci8iN5Nr+FgwDuVgRuEyK7D9D9ApqjJVp4zD8qizjZvqzfm6vAppQ==","signatures":[{"sig":"MEUCIQCCxZmhNGvxwAgpFE7Gkus82ypap7fSgsK8bFfCzpYfPQIgNr9fl721ZkUeCix7xMHfDJNSKRFweL1nKmm3UmYfmtU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"d998aee4cdb3fb24c9c373de6a174310bc220255","engines":{"node":">= 0.10.24"},"gitHead":"3e5dab1766f2fa0c48f65f0ebce6b4c7201bb40d","scripts":{},"_npmUser":{"name":"moll","email":"andri@dot.ee"},"licenses":[{"url":"https://github.com/moll/node-mitm/blob/master/LICENSE","type":"LAGPL"}],"repository":{"url":"git://github.com/moll/node-mitm.git","type":"git"},"_npmVersion":"2.12.1","description":"Intercept and mock outgoing network TCP connections and HTTP requests for testing. Intercepts and gives you a Net.Socket, Http.IncomingMessage and Http.ServerResponse to test and respond with. Useful when testing code that hits remote servers.","directories":{},"_nodeVersion":"0.12.7","dependencies":{"underscore":">= 1.1.6 < 1.6"},"devDependencies":{"must":"< 1","mocha":">= 1.12.0 < 1.19","sinon":">= 1.9 < 2"}},"1.2.1":{"name":"mitm","version":"1.2.1","keywords":["http","https","intercept","interception","mock","network","socket","tcp","test","webmock"],"author":{"url":"http://themoll.com","name":"Andri Möll","email":"andri@dot.ee"},"_id":"mitm@1.2.1","maintainers":[{"name":"moll","email":"andri@dot.ee"}],"homepage":"https://github.com/moll/node-mitm","bugs":{"url":"https://github.com/moll/node-mitm/issues"},"dist":{"shasum":"f932536a56a5491bd07d94b61424f9aa7b13347b","tarball":"https://registry.npmjs.org/mitm/-/mitm-1.2.1.tgz","integrity":"sha512-o0j6onCWjTUaO64jVw4M33LauplhpJVAh6PspDnDuu4xPkxBq0xDj8a1k84+CFCvOr3sBtysYC8q8KOhuYnoHA==","signatures":[{"sig":"MEQCICVzn18TFISq9rbL7KowqaYPtQfmcn+un3eEOfKc+AkDAiBeuPlVlWUNT9MqMNVJCjWqb9LsBd7aZNixQOaHB0PD7A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"f932536a56a5491bd07d94b61424f9aa7b13347b","engines":{"node":">= 0.10.24"},"gitHead":"6b98f76858edbb66246c5bac3e2a0914968addcc","scripts":{},"_npmUser":{"name":"moll","email":"andri@dot.ee"},"licenses":[{"url":"https://github.com/moll/node-mitm/blob/master/LICENSE","type":"LAGPL"}],"repository":{"url":"git://github.com/moll/node-mitm.git","type":"git"},"_npmVersion":"2.14.12","description":"Intercept and mock outgoing network TCP connections and HTTP requests for testing. Intercepts and gives you a Net.Socket, Http.IncomingMessage and Http.ServerResponse to test and respond with. Useful when testing code that hits remote servers.","directories":{},"_nodeVersion":"4.3.0","dependencies":{"underscore":">= 1.1.6 < 1.6"},"devDependencies":{"must":">= 0.13 < 0.14","mocha":">= 1.12.0 < 1.19","sinon":">= 1.9 < 2"},"_npmOperationalInternal":{"tmp":"tmp/mitm-1.2.1.tgz_1459352209711_0.24781360337510705","host":"packages-16-east.internal.npmjs.com"}},"1.3.0":{"name":"mitm","version":"1.3.0","keywords":["http","https","intercept","interception","mock","network","socket","tcp","test","webmock"],"author":{"url":"http://themoll.com","name":"Andri Möll","email":"andri@dot.ee"},"_id":"mitm@1.3.0","maintainers":[{"name":"moll","email":"andri@dot.ee"}],"homepage":"https://github.com/moll/node-mitm","bugs":{"url":"https://github.com/moll/node-mitm/issues"},"dist":{"shasum":"3023c3ecb2e931089fdc4e3188437d8cb76d2141","tarball":"https://registry.npmjs.org/mitm/-/mitm-1.3.0.tgz","integrity":"sha512-TueOR/483yKq8B+2+g2b6Zjz//UZGCIjIsylSdEk80I+yZIgNuODMHNRZbU8Shh4YE77FNHUbYOhnruHkIn8Nw==","signatures":[{"sig":"MEQCIFOxJKkj4muQh+Y1b6uP/asCBvOEkxzcJZVNXLvTAl3dAiBP314NfiL2wwNLMCuL6LgcMFW7oK28U6pna5cxVnceKg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"3023c3ecb2e931089fdc4e3188437d8cb76d2141","engines":{"node":">= 0.10.24"},"gitHead":"22cbd006680669e8aa89e147e89cf513615c62bb","scripts":{},"_npmUser":{"name":"moll","email":"andri@dot.ee"},"licenses":[{"url":"https://github.com/moll/node-mitm/blob/master/LICENSE","type":"LAGPL"}],"repository":{"url":"git://github.com/moll/node-mitm.git","type":"git"},"_npmVersion":"2.15.9","description":"Intercept and mock outgoing network TCP connections and HTTP requests for testing. Intercepts and gives you a Net.Socket, Http.IncomingMessage and Http.ServerResponse to test and respond with. Useful when testing code that hits remote servers.","directories":{},"_nodeVersion":"4.4.7","dependencies":{"underscore":">= 1.1.6 < 1.6"},"devDependencies":{"must":">= 0.13 < 0.14","mocha":">= 1.12.0 < 1.19","sinon":">= 1.9 < 2","semver":">= 5 < 6"},"_npmOperationalInternal":{"tmp":"tmp/mitm-1.3.0.tgz_1471420351392_0.33942379523068666","host":"packages-16-east.internal.npmjs.com"}},"1.3.1":{"name":"mitm","version":"1.3.1","keywords":["http","https","intercept","interception","mock","network","socket","tcp","test","webmock"],"author":{"url":"http://themoll.com","name":"Andri Möll","email":"andri@dot.ee"},"_id":"mitm@1.3.1","maintainers":[{"name":"moll","email":"andri@dot.ee"}],"homepage":"https://github.com/moll/node-mitm","bugs":{"url":"https://github.com/moll/node-mitm/issues"},"dist":{"shasum":"7d7dcf58bf9b963ffece1f0f482a9feeeaeab4cc","tarball":"https://registry.npmjs.org/mitm/-/mitm-1.3.1.tgz","integrity":"sha512-qfo6qAQ7KbjFy3+HisAxQeUQhuh+1/Q2TL6LcNEnPHayFNFoexhFWFZde3oXKWnNkyyjCvFJY3Xd/mpw8IGB4g==","signatures":[{"sig":"MEUCIQCO+fFP3XsWrtTIX7VSwLxDVJyKlzlZkqMD6dlHl/9FUQIgHzy+qjoK74wT2/rylZiCL2XyIQ0NrJZNRfD694HBUuA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"7d7dcf58bf9b963ffece1f0f482a9feeeaeab4cc","engines":{"node":">= 0.10.24"},"gitHead":"ad0c1d0bb2f6a24ce64ecdb92d34f93eeb8eb8b1","scripts":{},"_npmUser":{"name":"moll","email":"andri@dot.ee"},"licenses":[{"url":"https://github.com/moll/node-mitm/blob/master/LICENSE","type":"LAGPL"}],"repository":{"url":"git://github.com/moll/node-mitm.git","type":"git"},"_npmVersion":"2.15.9","description":"Intercept and mock outgoing network TCP connections and HTTP requests for testing. Intercepts and gives you a Net.Socket, Http.IncomingMessage and Http.ServerResponse to test and respond with. Useful when testing code that hits remote servers.","directories":{},"_nodeVersion":"0.12.7","dependencies":{"underscore":">= 1.1.6 < 1.6"},"devDependencies":{"must":">= 0.13 < 0.14","mocha":">= 1.12.0 < 1.19","sinon":">= 1.9 < 2","semver":">= 5 < 6"},"_npmOperationalInternal":{"tmp":"tmp/mitm-1.3.1.tgz_1473150611447_0.539919241098687","host":"packages-12-west.internal.npmjs.com"}},"1.3.2":{"name":"mitm","version":"1.3.2","keywords":["http","https","intercept","interception","mock","network","socket","tcp","test","webmock"],"author":{"url":"http://themoll.com","name":"Andri Möll","email":"andri@dot.ee"},"_id":"mitm@1.3.2","maintainers":[{"name":"moll","email":"andri@dot.ee"}],"homepage":"https://github.com/moll/node-mitm","bugs":{"url":"https://github.com/moll/node-mitm/issues"},"dist":{"shasum":"188d8620601a1569133d9e7085fcf011e799265d","tarball":"https://registry.npmjs.org/mitm/-/mitm-1.3.2.tgz","integrity":"sha512-ayi1U8xx2hjgf3/NpXkqoWh1kafLlqIFOptIwOmG/pkx/liYikggl6iS/6Fe1IyKxc8Joa7XBqaYyaiwX4sEOQ==","signatures":[{"sig":"MEQCIA19RV2aifcbemS1gbFPahW24UbezkEkYuCxZGsQ+441AiAFYAjNvoLGMXehWz1FBWDJ/CzQMJ1BakzWs3rQnCy94Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"188d8620601a1569133d9e7085fcf011e799265d","engines":{"node":">= 0.10.24"},"gitHead":"a31ebbfb26855381e91c91f3da50a876b919c587","scripts":{},"_npmUser":{"name":"moll","email":"andri@dot.ee"},"licenses":[{"url":"https://github.com/moll/node-mitm/blob/master/LICENSE","type":"LAGPL"}],"repository":{"url":"git://github.com/moll/node-mitm.git","type":"git"},"_npmVersion":"2.15.11","description":"Intercept and mock outgoing network TCP connections and HTTP requests for testing. Intercepts and gives you a Net.Socket, Http.IncomingMessage and Http.ServerResponse to test and respond with. Useful when testing code that hits remote servers.","directories":{},"_nodeVersion":"7.0.0","dependencies":{"underscore":">= 1.1.6 < 1.6"},"devDependencies":{"must":">= 0.13 < 0.14","mocha":">= 1.12.0 < 1.19","sinon":">= 1.9 < 2","semver":">= 5 < 6"},"_npmOperationalInternal":{"tmp":"tmp/mitm-1.3.2.tgz_1478818554729_0.8009076328016818","host":"packages-12-west.internal.npmjs.com"}},"1.3.3":{"name":"mitm","version":"1.3.3","keywords":["http","https","intercept","interception","mock","network","socket","tcp","test","webmock"],"author":{"url":"http://themoll.com","name":"Andri Möll","email":"andri@dot.ee"},"_id":"mitm@1.3.3","maintainers":[{"name":"moll","email":"andri@dot.ee"}],"homepage":"https://github.com/moll/node-mitm","bugs":{"url":"https://github.com/moll/node-mitm/issues"},"dist":{"shasum":"c15baa95cdd59af723c769bb55d4425f97adc79b","tarball":"https://registry.npmjs.org/mitm/-/mitm-1.3.3.tgz","integrity":"sha512-b2+h4QIvW0gS8xluuXhgG6JXQYjuoxXVpACudXewK4c+7giwigN4UJ2hhWKQUwaT+jh9mQA5HYNfJ6t89Tq/uA==","signatures":[{"sig":"MEQCIGKan4iB5U7U8DbPjtbnU5IyihlnZpV8tnaAnmJ4qKczAiA3M1hEtsbaT19wgJZBNaP3t2BtPsfM7bR8mywJv8fmrw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","engines":{"node":">= 0.10.24"},"gitHead":"5f6665b255beec0a7be7b244e359a666dc960278","scripts":{"test":"make test"},"_npmUser":{"name":"moll","email":"andri@dot.ee"},"licenses":[{"url":"https://github.com/moll/node-mitm/blob/master/LICENSE","type":"LAGPL"}],"repository":{"url":"git://github.com/moll/node-mitm.git","type":"git"},"_npmVersion":"5.3.0","description":"Intercept and mock outgoing network TCP connections and HTTP requests for testing. Intercepts and gives you a Net.Socket, Http.IncomingMessage and Http.ServerResponse to test and respond with. Useful when testing code that hits remote servers.","directories":{},"_nodeVersion":"8.5.0","dependencies":{"underscore":">= 1.1.6 < 1.6"},"devDependencies":{"must":">= 0.13 < 0.14","mocha":">= 1.12.0 < 1.19","sinon":">= 1.9 < 2","semver":">= 5 < 6"},"_npmOperationalInternal":{"tmp":"tmp/mitm-1.3.3.tgz_1505588662357_0.7288887714967132","host":"s3://npm-registry-packages"}},"1.4.0":{"name":"mitm","version":"1.4.0","keywords":["http","https","intercept","interception","mock","network","socket","tcp","test","webmock"],"author":{"url":"http://themoll.com","name":"Andri Möll","email":"andri@dot.ee"},"_id":"mitm@1.4.0","maintainers":[{"name":"moll","email":"andri@dot.ee"}],"homepage":"https://github.com/moll/node-mitm","bugs":{"url":"https://github.com/moll/node-mitm/issues"},"dist":{"shasum":"ebb257fc5dc23ebbc0ac171634e4f790178b6a5b","tarball":"https://registry.npmjs.org/mitm/-/mitm-1.4.0.tgz","fileCount":14,"integrity":"sha512-N9a4X2q4umBtST4QT0BgTxdTkep5etjExhHGxXVO2jGEUbQCoqFX/7qYJ5t7njWOTvtuO0kSCbh455sSF6ySmQ==","signatures":[{"sig":"MEUCICFlfWwwSY5hcSEy/HzDk9+Jy92sVqNNQ6gLppQLtThuAiEA9F2u7Fgrs4k3xge3HtpUAnoNN1KhafG1U94cg/OjoZg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":53835,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbn5uXCRA9TVsSAnZWagAAUOcQAJK7x1WTxSAplAaB4uDg\nfRJNgfp8b/Ba03p5ItSFJSLTJMKjTX//PuxxKsAjOl1YB2Ux3InrdSm6a/Uy\nRpbefvdKaQzt/wzRBhFCOFpl4F0Nt7zcRN4w7oYmxsTMwZIIyXZUFYBW5BQl\nRQICXX0S+xcOTqLab0IPJT6qIRa5HTyjqKWIXx5zyRBpPRhUaAD9tIu5HkxE\nsDny6RGU4TsVjTE/sWqVopQkjN0vfN/ueXUuQiEwS+NSTnRoYLLnHLFnmiul\nazbfOp+0uoMjGQyntGaFAl1eQEu8zYIkTHHrPe0d4NwcraSPyPPwRlhFSU/z\nuDBd3Tew779QWnhXmEEK0PA9AemAuAESXkZl5DMdIh/V2OOvb7UBqriThePO\nTtEhFUdKZshS6T5pnlFZ+jzrFhx+8eIBb/LGZ9MjmPqN87BqJXjr14Fga8Hh\n3s16GKTZon2oisifkRgIO4HMFx33hLUzVRxxIKAAmJobbL13gwajfeHkJkHb\nnZ3r+2K7Wbkn9sN1HgfOQS+pOHs93jihtahuBh01a2PEhE7D64dAK6LcXh/y\nA5z7wM0zxQuiqiJlZ9mcQVN41XcopxnccVREgDMaxmBVnOSyyEgKhzrOlUKo\nXrS86KIaZgZX6YbxsmSr5R4nbtjZlkLLciuzus8fLLY7u//d37SEWs+r3r8u\nnBFk\r\n=+036\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","_from":".","_shasum":"ebb257fc5dc23ebbc0ac171634e4f790178b6a5b","engines":{"node":">= 0.10.24"},"gitHead":"b0091796fea733fe4401b2d7f7833abf1850ac2b","scripts":{},"_npmUser":{"name":"moll","email":"andri@dot.ee"},"licenses":[{"url":"https://github.com/moll/node-mitm/blob/master/LICENSE","type":"LAGPL"}],"repository":{"url":"git://github.com/moll/node-mitm.git","type":"git"},"_npmVersion":"2.15.12","description":"Intercept and mock outgoing network TCP connections and HTTP requests for testing. Intercepts and gives you a Net.Socket, Http.IncomingMessage and Http.ServerResponse to test and respond with. Useful when testing code that hits remote servers.","directories":{},"_nodeVersion":"6.14.4","dependencies":{"semver":">= 5 < 6","underscore":">= 1.1.6 < 1.6"},"_hasShrinkwrap":false,"devDependencies":{"must":">= 0.13 < 0.14","mocha":">= 1.12.0 < 3","sinon":">= 1.9 < 2"},"_npmOperationalInternal":{"tmp":"tmp/mitm_1.4.0_1537186711214_0.9235329670106383","host":"s3://npm-registry-packages"}},"1.5.0":{"name":"mitm","version":"1.5.0","keywords":["http","https","intercept","interception","mock","network","socket","tcp","test","webmock"],"author":{"url":"http://themoll.com","name":"Andri Möll","email":"andri@dot.ee"},"_id":"mitm@1.5.0","maintainers":[{"name":"moll","email":"andri@dot.ee"}],"homepage":"https://github.com/moll/node-mitm","bugs":{"url":"https://github.com/moll/node-mitm/issues"},"dist":{"shasum":"5bb54c49df0199591e45066ee52e86d85e09d5e8","tarball":"https://registry.npmjs.org/mitm/-/mitm-1.5.0.tgz","fileCount":14,"integrity":"sha512-XVo3zTSYjZp/JI2TnURBDNHcFCi5GGLGMeBqgBrwShQgIZnp0WIn3AjCE8fE60iLeNWIhgDHqzyDhXkZ0z86qQ==","signatures":[{"sig":"MEYCIQD9rKGiTb47bCFZm1f/npZUT0p8CYEOW1cA26hSklMxXwIhAO4KMZLBAN36yfz4cbFG1wAXVsAlXyiYONPkeB2aP+/u","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":54835,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcAEJkCRA9TVsSAnZWagAA6jwP/31uqesAstJJwgJh1Inf\nsa3iFauP5PR5MlJnL8MjgvxOPXWdCTV1ocGCnb1/pFBYKOUi+oOkttCreJ1I\nqv1wwLFyqLCuY1UyH8nwoodxf6hs39WM7Fio4wFZX00mbhgUHXHSw+05wJOZ\nvURw+Ia2AxBeTY1f81HQgbg7nN4nYR61ikXptTRo4ZK/dmtMMfZXxGr4eeqa\n8elRZGHSBRvVyBnuS/PPY8g4AFiZdtV4cV8LdOnbcCyvN2ms9YxUJ7IPMcZ8\nZdzXmrRbSmEL3ia3rzKy7r/1yEx1HzjB+IbQHgadWEnJbx5c1X0yR03uwFL5\neXvT5sNVXDs2EveGdLsShBonI7PDp1UbyPQy5uZRSBB7irsGz2g2nK5sqG6t\nGXO8RwNrUMmCcsZAcli17OFieBn1N+kk40TTUDr+XFZjh0hB2Nt79VteFmnO\nTXAUqdG1Cpn2e4ENORvc+n+rfktEDROE9EmDKqbYPd3dA8Kquj+eTcAAMC8p\nWNi3pgwNwt2SoiFVSfOZWas6rq75eDQWAqprXP9pRul3IWgbIuCzVy+UvBE+\nsB6Az4KyzZHolh8I/nq4RL5yINslGw4pwCzsJJBAbU255envyMDNrBfQdwmF\naqNzUBlRtVL74WZU+CR+Kjx8ET1pUayfnUt+eocRNkK3LH6Gvpl91lhY1Std\nKRJa\r\n=XP6z\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","_from":".","_shasum":"5bb54c49df0199591e45066ee52e86d85e09d5e8","engines":{"node":">= 0.10.24"},"gitHead":"99710eda28a26cd966caa0c06545a83d00cce91d","scripts":{},"_npmUser":{"name":"moll","email":"andri@dot.ee"},"licenses":[{"url":"https://github.com/moll/node-mitm/blob/master/LICENSE","type":"LAGPL"}],"repository":{"url":"git://github.com/moll/node-mitm.git","type":"git"},"_npmVersion":"2.15.12","description":"Intercept and mock outgoing network TCP connections and HTTP requests for testing. Intercepts and gives you a Net.Socket, Http.IncomingMessage and Http.ServerResponse to test and respond with. Useful when testing code that hits remote servers.","directories":{},"_nodeVersion":"11.2.0","dependencies":{"semver":">= 5 < 6","underscore":">= 1.1.6 < 1.6"},"_hasShrinkwrap":false,"devDependencies":{"must":">= 0.13 < 0.14","mocha":">= 1.12.0 < 3","sinon":">= 1.9 < 2"},"_npmOperationalInternal":{"tmp":"tmp/mitm_1.5.0_1543520867948_0.8042742370733815","host":"s3://npm-registry-packages"}},"1.6.0":{"name":"mitm","version":"1.6.0","keywords":["http","https","intercept","interception","mock","network","socket","tcp","test","webmock"],"author":{"url":"http://themoll.com","name":"Andri Möll","email":"andri@dot.ee"},"_id":"mitm@1.6.0","maintainers":[{"name":"moll","email":"andri@dot.ee"}],"homepage":"https://github.com/moll/node-mitm","bugs":{"url":"https://github.com/moll/node-mitm/issues"},"dist":{"shasum":"251dcbfb84fb6f83835ca68d0e9dc977c1b9e181","tarball":"https://registry.npmjs.org/mitm/-/mitm-1.6.0.tgz","fileCount":14,"integrity":"sha512-7PaEwxKAGKLIdE9GYmoWtZOlWGhajE/Z2tvaFGnRWbmk4wsbYdmWqckGPBtUqCKXkhdv492TDCiQ1z5geU6/OQ==","signatures":[{"sig":"MEYCIQDstYPwqeS9AhzLKp7nnvn2FkgkAN/4mFlE/P7ocDftIAIhAPpXuK1lZocsYGCO26UH5HJm5oy2qT+PSFp4VJn8xp4T","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":55076,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcTHfRCRA9TVsSAnZWagAAmRMP/R7yP+by3og4yIvOm06o\na9SnLbzl+ViNFlBmqqJsT/HcxsP4O3UCdpC4Xjh4Gm9Mm8xc1E7K8/rPPYP1\n+NkuGp3OMWWisIIoo+dp/YuEjwLWNlGis3tWFsufsXsBMw0ouvrtUKUBmdKz\nyzMg6zvH4rL+U9WD7JSXrL52it7ZZcah13EWKGVU1sWjPV3NC4jmyNdSPqyT\nnRQrutv14gizAUIJER7ZOXZNNXAMnaUPhiVvZSlpgEiZF3dopuBCNQLD6nsL\npmzK/23ocD23nVaJEsNg4f8Sh1Bu/f/I7NmHT2S4hju1DhVwIY6IFa/uN8mc\ndZl82H1iZAlXiqvUsIBujUBX6OeqF0fxcT38oa9YfiLGJWyP6e0DKlS5cy6y\nu/MvXBZxdi5vmSljiZLFYOFHZFexYHNstGJRzYETZAN0AfF/EtwYE+kHYTtH\nDft+3ZPSDpiHDIYAbVqSpPisTKzPjKYMa8JttjO8nAEoSHHAbMAkslgMxkns\nryrroSnmJK+IdWUUF9qAj7j5+Vg0RY/NPEqx15qt3pZfld7iChWwiL9fuEQO\ny/X+NWcz5gGfqYrsEkjJvy1crIJ2oAQcWxBCzS4rBl/a66ZAD1fuApqA+o6U\nJClEwsGtdcJwICDS2znFu5gL9vNmGnXBgPUKHtqpvRRkczNZwV2y8tl+KtqJ\nqdLS\r\n=8tvJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","_from":".","_shasum":"251dcbfb84fb6f83835ca68d0e9dc977c1b9e181","engines":{"node":">= 0.10.24"},"gitHead":"440d5348f0071341dc0db38075693ec11cc72f63","scripts":{},"_npmUser":{"name":"moll","email":"andri@dot.ee"},"licenses":[{"url":"https://github.com/moll/node-mitm/blob/master/LICENSE","type":"LAGPL"}],"repository":{"url":"git://github.com/moll/node-mitm.git","type":"git"},"_npmVersion":"2.15.12","description":"Intercept and mock outgoing network TCP connections and HTTP requests for testing. Intercepts and gives you a Net.Socket, Http.IncomingMessage and Http.ServerResponse to test and respond with. Useful when testing code that hits remote servers.","directories":{},"_nodeVersion":"6.16.0","dependencies":{"semver":">= 5 < 6","underscore":">= 1.1.6 < 1.6"},"_hasShrinkwrap":false,"devDependencies":{"must":">= 0.13 < 0.14","mocha":">= 1.12.0 < 3","sinon":">= 1.9 < 2"},"_npmOperationalInternal":{"tmp":"tmp/mitm_1.6.0_1548515281417_0.7053228875642603","host":"s3://npm-registry-packages"}},"1.7.0":{"name":"mitm","version":"1.7.0","keywords":["http","https","intercept","interception","mock","network","socket","tcp","test","webmock"],"author":{"url":"http://themoll.com","name":"Andri Möll","email":"andri@dot.ee"},"_id":"mitm@1.7.0","maintainers":[{"name":"moll","email":"andri@dot.ee"}],"homepage":"https://github.com/moll/node-mitm","bugs":{"url":"https://github.com/moll/node-mitm/issues"},"dist":{"shasum":"da03b8448090168bc68bcd847c6e014fde320829","tarball":"https://registry.npmjs.org/mitm/-/mitm-1.7.0.tgz","fileCount":14,"integrity":"sha512-O6EjnhSf7dDq+pveB5WlRbaz34cZgQuRfey7RonqsD2QB//eVXniYnH5u8QMB6bG7BUIJofL7UPaopE3iYkKlA==","signatures":[{"sig":"MEUCIFEV9d+/oYSnUSh7Pfj5doTQnTjkoc7AVaLRStAZQUEkAiEAza89CgUBWNiPaA8jyCWmior98Z3bvTEAJHW7gUC5/oc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":55347,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcUd+OCRA9TVsSAnZWagAAdXgP/3W5S/RZE9cqqZlI2XeR\nc14xr+rtyNYWUvUz0p28vAA6/T8eIBCPUS4AdljxgkG+j3LLLUN3p6Ks36bB\nzBCxdHBzXXghfwzIwh/u9/IGsGQ8S5Xf0mrFVX4s6cIb5s9gDEtNFrBQcRK0\nxSR5wYwy50qyJpZGgAomjh3gzfqaNxlTfGMT0YT0YD6xCAzyi8TuuhsQl+qy\n4lQMJFze41miWdpCro/86R7aBkbSYPoId/gTiBM8+56ExoqhWH/qaVGuwikT\n3hi4uQjkLkoJimr3MJ7V1oUO3Rmlz8goREl5Gin0wynZbF30GN29emuUTMkM\nNouBm+IkCVlHjKUIWSCP0V6zsi1pIDt6wpkFgKBsOCP0VwIHPUzK3ECiCDwc\nzzRH9aXCpPBUacvhc4UdVuAOkzwKOd6n/asAsIFPlxW15UOjf40Zy1F4O3Uw\nf1Jf/au8QQcv06+m9nkbuDpM/4xy/L2NUWLxLQxoSOXIJOY1CQBcSs62w4ax\njxo/guDLT00KikDCFK9vOnq6GZK9zuXbKjOKHMKs2xCrgbgqR0vYHnm10WSP\nrK8dNewUd8PbARtvyrdIevYBGLb9pxmr2VxP/Xnx9wm7bTnETVBr6+YaNNaH\n7o6XFTDG9TV83O2uzYrI59R2yna7FhazNmFz/aGWeMO7mpsM5qNcm4rYf7B0\nBwfO\r\n=d3oR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","_from":".","_shasum":"da03b8448090168bc68bcd847c6e014fde320829","engines":{"node":">= 0.10.24"},"gitHead":"159e1c99618a77be085bcfea939f12eed08260d1","scripts":{},"_npmUser":{"name":"moll","email":"andri@dot.ee"},"licenses":[{"url":"https://github.com/moll/node-mitm/blob/master/LICENSE","type":"LAGPL"}],"repository":{"url":"git://github.com/moll/node-mitm.git","type":"git"},"_npmVersion":"2.15.12","description":"Intercept and mock outgoing network TCP connections and HTTP requests for testing. Intercepts and gives you a Net.Socket, Http.IncomingMessage and Http.ServerResponse to test and respond with. Useful when testing code that hits remote servers.","directories":{},"_nodeVersion":"6.16.0","dependencies":{"semver":">= 5 < 6","underscore":">= 1.1.6 < 1.6"},"_hasShrinkwrap":false,"devDependencies":{"must":">= 0.13 < 0.14","mocha":">= 1.12.0 < 3","sinon":">= 1.9 < 2"},"_npmOperationalInternal":{"tmp":"tmp/mitm_1.7.0_1548869517607_0.827154775850867","host":"s3://npm-registry-packages"}},"1.7.1":{"name":"mitm","version":"1.7.1","keywords":["http","https","intercept","interception","mock","network","socket","tcp","test","webmock"],"author":{"url":"http://themoll.com","name":"Andri Möll","email":"andri@dot.ee"},"_id":"mitm@1.7.1","maintainers":[{"name":"moll","email":"andri@dot.ee"}],"homepage":"https://github.com/moll/node-mitm","bugs":{"url":"https://github.com/moll/node-mitm/issues"},"dist":{"shasum":"f79771d4992734f6b77ee45d1bffa1bb218e28a9","tarball":"https://registry.npmjs.org/mitm/-/mitm-1.7.1.tgz","fileCount":14,"integrity":"sha512-SX2qv5zz+MxjcgLxbByE+iZachquhDg9xlIuNd22L3h7auFEKS9DaBUTiKv+REx+ZOK//Fmk0S8MaPlXAEYfOg==","signatures":[{"sig":"MEYCIQDDS/XYLKPzuowHs3y/+RTPqSUj5vjza4Nv1ivbig24fwIhAKCTCUBSy/310W9XPbgYAFncj0V5Boqs472eOjiKrmGY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57519,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe5N2sCRA9TVsSAnZWagAAXL0QAJniUM4NpItZfPM+CWMY\nCelVAksdnZXvCCXdR3AjCjDqHLbQXs7bZunWfZEeklB1vP5DLE5ijDS+X+c1\n8XODLXpFwVUZKj5GeacEmP0qvnkd5bdaHb7flGjLnxxpvtyjSMFdPWO9mP9d\nVoTYWMcY7g2UTwujH4X2BRwn0ML4nHxTZvX2cKn5dbiRm7vZ+W+UCTTrrdo+\nsrMBQ8tSYoiCQl3K0Q7iq218ZD359ytlybo1kqSfxpPMxWNzXi2/xLMTdMps\nyiKo+s5udkTbkccxEN5/uh8AbWj/n/sCEmzo+MYeEHN0ZVYfitNwArN9Bvqe\nCkmLGMu9zF81N/h7XwXzsPIYBt9qdna4CtW4tBHGj64mDnqJ+/63B93hALXl\nxWBXbBe6cdlww1AzFpRBe858VBGjnLCB64Fhkv2jmTmGNGOcd80OFkcHL4hw\nqacZ10UG+TwefhjmVKfqSg3+AZ1nvk0DOg72c3GHrJtcrVBxfXO/vhWpWIL6\ny++Y525vAulMIb+nACnnCg5rmWK7TJ3HEL3grhOOZprNHTJLK2XT3UYDy+nM\nKOAAgFAYxjOP1+jdaN/9PShI5qTI9InaHTXmW4CFmDt0XA1OtA+TJCW58VDO\n3YmZtoxA8SQKsfl+g37dH4o3cJCfwniNtJTpIrEu/buTrhlEWB6b8qH6yGd9\nnPhu\r\n=TR0c\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","_from":".","_shasum":"f79771d4992734f6b77ee45d1bffa1bb218e28a9","engines":{"node":">= 0.10.24"},"gitHead":"64c5b81707d5ad86821839880d96009c2449099a","scripts":{},"_npmUser":{"name":"moll","email":"andri@dot.ee"},"licenses":[{"url":"https://github.com/moll/node-mitm/blob/master/LICENSE","type":"LAGPL"}],"repository":{"url":"git://github.com/moll/node-mitm.git","type":"git"},"_npmVersion":"2.15.12","description":"Intercept and mock outgoing network TCP connections and HTTP requests for testing. Intercepts and gives you a Net.Socket, Http.IncomingMessage and Http.ServerResponse to test and respond with. Useful when testing code that hits remote servers.","directories":{},"_nodeVersion":"6.17.1","dependencies":{"semver":">= 5 < 6","underscore":">= 1.1.6 < 1.6"},"_hasShrinkwrap":false,"devDependencies":{"must":">= 0.13 < 0.14","mocha":">= 1.12.0 < 3","sinon":">= 1.9 < 2"},"_npmOperationalInternal":{"tmp":"tmp/mitm_1.7.1_1592057260232_0.007001511105884095","host":"s3://npm-registry-packages"}},"1.7.2":{"name":"mitm","version":"1.7.2","keywords":["http","https","intercept","interception","mock","network","socket","tcp","test","webmock"],"author":{"url":"http://themoll.com","name":"Andri Möll","email":"andri@dot.ee"},"_id":"mitm@1.7.2","maintainers":[{"name":"moll","email":"andri@dot.ee"}],"homepage":"https://github.com/moll/node-mitm","bugs":{"url":"https://github.com/moll/node-mitm/issues"},"dist":{"shasum":"d079c44c763a333b15a0f7bfd02446fb8dbbe8e8","tarball":"https://registry.npmjs.org/mitm/-/mitm-1.7.2.tgz","fileCount":14,"integrity":"sha512-SuiJbc5xisP/iUYvsKAvrvPeoyJQbYI3WOfnp8A7XHDn4wkdtmGZe2ZTFXIo3K1of05oxUiaJIK+GoAU5KgFOw==","signatures":[{"sig":"MEYCIQDzaYhZ1RoOs7LMiQ8PYXZg77qnzSasXZDngCu1S9QEBgIhAOeGHw9lTlfhM7iMKifJzZdaSf/pJPf0oBs+rkbRUZDa","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57727,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgjYgNCRA9TVsSAnZWagAArVIP/AwqcJDBHYTDEjai2iJn\n2yx3FqaGgDQPewZ8Pg00O0askwXFWFmt90w87Y0woHY9lErd+CU6G5ymdogK\n5E4thunZCJ1I2QuFIoSazeEd9wkP2cz0A5ocdZG/JWvW/ubvt/S7YaNszrL4\n4cKXAwQ8rYbMvSzZeVVyoIyzHYd6gCrmg3zDkhulje6neM/IfCQxyIDt+E7T\nj9L1X7PIyZ4IZUEiwpMpku6eOxZl/O8mCSz+0u0CuQ1esZzXYhMb4E9zElw/\nKXrPp/exgMNcCkP7AvxoWcAFjUDkGJmEU5TIYifIdCWk17ulCu/wi0ujwbS3\nZjz/zWYLmSWLgnmqpaSU9YkQsyYynmDUwnB5VTvq6xutWm/M0o2eXZiwxKBX\nAzbTGNhE5bN6Ks52KmiMn4yDVNpBV3FOMVrxu0T4AzdwbTk423r4t0TByLAx\nweuGzPp1KdgcMaeIY6WoQ0dPGUEx1fj5mb7XRQy1GPhVRkA8+u5Y49327S0N\ncGqNmU1hjX3rkOvEpiN+oU26XVzY+VBNrmCrXN9/G5xBuoPEwn2kAkhMFZBe\npSxivctbhX9sBvHOtk1agEC+cZn7uFS93K7ROQxwThnfir13DFVJu2mb36dm\nUc9U3DYJQvnoenuiQ03Pv3s+/HNxwsA/DxNQCaTt+Q+gJQeAvoW0kSWvIw+c\nPzkc\r\n=VQEW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","_from":".","_shasum":"d079c44c763a333b15a0f7bfd02446fb8dbbe8e8","engines":{"node":">= 0.10.24"},"gitHead":"73dcbfe80dabc3cf2195e8f03a71671d109a74df","scripts":{},"_npmUser":{"name":"moll","email":"andri@dot.ee"},"licenses":[{"url":"https://github.com/moll/node-mitm/blob/master/LICENSE","type":"LAGPL"}],"repository":{"url":"git://github.com/moll/node-mitm.git","type":"git"},"_npmVersion":"2.15.12","description":"Intercept and mock outgoing network TCP connections and HTTP requests for testing. Intercepts and gives you a Net.Socket, Http.IncomingMessage and Http.ServerResponse to test and respond with. Useful when testing code that hits remote servers.","directories":{},"_nodeVersion":"6.17.1","dependencies":{"semver":">= 5 < 6","underscore":">= 1.1.6 < 1.14"},"_hasShrinkwrap":false,"devDependencies":{"must":">= 0.13 < 0.14","mocha":">= 1.12.0 < 3","sinon":">= 1.9 < 2"},"_npmOperationalInternal":{"tmp":"tmp/mitm_1.7.2_1619888141152_0.9807242064161783","host":"s3://npm-registry-packages"}},"1.7.3":{"name":"mitm","version":"1.7.3","description":"Intercept and mock outgoing network TCP connections and HTTP requests for testing. Intercepts and gives you a Net.Socket, Http.IncomingMessage and Http.ServerResponse to test and respond with. Useful when testing code that hits remote servers.","keywords":["http","https","intercept","interception","mock","network","socket","tcp","test","webmock"],"homepage":"https://github.com/moll/node-mitm","bugs":{"url":"https://github.com/moll/node-mitm/issues"},"author":{"name":"Andri Möll","email":"andri@dot.ee","url":"http://themoll.com"},"repository":{"type":"git","url":"git://github.com/moll/node-mitm.git"},"license":"AGPL-3.0-or-later WITH GPL-3.0-linking-exception","main":"index.js","scripts":{"test":"make test"},"dependencies":{"semver":">= 5 < 6"},"devDependencies":{"mocha":">= 1.12.0 < 3","must":">= 0.13 < 0.14","sinon":">= 1.9 < 2","underscore":">= 1.1.6 < 1.14"},"engines":{"node":">= 0.10.24"},"gitHead":"0409f0bc656ed2e63cdfe48df3a650e357d490ed","_id":"mitm@1.7.3","_nodeVersion":"8.17.0","_npmVersion":"6.13.4","_npmUser":{"name":"moll","email":"andri@dot.ee"},"dist":{"integrity":"sha512-linie/mGisDH73C7aiW6JmstA5XskXd15JBJAEeNQBdH3/L0dJdE/yZ+rw/y2zT7Fcib5KAnL5OvxYOOFQbsgw==","shasum":"07692631f86cc485bca2be51d973440d178ca4de","tarball":"https://registry.npmjs.org/mitm/-/mitm-1.7.3.tgz","fileCount":13,"unpackedSize":58710,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVWWioTKlcIv5/Nnk2Gu/NEb30a3LTl5BoCPriA9rwfwIhALWsxysH4THIu/H2u4NPi+whWKUKGMsJHbfcO1OyuiwW"}]},"directories":{},"maintainers":[{"name":"moll","email":"andri@dot.ee"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mitm_1.7.3_1724649322028_0.6502119611426704"},"_hasShrinkwrap":false}},"time":{"created":"2014-05-04T20:21:54.922Z","modified":"2024-08-26T05:15:22.399Z","0.4.0":"2014-05-04T20:21:54.922Z","0.4.1":"2014-05-04T20:35:50.341Z","0.5.0":"2014-05-19T22:48:04.847Z","0.5.1":"2014-05-28T07:35:46.953Z","1.0.0":"2014-09-29T17:57:45.163Z","1.0.1":"2014-11-23T12:01:14.486Z","1.0.2":"2014-11-23T12:40:07.315Z","1.0.3":"2015-01-26T12:22:55.867Z","1.1.0":"2015-04-25T22:47:27.938Z","1.2.0":"2015-09-01T11:54:10.259Z","1.2.1":"2016-03-30T15:36:50.707Z","1.3.0":"2016-08-17T07:52:34.253Z","1.3.1":"2016-09-06T08:30:13.451Z","1.3.2":"2016-11-10T22:55:56.720Z","1.3.3":"2017-09-16T19:04:23.356Z","1.4.0":"2018-09-17T12:18:31.396Z","1.5.0":"2018-11-29T19:47:48.023Z","1.6.0":"2019-01-26T15:08:01.533Z","1.7.0":"2019-01-30T17:31:57.755Z","1.7.1":"2020-06-13T14:07:40.359Z","1.7.2":"2021-05-01T16:55:41.285Z","1.7.3":"2024-08-26T05:15:22.252Z"},"bugs":{"url":"https://github.com/moll/node-mitm/issues"},"author":{"name":"Andri Möll","email":"andri@dot.ee","url":"http://themoll.com"},"homepage":"https://github.com/moll/node-mitm","keywords":["http","https","intercept","interception","mock","network","socket","tcp","test","webmock"],"repository":{"type":"git","url":"git://github.com/moll/node-mitm.git"},"description":"Intercept and mock outgoing network TCP connections and HTTP requests for testing. Intercepts and gives you a Net.Socket, Http.IncomingMessage and Http.ServerResponse to test and respond with. Useful when testing code that hits remote servers.","maintainers":[{"name":"moll","email":"andri@dot.ee"}],"readme":"Mitm.js\n=======\n[![NPM version][npm-badge]](https://www.npmjs.com/package/mitm)\n[![Build status][build-badge]](https://github.com/moll/node-mitm/actions/workflows/node.yaml)\n\nMitm.js is a library for Node.js (and Io.js) to **intercept and mock** outgoing\nnetwork **TCP** and **HTTP** connections.  Mitm.js intercepts and gives you\na `Net.Socket` to communicate as if you were the remote server. For **HTTP\nrequests** it even gives you `Http.IncomingMessage` and `Http.ServerResponse`\n— just like you're used to when writing Node.js servers.  Except there's no\nactual server running, it's all just _In-Process Interception™_.\n\nIntercepting connections and requests is **extremely useful to test and ensure\nyour code does what you expect**. Assert on request parameters and send back\nvarious responses to your code without ever having to hit the real network.\n**Fast as hell** and **a lot easier to develop with than external test\nservers**.\n\nMitm.js works on all Node versions: ancient **v0.10**, **v0.11** and **v0.12** versions, previous and current LTS versions like **v4** to **v12** and the newest **v22** and beyond. For all it has **automated tests** to ensure it will stay that way.\n\nI've developed Mitm.js on a need-to basis for testing [Monday\nCalendar][monday]'s syncing, so if you find a use-case I haven't come across,\nplease fling me an [email][email], a [tweet][twitter] or [create an\nissue][issues] on GitHub.\n\n[npm-badge]: https://img.shields.io/npm/v/mitm.svg\n[build-badge]: https://github.com/moll/js-j6pack/actions/workflows/node.yaml/badge.svg\n\n### Tour\n- Intercept both **TCP socket connections** (`Net.connect`) and **HTTP\n  requests** (`Http.request` and `Https.request`).  \n\n- Hooks to Node.js's network functions at a **very low level** with the goal of\n  not having to patch existing classes and have everything behave as if bytes\n  were arriving from the network.\n\n- Does *not* have any kitchen sink features or yet another API to assert on\n  intercepted connections.  \n  That's a different responsibility handled better by assertion libraries\n  (you'll do no better than to pick [Must.js][must] for that ;-).\n\n- Use an **API you already know** to assert or respond to requests — Mitm.js\n  gives you access to a vanilla `Net.Socket` to respond with:\n\n  ```javascript\n  mitm.on(\"connection\", function(socket) { socket.write(\"Hello back!\") })\n\n  var socket = Net.connect(22, \"example.org\")\n  socket.write(\"Hello!\")\n  socket.setEncoding(\"utf8\")\n  socket.on(\"data\", console.log) // => \"Hello back!\"\n  ```\n\n- When you do **HTTP or HTTPS** requests, Mitm.js gives you both\n  a `Http.IncomingMessage` and `Http.ServerResponse` to play the server with.\n  That means you'll be using an **API you're already familiar with**\n  rather than yet another idiosyncratic domain specific language.\n\n  Mitm.js comes very handy to ensure your code makes requests with the\n  appropriate parameters:\n  ```javascript\n  mitm.on(\"request\", function(req, res) {\n    req.headers.authorization.must.equal(\"OAuth DEADBEEF\")\n  })\n\n  Http.get(\"http://example.org\")\n  ```\n\n  It's also useful to see if your code behaves as you'd expect if everything is\n  not `200 OK`:\n  ```javascript\n  mitm.on(\"request\", function(req, res) {\n    res.statusCode = 402\n    res.end(\"Pay up, sugar!\")\n  })\n\n  Http.get(\"http://example.org\", function(res) {\n    res.setEncoding(\"utf8\")\n    res.statusCode // => 402\n    res.on(\"data\", console.log) // => \"Pay up, sugar!\"\n  })\n  ```\n\n  `Http.IncomingMessage` and `Http.ServerResponse` are the same objects\n  you get when you write Node.js HTTP servers with `Net.Server` or use a library\n  like [Express.js][express].\n\n- **Bypass** interception selectively for some connections (such as your SQL\n  server) and let them connect as usual.\n  ```javascript\n  mitm.on(\"connect\", function(socket, opts) {\n    if (opts.host == \"sql.example.org\" && opts.port == 5432) socket.bypass()\n  })\n  ```\n\n- **Developed with automated tests**. Yeah, I know, why should one list this\n  a feature when writing tests is just a sign of professionalism and respect\n  towards other developers? But in a world where so many libraries and\n  \"production\" software are released without *any* tests, I like to point out\n  that I even write tests for testing libraries. ;-)\n\n[must]: https://github.com/moll/js-must\n[express]: http://expressjs.com\n\n\nInstalling\n----------\n```\nnpm install mitm\n```\n\nFrom v1.0.0 Mitm.js will follow [semantic versioning][semver], but until then,\nbreaking changes may appear between minor versions (the middle number).\n\n[semver]: http://semver.org/\n\n\nUsing\n-----\nRequire Mitm.js and invoke it as a function to both create an instance of `Mitm`\nand enable intercepting:\n```javascript\nvar Mitm = require(\"mitm\")\nvar mitm = Mitm()\n```\n\nMitm.js will then intercept all requests until you disable it:\n```javascript\nmitm.disable()\n```\n\n### Intercepting in tests\nIn tests, it's best to use the _before_ and _after_ hooks to enable and disable\nintercepting for each test case:\n```javascript\nbeforeEach(function() { this.mitm = Mitm() })\nafterEach(function() { this.mitm.disable() })\n```\n\n### Intercepting TCP connections\nAfter you've called `Mitm()`, Mitm.js will intercept and emit `connection` on\nitself for each new connection.  \nThe `connection` event will be given a server side `Net.Socket` for you to reply\nwith:\n\n```javascript\nmitm.on(\"connection\", function(socket) { socket.write(\"Hello back!\") })\n\nvar socket = Net.connect(22, \"example.org\")\nsocket.write(\"Hello!\")\nsocket.setEncoding(\"utf8\")\nsocket.on(\"data\", console.log) // => \"Hello back!\"\n```\n\n### Intercepting HTTP/HTTPS requests\nAfter you've called `Mitm()`, Mitm.js will intercept and emit `request` on itself for each new HTTP or HTTPS request.  \nThe `request` event will be given a server side `Http.IncomingMessage` and\n`Http.ServerResponse`.\n\nFor example, asserting on HTTP requests would look something like this:\n```javascript\nmitm.on(\"request\", function(req, res) {\n  req.headers.authorization.must.equal(\"OAuth DEADBEEF\")\n})\n\nHttp.get(\"http://example.org\")\n```\n\nResponding to requests is just as easy and exactly like you're used to from\nusing Node.js HTTP servers (or from libraries like [Express.js][express]):\n```javascript\nmitm.on(\"request\", function(req, res) {\n  res.statusCode = 402\n  res.end(\"Pay up, sugar!\")\n})\n\nHttp.get(\"http://example.org\", function(res) {\n  res.statusCode // => 402\n  res.setEncoding(\"utf8\")\n  res.on(\"data\", console.log) // => \"Pay up, sugar!\"\n})\n```\n\nPlease note that HTTPS requests are currently \"morphed\" into HTTP requests.\nThat's to save us from having to set up certificates and disable their\nverification. But if you do need to test this, please ping me and we'll see if\nwe can get Mitm.js to support that.\n\n#### Custom HTTP Methods\nUnfortunately because [Node.js's web server doesn't seem to support custom HTTP methods](https://github.com/nodejs/node-v0.x-archive/issues/3192) (that is, ones beyond `require(\"http\").METHODS`), Mitm.js doesn't support them out of the box either. The Node.js HTTP parser throws an error given a request with an unsupported method. However, as Mitm.js also supports intercepting at the TCP level, you could hook in your own HTTP parser. I've briefly alluded to it in [issue #63](https://github.com/moll/node-mitm/issues/63).\n\n### Bypassing interception\nYou can bypass connections listening to the `connect` event on the Mitm instance\nand then calling `bypass` on the given socket. To help you do\nso selectively, `connect` is given the `options` object that was given to\n`Net.connect`:\n\n```javascript\nmitm.on(\"connect\", function(socket, opts) {\n  if (opts.host == \"sql.example.org\" && opts.port == 5432) socket.bypass()\n})\n```\n\nBypassed connections do **not** emit `connection` or `request` events. They're\nignored by Mitm.js.\n\nIn most cases you don't need to bypass because by the time you call `Mitm` in\nyour tests to start intercepting, all of the long-running connections, such as\ndatabase or cache connections, are already made.\n\nYou might need to bypass connections you make to *localhost* when you're running\nintegration tests against the HTTP server you started in the test process, but\nstill want to intercept some other connections that this request might invoke.  \nThe following should suffice:\n\n```javascript\nmitm.on(\"connect\", function(socket, opts) {\n  if (opts.host == \"localhost\") socket.bypass()\n})\n```\n\n\nEvents\n------\nAll events that Mitm will emit on an instance of itself (see [Using\nMitm.js](#using) for examples):\n\nEvent      | Description\n-----------|------------\nconnect    | Emitted when a TCP connection is made.<br> Given the **client side** `Net.Socket` and `options` from `Net.connect`.\nconnection | Emitted when a TCP connection is made.<br> Given the **server side** `Net.Socket` and `options` from `Net.connect`.\nrequest    | Emitted when a HTTP/HTTPS request is made.<br> Given the server side `Http.IncomingMessage` and `Http.ServerResponse`.\n\n\nLicense\n-------\nMitm.js is released under a *Lesser GNU Affero General Public License*, which\nin summary means:\n\n- You **can** use this program for **no cost**.\n- You **can** use this program for **both personal and commercial reasons**.\n- You **do not have to share your own program's code** which uses this program.\n- You **have to share modifications** (e.g. bug-fixes) you've made to this\n  program.\n\nFor more convoluted language, see the `LICENSE` file.\n\n\nAbout\n-----\n**[Andri Möll][moll]** typed this and the code.  \n[Monday Calendar][monday] supported the engineering work.\n\nIf you find Mitm.js needs improving, please don't hesitate to type to me now\nat [andri@dot.ee][email] or [create an issue online][issues].\n\n[email]: mailto:andri@dot.ee\n[issues]: https://github.com/moll/node-mitm/issues\n[moll]: http://themoll.com\n[monday]: https://mondayapp.com\n[twitter]: https://twitter.com/theml\n","readmeFilename":"README.md","users":{"moll":true,"jakutis":true,"grumpycat":true,"chhetrisushil":true,"program247365":true,"stone_breaker":true},"license":"AGPL-3.0-or-later WITH GPL-3.0-linking-exception"}