{"_id":"hmpo-stubber","_rev":"37-9b06bc2b5f0d2ea9b416ebbe11c08edc","name":"hmpo-stubber","dist-tags":{"latest":"4.0.0"},"versions":{"1.0.0":{"name":"hmpo-stubber","version":"1.0.0","keywords":["stub","mock","api","json"],"author":{"name":"HMPO"},"license":"MIT","_id":"hmpo-stubber@1.0.0","maintainers":[{"name":"hughepaul","email":"paul@hughe.co.uk"}],"homepage":"https://github.com/UKHomeOffice/passports-stubber#readme","bugs":{"url":"https://github.com/UKHomeOffice/passports-stubber/issues"},"bin":{"hmpo-stubber":"./bin/stubber.js"},"dist":{"shasum":"affcb0554b2be1e3af9a7fbb00a8c2d6ed77e390","tarball":"https://registry.npmjs.org/hmpo-stubber/-/hmpo-stubber-1.0.0.tgz","integrity":"sha512-/YG/00OoceqKgf5QSPuRQBC8z7+ZsXD9J392JeEUDQGRWUHLpwo/cZ/u3UbLt/yJkxTq/XJo5rpR42XnnMXC2Q==","signatures":[{"sig":"MEUCIDzfp/rM69scGyslz44TqC7x1bSKPRK3Z88lXYv3QYTfAiEAwG1pmMxMXAR+jRIvTU3H6keiHQRHwsrtwPWzWMj4IsM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib","_from":".","_shasum":"affcb0554b2be1e3af9a7fbb00a8c2d6ed77e390","gitHead":"374f7ef02b7525cd223393c424b2beaf5b302748","scripts":{"test":"npm run test:lint && npm run test:unit && npm run test:cover","test:lint":"eslint .","test:unit":"mocha test/unit/ --recursive --require test/unit/helper","test:cover":"istanbul cover _mocha -- -R dot test/unit/ --recursive --require test/unit/helper"},"_npmUser":{"name":"hughepaul","email":"paul@hughe.co.uk"},"repository":{"url":"git+https://github.com/UKHomeOffice/passports-stubber.git","type":"git"},"_npmVersion":"3.10.10","description":"Create dynamic stub API services using a simple JSON configuration","directories":{"test":"test"},"_nodeVersion":"4.4.6","dependencies":{"debug":"^2.6.8","express":"^4.15.3","optionator":"^0.8.2","underscore":"^1.8.3"},"devDependencies":{"chai":"^3.5.0","mocha":"^3.4.2","sinon":"^2.3.2","eslint":"^3.19.0","reqres":"^1.3.0","istanbul":"^0.4.5","proxyquire":"^1.8.0","sinon-chai":"^2.10.0"},"_npmOperationalInternal":{"tmp":"tmp/hmpo-stubber-1.0.0.tgz_1497281531197_0.7037038637790829","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"hmpo-stubber","version":"1.0.1","keywords":["stub","mock","api","json"],"author":{"name":"HMPO"},"license":"MIT","_id":"hmpo-stubber@1.0.1","maintainers":[{"name":"hughepaul","email":"paul@hughe.co.uk"}],"homepage":"https://github.com/UKHomeOffice/passports-stubber#readme","bugs":{"url":"https://github.com/UKHomeOffice/passports-stubber/issues"},"bin":{"hmpo-stubber":"./bin/stubber.js"},"dist":{"shasum":"5f5246868340d16b26e6d39efa8113ac459a3bc6","tarball":"https://registry.npmjs.org/hmpo-stubber/-/hmpo-stubber-1.0.1.tgz","integrity":"sha512-l4sMND/wcuQvf+RwgM7covCT/tAy0/NaKJYJ3AZ9aJG7XSgz7f31/ddddv4OhXTMZPwpkQwHXolcMdoMZZ6Oww==","signatures":[{"sig":"MEUCIQCtSsTb6wfpeUyejMQ9dINDtDWp/ipFMHTbwVelNQI2HQIgfBF0Kz6IFWtnj3FBH/qYMcYoFMQnzeweSted944tznk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib","_from":".","_shasum":"5f5246868340d16b26e6d39efa8113ac459a3bc6","gitHead":"29b8950cb3d72f168fbdac33b39c9d7b8d0cfa42","scripts":{"test":"npm run test:lint && npm run test:unit && npm run test:cover","test:lint":"eslint .","test:unit":"mocha test/unit/ --recursive --require test/unit/helper","test:cover":"istanbul cover _mocha -- -R dot test/unit/ --recursive --require test/unit/helper"},"_npmUser":{"name":"hughepaul","email":"paul@hughe.co.uk"},"repository":{"url":"git+https://github.com/UKHomeOffice/passports-stubber.git","type":"git"},"_npmVersion":"3.10.10","description":"Create dynamic stub API services using a simple JSON configuration","directories":{"test":"test"},"_nodeVersion":"4.4.6","dependencies":{"debug":"^2.6.8","express":"^4.15.3","optionator":"^0.8.2","underscore":"^1.8.3","body-parser":"^1.18.2"},"devDependencies":{"chai":"^3.5.0","mocha":"^3.4.2","sinon":"^2.3.2","eslint":"^3.19.0","reqres":"^1.3.0","istanbul":"^0.4.5","proxyquire":"^1.8.0","sinon-chai":"^2.10.0"},"_npmOperationalInternal":{"tmp":"tmp/hmpo-stubber-1.0.1.tgz_1507903645042_0.35819828463718295","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"hmpo-stubber","version":"1.1.0","keywords":["stub","mock","api","json"],"author":{"name":"HMPO"},"license":"MIT","_id":"hmpo-stubber@1.1.0","maintainers":[{"name":"hughepaul","email":"paul@hughe.co.uk"}],"homepage":"https://github.com/UKHomeOffice/passports-stubber#readme","bugs":{"url":"https://github.com/UKHomeOffice/passports-stubber/issues"},"bin":{"hmpo-stubber":"./bin/stubber.js"},"dist":{"shasum":"353dd87869db3be36db34dba3965d21bd199fe93","tarball":"https://registry.npmjs.org/hmpo-stubber/-/hmpo-stubber-1.1.0.tgz","integrity":"sha512-ytWHoc3qTbnUt0+hKafKqCUJ0dVMi5UFUfe6HhGIsdgZHQRImDZWD7Towzc5p1RwM19LLngikztFuowLVNdEZw==","signatures":[{"sig":"MEUCIQCWsxUqLeDu1dHid9/Gx/1vflgL8EVYCFDB9E8jHpsvpgIgNDkcsmGDpmUaEnB68pW+boNBrEOqQGLN9Ke+i2Fpj4M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib","_from":".","_shasum":"353dd87869db3be36db34dba3965d21bd199fe93","gitHead":"8ab69fa544a5d12b34b552c50471030c18608c9a","scripts":{"test":"npm run test:lint && npm run test:unit && npm run test:cover","test:lint":"eslint .","test:unit":"mocha test/unit/ --recursive --require test/unit/helper","test:cover":"istanbul cover _mocha -- -R dot test/unit/ --recursive --require test/unit/helper"},"_npmUser":{"name":"hughepaul","email":"paul@hughe.co.uk"},"repository":{"url":"git+https://github.com/UKHomeOffice/passports-stubber.git","type":"git"},"_npmVersion":"3.10.10","description":"Create dynamic stub API services using a simple JSON configuration","directories":{"test":"test"},"_nodeVersion":"4.4.6","dependencies":{"debug":"^2.6.8","express":"^4.15.3","optionator":"^0.8.2","underscore":"^1.8.3","body-parser":"^1.18.2"},"devDependencies":{"chai":"^3.5.0","mocha":"^3.4.2","sinon":"^2.3.2","eslint":"^3.19.0","reqres":"^1.3.0","istanbul":"^0.4.5","proxyquire":"^1.8.0","sinon-chai":"^2.10.0"},"_npmOperationalInternal":{"tmp":"tmp/hmpo-stubber-1.1.0.tgz_1508772480207_0.08022206625901163","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"hmpo-stubber","version":"1.2.0","keywords":["stub","mock","api","json"],"author":{"name":"HMPO"},"license":"MIT","_id":"hmpo-stubber@1.2.0","maintainers":[{"name":"hughepaul","email":"paul@hughe.co.uk"}],"homepage":"https://github.com/UKHomeOffice/passports-stubber#readme","bugs":{"url":"https://github.com/UKHomeOffice/passports-stubber/issues"},"bin":{"hmpo-stubber":"./bin/stubber.js"},"dist":{"shasum":"b8b1a9cc9e282f0c22f336599413ddcaae5882ff","tarball":"https://registry.npmjs.org/hmpo-stubber/-/hmpo-stubber-1.2.0.tgz","fileCount":31,"integrity":"sha512-3/L4CJlGUyaiMft91SCBWuksjKpkGQJ1D6eWGtvHed50xtP06cFFM72IK0w0KCCgfmJ9+3ebK8ASjtKxi/cjgw==","signatures":[{"sig":"MEUCIQCCz982CrlfBa97WV0mSYihTekWMwpqSiPUIv4oCzhEbQIgRtA45FJ3L0u4gH2BJT/Qgk8aUCNPXYTbul261csy6FQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":68519,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJco1zhCRA9TVsSAnZWagAApmYP/iCMugAWYwU3GSrmJINc\n3HKQsXPsmYfjw85aPhtddFH899k+yKCY6L1a5YVNAUuqMqtKIaMv/aqsPGgp\nmKS8u3imBU1GDX9n6vQ0cg0zgoYmTDdao3IZ39SDwYAJs4vqhtUE9CqnCy52\nkfT8A+Tl6syLyIqftXAwJzj5bXkoQ4aR7p/nSuD9mIa6rVGPCJ4uQXxJIPp8\nnezZS3RyQ+qal70QSxW0Zm4S0XuRdujrLRBD4DqJvq3MlCdVrLSz7cSzZ+wm\nghb4jOSAGN77AJfsyH4OcRt1ORHYVpcsL19r8dVoWX0p61H5DJtLst6URLC8\nJSYJoJ/Ge8OaQ8vJa3hShHy4Y+etiRT28L00dmcYeM7RoCeoTfVs7IyP9bnI\nY8LV4bkh0TTTgxZpXt8IYNgfMQDSegcx9zoa8MSD7FGrLf7COrwwO1L72mAW\n1phdHHq3NGszfYrRXznKzAXoF0yujjsycHbXVlcjheJtAor7iUw0lvqk0Alx\nl3zZ1zjN7DPNFb6iBHLFBwlN9rMNbK3kj39j4VvRuhb4m44FQk50CQl7RFrl\nmPEqhrzFMUWJ9fdz6t2W7K1D6oxVFT8o47TLQOqzaqlahp/41kh5Hre6PkJS\nk93F1kf44+z6O1lArTXtMx1YOYOoFSuRUzGVoXXaDOHHza9seqyy55dM6tze\n0qQv\r\n=HEbF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib","gitHead":"430553b81d537752fc306026b15c6b87d61b1740","scripts":{"test":"npm run test:lint && npm run test:unit && npm run test:cover","test:lint":"eslint .","test:unit":"mocha test/unit/ --recursive --require test/unit/helper","test:cover":"istanbul cover _mocha -- -R dot test/unit/ --recursive --require test/unit/helper"},"_npmUser":{"name":"hughepaul","email":"paul@hughe.co.uk"},"repository":{"url":"git+https://github.com/UKHomeOffice/passports-stubber.git","type":"git"},"_npmVersion":"6.8.0","description":"Create dynamic stub API services using a simple JSON configuration","directories":{"test":"test"},"_nodeVersion":"10.12.0","dependencies":{"debug":"^4.1.1","express":"^4.15.3","optionator":"^0.8.2","underscore":"^1.8.3","body-parser":"^1.18.2"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","mocha":"^6.0.2","sinon":"^7.3.1","eslint":"^5.16.0","reqres":"^2.1.0","istanbul":"^0.4.5","proxyquire":"^2.1.0","sinon-chai":"^3.3.0"},"_npmOperationalInternal":{"tmp":"tmp/hmpo-stubber_1.2.0_1554210016315_0.49437936327590193","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"hmpo-stubber","version":"1.2.1","keywords":["stub","mock","api","json"],"author":{"name":"HMPO"},"license":"MIT","_id":"hmpo-stubber@1.2.1","maintainers":[{"name":"hughepaul","email":"paul@hughe.co.uk"}],"homepage":"https://github.com/UKHomeOffice/passports-stubber#readme","bugs":{"url":"https://github.com/UKHomeOffice/passports-stubber/issues"},"bin":{"hmpo-stubber":"./bin/stubber.js"},"dist":{"shasum":"adffddbfbefb681f6b04391a1f0878a7145aaf9c","tarball":"https://registry.npmjs.org/hmpo-stubber/-/hmpo-stubber-1.2.1.tgz","fileCount":31,"integrity":"sha512-q81hL8Z9t6HASmb4As76vzYl/Lecpl+2KpIsI0GXf2Udm0HfU77IeUD1XZsbp7MyWXG+TdHW0CzUESPePn1hiA==","signatures":[{"sig":"MEUCIAJ6HeJ0dqdZ6jrff5HpsHYbWaFZ3V6fSGTyGcTxI7q+AiEAxOdFdlYkl/DMyUrEA/QIK8xDFf4KH1aiPlZHhMO47ik=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":68519,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc/80ZCRA9TVsSAnZWagAACMEP/A4Z0ad9/wWtr+gQp+Fs\nx93DLtQZ9IiMaw4kAUviVc3qiMYRbmzDOIyPl1/BOp94/madCX+RKW2T6ab0\nIrM+5COxvCYlbOJDtqw+XCaDkOVZctSCWZItFvLbZYFFQDUfoibhOHqepfrk\nLCW8b3QTtu1vnocHnfZkY+nCGMJLeJK36i+iAoVqzKilzj+YaDeM41p2Doud\nTUh1Tsiy7uo1cbw6Q4hDHDXMrBwz2VURmzyK9WNrd48z09BfmSrfhd8XvHGT\nZegzxgmw+43CRUGBxtR6jZBIHhvHitqGURUnTadvpyy84uOBpnQDHHTtWZbC\nSCgWGQLaYfwZPxjbu+brk9aTDn+oOgXQwpAAG2KZDUj1ZRoVsT2tZaMFC6RZ\nTYAyk3Gwgf3zrKDkmYCTuBeIjmOoRgTBC7vXQpuYTBJRrAGyCkgCW0O3sU0z\n81u66RWMr4IzFC3omwrTHCnwM6N9fHQ9IjWPf7/0RIcDt/Eqg+eolpuXLXDt\nCrhTp5IVF+qTjcV67IEW6sRJZs5md16q67p79lAEIBNmvxxKGPDYA8wN5dFF\nKq0cCpnRLci016FoRTo/ZCV0nm8sfsfyCGnId22sf2NI5uJLm0jnzNKlX5jl\ndWzUE1/33iq2zEinaH3hT1n3tO2Dl89SstKoTxPwxvQlkrBi04eMLlvvgInz\nAQBj\r\n=yjIg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib","gitHead":"744462e771bec88f95ab3f4789eb91c73530193b","scripts":{"test":"npm run test:lint && npm run test:unit && npm run test:cover","test:lint":"eslint .","test:unit":"mocha test/unit/ --recursive --require test/unit/helper","test:cover":"istanbul cover _mocha -- -R dot test/unit/ --recursive --require test/unit/helper"},"_npmUser":{"name":"hughepaul","email":"paul@hughe.co.uk"},"repository":{"url":"git+https://github.com/UKHomeOffice/passports-stubber.git","type":"git"},"_npmVersion":"6.9.0","description":"Create dynamic stub API services using a simple JSON configuration","directories":{"test":"test"},"_nodeVersion":"10.12.0","dependencies":{"debug":"^4.1.1","express":"^4.17.1","optionator":"^0.8.2","underscore":"^1.8.3","body-parser":"^1.19.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","mocha":"^6.1.4","sinon":"^7.3.2","eslint":"^5.16.0","reqres":"^2.1.0","istanbul":"^0.4.5","proxyquire":"^2.1.0","sinon-chai":"^3.3.0"},"_npmOperationalInternal":{"tmp":"tmp/hmpo-stubber_1.2.1_1560268056638_0.6049012238214944","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"hmpo-stubber","version":"1.3.0","keywords":["stub","mock","api","json"],"author":{"name":"HMPO"},"license":"MIT","_id":"hmpo-stubber@1.3.0","maintainers":[{"name":"hughepaul","email":"paul@hughe.co.uk"}],"homepage":"https://github.com/UKHomeOffice/passports-stubber#readme","bugs":{"url":"https://github.com/UKHomeOffice/passports-stubber/issues"},"bin":{"hmpo-stubber":"./bin/stubber.js"},"nyc":{"all":true,"lines":100,"exclude":["coverage/**","bin/**","test/**"],"branches":100,"functions":100,"statements":100},"dist":{"shasum":"89c7911d1956af7365c7c12c370678c2a7ccac40","tarball":"https://registry.npmjs.org/hmpo-stubber/-/hmpo-stubber-1.3.0.tgz","fileCount":31,"integrity":"sha512-bAAKS7nISKoMFBIgrs+9Fb8iwJ32Bd0HD64l4t0li1q1qGZE+S7yR3WILNpzO0bLKwkhvgMDkeFgoDvT3FJ5TA==","signatures":[{"sig":"MEUCIQCFA5EnvlbuyDQjPUilphrYSGBKQ/ZHW3ALWS/yWoF4EAIgSUNzipnC0GoWmwHlWfAIJuX04jmznD+bOuMF1AA2Dvw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":68704,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeN+oTCRA9TVsSAnZWagAAJ0wP/RXosPuCxB+WTEqJOrwf\nbRC7jzL8Zs6D9kzbLqF7d63zvWROTJfPkBxKsI7ZeTXd+zJSONVEfurXcQwP\ne03OrKwi7ltU3dBwToN1LCh737NsZk1qeCApp6qcENHZkJrSQLvzdNqjAZy4\nkZYRyytQtkAmEhjlzLSTRYYvjG5CsdIaAaEgUDv5HF2v+9G8JVbcDOkPAUhJ\nG7U3YqhJViPFVPkCqYToTpWNdV6x/pvRhpyiWHrkZbMMvitmD8fbCZWdHncf\npV3+6Xh2K6Kzi4mnVQHBt5e5kCed8Hxd6jMGh2dpavWkls3rYgqSmC5v6sJU\nNms3DBd6SCdZzeBk7tb8+DVYKodZIr7mW08uIFx2P6P6vo7eotVzNvGGDW8F\nV4dj/RsG+VAtaYiWzeT71V8Dr7d51ZXKU3Bmk3ov8rxAxhCx/rEGEItVVPEB\nyQOxZpc384LsK6uBVYeJhw5QNcnBsSry45NUzBrfDiOhUu1QE5OcUTcDhusv\nG5KBVTx4BPV6NU6M0EAfajEZloeApqC5gqCoMS79mY6+TvJ7K1QaG4PLoYCz\nwdtSvRskiVFXTAzLEW1mqMaNP661FGXTpgxE4y4agnKft1Kej8oJSllgy0aI\ndD05uuOSZgpxSDYwRWR8BJ0/18Jwyz/ZaWytIbdpIXFqUX2EfTs/Cx0oakmi\n5xA7\r\n=FXan\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib","gitHead":"dc0972fdd6a94c534f1a4f813be9afeef973851e","scripts":{"test":"npm run test:lint && npm run test:unit && npm run test:cover && npm audit","test:lint":"eslint .","test:unit":"nyc --reporter=lcov --reporter=text-summary _mocha test/unit/ --recursive --require test/unit/helper","test:cover":"nyc check-coverage"},"_npmUser":{"name":"hughepaul","email":"paul@hughe.co.uk"},"repository":{"url":"git+https://github.com/UKHomeOffice/passports-stubber.git","type":"git"},"_npmVersion":"6.10.3","description":"Create dynamic stub API services using a simple JSON configuration","directories":{"test":"test"},"_nodeVersion":"10.12.0","dependencies":{"debug":"^4.1.1","express":"^4.17.1","optionator":"^0.8.3","underscore":"^1.9.2","body-parser":"^1.19.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","mocha":"^7.0.1","sinon":"^8.1.1","eslint":"^6.8.0","reqres":"^3.0.1","proxyquire":"^2.1.3","sinon-chai":"^3.4.0"},"_npmOperationalInternal":{"tmp":"tmp/hmpo-stubber_1.3.0_1580722707200_0.9203220789455036","host":"s3://npm-registry-packages"}},"1.3.1":{"name":"hmpo-stubber","version":"1.3.1","keywords":["stub","mock","api","json"],"author":{"name":"HMPO"},"license":"MIT","_id":"hmpo-stubber@1.3.1","maintainers":[{"name":"hughepaul","email":"paul@hughe.co.uk"}],"homepage":"https://github.com/UKHomeOffice/passports-stubber#readme","bugs":{"url":"https://github.com/UKHomeOffice/passports-stubber/issues"},"bin":{"hmpo-stubber":"bin/stubber.js"},"nyc":{"all":true,"lines":100,"exclude":["coverage/**","bin/**","test/**"],"branches":100,"functions":100,"statements":100},"dist":{"shasum":"68960f03efa4ff6c5cb178dd8a7feb38ac018212","tarball":"https://registry.npmjs.org/hmpo-stubber/-/hmpo-stubber-1.3.1.tgz","fileCount":31,"integrity":"sha512-rsO9Py5eBm2/SO7jUXLm++acMUutz1ElfAb27pRnA+s1l01al47M0H7H5ieTb4Q/XY1j7yEqDpf8qjOjsMPNhw==","signatures":[{"sig":"MEUCIQDuR7gqdyRitptIWxPYQ1CC+a4odkurNiVeHz28Ee3V7QIgA/J8b1makm3Ph4zZ4vEpNF3Dvb8DjjabLihMutIPMG0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":68717,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeciWfCRA9TVsSAnZWagAAfn8P/3ogyzWL9KNjslewCupU\ns+LZLj9lZtBRq6Pr+oDCuzbJGIarVYT0tRQ790xV2F+5a33Y0sJqFM5+JIEM\nPhQ15uYGDeVDH4lJ58SccPFS6H2N8QsdEs8lpsHrdfjPWFg1V7ZWk6FyIMau\nc6kk96IaGMOukOFpn8PriA+jxzFg5IZjDefDpvKsVBFdafhYbr3vlBOlyuqb\nTW33qoo9FiIe67Px0199r7o+j2Y39jghPnYQzQdJdK9JjRFP61MS4JBFjVdP\nqqNBY9XSOkzeHoZ1SwwGApeXCs/NcP3wyyTXomDM1lJaDp/jKAwdGb3RL5wA\no3+phz4lcZDtv0drXayOhIBDTUhBjdsdVFZkdwGRL7Rz2DO3LE6eBzN0ZmIJ\nyWicBkA0d6YMvfGcWRGF/L5ZOH454luAmGr+OvPeLJTcfYRjmn+G/M45t0IT\nFY7tvvos2bP9dmr6H2vJ+VtF8qb/oQ+wIJAZqN5HFwUIZEsaU+RxGgTwEvhp\n/o+GQfn3YH4NdwaCOt2y89uNezpAXZDnV7OdaRt6nupyuYWKqsY55xHInULx\nl7AUZjlVZm/9MKQxbMLCFRNwto9itaJXlYLKWLZQBFf5zqPhbBY7j/Btr2yY\nttsp5aD7uSNmg/NCRTjjaCRcdnWSKFYuzxklsNd/g06r5QyCSRakHMSbTj5y\nfXnj\r\n=4LWo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib","gitHead":"9855e1abc9d4cab5f765eb3e2fee823b1eceb2a1","scripts":{"test":"npm run test:lint && npm run test:unit && npm run test:cover && npm audit --production","test:lint":"eslint .","test:unit":"nyc --reporter=lcov --reporter=text-summary _mocha test/unit/ --recursive --require test/unit/helper","test:cover":"nyc check-coverage"},"_npmUser":{"name":"hughepaul","email":"paul@hughe.co.uk"},"repository":{"url":"git+https://github.com/UKHomeOffice/passports-stubber.git","type":"git"},"_npmVersion":"6.14.2","description":"Create dynamic stub API services using a simple JSON configuration","directories":{"test":"test"},"_nodeVersion":"10.12.0","dependencies":{"debug":"^4.1.1","express":"^4.17.1","optionator":"^0.8.3","underscore":"^1.9.2","body-parser":"^1.19.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","mocha":"^7.1.1","sinon":"^9.0.1","eslint":"^6.8.0","reqres":"^3.0.1","proxyquire":"^2.1.3","sinon-chai":"^3.5.0"},"_npmOperationalInternal":{"tmp":"tmp/hmpo-stubber_1.3.1_1584539038583_0.4213300574847265","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"hmpo-stubber","version":"2.0.0","keywords":["stub","mock","api","json"],"author":{"name":"HMPO"},"license":"MIT","_id":"hmpo-stubber@2.0.0","maintainers":[{"name":"hughepaul","email":"paul@hughe.co.uk"},{"name":"willhamill","email":"william.hamill@gmail.com"}],"homepage":"https://github.com/UKHomeOffice/passports-stubber#readme","bugs":{"url":"https://github.com/UKHomeOffice/passports-stubber/issues"},"bin":{"hmpo-stubber":"bin/stubber.js"},"nyc":{"all":true,"lines":100,"exclude":["coverage/**","bin/**","test/**"],"branches":100,"functions":100,"statements":100},"dist":{"shasum":"dea8295667fc27b5792b5b6485e6238b70698932","tarball":"https://registry.npmjs.org/hmpo-stubber/-/hmpo-stubber-2.0.0.tgz","fileCount":31,"integrity":"sha512-M94eEjgnzUoFH96czHGpHNAzelENfJaeWLcqQe6b4JUbCTPRuU6DEdVZnliMTpdHbh5o1Fxdy/w2WFpylpNq/A==","signatures":[{"sig":"MEUCIQCVXoGYdvr4bEY1YMGkqeWRL86tTbANa5OskM6tLHe8PQIgZjrLTd40MUkMDrg+2SOsOuChEOPO90TPGzNEGUFK20I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":69182,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSmgLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrMVhAAghDtuXMNfIWhKUaM0WnudlygCqfBdpfg2x8vf79NhVBISsXt\r\nkWabFwFfBDdZDsFJkSawl2q03e9ybs5Js26EMYNHiQTMIvfSX1Xhr9g5eENs\r\nrND3XTDQXx77etyMjj44y+GjLWFm06bE4z3uju+nnF2aeREMxXoSetcAXACZ\r\nSuWpoiV7zLDnwxOrxGpxCcdQnP7OnN5RRfl5a0XXbkODmO/zok5t9yCgDQpN\r\nh6pXi1Hn7epZx6jBI0bKKFgJ/pMP0MfDyM07nZ5Hio563rEZTNi+m6NnllEB\r\n+nM9yTcawf6gA4TrX+iCiVUXNaavQkKdmbYFKxxWan+OrM+mCya5aCI+LpBc\r\nK9/Upyd/CJwlJi3YY4Rf0r4Bh0txVNsOFuW7umbMW+r7NCAraUxn4Nmbw31Z\r\nhvToWS8BbtAdfMk0y8h4z3jqDWsSA3+6h9C1/OxitDi63IbGRxTw1bAbbRZZ\r\nBgUwvMxQ5Ax5VyeJcR3oNtwyrYM0jJuisU3kajw2Q1VYUFJQIjeN7UwZcY7x\r\n7Im5X7MED7wdj3Bakjcw+ZLR4nAw2GuOtQ1KGSxupRqk7LkF0tQZh0Kcym6f\r\nGfGPNYBrPRuIjsJb+VIiDAXyM0Rw4qrP0YNdAPyy1hcKP6hwILgwkfijtZy+\r\n6Clu13U6H2/Nv1ZlbMGWv6NvorCaZKqRoAo=\r\n=gg1A\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib","engines":{"node":">=14"},"gitHead":"c1ee543a241f74860849011def8af6aeff6494eb","scripts":{"test":"npm run test:lint && npm run test:unit && npm run test:cover && npm audit --production","test:lint":"eslint .","test:unit":"nyc --reporter=lcov --reporter=text-summary _mocha test/unit/ --recursive --require test/unit/helper","test:cover":"nyc check-coverage"},"_npmUser":{"name":"hughepaul","email":"paul@hughe.co.uk"},"repository":{"url":"git+https://github.com/UKHomeOffice/passports-stubber.git","type":"git"},"_npmVersion":"8.11.0","description":"Create dynamic stub API services using a simple JSON configuration","directories":{"test":"test"},"_nodeVersion":"16.15.1","dependencies":{"debug":"^4.3.4","express":"^4.18.2","optionator":"^0.9.1","underscore":"^1.13.6","body-parser":"^1.20.2"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","chai":"^4.3.7","mocha":"^10.2.0","sinon":"^15.0.4","eslint":"^8.39.0","reqres":"^3.0.1","proxyquire":"^2.1.3","sinon-chai":"^3.7.0"},"_npmOperationalInternal":{"tmp":"tmp/hmpo-stubber_2.0.0_1682597899120_0.7779544533462641","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"hmpo-stubber","version":"2.0.1","keywords":["stub","mock","api","json"],"author":{"name":"HMPO"},"license":"MIT","_id":"hmpo-stubber@2.0.1","maintainers":[{"name":"georgeeker","email":"george.eker@hotmail.co.uk"},{"name":"msjhall","email":"m.hall@kainos.com"},{"name":"samchatfield","email":"samchatfield97@gmail.com"}],"homepage":"https://github.com/HMPO/hmpo-stubber#readme","bugs":{"url":"https://github.com/HMPO/hmpo-stubber/issues"},"bin":{"hmpo-stubber":"bin/stubber.js"},"nyc":{"all":true,"lines":100,"exclude":["coverage/**","bin/**","test/**"],"branches":100,"functions":100,"statements":100},"dist":{"shasum":"4e75e4fb350ca6d74a35b1243051192b8cc926d6","tarball":"https://registry.npmjs.org/hmpo-stubber/-/hmpo-stubber-2.0.1.tgz","fileCount":31,"integrity":"sha512-KnDQ4FhlKoVWsST62Ba+tymwkUVTtWRMdz/QI0rSYBIiZAZdBa1Um1nNTpRsvSajEijmy6uJI4LFZ9NR28OVDQ==","signatures":[{"sig":"MEUCIHx7lzpDkJu/4UVOs0pwooSe6SeMSNLgbP8/AquNUDufAiEA96XDqgfdukwKJ0GvN0O5O5HvxXc9UGhkrqZExWdEoa8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":69139},"main":"./lib","engines":{"node":">=14"},"gitHead":"4c336db5ca7edcf698cb8473578b29ad5158e001","scripts":{"test":"npm run test:lint && npm run test:unit && npm run test:cover && npm audit --production","test:lint":"eslint .","test:unit":"nyc --reporter=lcov --reporter=text-summary _mocha test/unit/ --recursive --require test/unit/helper","test:cover":"nyc check-coverage"},"_npmUser":{"name":"samchatfield","email":"samchatfield97@gmail.com"},"repository":{"url":"git+https://github.com/HMPO/hmpo-stubber.git","type":"git"},"_npmVersion":"10.8.1","description":"Create dynamic stub API services using a simple JSON configuration","directories":{"test":"test"},"_nodeVersion":"20.16.0","dependencies":{"debug":"^4.3.6","express":"^4.19.2","optionator":"^0.9.4","underscore":"^1.13.7","body-parser":"^1.20.2"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^17.0.0","chai":"^4.5.0","mocha":"^10.7.0","sinon":"^18.0.0","eslint":"^8.57.0","reqres":"^3.0.1","proxyquire":"^2.1.3","sinon-chai":"^3.7.0"},"_npmOperationalInternal":{"tmp":"tmp/hmpo-stubber_2.0.1_1722523073098_0.7655251591163623","host":"s3://npm-registry-packages"}},"2.0.2":{"name":"hmpo-stubber","version":"2.0.2","keywords":["stub","mock","api","json"],"author":{"name":"HMPO"},"license":"MIT","_id":"hmpo-stubber@2.0.2","maintainers":[{"name":"georgeeker","email":"george.eker@hotmail.co.uk"},{"name":"msjhall","email":"m.hall@kainos.com"},{"name":"samchatfield","email":"samchatfield97@gmail.com"}],"homepage":"https://github.com/HMPO/hmpo-stubber#readme","bugs":{"url":"https://github.com/HMPO/hmpo-stubber/issues"},"bin":{"hmpo-stubber":"bin/stubber.js"},"nyc":{"all":true,"lines":100,"exclude":["coverage/**","bin/**","test/**"],"branches":100,"functions":100,"statements":100},"dist":{"shasum":"fda8b30f5167c10cd177e2532424ffd0cae250c3","tarball":"https://registry.npmjs.org/hmpo-stubber/-/hmpo-stubber-2.0.2.tgz","fileCount":31,"integrity":"sha512-jZiGacudGJ7VZZmYKWf6f+Q94JzaUbR2sqDutUCDpMHGTJEmHmwsyEm3jX7sssn/8GubHMhOYY9VXPYQ0KjD6A==","signatures":[{"sig":"MEUCIHFGIN8/4ZF+ZFyQZckVJUj5l0AfCtYZWxOMoqQggvDyAiEA1J61ZWXgYc63xPYjPiZCnshYx32ci7PymH5sfcSwcck=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":69139},"main":"./lib","engines":{"node":">=14"},"gitHead":"d59e64852fc4f1e78d2db8813143620c3dca2839","scripts":{"test":"npm run test:lint && npm run test:unit && npm run test:cover && npm audit --production","test:lint":"eslint .","test:unit":"nyc --reporter=lcov --reporter=text-summary _mocha test/unit/ --recursive --require test/unit/helper","test:cover":"nyc check-coverage"},"_npmUser":{"name":"samchatfield","email":"samchatfield97@gmail.com"},"repository":{"url":"git+https://github.com/HMPO/hmpo-stubber.git","type":"git"},"_npmVersion":"10.8.2","description":"Create dynamic stub API services using a simple JSON configuration","directories":{"test":"test"},"_nodeVersion":"20.17.0","dependencies":{"debug":"^4.3.6","express":"^4.19.2","optionator":"^0.9.4","underscore":"^1.13.7","body-parser":"^1.20.2"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^17.0.0","chai":"^4.5.0","mocha":"^10.7.0","sinon":"^18.0.0","eslint":"^8.57.0","reqres":"^3.0.1","proxyquire":"^2.1.3","sinon-chai":"^3.7.0"},"_npmOperationalInternal":{"tmp":"tmp/hmpo-stubber_2.0.2_1726824444087_0.6890544745609897","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"hmpo-stubber","version":"3.0.0","keywords":["stub","mock","api","json"],"author":{"name":"HMPO"},"license":"MIT","_id":"hmpo-stubber@3.0.0","maintainers":[{"name":"georgeeker","email":"george.eker@hotmail.co.uk"},{"name":"msjhall","email":"m.hall@kainos.com"},{"name":"samchatfield","email":"samchatfield97@gmail.com"},{"name":"rewaz.ismail","email":"rewaz96@hotmail.com"}],"homepage":"https://github.com/HMPO/hmpo-stubber#readme","bugs":{"url":"https://github.com/HMPO/hmpo-stubber/issues"},"bin":{"hmpo-stubber":"bin/stubber.js"},"nyc":{"all":true,"lines":100,"exclude":["coverage/**","bin/**","test/**","eslint.config.js"],"branches":100,"functions":100,"statements":100},"dist":{"shasum":"db7d4d54830a08ad8f3e06d6db6996a937d3db9e","tarball":"https://registry.npmjs.org/hmpo-stubber/-/hmpo-stubber-3.0.0.tgz","fileCount":30,"integrity":"sha512-BRUm+uzs0P9ZUReRzxTO+cIhRxlnf9Kuj0H0NT6Khbgzq2Z2CyQPYFcn5mThwebp0lFYngxNVY5Hyr1nSx7SGw==","signatures":[{"sig":"MEUCIDcM8/AH0UOTvil+i83nmMxNk9Px61nJxXjsIj8oHFz8AiEA0EIAQZi5uXTKIUirKqdcZPeV5TJRzHAvigWRjuxNFpY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":69535},"main":"./lib","engines":{"node":"20.x || 22.x"},"gitHead":"528b87f09b50c0be897e2fe829935cd82fdcbd46","scripts":{"test":"npm run test:lint && npm run test:unit && npm run test:cover","prepare":"husky","test:lint":"eslint .","test:unit":"nyc --reporter=lcov --reporter=text-summary _mocha test/unit/ --recursive --require test/unit/helper","test:cover":"nyc check-coverage"},"_npmUser":{"name":"rewaz.ismail","email":"rewaz96@hotmail.com"},"repository":{"url":"git+https://github.com/HMPO/hmpo-stubber.git","type":"git"},"_npmVersion":"10.9.0","description":"Create dynamic stub API services using a simple JSON configuration","directories":{"test":"test"},"_nodeVersion":"22.9.0","dependencies":{"debug":"^4.3.7","express":"^4.21.1","optionator":"^0.9.4","underscore":"^1.13.7","body-parser":"^1.20.3"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^17.1.0","chai":"^4.5.0","husky":"^9.1.6","mocha":"^10.7.3","sinon":"^19.0.2","eslint":"^9.12.0","globals":"^15.9.0","proxyquire":"^2.1.3","sinon-chai":"^3.7.0","sinon-test":"^3.1.6","hmpo-reqres":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/hmpo-stubber_3.0.0_1728661434630_0.1325803038928668","host":"s3://npm-registry-packages"}},"3.0.1":{"name":"hmpo-stubber","version":"3.0.1","keywords":["stub","mock","api","json"],"author":{"name":"HMPO"},"license":"MIT","_id":"hmpo-stubber@3.0.1","maintainers":[{"name":"georgeeker","email":"george.eker@hotmail.co.uk"},{"name":"msjhall","email":"m.hall@kainos.com"},{"name":"samchatfield","email":"samchatfield97@gmail.com"},{"name":"rewaz.ismail","email":"rewaz96@hotmail.com"}],"homepage":"https://github.com/HMPO/hmpo-stubber#readme","bugs":{"url":"https://github.com/HMPO/hmpo-stubber/issues"},"bin":{"hmpo-stubber":"bin/stubber.js"},"nyc":{"all":true,"lines":100,"exclude":["coverage/**","bin/**","test/**","eslint.config.js"],"branches":100,"functions":100,"statements":100},"dist":{"shasum":"abcb638b658b7faf2f8a592f22729758b82f299a","tarball":"https://registry.npmjs.org/hmpo-stubber/-/hmpo-stubber-3.0.1.tgz","fileCount":30,"integrity":"sha512-AjfEjmBr5XZjMc9Fg7b3heJ6DkCRMl79UepzHQE26hfmlE3ovmXJRQTZwKi9RpKXQubCPzWH19APuSZYpx6j7g==","signatures":[{"sig":"MEUCICZp2GWCVChqtKYFuGik1hZoBkU9ka1a+BKDfrN0TBcBAiEA8JeyxzB3R89F6sVv0XdlfhYJR/vrWvUvPX0uk8S4Gd0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":69535},"main":"./lib","engines":{"node":"20.x || 22.x"},"gitHead":"9760d6a1a87db88770c7417b520a07ffa1471578","scripts":{"test":"npm run test:lint && npm run test:unit && npm run test:cover","prepare":"husky","test:lint":"eslint .","test:unit":"nyc --reporter=lcov --reporter=text-summary _mocha test/unit/ --recursive --require test/unit/helper","test:cover":"nyc check-coverage"},"_npmUser":{"name":"samchatfield","email":"samchatfield97@gmail.com"},"repository":{"url":"git+https://github.com/HMPO/hmpo-stubber.git","type":"git"},"_npmVersion":"10.8.2","description":"Create dynamic stub API services using a simple JSON configuration","directories":{"test":"test"},"_nodeVersion":"20.18.2","dependencies":{"debug":"^4.3.7","express":"^4.21.1","optionator":"^0.9.4","underscore":"^1.13.7","body-parser":"^1.20.3"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^17.1.0","chai":"^4.5.0","husky":"^9.1.6","mocha":"^10.7.3","sinon":"^19.0.2","eslint":"^9.12.0","globals":"^15.9.0","proxyquire":"^2.1.3","sinon-chai":"^3.7.0","sinon-test":"^3.1.6","hmpo-reqres":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/hmpo-stubber_3.0.1_1738681044871_0.3654453322771729","host":"s3://npm-registry-packages-npm-production"}},"3.0.2":{"name":"hmpo-stubber","version":"3.0.2","keywords":["stub","mock","api","json"],"author":{"name":"HMPO"},"license":"MIT","_id":"hmpo-stubber@3.0.2","maintainers":[{"name":"georgeeker","email":"george.eker@hotmail.co.uk"},{"name":"m24murray","email":"matthewmu@kainos.com"},{"name":"cmcgee480","email":"conor.mcgee@digital.homeoffice.gov.uk"},{"name":"msjhall","email":"michael.hall@digital.homeoffice.gov.uk"}],"homepage":"https://github.com/HMPO/hmpo-stubber#readme","bugs":{"url":"https://github.com/HMPO/hmpo-stubber/issues"},"bin":{"hmpo-stubber":"bin/stubber.js"},"nyc":{"all":true,"lines":100,"exclude":["coverage/**","bin/**","test/**","eslint.config.js"],"branches":100,"functions":100,"statements":100},"dist":{"shasum":"bfdae74c3960046c08d92e657202a9bdc5378602","tarball":"https://registry.npmjs.org/hmpo-stubber/-/hmpo-stubber-3.0.2.tgz","fileCount":31,"integrity":"sha512-ojSIo1cWvzNx+JSAAR2BT7MD78OOgmUdXxN8SKSSO0SplCtEW3Btm2a+6FBpjJ1Kzh8TNlt1FdZ7XAg53WpsWw==","signatures":[{"sig":"MEYCIQCi97SVFP1IRu+OZRgKncskbQ3vcYs+U7Epm1c4dafangIhANmu45ZqNzgyJ0uXyyGXXvvIoBIH5ts+28+NxAaeWw9w","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":77685},"main":"./lib","engines":{"node":"20.x || 22.x"},"gitHead":"e07d93a8d4b8091c02fa90b48c6b9ecf1a814866","scripts":{"test":"npm run test:lint && npm run test:unit && npm run test:cover","prepare":"husky","test:lint":"eslint .","test:unit":"nyc --reporter=lcov --reporter=text-summary _mocha test/unit/ --recursive --require test/unit/helper","test:cover":"nyc check-coverage"},"_npmUser":{"name":"cmcgee480","email":"conor.mcgee@digital.homeoffice.gov.uk"},"repository":{"url":"git+https://github.com/HMPO/hmpo-stubber.git","type":"git"},"_npmVersion":"10.1.0","description":"Create dynamic stub API services using a simple JSON configuration","directories":{"test":"test"},"_nodeVersion":"20.9.0","dependencies":{"debug":"4.3.7","express":"^4.21.1","optionator":"^0.9.4","underscore":"^1.13.7","body-parser":"^1.20.3"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^17.1.0","chai":"^4.5.0","husky":"^9.1.6","mocha":"^10.7.3","sinon":"^19.0.2","eslint":"^9.12.0","globals":"^15.9.0","proxyquire":"^2.1.3","sinon-chai":"^3.7.0","sinon-test":"^3.1.6","hmpo-reqres":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/hmpo-stubber_3.0.2_1757430698908_0.5613384712100473","host":"s3://npm-registry-packages-npm-production"}},"3.0.3":{"name":"hmpo-stubber","version":"3.0.3","keywords":["stub","mock","api","json"],"author":{"name":"HMPO"},"license":"MIT","_id":"hmpo-stubber@3.0.3","maintainers":[{"name":"georgeeker","email":"george.eker@hotmail.co.uk"},{"name":"moreilly5","email":"matthewdoreilly@gmail.com"},{"name":"m24murray","email":"matthewmu@kainos.com"},{"name":"cmcgee480","email":"conor.mcgee@digital.homeoffice.gov.uk"},{"name":"radovan-d-ho","email":"Radovan.Dacej@digital.homeoffice.gov.uk"}],"homepage":"https://github.com/HMPO/hmpo-stubber#readme","bugs":{"url":"https://github.com/HMPO/hmpo-stubber/issues"},"bin":{"hmpo-stubber":"bin/stubber.js"},"nyc":{"all":true,"lines":100,"exclude":["coverage/**","bin/**","test/**","eslint.config.js"],"branches":100,"functions":100,"statements":100},"dist":{"shasum":"55fca6ca0a17ba758d75f8728301c45eeb4436aa","tarball":"https://registry.npmjs.org/hmpo-stubber/-/hmpo-stubber-3.0.3.tgz","fileCount":31,"integrity":"sha512-k6imh5CRnMBzdwSRG7fsQhdiw9ZVCTNRuTDNgUSFcs3V1m+XpiEww84m69g/t1/SF6n6vQ3OXcCyJaBmU54sTg==","signatures":[{"sig":"MEUCIGCPPvoR1A30QzNvRv1NzuGRgzD9TTeL6vqBp/FJ/Kq/AiEAieiUkDOswPen81B7//o65mhJFuufZv2gFENQlawLeSY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":77686},"main":"./lib","engines":{"node":"20.x || 22.x"},"gitHead":"6f03e64ad0b2e9aee93840d8dc5d24fa08a7082e","scripts":{"test":"npm run test:lint && npm run test:unit && npm run test:cover","prepare":"husky","test:lint":"eslint .","test:unit":"nyc --reporter=lcov --reporter=text-summary _mocha test/unit/ --recursive --require test/unit/helper","test:cover":"nyc check-coverage"},"_npmUser":{"name":"cmcgee480","email":"conor.mcgee@digital.homeoffice.gov.uk"},"repository":{"url":"git+https://github.com/HMPO/hmpo-stubber.git","type":"git"},"_npmVersion":"10.5.1","description":"Create dynamic stub API services using a simple JSON configuration","directories":{"test":"test"},"_nodeVersion":"22.0.0","dependencies":{"debug":"^4.3.7","express":"^4.21.1","optionator":"^0.9.4","underscore":"^1.13.7","body-parser":"^1.20.3"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^17.1.0","chai":"^4.5.0","husky":"^9.1.6","mocha":"^10.7.3","sinon":"^19.0.2","eslint":"^9.12.0","globals":"^15.9.0","proxyquire":"^2.1.3","sinon-chai":"^3.7.0","sinon-test":"^3.1.6","hmpo-reqres":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/hmpo-stubber_3.0.3_1757692598145_0.6418851177350933","host":"s3://npm-registry-packages-npm-production"}},"4.0.0":{"name":"hmpo-stubber","version":"4.0.0","description":"Create dynamic stub API services using a simple JSON configuration","main":"./lib/index.js","directories":{"test":"test"},"scripts":{"test":"npm run test:lint && npm run test:unit && npm run test:cover","test:lint":"eslint .","test:unit":"nyc --reporter=lcov --reporter=text-summary _mocha test/unit/ --recursive --require test/unit/helper","test:cover":"nyc check-coverage","prepare":"husky"},"bin":{"hmpo-stubber":"bin/stubber.js"},"repository":{"type":"git","url":"git+https://github.com/HMPO/hmpo-stubber.git"},"keywords":["stub","mock","api","json"],"author":{"name":"HMPO"},"license":"MIT","engines":{"node":"24.x"},"bugs":{"url":"https://github.com/HMPO/hmpo-stubber/issues"},"homepage":"https://github.com/HMPO/hmpo-stubber#readme","dependencies":{"body-parser":"^1.20.3","debug":"^4.3.7","express":"^4.21.1","optionator":"^0.9.4","underscore":"^1.13.7"},"devDependencies":{"chai":"^4.5.0","eslint":"^9.12.0","globals":"^15.9.0","hmpo-reqres":"^3.0.0","husky":"^9.1.6","mocha":"^11.7.5","nyc":"^17.1.0","proxyquire":"^2.1.3","sinon":"^21.0.2","sinon-chai":"^3.7.0"},"overrides":{"diff":"^8.0.3","serialize-javascript":"^7.0.4"},"nyc":{"all":true,"exclude":["coverage/**","bin/**","test/**","eslint.config.js"],"lines":100,"branches":100,"functions":100,"statements":100},"gitHead":"5c6167691fdfe1c386ac4ec1463316b8ca4c5e1e","_id":"hmpo-stubber@4.0.0","_nodeVersion":"24.14.0","_npmVersion":"11.10.1","dist":{"integrity":"sha512-cOGw36jDnMP9HuzmMx8c8FGSvy5vP7E+PXAi+HCh5X0gTbTE+KB65YgDqe+Zof/iMTn38pR9HNKnK8VCJskeJQ==","shasum":"ef405373c7c3bef2ecb596ff7cbcf22c192da402","tarball":"https://registry.npmjs.org/hmpo-stubber/-/hmpo-stubber-4.0.0.tgz","fileCount":32,"unpackedSize":77742,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDxkoQ2fzR52jvioSSvZraJbnoTFjGe0l3FolD3A2I56AIgONwAIayl2/oLP1JCWtpDFotcP04AZijLmX5DBOSX0lY="}]},"_npmUser":{"name":"sam.dagnall","email":"sam.dagnall@digital.homeoffice.gov.uk"},"maintainers":[{"name":"ntotten-hmpo","email":"nathan.totten@digital.homeoffice.gov.uk"},{"name":"leonardobishop-hmpo","email":"leonardo.bishop@digital.homeoffice.gov.uk"},{"name":"lee.service","email":"lee.service@digital.homeoffice.gov.uk"},{"name":"fionajosephsamy_homeoffice","email":"FionaJoseph.Samy@digital.homeoffice.gov.uk"},{"name":"carl.mendoza","email":"carl.mendoza@digital.homeoffice.gov.uk"},{"name":"myles.muda","email":"myles.muda@digital.homeoffice.gov.uk"},{"name":"sam.dagnall","email":"sam.dagnall@digital.homeoffice.gov.uk"},{"name":"kmoorewilson","email":"kelly.moore@hotmail.co.uk"},{"name":"taylor.crawford","email":"taylor.crawford@digital.homeoffice.gov.uk"},{"name":"rhyad-zergane-ho-1","email":"rhyad.zergane1@digital.homeoffice.gov.uk"},{"name":"georgeeker","email":"george.eker@hotmail.co.uk"},{"name":"moreilly5","email":"matthewdoreilly@gmail.com"},{"name":"m24murray","email":"matthewmu@kainos.com"},{"name":"cmcgee480","email":"conor.mcgee@digital.homeoffice.gov.uk"},{"name":"radovan-d-ho","email":"Radovan.Dacej@digital.homeoffice.gov.uk"},{"name":"msjhall","email":"michael.hall@digital.homeoffice.gov.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hmpo-stubber_4.0.0_1773321556905_0.3343439739406737"},"_hasShrinkwrap":false}},"time":{"created":"2017-06-12T15:32:12.195Z","modified":"2026-03-12T13:19:17.637Z","1.0.0":"2017-06-12T15:32:12.195Z","1.0.1":"2017-10-13T14:07:26.156Z","1.1.0":"2017-10-23T15:28:01.085Z","1.2.0":"2019-04-02T13:00:16.442Z","1.2.1":"2019-06-11T15:47:36.827Z","1.3.0":"2020-02-03T09:38:27.425Z","1.3.1":"2020-03-18T13:43:58.883Z","2.0.0":"2023-04-27T12:18:19.342Z","2.0.1":"2024-08-01T14:37:53.298Z","2.0.2":"2024-09-20T09:27:24.344Z","3.0.0":"2024-10-11T15:43:54.846Z","3.0.1":"2025-02-04T14:57:25.049Z","3.0.2":"2025-09-09T15:11:39.129Z","3.0.3":"2025-09-12T15:56:38.333Z","4.0.0":"2026-03-12T13:19:17.070Z"},"bugs":{"url":"https://github.com/HMPO/hmpo-stubber/issues"},"author":{"name":"HMPO"},"license":"MIT","homepage":"https://github.com/HMPO/hmpo-stubber#readme","keywords":["stub","mock","api","json"],"repository":{"type":"git","url":"git+https://github.com/HMPO/hmpo-stubber.git"},"description":"Create dynamic stub API services using a simple JSON configuration","maintainers":[{"name":"ntotten-hmpo","email":"nathan.totten@digital.homeoffice.gov.uk"},{"name":"leonardobishop-hmpo","email":"leonardo.bishop@digital.homeoffice.gov.uk"},{"name":"lee.service","email":"lee.service@digital.homeoffice.gov.uk"},{"name":"fionajosephsamy_homeoffice","email":"FionaJoseph.Samy@digital.homeoffice.gov.uk"},{"name":"carl.mendoza","email":"carl.mendoza@digital.homeoffice.gov.uk"},{"name":"myles.muda","email":"myles.muda@digital.homeoffice.gov.uk"},{"name":"sam.dagnall","email":"sam.dagnall@digital.homeoffice.gov.uk"},{"name":"kmoorewilson","email":"kelly.moore@hotmail.co.uk"},{"name":"taylor.crawford","email":"taylor.crawford@digital.homeoffice.gov.uk"},{"name":"rhyad-zergane-ho-1","email":"rhyad.zergane1@digital.homeoffice.gov.uk"},{"name":"georgeeker","email":"george.eker@hotmail.co.uk"},{"name":"moreilly5","email":"matthewdoreilly@gmail.com"},{"name":"m24murray","email":"matthewmu@kainos.com"},{"name":"cmcgee480","email":"conor.mcgee@digital.homeoffice.gov.uk"},{"name":"radovan-d-ho","email":"Radovan.Dacej@digital.homeoffice.gov.uk"},{"name":"msjhall","email":"michael.hall@digital.homeoffice.gov.uk"}],"readme":"# hmpo-stubber\n`hmpo-stubber` is a Node.js middleware that allows you to create dynamic stub API services using simple JSON configurations. This is particularly useful for testing and development environments where you need to simulate API responses.\n\n## Installation\nYou can install `hmpo-stubber` as a dependency in your project:\n```\nnpm install hmpo-stubber\n```\n\n## Usage\nhmpo-stubber can be used in your Express.js application as **middleware**, or as a **command-line interface** (CLI) to run as a standalone stub server.\n\n### Middleware Usage\nYou can integrate hmpo-stubber into your Express.js application as middleware:\n\n```\nconst express = require('express');\nconst stubber = require('hmpo-stubber');\n\nconst app = express();\n\n// Mount the stubber middleware at the '/stubs' path\napp.use('/stubs', stubber.middleware('./services.json', 'My Stub Server'));\n\napp.listen(3000, () => {\n  console.log('Server is running on port 3000');\n});\n```\n\nThe **stubber.middleware()** function accepts the following parameters:  \n`stubber.middleware(services, [name], [basePath]);`\n\n* `services` (Array or String): An array of service configuration objects or a path to a JSON file containing the service configurations.\n* `name` (String, optional): A name for the stub server, useful for debug logging.\n* `basePath` (String, optional): The base path to mount the stubber on. Defaults to './'.\n\n### Command line interface\n`hmpo-stubber` also provides a command-line interface (CLI) to run a standalone stub server:\n\n```\nhmpo-stubber [options] [services.json...]\n```\n\n#### Options\n```\n  -c, --config path::String  Use configuration from this file\n  -p, --port Number          Specify port to listen on - default: 3030\n  -m, --mount String         Base path to mount mocks on - default: /\n  -s, --scenario String      Specify the default scenario - default: default\n  -h, --help                 display help\n```\n\n#### Example CLI config file\nYou can specify a configuration file using the -c option. The configuration file should be a JSON object with the following properties:\n\n```\n{\n  \"port\": 3030,\n  \"mount\": \"/\",                                     // base URL to mount the standalone server\n  \"scenario\": \"default\",                            // default scenario to use\n  \"stubs\": [\"./service1.json\", \"./service2.json\"]   // array of service filenames or service lists\n}\n```\n* `basePath`: Base path for the service routes.\n* `scenarios`: An object defining different scenarios and their corresponding responses.\n* `stubs`: This is an array of service config files, each of which can contain one or more stubbed services.  \n These files follow either: Simple Stub Format or Full Service Format (see below)\n\n#### Running CLI service\n```\nhmpo-stubber -c config.json\n```\n\n## Configuration\nThere are two supported formats for service configuration:\n\n### 1. Simple Stub Format\nThis is good for mocking one-off endpoints and standalone use via CLI.\n```\n{\n  \"name\": \"User Lookup\",\n  \"method\": \"GET\",\n  \"url\": \"/users\",\n  \"scenarios\": {\n    \"default\": {\n      \"status\": 200,\n      \"body\": { \"id\": 123, \"name\": \"Alice\" }\n    },\n    \"error\": {\n      \"status\": 500,\n      \"body\": { \"error\": \"Internal Server Error\" }\n    },\n    \"empty\": {\n      \"status\": 200,\n      \"body\": []\n    }\n  },\n  \"defaultScenario\": \"default\",\n  \"sessionID\": {\n    \"header\": \"x-session-id\"\n  },\n  \"scenarioID\": {\n    \"query\": \"scenario\"\n  }\n}\n```\n### 2. Full Service Format\nThis is the more structured format, where you define a full \"service\" with a basePath, an array of routes, and scenarios that map paths to response types.\n```\n{\n  \"name\": \"User Service\",\n  \"basePath\": \"/user\",\n  \"routes\": [\n    {\n      \"path\": \"/profile\",\n      \"methods\": [\"GET\"],\n      \"responses\": {\n        \"default\": {\n          \"status\": 200,\n          \"body\": { \"username\": \"john_doe\" }\n        },\n        \"error\": {\n          \"status\": 500,\n          \"body\": { \"error\": \"Something went wrong\" }\n        }\n      }\n    }\n  ],\n  \"scenarios\": {\n    \"default\": {\n      \"/profile\": \"default\"\n    },\n    \"error\": {\n      \"/profile\": \"error\"\n    }\n  }\n}\n```\n#### Service Configuration\n\n* `name`: Name of the service.\n* `basePath`: Base path for the service routes.\n* `routes`: An array of route configurations.\n* `scenarios`: An object defining different scenarios and their corresponding responses.\n\n#### Route Configuration\nEach route configuration specifies how a particular endpoint should behave:\n\n* `path`: The endpoint path.\n* `methods`: An array of HTTP methods supported by this route (e.g., GET, POST).\n* `responses`: An object mapping response names to their details:\n* `status`: HTTP status code to return.\n* `body`: JSON object representing the response body.\n\n### Scenario Configuration\nThe Scenario Object allows for defining complex, timed, or sequential behavior for a route. Instead of returning the same response every time, you define a series of responses that are returned in order on each call to that route.\n\nUse Cases\n* Simulating retry mechanisms or progressive failures\n* Paginated APIs\n* Eventual consistency patterns\n* Long-running tasks with polling\n\n**Scenario config object**\n```\n{\n    responses: Array,      // array of Response config objects to step through on each call  \n    loop: Boolean(false),  // loop around the response list instead of staying on the last response\n}\n```\n\n\n**Response config object**\n```\n{\n    body: Object,          // body to send as JSON (can be a filename or a function)\n    status: Number(200),   // status code to respond with\n    delay: Number(0),      // delay before sending the response(in milliseconds)\n    repeat: Number(1),     // number of times to repeat this response\n    close: Boolean(false), // close the connection before sending a response\n}\n```\n\n#### Example\n```\n{\n    \"scenarios\": {\n        \"default\": {\n            \"responses\": [\n                {\n                    \"status\": 200,\n                    \"body\": { \"step\": 1 },\n                    \"repeat\": 2\n                },\n                {\n                     \"status\": 200,\n                    \"body\": { \"step\": 2 }\n                }\n            ],\n        \"loop\": true\n    }\n  }\n}\n```\n\n## Exposed additions to the stub req object\nWhen a stub is matched and served, hmpo-stubber adds some helpful properties to the request object so you can access details about what scenario or response was used.\n\nUseful for:\n* Debugging: Inspect why a certain response was selected\n* Logging: Capture the scenario used per session\n\n### Structure\n```\nreq.stub = {\n  stubtub,   // the full stub config matched\n  service,   // the matched service (from services.json)\n  scenario,  // the current scenario used\n  response,  // the actual response object\n  session: {\n    services: {\n      [service.name]: {\n        scenario,        // scenario map for this service\n        scenarioID,      // name like 'default', 'error'\n        scenarioParam    // where scenario ID came from (e.g. 'query')\n      }\n    }\n  }\n}\n```\n\n### Example usage\n`console.log(req.stub.session.services['User Service'].scenarioID); // 'error'`\n\n## Complete Use Case Examples\nHere is a complete example to integrate `hmpo-stubber` into an Express.js application to serve stubbed responses.\n\n1. Create a services.json file:\n```\n[\n    {\n        \"name\": \"User Service\",\n        \"basePath\": \"/user\",\n        \"routes\": [\n            {\n                \"path\": \"/profile\",\n                \"methods\": [\"GET\"],\n                \"responses\": {\n                    \"default\": {\n                        \"status\": 200,\n                        \"body\": { \"username\": \"john_doe\", \"email\": \"john@example.com\" }\n                    },\n                    \"error\": {\n                        \"status\": 500,\n                        \"body\": { \"error\": \"Something broke\" }\n                    }\n                }\n            }\n        ],\n        \"scenarios\": {\n            \"default\": {\n                \"/profile\": \"default\"\n            },\n            \"error\": {\n                \"/profile\": \"error\"\n            }\n        }\n    }\n]\n```\n2. Set up the Express.js application:\n``` \nconst express = require('express');\nconst stubber = require('hmpo-stubber');\n\nconst app = express();\n\napp.use('/stubs', stubber.middleware('./services.json', 'User Stub Server'));\n\napp.listen(3000, () => {\n    console.log('Server is running on port 3000');\n});\n```\n\n3. Access the stubbed endpoint:\n```\nGET http://localhost:3000/stubs/user/profile?scenario=default\n```\nThis will return response:\n```\n{\n    \"username\": \"john_doe\",\n    \"email\": \"john@example.com\"\n}\n```\n","readmeFilename":"README.md","users":{"alalbers":true}}