{"_id":"@mocks-server/admin-api-client","_rev":"28-e2fd4a59dc2aa633273b22c6f118145d","name":"@mocks-server/admin-api-client","dist-tags":{"latest":"7.0.1","beta":"8.0.0-beta.2"},"versions":{"1.0.0":{"name":"@mocks-server/admin-api-client","version":"1.0.0","keywords":["mocks-server-plugin","administration","admin","api","rest","client"],"author":{"name":"Javier Brea"},"license":"MIT","_id":"@mocks-server/admin-api-client@1.0.0","maintainers":[{"name":"javierbrea","email":"javier.brea@gmail.com"}],"homepage":"https://www.mocks-server.org","bugs":{"url":"https://github.com/mocks-server/admin-api-client/issues"},"dist":{"shasum":"fde4ab8e6ce3fa5034b588e0790d1d30f31742a1","tarball":"https://registry.npmjs.org/@mocks-server/admin-api-client/-/admin-api-client-1.0.0.tgz","fileCount":7,"integrity":"sha512-K5SwsYGyceAKa3XzUjPfb6QpWW8WiylL2DdfJHr6BoDKtDfHCf86LECG6PplX89mF5vt+dEkzKgghCJ0ij3x5g==","signatures":[{"sig":"MEUCIB6vuMehNGTcPtRk6551tiZGY6uhCfiFcUm5wG3OuholAiEAoW8JyG/0egNZ92LnM2HIKrIIARltV5HUrf4h3FiwbE4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17591,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeA5sMCRA9TVsSAnZWagAAgXgQAJlXRucWh0Gm7CyQgKtN\nL5eegba3PQ7QBZusthpeQNk+wYLHiKsXctICPnuO/DabnpxJKUASMmpae9DP\nyaamCD46uK+777sB4AnnGyF+U+RPdirsL7eQJCZzNEUKcng72LrWdFK/GNMY\n7GG89MQQM20FDAfdMOTVmBnT/FcS7OFCRTAZMl38kUHc3wuXAaYsVuO5cLa2\n+UtNH8y/LhKqHA9qjn8RRA0pFaAZqxdExjQGjAqvY9K/u3s3EsI5Ori7AMWS\nO9QZtjEVApcLi62BVJIKYZsApF5Vu23uMH6SH9WYtczM3sZMxVwkaIdL+gBH\nOBQlpv43StnNmGtwSNo2s7NQDCGcfzEqnHbuuHwR0TLlWm36ouPqxvHxA66n\nSfHwKlHyI45HNkSY7JcS0GzICrGdLLibNBj5oyoyiQWKYbVy9ZbmBvTrimlh\nfQ04rObJ40wdmbSFhRUhlUm9DRsDJCwKhDwcrX/sUcUw7kYYodwr5+Sl45T3\nHskMJuRE2I7bni2zMrPkm7kRVfKurl/cXR8y802CMQVTyypKs2iwc8B5CqZV\nPSCFzcrWdNRqwrnmjN8RxHs+SRUTagFBphcvIzkRd5nKAywKXyXiFqhATd+f\nFUQri48fe44l8aevsOOFRY22/Y0zAamP6o/Q4zqTWyJa6PQ7ywAydgVI7NSZ\ng9WP\r\n=clNJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.umd.js","husky":{"hooks":{"pre-commit":"npm run lint-staged"}},"module":"dist/index.esm.js","engines":{"npm":">6.0.0","node":">8.0.0"},"gitHead":"8962bbd544798a46b7701ea4683a32bb53154b07","scripts":{"lint":"eslint index.js test src jest.config.js test-e2e/browser/react-app/src test-e2e/browser/cypress test-e2e/browser/vanilla-app/public/main.js test-e2e/nodejs/es6/test test-e2e/nodejs/es6/index.js","test":"jest","build":"rollup --config","test:e2e":"npm run test:e2e:browser && npm run test:e2e:nodejs","coveralls":"cat ./coverage/lcov.info | coveralls","lint-staged":"lint-staged","test:e2e:ci":"npm run test:e2e:install && npm run test:e2e","test:e2e:nodejs":"cd test-e2e/nodejs/es6 && npm run test:ci","test:e2e:browser":"cd test-e2e/browser && npm run test:react-app && npm run test:vanilla-app","test:e2e:install":"cd test-e2e/mocks && npm i && cd ../nodejs/es6 && npm i && cd ../../browser && npm i && npm run cypress:install && cd react-app && npm i && cd ../vanilla-app && npm i"},"_npmUser":{"name":"javierbrea","email":"javier.brea@gmail.com"},"repository":{"url":"git+https://github.com/mocks-server/admin-api-client.git","type":"git"},"_npmVersion":"6.2.0","description":"Client of @mocks-server/plugin-admin-api","directories":{},"lint-staged":{"index.js":"eslint","src/**/*.js":"eslint","test/**/*.js":"eslint","jest.config.js":"eslint","test-e2e/nodejs/es6/index.js":"eslint","test-e2e/browser/cypress/**/*.js":"eslint","test-e2e/nodejs/es6/test/**/*.js":"eslint","test-e2e/browser/react-app/src/**/*.js":"eslint","test-e2e/browser/vanilla-app/public/main.js":"eslint"},"_nodeVersion":"10.8.0","dependencies":{"@data-provider/axios":"^1.5.0","@mocks-server/admin-api-paths":"^1.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"24.9.0","husky":"3.0.9","sinon":"^8.0.1","eslint":"6.6.0","rollup":"^1.27.14","prettier":"^1.19.1","coveralls":"^3.0.7","babel-jest":"^24.9.0","lint-staged":"^9.4.2","babel-eslint":"^10.0.3","babel-polyfill":"^6.26.0","@babel/preset-env":"^7.7.7","@data-provider/core":"^1.7.0","eslint-plugin-react":"^7.17.0","rollup-plugin-babel":"^4.3.3","rollup-plugin-uglify":"^6.0.4","eslint-config-prettier":"6.5.0","eslint-plugin-prettier":"^3.1.1","@rollup/plugin-commonjs":"^11.0.0","@rollup/plugin-node-resolve":"^6.0.0"},"peerDependencies":{"@data-provider/core":"^1.7.0"},"_npmOperationalInternal":{"tmp":"tmp/admin-api-client_1.0.0_1577294603607_0.5515956665906057","host":"s3://npm-registry-packages"},"deprecated":"This package has been discontinued and is no longer maintained. It will not receive bug fixes or security updates."},"1.0.1":{"name":"@mocks-server/admin-api-client","version":"1.0.1","keywords":["mocks-server-plugin","administration","admin","api","rest","client"],"author":{"name":"Javier Brea"},"license":"MIT","_id":"@mocks-server/admin-api-client@1.0.1","maintainers":[{"name":"javierbrea","email":"javier.brea@gmail.com"}],"homepage":"https://www.mocks-server.org","bugs":{"url":"https://github.com/mocks-server/admin-api-client/issues"},"dist":{"shasum":"5411bafd2e4f2c962068ab4b312763869b271ab1","tarball":"https://registry.npmjs.org/@mocks-server/admin-api-client/-/admin-api-client-1.0.1.tgz","fileCount":7,"integrity":"sha512-WcGphOR4ZUZDBj23Kf7evBd1feC5temy0e/lLQsHHUADCieVf/324gWn62uMIkByHm5F0/mtnUoWjq3MdokLYA==","signatures":[{"sig":"MEUCICQwXqNXCiX9SVlREoUsFNuYhYMh8U34zDAq3O0WvIkvAiEAhoOU3ywNVJ1u2Lj0xg/PEZUwn97ibU+LI02S4Zw1NiE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17810,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeGuFRCRA9TVsSAnZWagAAsZ4QAIe70k+Pxg8muckd4yLl\nn2ujyO4VAnyeDeI3LfSKfmNOD4Q2TYMfOHacD2A2gGk/EIaPleU3DQRoCAwE\nram+2RsIQn33uQhn3lmvkfE+cuC80BFvlOP2anv/bPsFw68cywjAEhUxwoLB\n6ELMg1Y+BCvv7A8X9sHLv1RVPzA28FyARpc4TaTI/5k5fbBNzugVFMRup1vk\nrY8zQi85sFwI/X8vtWMZnwN0rfWOWT6VUTlWRLCy3UI8bCsBajXSr3E25yNN\n9O2jq7IK5SLpHtp9l7vU70vgYFmZYJghYUW4Lv++10IvPVfBUwrsoygj8VqR\nxvTqndixuVtTOtpfVZ0XGAI72b0nCZZFrdF/gRmsiLnsEdKB0I/oEwfG46ct\nMRpl6WO95h3FDjxLU6D5asHhHwr8vUvmOObrIGXehX8TlNZ7mljD09eIZ9aw\naV1Gg0FIhL6DRj6u3oJmUzmCiF9ahg9L8Gjb19WvLIx2hbvVGFoAYRcPnKOe\n97O4X87G9HVq59pRjHDWtl/dQ0Eil0DgGxy8LOyJMHV+S2Co3UW9U/JWoSW3\nqdPldEP9Ytd0KEUaDc1V6dH9aPq5r6O94MjZJnfOLgSnTLqjfO2GraKriUPR\nmOK7TkT2sqs+Qbs/940Svob0vluxBkaMWydsSKUiwW39nB+W423CqnGYbcDz\nN/lr\r\n=DalB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.umd.js","husky":{"hooks":{"pre-commit":"npm run lint-staged"}},"module":"dist/index.esm.js","engines":{"npm":">6.0.0","node":">8.0.0"},"gitHead":"70ca32082f4702926e5ca586c7f78042502f4205","scripts":{"lint":"eslint index.js test src jest.config.js test-e2e/browser/react-app/src test-e2e/browser/cypress test-e2e/browser/vanilla-app/public/main.js test-e2e/nodejs/es6/test test-e2e/nodejs/es6/index.js","test":"jest","build":"rollup --config","test:e2e":"npm run test:e2e:browser && npm run test:e2e:nodejs","coveralls":"cat ./coverage/lcov.info | coveralls","lint-staged":"lint-staged","test:e2e:ci":"npm run test:e2e:install && npm run test:e2e","test:e2e:nodejs":"cd test-e2e/nodejs/es6 && npm run test:ci","test:e2e:browser":"cd test-e2e/browser && npm run test:react-app && npm run test:vanilla-app","test:e2e:install":"cd test-e2e/mocks && npm i && cd ../nodejs/es6 && npm i && cd ../../browser && npm i && npm run cypress:install && cd react-app && npm i && cd ../vanilla-app && npm i"},"_npmUser":{"name":"javierbrea","email":"javier.brea@gmail.com"},"repository":{"url":"git+https://github.com/mocks-server/admin-api-client.git","type":"git"},"_npmVersion":"6.2.0","description":"Client of @mocks-server/plugin-admin-api","directories":{},"lint-staged":{"index.js":"eslint","src/**/*.js":"eslint","test/**/*.js":"eslint","jest.config.js":"eslint","test-e2e/nodejs/es6/index.js":"eslint","test-e2e/browser/cypress/**/*.js":"eslint","test-e2e/nodejs/es6/test/**/*.js":"eslint","test-e2e/browser/react-app/src/**/*.js":"eslint","test-e2e/browser/vanilla-app/public/main.js":"eslint"},"_nodeVersion":"10.8.0","dependencies":{"@data-provider/axios":"^1.6.0","@mocks-server/admin-api-paths":"^1.0.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"24.9.0","husky":"4.0.6","sinon":"^8.0.1","eslint":"6.8.0","rollup":"^1.27.14","prettier":"^1.19.1","coveralls":"^3.0.7","babel-jest":"^24.9.0","lint-staged":"^9.4.2","babel-eslint":"^10.0.3","babel-polyfill":"^6.26.0","@babel/preset-env":"^7.7.7","@data-provider/core":"^1.7.0","eslint-plugin-react":"^7.17.0","rollup-plugin-babel":"^4.3.3","rollup-plugin-uglify":"^6.0.4","eslint-config-prettier":"6.9.0","eslint-plugin-prettier":"^3.1.1","@rollup/plugin-commonjs":"^11.0.0","@rollup/plugin-node-resolve":"^7.0.0"},"peerDependencies":{"@data-provider/core":"^1.7.0"},"_npmOperationalInternal":{"tmp":"tmp/admin-api-client_1.0.1_1578819921538_0.8367421366876409","host":"s3://npm-registry-packages"},"deprecated":"This package has been discontinued and is no longer maintained. It will not receive bug fixes or security updates."},"1.0.2":{"name":"@mocks-server/admin-api-client","version":"1.0.2","keywords":["mocks-server-plugin","administration","admin","api","rest","client"],"author":{"name":"Javier Brea"},"license":"MIT","_id":"@mocks-server/admin-api-client@1.0.2","maintainers":[{"name":"javierbrea","email":"javier.brea@gmail.com"}],"homepage":"https://www.mocks-server.org","bugs":{"url":"https://github.com/mocks-server/admin-api-client/issues"},"dist":{"shasum":"013a5abf8aef2f5391f08ed4789086aec9c60406","tarball":"https://registry.npmjs.org/@mocks-server/admin-api-client/-/admin-api-client-1.0.2.tgz","fileCount":7,"integrity":"sha512-w2Rpoy1xRQzEsD/LLqDKS92n71IeXV9TRxvbn3Awc2DyCgVDJFnOnY5zIuuiZMFCsCF5Fyfmi5xYPdL5fCJoFw==","signatures":[{"sig":"MEUCIFDrsvdm4lmZJY8LtrfEcgM4nLFEYO+BkKp4khLJbrmZAiEA9T3WsDQa2eFvO0TBR9jWlLYZ/tiqWiPr2+ObSmYdg6I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17891,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeG1/vCRA9TVsSAnZWagAAMyQP/1U/PpXywXK+OQY8GQTw\nhOjH+o/Q9dq+Ztpm3CFDQTZo3frixCCaqwdfxyGFxkZ8rEWJl1Ug1/8mT7kF\ntgz2ygBgsjHE81lOw1SJDE7w7WOSo/fCgOpmo0mlielhB4HJV/7pKKaIdHJj\nJqe6HSFhR+SGmbMi0jNhaZKu+SU1+rPaOb8ydoHbO61MEYAqtH3DZNoipB7O\na6phDudFPojCguTvn9AqjfCk5lgA1+EdNNM0xyrK2e1kUlzs4WfvT1goyxHZ\nvfKB2FcwsH6TUnFSDLYWFYefYAh69CwDeJwE11248S5cGH0+y5JHti6hzR5R\nw4fgls3T6TxOAFWAW5+5RzbdNAtlOuWJbAmfDI9QeU+XB780aVmzkrjwEkRy\n6X+ciX2xRXZwUxQlFD/a0l+3rXUibS0+0h4uiCx6B2Q8vvPFMJHaSX1kb5Wz\n7PCr8qUV7p0GVNokxebpngs8nKXRmbDz+/1ecPYh6BD/Kddwm+NtkziSfAhN\nYDOPJpm/PqbYYTBtTkY3/Bd13R/Wd8lnKVpyPGOKwNgXZRwJODxFmKtxaVZ7\nIhfDm3skPml0zQ0WY6I4iLZcQEAvaPeeD2ZYfcDnyb35LSWpcX1ihPqTBuem\noa2v3TU/zXStfJROohrn1MIEJkVHfKp7uBcUAgvlw8BSfrMa2TL7Di0cRX1O\n1bew\r\n=8U4Q\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.umd.js","husky":{"hooks":{"pre-commit":"npm run lint-staged"}},"module":"dist/index.esm.js","engines":{"npm":">6.0.0","node":">8.0.0"},"gitHead":"98fd790427f156dd51e00eabc144d891447f175b","scripts":{"lint":"eslint index.js test src jest.config.js test-e2e/browser/react-app/src test-e2e/browser/cypress test-e2e/browser/vanilla-app/public/main.js test-e2e/nodejs/es6/test test-e2e/nodejs/es6/index.js","test":"jest","build":"rollup --config","test:e2e":"npm run test:e2e:browser && npm run test:e2e:nodejs","coveralls":"cat ./coverage/lcov.info | coveralls","lint-staged":"lint-staged","test:e2e:ci":"npm run test:e2e:install && npm run test:e2e","test:e2e:nodejs":"cd test-e2e/nodejs/es6 && npm run test:ci","test:e2e:browser":"cd test-e2e/browser && npm run test:react-app && npm run test:vanilla-app","test:e2e:install":"cd test-e2e/mocks && npm i && cd ../nodejs/es6 && npm i && cd ../../browser && npm i && npm run cypress:install && cd react-app && npm i && cd ../vanilla-app && npm i"},"_npmUser":{"name":"javierbrea","email":"javier.brea@gmail.com"},"repository":{"url":"git+https://github.com/mocks-server/admin-api-client.git","type":"git"},"_npmVersion":"6.2.0","description":"Client of @mocks-server/plugin-admin-api","directories":{},"lint-staged":{"index.js":"eslint","src/**/*.js":"eslint","test/**/*.js":"eslint","jest.config.js":"eslint","test-e2e/nodejs/es6/index.js":"eslint","test-e2e/browser/cypress/**/*.js":"eslint","test-e2e/nodejs/es6/test/**/*.js":"eslint","test-e2e/browser/react-app/src/**/*.js":"eslint","test-e2e/browser/vanilla-app/public/main.js":"eslint"},"_nodeVersion":"10.8.0","dependencies":{"@data-provider/axios":"1.6.1","@mocks-server/admin-api-paths":"1.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"24.9.0","husky":"4.0.6","sinon":"8.0.1","eslint":"6.8.0","rollup":"1.27.14","prettier":"1.19.1","coveralls":"3.0.7","babel-jest":"24.9.0","lint-staged":"9.4.2","babel-eslint":"10.0.3","babel-polyfill":"6.26.0","@babel/preset-env":"7.7.7","@data-provider/core":"1.7.0","eslint-plugin-react":"7.17.0","rollup-plugin-babel":"4.3.3","rollup-plugin-uglify":"6.0.4","eslint-config-prettier":"6.9.0","eslint-plugin-prettier":"3.1.1","@rollup/plugin-commonjs":"11.0.0","@rollup/plugin-node-resolve":"7.0.0"},"peerDependencies":{"@data-provider/core":"^1.7.0"},"_npmOperationalInternal":{"tmp":"tmp/admin-api-client_1.0.2_1578852335147_0.4735249112081994","host":"s3://npm-registry-packages"},"deprecated":"This package has been discontinued and is no longer maintained. It will not receive bug fixes or security updates."},"2.0.0":{"name":"@mocks-server/admin-api-client","version":"2.0.0","keywords":["mocks-server-plugin","administration","admin","api","rest","client"],"author":{"name":"Javier Brea"},"license":"MIT","_id":"@mocks-server/admin-api-client@2.0.0","maintainers":[{"name":"javierbrea","email":"javier.brea@gmail.com"}],"homepage":"https://www.mocks-server.org","bugs":{"url":"https://github.com/mocks-server/admin-api-client/issues"},"dist":{"shasum":"347cb511d6a19ecdc0157c14b3aed9f93250add1","tarball":"https://registry.npmjs.org/@mocks-server/admin-api-client/-/admin-api-client-2.0.0.tgz","fileCount":7,"integrity":"sha512-rz9171sLO+DXp+T7FPcF964Z+7OwK7ixKLvsOAkZb7ygLEBjhlQD1zIsG8q1FyDna4FAoqdYe1hlTVXx5vBpiQ==","signatures":[{"sig":"MEQCIGNd3AjrgPsi7Ag1iOSBMmKzLmlW22BFmMHPSvZ707zLAiBLAYPa6OegR4tmyZhfbylXasSa5t8d4sOjcPZRVHP+zQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27246,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeW5LoCRA9TVsSAnZWagAA0p8QAJ8ERMhAmmUQDgQlJkZj\n8obTR37Lar5WqLhQi2yKeWd707UKU1Mx7f2Klqjqjjaz1ps9mXWZXiiv/7jh\ntR3GfqX30/eBAbbOjmbcMbwyhDduxgbcC5UYcYzxQKMTLn2YGV8FQ4L+4qvT\nF5XJuKDhcS4JJvXxAWToAZWHKHtiwrrFMDMFZhGxLf5+tFqf7c4DeFNyJgsf\nxsztuA7zjsVc3bLs6484ED7w6pMwboQdA9arZyl/ZzRyKz4jx2cpKlO722zB\nZP6wfnyfQCUjE1TrtCs+ICV+cxx5Jdq4dDulPUR5IxG0yxT6QW9x0buPwCDC\naJLfHqbIsjpDaTyy6oVRwnSEOlyJt73o90zsu24P7Skwk469g7cAAAn7MHZI\nInGfCv08XVbPsIIkPpWuCr4a30li4E180GkGPkkVr/D/iJd0PnPV4IJ+usMf\nHNX58XcvcKvGjBYsawgTLR3ZlWvD1ybGMmQvyABn+XlCR+LWguJGttECwkyX\n6XdDxlxlxZS0adj1ATFl45SfmdKCeZ9gj20f1SnHJrHjpcqFObNtwhxzOIWA\n9wkJMvgVlRZJysNoAiSgmetJD9UDhqBJs2/V5oHMJVMXlXNxjt2BvJqhtzFW\n4xeA2HXOF6UVqdyB4RBhB+hiUde0ljw2DEe9qFdgNs5q+ATkoHaQEHmLiH2g\nIiYr\r\n=MiR9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.umd.js","husky":{"hooks":{"pre-commit":"npm run lint-staged"}},"module":"dist/index.esm.js","engines":{"node":"10.x || 12.x || 13.x"},"gitHead":"08f6bc319c078f23deeaea03c39dcb5083307e2d","scripts":{"lint":"eslint index.js test src jest.config.js","test":"jest","build":"rollup --config","test:ci":"npm run test:coverage","mocks:ci":"cd mocks && npm run mocks:ci","coveralls":"cat ./coverage/lcov.info | coveralls","lint-staged":"lint-staged","mocks:install":"cd mocks && npm i","test:coverage":"npm run mocks:install && start-server-and-test mocks:ci tcp:3200 test"},"_npmUser":{"name":"javierbrea","email":"javier.brea@gmail.com"},"repository":{"url":"git+https://github.com/mocks-server/admin-api-client.git","type":"git"},"_npmVersion":"6.13.4","description":"Client of @mocks-server/plugin-admin-api","directories":{},"lint-staged":{"index.js":"eslint","src/**/*.js":"eslint","test/**/*.js":"eslint","jest.config.js":"eslint"},"_nodeVersion":"10.18.1","dependencies":{"cross-fetch":"3.0.4","@mocks-server/admin-api-paths":"1.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"24.9.0","husky":"4.2.1","sinon":"8.1.1","eslint":"6.8.0","rollup":"1.31.0","prettier":"1.19.1","coveralls":"3.0.9","babel-jest":"24.9.0","lint-staged":"9.5.0","babel-eslint":"10.0.3","babel-polyfill":"6.26.0","@babel/preset-env":"7.8.4","eslint-plugin-react":"7.18.0","rollup-plugin-babel":"4.3.3","rollup-plugin-uglify":"6.0.4","start-server-and-test":"1.10.8","eslint-config-prettier":"6.10.0","eslint-plugin-prettier":"3.1.2","@rollup/plugin-commonjs":"11.0.1","@rollup/plugin-node-resolve":"7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/admin-api-client_2.0.0_1583059688203_0.6708968202615402","host":"s3://npm-registry-packages"},"deprecated":"This package has been discontinued and is no longer maintained. It will not receive bug fixes or security updates."},"2.0.1":{"name":"@mocks-server/admin-api-client","version":"2.0.1","keywords":["mocks-server-plugin","administration","admin","api","rest","client"],"author":{"name":"Javier Brea"},"license":"MIT","_id":"@mocks-server/admin-api-client@2.0.1","maintainers":[{"name":"javierbrea","email":"javier.brea@gmail.com"}],"homepage":"https://www.mocks-server.org","bugs":{"url":"https://github.com/mocks-server/admin-api-client/issues"},"dist":{"shasum":"887397fa8d82fd47a5e3eb3ab52125ac37c7aecd","tarball":"https://registry.npmjs.org/@mocks-server/admin-api-client/-/admin-api-client-2.0.1.tgz","fileCount":7,"integrity":"sha512-b+7lbXCgT+fZqrIpPUjhbOPSfuRvU/GoRyUrTFb5R9BYfg77Sh4JIwdJJM7X6h5dCcBXRsqVygTcwCDFb2Kqfg==","signatures":[{"sig":"MEYCIQCUfGCCgf9j/DTCM2nZrgnyTesIsZcINfUA4A6ZfR1WMgIhAICXHX19SKPQEtCPTvudgCFdIzz9YjBiSkoSQJDxZE9p","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27304,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJedzcuCRA9TVsSAnZWagAAYh0P/iDUmdAa+jT7RkTCW+18\n+L/7c6PNDgEP8Jm/8EzLWbURv9lsk4AONCuwR3LkWDCGKex8RnFejSrM3nut\nnW+Lqoiami6ZKlECnB8Q8FHcRjRWrUjOQjjmuVpxm+V85J59oOBWrUZgtqq4\nq4oGDUZ5CqR+lojWH30m2U6v93jce/h3A1aMqVVDoC+S3TRGEVikdegUk41P\nw0ZmUpmQiuzTFqLcHuH+o1ByPiDsa1IdX/TN00WPcO4ogqh06pf3ZAJTBtKW\nd6JOHjwtLHcV4B2rSkLOSw9zsf695BDWltv4AO5l316xGNcDB0Yjd/4IE1th\n7yft3YGBLrDJBpE9DxOIPqgTIjrnrrjz5JHlYac9BYHu6KNSwjw/8VGdJEbu\n6Pt4rfiwSoTzD0kE/32bA6IOcx+duqEh1h5AOez0o/I0uUWpcDzqKF+pBsEb\nrdfbfh6i9f2GOMkbNmvuTCGX2mb8KCepn47INvOH6BNuG8okwFWxvnUblRY+\nb715QSh5pU/qxdGW6HXyvpFnh75lktdIqWAK4tBZLdLTHDHMNg2MFUDib3EI\nJ1z5KJrGimghOMBjWYP6ykVGqfwwZu2UNpSRF+maVgzjSvs1xsWJHXsIHjvP\n/DA+eNh9JHlAoYZWb/fRovqnCSRkrGaCkKe39OPqx5Ll9npIa4jcOC6Lju79\nayAU\r\n=Mzw2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.umd.js","husky":{"hooks":{"pre-commit":"npm run lint-staged"}},"module":"dist/index.esm.js","engines":{"node":"10.x || 12.x || 13.x"},"gitHead":"f2159d7b98e1faaef3c53c383da3a5d8112bd145","scripts":{"lint":"eslint index.js test src jest.config.js","test":"jest","build":"rollup --config","test:ci":"npm run test:coverage","mocks:ci":"cd mocks && npm run mocks:ci","coveralls":"cat ./coverage/lcov.info | coveralls","lint-staged":"lint-staged","mocks:install":"cd mocks && npm i","test:coverage":"npm run mocks:install && start-server-and-test mocks:ci tcp:3200 test"},"_npmUser":{"name":"javierbrea","email":"javier.brea@gmail.com"},"repository":{"url":"git+https://github.com/mocks-server/admin-api-client.git","type":"git"},"_npmVersion":"6.13.4","description":"Client of @mocks-server/plugin-admin-api","directories":{},"lint-staged":{"index.js":"eslint","src/**/*.js":"eslint","test/**/*.js":"eslint","jest.config.js":"eslint"},"_nodeVersion":"10.19.0","dependencies":{"cross-fetch":"3.0.4","@mocks-server/admin-api-paths":"1.0.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"25.1.0","husky":"4.2.3","sinon":"9.0.1","eslint":"6.8.0","rollup":"1.32.1","prettier":"2.0.1","coveralls":"3.0.9","babel-jest":"25.1.0","lint-staged":"10.0.8","babel-eslint":"10.0.3","babel-polyfill":"6.26.0","@babel/preset-env":"7.8.4","eslint-plugin-react":"7.19.0","rollup-plugin-babel":"4.4.0","rollup-plugin-uglify":"6.0.4","start-server-and-test":"1.10.11","eslint-config-prettier":"6.10.0","eslint-plugin-prettier":"3.1.2","@rollup/plugin-commonjs":"11.0.2","@rollup/plugin-node-resolve":"7.1.1"},"_npmOperationalInternal":{"tmp":"tmp/admin-api-client_2.0.1_1584871214074_0.6030301445351092","host":"s3://npm-registry-packages"},"deprecated":"This package has been discontinued and is no longer maintained. It will not receive bug fixes or security updates."},"2.0.2":{"name":"@mocks-server/admin-api-client","version":"2.0.2","keywords":["mocks-server-plugin","administration","admin","api","rest","client"],"author":{"name":"Javier Brea"},"license":"MIT","_id":"@mocks-server/admin-api-client@2.0.2","maintainers":[{"name":"javierbrea","email":"javier.brea@gmail.com"}],"homepage":"https://www.mocks-server.org","bugs":{"url":"https://github.com/mocks-server/admin-api-client/issues"},"dist":{"shasum":"858a415db1a3311b86a7377b502982ef63cf05a0","tarball":"https://registry.npmjs.org/@mocks-server/admin-api-client/-/admin-api-client-2.0.2.tgz","fileCount":7,"integrity":"sha512-03QAjwbOB92VLbY5J3BbXdDPwOe+ctHv5OylX4u9xV677+ag9WHNrU8TD4j1tewWRmh5e0wwbhXljLKaCPKAgA==","signatures":[{"sig":"MEUCIQDWFVpamLEVirlZJ6JKEHvhZZ61DYXoHImUXYtBARpO5QIgNfX1JP2p5oNVZw5YUSWrE4243m+mDrmULCzYgi6YAeI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27362,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJekCsUCRA9TVsSAnZWagAAru8P/Rc1+1CYMLimHHTfEbFk\nj6uSaJhmW7l1Go/uwIv2LtxozUHlxZo1aoZzSZsmVdL0195Z/Lg22Gi212ix\nHOajYiQ4tM6KGqd29dG7IKbAHZ3U/Kt2Q1uXaBBJUjD4V7HjkE1xGZmGtQlI\nzXmk8ssWbVU4rNtbB2VN70ReuDxcAEIV+yMbajhV2ruADYeS2bplpgGCiMol\nLhiXQY8rCvojfIPeiqoH7hJ7TTT66UQjZoPmTmbehprhZqpAl3B8N8DHlMsc\nyxOBk4b8AAZiAQlYeMJDaQcZrSop2AoAzKtS5l7yu/G7TdvFKWJYBZUYzZLw\n+3TKRsll8It5aam5jQIrHdvYEatdQrXpA/6YR8auAVg8A9yHnl5m82iD4+s0\nvk+eDSDPW0GfZiAPDInOfvTluaUEXMCqKMjPUQjOFwuTPULgkSNtYONU5PvE\nCZPmbVBaqEWYg9SqNzlX++C3w7vrO8/bZRnCG5Z1BuDGYCz7cmKQmOKgpvvP\ngc92fJQtfHvM1n4EXUYmKqNFv8rWJvwiMRAG9xevAtnU1dj5Axfv4ilQrxsT\nP1Iy1vU6o2UKTpLayWz0Uc90VcPkEPLFaakMANSIDUELvP30hMbeCzEw1RId\nRUZX+VpEjfXAQVrxG5AS2rbO5zYzdVJVV6K3o9MODfl9emWtB53slWPZC3vh\nHZYS\r\n=bcrD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.umd.js","husky":{"hooks":{"pre-commit":"npm run lint-staged"}},"module":"dist/index.esm.js","engines":{"node":"10.x || 12.x || 13.x"},"gitHead":"05e0b8cfc12ecf71a30c8aabf6c3c843c1cd70ea","scripts":{"lint":"eslint index.js test src jest.config.js","test":"jest","build":"rollup --config","test:ci":"npm run test:coverage","mocks:ci":"cd mocks && npm run mocks:ci","coveralls":"cat ./coverage/lcov.info | coveralls","lint-staged":"lint-staged","mocks:install":"cd mocks && npm i","test:coverage":"npm run mocks:install && start-server-and-test mocks:ci tcp:3200 test"},"_npmUser":{"name":"javierbrea","email":"javier.brea@gmail.com"},"repository":{"url":"git+https://github.com/mocks-server/admin-api-client.git","type":"git"},"_npmVersion":"6.14.4","description":"Client of @mocks-server/plugin-admin-api","directories":{},"lint-staged":{"index.js":"eslint","src/**/*.js":"eslint","test/**/*.js":"eslint","jest.config.js":"eslint"},"_nodeVersion":"10.20.0","dependencies":{"cross-fetch":"3.0.4","@mocks-server/admin-api-paths":"1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"25.3.0","husky":"4.2.5","sinon":"9.0.2","eslint":"6.8.0","rollup":"2.4.0","prettier":"2.0.4","coveralls":"3.0.9","babel-jest":"25.3.0","lint-staged":"10.1.3","babel-eslint":"10.1.0","babel-polyfill":"6.26.0","@babel/preset-env":"7.9.5","eslint-plugin-react":"7.19.0","rollup-plugin-babel":"4.4.0","rollup-plugin-uglify":"6.0.4","start-server-and-test":"1.10.11","eslint-config-prettier":"6.10.1","eslint-plugin-prettier":"3.1.2","@rollup/plugin-commonjs":"11.0.2","@rollup/plugin-node-resolve":"7.1.1"},"_npmOperationalInternal":{"tmp":"tmp/admin-api-client_2.0.2_1586506515908_0.9929673806576371","host":"s3://npm-registry-packages"},"deprecated":"This package has been discontinued and is no longer maintained. It will not receive bug fixes or security updates."},"2.0.3":{"name":"@mocks-server/admin-api-client","version":"2.0.3","keywords":["mocks-server-plugin","administration","admin","api","rest","client"],"author":{"name":"Javier Brea"},"license":"MIT","_id":"@mocks-server/admin-api-client@2.0.3","maintainers":[{"name":"javierbrea","email":"javier.brea@gmail.com"}],"homepage":"https://www.mocks-server.org","bugs":{"url":"https://github.com/mocks-server/admin-api-client/issues"},"dist":{"shasum":"12631282922d5b75a38913fbe26b8ef0ab561124","tarball":"https://registry.npmjs.org/@mocks-server/admin-api-client/-/admin-api-client-2.0.3.tgz","fileCount":7,"integrity":"sha512-A9W46Z83PQnbCyPppnHZNri8Tc15oMribRkmSTc/vIirwzb1ZWStxri/sRMOHPMmy60EaMuxiKJM8toHWfnDVA==","signatures":[{"sig":"MEUCIFsO+5gklJKJkwjZyxUMi5Yof0+nnFY0SnrbXadH6mx2AiEAvTkz79GNcynukb0wIExz7gtEEurO1rDAtl1U4mLn6sw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27650,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe5gQzCRA9TVsSAnZWagAAOJYP/isBhj8ZOGmgHMbzbxJf\nYYVGA64zDVDlNOpn5EVKJs8+ZQbd8lPehOSmKOnvsWdAn9D5ksA9fCpYTiar\nppg0Gyv4QLnLkFr5DfDHBWJilgEQ0bn7EI4Fc2lW17GxhUexIPSsROm1bvew\nkKhIZjQAKdYZPwGdQ156FU8Yq1RIcn5SsZ6tlOQ0TZNqPokEOSmUN9el+k9D\nP4MWa+vZ41JTpp0vf87s7qFSCOA9uYr/zp13HBViYfiEUAl3meUzaxwf1J4q\nL0DkNZMUfQZNvnJtQ3rzloxKSZR8bCaoOP/wyQ5vVVITNCsDF08wctsdLM/K\nCqJtRvJopUTYP/RjL/olDhDeF035Iqhc6RHshGqbBRQ4kWpmgw58b8EgkAuM\n2vxZr7GjNZvTlalVtVc5kGaqxjBuBIxq5l9ZyhaAc+rPY4pxLLKnQuuInBHS\n0UtBu1Q5rUbB5kT2ro+fxTBagw1meaTpE7uKFVVnz5zqMCaPD+KuI1zAuJhd\nMrYps2TCFb+DK6+ebgyxKe0MoKEaBVg/Lr5ID3p9uS71BOfZ7xNT1lxBJGfr\ntVTJc0VjCyar4MvSFm0Ayz/xIN538hvoX5dWAJmeUWldFyDFqRL5Bpn1zcdF\n+dnP0abJQbEEz+oC3xzjcYoQaHRDQSqOTACUnVFk6a2PttuIdqQvq5JPYyV0\nSiNy\r\n=fabi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.umd.js","husky":{"hooks":{"pre-commit":"npm run lint-staged"}},"module":"dist/index.esm.js","engines":{"node":"12.x || 14.x"},"gitHead":"8d54a7811a59aeeebd4c1de81ee1f4e78cbfcec8","scripts":{"lint":"eslint *.js test src jest.config.js","test":"jest","build":"rollup --config","test:ci":"npm run test:coverage","mocks:ci":"cd mocks && npm run mocks:ci","coveralls":"cat ./coverage/lcov.info | coveralls","lint-staged":"lint-staged","mocks:install":"cd mocks && npm i","test:coverage":"npm run mocks:install && start-server-and-test mocks:ci tcp:3200 test"},"_npmUser":{"name":"javierbrea","email":"javier.brea@gmail.com"},"repository":{"url":"git+https://github.com/mocks-server/admin-api-client.git","type":"git"},"_npmVersion":"6.14.4","description":"Client of @mocks-server/plugin-admin-api","directories":{},"lint-staged":{"*.js":"eslint","src/**/*.js":"eslint","test/**/*.js":"eslint","jest.config.js":"eslint"},"_nodeVersion":"12.18.0","dependencies":{"cross-fetch":"3.0.4","@mocks-server/admin-api-paths":"1.0.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"26.0.1","husky":"4.2.5","sinon":"9.0.2","eslint":"7.2.0","rollup":"2.16.1","prettier":"2.0.5","coveralls":"3.0.9","babel-jest":"26.0.1","lint-staged":"10.2.10","babel-eslint":"10.1.0","babel-polyfill":"6.26.0","@babel/preset-env":"7.10.2","eslint-plugin-react":"7.20.0","@rollup/plugin-babel":"5.0.3","rollup-plugin-terser":"6.1.0","start-server-and-test":"1.11.0","eslint-config-prettier":"6.11.0","eslint-plugin-prettier":"3.1.3","@rollup/plugin-commonjs":"13.0.0","@rollup/plugin-node-resolve":"8.0.1"},"_npmOperationalInternal":{"tmp":"tmp/admin-api-client_2.0.3_1592132658938_0.4346022586271565","host":"s3://npm-registry-packages"},"deprecated":"This package has been discontinued and is no longer maintained. It will not receive bug fixes or security updates."},"2.0.4":{"name":"@mocks-server/admin-api-client","version":"2.0.4","keywords":["mocks-server-plugin","administration","admin","api","rest","client"],"author":{"name":"Javier Brea"},"license":"MIT","_id":"@mocks-server/admin-api-client@2.0.4","maintainers":[{"name":"javierbrea","email":"javier.brea@gmail.com"}],"homepage":"https://www.mocks-server.org","bugs":{"url":"https://github.com/mocks-server/admin-api-client/issues"},"dist":{"shasum":"8350df1d3e1533bc073c914ecba5c0006a9760fe","tarball":"https://registry.npmjs.org/@mocks-server/admin-api-client/-/admin-api-client-2.0.4.tgz","fileCount":7,"integrity":"sha512-HRgP+3lANZfL6p+5Hu3kvQQyt9XW/JRVyD0UYcOHM7oxtq9rwBz3CpU4HybtpdXBi40RdenBCagk2Q2FxLRWTw==","signatures":[{"sig":"MEUCIHdAmEjFZ8tjbOZxWJPlJU/un5UkDUmz5I575gnuyOYBAiEA25dugmJuxaPHtiA/Ua6w0U5ve73UBoXevLmPvHUgsrg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27839,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmakvCRA9TVsSAnZWagAA63kP/itZIYkVAFzwd4RHHlgu\n/MaI1v5vLa32T3UyodfrVGeXLVbP/fjgXvl45ALHpyolr4WtZKMszphhvt9h\nijFywScfMFPhhzFgFDp8wczW/9f1joocFVFguLM7AagqYXbKokUHS9qZKjMz\nOOe0Urx3eqCweFJ6968GBfBXLf4lVtrFbcv4Ebi6l3xryOIPDdeYIoC0zoHG\ns88QV6oc2Qeohw7YQeZK1+v0cwrHl4T18QHeVyZZLRQbdhgcl9JL9KW+Ij7E\njnZrYU1y+YIijkCgAfKIwcf0KlgK2/NSLXWmppWnj4dcKcLFrQSO7+VuLORo\nhQHJ3vWeIjNB6r7GexhWiRmC7f4KGdTh31rHandbEuPpa0XmJfzxAf2ore4R\nfuNdmw96lKLfWd9tkxfCDvYooJdzkfIYyUUGtc6miFvcIKuAuB+SaMaKXZ3N\nmLW2Z8uTRFUNZiYaUrJsIpeyVngazSMr1m2QE201jAKtgpzgplKLbTqNat5v\n91wg6y/XUTLw4bedkPAQgSjrOnXBi0jebWNfMfR2qePp2usHnnNqXlhiNcc2\ndwsSo99XZWnSfoIFn8jvbAYSVKvfI1Gj0R/cr0GdS/dCjKiWV4/zHlYxVPMl\ni3HAD9NR60NaMCCgvAcxjdO3W7gq4oFOFDabS9oCY6cKYCvUNtHDex+nTnO7\nmlm1\r\n=wLc5\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.umd.js","husky":{"hooks":{"pre-commit":"npm run lint-staged"}},"module":"dist/index.esm.js","engines":{"node":"12.x || 14.x"},"gitHead":"848b6b691a6088462eb718cee2bd59b9c4561a58","scripts":{"lint":"eslint *.js test src jest.config.js","test":"jest","build":"rollup --config","test:ci":"npm run test:coverage","mocks:ci":"cd mocks && npm run mocks:ci","coveralls":"cat ./coverage/lcov.info | coveralls","lint-staged":"lint-staged","mocks:install":"cd mocks && npm i","test:coverage":"npm run mocks:install && start-server-and-test mocks:ci tcp:3200 test"},"_npmUser":{"name":"javierbrea","email":"javier.brea@gmail.com"},"repository":{"url":"git+https://github.com/mocks-server/admin-api-client.git","type":"git"},"_npmVersion":"6.14.4","description":"Client of @mocks-server/plugin-admin-api","directories":{},"lint-staged":{"*.js":"eslint","src/**/*.js":"eslint","test/**/*.js":"eslint","jest.config.js":"eslint"},"_nodeVersion":"12.18.0","dependencies":{"cross-fetch":"3.0.6","@mocks-server/admin-api-paths":"1.0.8"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"26.6.1","husky":"4.3.0","sinon":"9.2.0","eslint":"7.12.1","rollup":"2.32.1","prettier":"2.1.2","coveralls":"3.0.9","babel-jest":"26.6.1","lint-staged":"10.5.0","babel-eslint":"10.1.0","babel-polyfill":"6.26.0","@babel/preset-env":"7.12.1","eslint-plugin-react":"7.21.5","@rollup/plugin-babel":"5.2.1","rollup-plugin-terser":"7.0.2","start-server-and-test":"1.11.5","eslint-config-prettier":"6.15.0","eslint-plugin-prettier":"3.1.4","@rollup/plugin-commonjs":"15.1.0","@rollup/plugin-node-resolve":"9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/admin-api-client_2.0.4_1603905838983_0.16270953798132481","host":"s3://npm-registry-packages"},"deprecated":"This package has been discontinued and is no longer maintained. It will not receive bug fixes or security updates."},"2.0.5":{"name":"@mocks-server/admin-api-client","version":"2.0.5","keywords":["mocks-server-plugin","administration","admin","api","rest","client"],"author":{"name":"Javier Brea"},"license":"MIT","_id":"@mocks-server/admin-api-client@2.0.5","maintainers":[{"name":"javierbrea","email":"javier.brea@gmail.com"}],"homepage":"https://www.mocks-server.org","bugs":{"url":"https://github.com/mocks-server/admin-api-client/issues"},"dist":{"shasum":"43b2f9b46b6cc5946c41b356912834e26e5136bb","tarball":"https://registry.npmjs.org/@mocks-server/admin-api-client/-/admin-api-client-2.0.5.tgz","fileCount":7,"integrity":"sha512-c25sn1AjECt0gU1or3ltxBKz0+HHkhWroSVKxuGvY3+opYnRChzrlOThIxC3U02SGNynCnEQKxJswJx0wv5pYQ==","signatures":[{"sig":"MEUCIQDDWfbOaXQAYSoILuxpJLwq4bV8NXZ/h32C45mLtYeU4QIgGGMXckzS8U9HSwhiCOP5RFimeTbLfHMu7/523+0h6kM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27919,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4HwoCRA9TVsSAnZWagAArTMP+QEeh/17av0LSc5p6TFU\nohXNDT6x2xq16Ptq3rQNFZ8Lxwa1meN7ploc5caQPC7lbozZKmL45lYtWkL+\nS8fCz/WDgEW2d+aw8IA2JoeN/Bu6G1B+0G5T6wgx5NuS2aUTWXfffvcFEWrL\n8iyh51F/yhTpo9a6xdDvRQF0ardxmxqBeE6mGiFsHeRR0wZfGmjlWKPaMIZ5\nnCED7CaVa0fuk7fW9NeV6Q7uJZzj7aD5L59Mexer2n3f4vOLLIop+1PmJxa7\nn3Waaw9iUMIQEwOfMCma9/KKpsU0JR7z+Vvx8zCFkipncy4ATyQgCGPM/ijs\nN3Usq45/TVBI7bmiiQn8HzGdCGgUhfh/ntVVzCxDbayXn55alOGieghymx9G\nSplBdsG+QucYscfLfyC4jxIwFaMFLAp6G7AfxsQoTDelv8hfN8yrpTeH24SS\nyVbhy1jUVk208XRgDX06AE96S21MLj8w2y5LKeqtVMp9NgHyu2B/YQHlFAfk\n7+laY5dtheG5G0GNvZ1dbt5sJYN9KU9tZouma79A6AGU5J4PJ3NVw9zwk26Y\nLlPhSAATfPEDMX7W9FHLN5UIlkhkxEQpaqGeYGv7v4EB6McPH1bSE4K9ZtWe\np0f+O+afKHoqRlSuLOpN0WLYhV8nf+T2ac0AjpIhosbWvSNjgGIXALtGbQuW\n32ZE\r\n=FD8q\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.umd.js","husky":{"hooks":{"pre-commit":"npm run lint-staged"}},"module":"dist/index.esm.js","engines":{"node":"12.x || 14.x || 15.x"},"gitHead":"a8f692d30e5969efd52879169b877206678582c9","scripts":{"lint":"eslint *.js test src jest.config.js","test":"jest","build":"rollup --config","mocks:ci":"cd mocks && npm run mocks:ci","test:unit":"npm run mocks:install && start-server-and-test mocks:ci tcp:3200 test","lint-staged":"lint-staged","mocks:install":"cd mocks && npm i"},"_npmUser":{"name":"javierbrea","email":"javier.brea@gmail.com"},"repository":{"url":"git+https://github.com/mocks-server/admin-api-client.git","type":"git"},"_npmVersion":"6.14.8","description":"Client of @mocks-server/plugin-admin-api","directories":{},"lint-staged":{"*.js":"eslint","src/**/*.js":"eslint","test/**/*.js":"eslint","jest.config.js":"eslint"},"_nodeVersion":"12.20.0","dependencies":{"cross-fetch":"3.0.6","@mocks-server/admin-api-paths":"1.0.8"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"26.6.1","husky":"4.3.0","sinon":"9.2.0","eslint":"7.12.1","rollup":"2.32.1","prettier":"2.1.2","babel-jest":"26.6.1","lint-staged":"10.5.0","babel-eslint":"10.1.0","babel-polyfill":"6.26.0","@babel/preset-env":"7.12.1","eslint-plugin-react":"7.21.5","@rollup/plugin-babel":"5.2.1","rollup-plugin-terser":"7.0.2","start-server-and-test":"1.11.5","eslint-config-prettier":"6.15.0","eslint-plugin-prettier":"3.1.4","@rollup/plugin-commonjs":"15.1.0","@rollup/plugin-node-resolve":"9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/admin-api-client_2.0.5_1608547368158_0.4059142097393238","host":"s3://npm-registry-packages"},"deprecated":"This package has been discontinued and is no longer maintained. It will not receive bug fixes or security updates."},"2.1.0":{"name":"@mocks-server/admin-api-client","version":"2.1.0","keywords":["administration","admin","api","rest","client"],"author":{"name":"Javier Brea"},"license":"MIT","_id":"@mocks-server/admin-api-client@2.1.0","maintainers":[{"name":"javierbrea","email":"javier.brea@gmail.com"}],"homepage":"https://www.mocks-server.org","bugs":{"url":"https://github.com/mocks-server/admin-api-client/issues"},"dist":{"shasum":"7cb137da1f1d7cadfb03fad0f762f59b81e13535","tarball":"https://registry.npmjs.org/@mocks-server/admin-api-client/-/admin-api-client-2.1.0.tgz","fileCount":7,"integrity":"sha512-fzyRLLiaYaB+v/1Nov6O1tCc/CPhu0eX/lQXQP8YIt3pC0A3xmctIwx1VLVpZKeNVm0E3bEJE7KuPN4VkR43Ow==","signatures":[{"sig":"MEUCIBkf9QrtDOGcaQEYkcZI8q97iciLuNZu0BlmZOcdMZS1AiEA7bfsehapCKKGV0yaEzcS+FivJc+8UVLsphVLwTrGiSY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":28730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf5xiCCRA9TVsSAnZWagAAiBsP/A3tvg4SeL83r0+bCzKb\nAND/B4vY5LpydJhdkOTBllHujKfQwbbWjJSP1JMc9l9xrckHmlWWebKZV3+s\nsei/o5xoBYg9b7+5tXetK3mREwOY4zUFLH0qOFvS1GF88X7LSlTT9DKsmX0l\nUpi5G7BgCEwZqLNLwESc6kq7FQdrmpi9/+VGAOMlhjxxZ1nMvkPtk/hZvC1W\nZwqoxexAJK/1I1hvp/eIvZ1Q9RXMGUrE+amkJ06h+FKsGvoUDMtWhwOjEHsT\nbhMjTCJ5hp6dcDCoemSprvANSBO7OwinCVqzFXlo4E59H7xy9lGdI5GQUQsU\nEuKOA6GYKv9C9Rg2aZ3wNfFfdbqNoZw7hSAeEKI0EROVzuL/ruz4QI7qfWAu\nSqzX5b8pv9152UmavEG0a2ewIoqyvgeucHoe7yVLJTloP9AUNuDIOWL1lc47\nHAfKaD+dJ+PI9KWYxHU9JEbxe9jCb3AqtD7fk2ZwYkaJfHDQ/W9lLY7JP1pG\nIFeS3dg9ORuxevBa0G4okqIQYIpUuhSQGR2GamKhxNYMCYhPEAo2dpIwtWC1\n0PUxu8hAZ8MHOIU0/y60/vX1MrV7uG99l+PuI5pYY3+W4XI4w+y94X0H/87B\nHa2lWjlXYZ+hx2qxaa+X/C7leEBNhVAg8VgXNvQgl/+ow3HQv3MO/S8bZQD2\nXR09\r\n=TdgK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.umd.js","husky":{"hooks":{"pre-commit":"npm run lint-staged"}},"module":"dist/index.esm.js","engines":{"node":"12.x || 14.x || 15.x"},"gitHead":"e21cdbc0127635e9a0e14e2796d29f49d113700f","scripts":{"lint":"eslint *.js test src mocks/*.js mocks/mocks/*.js","test":"jest","build":"rollup --config","mocks:ci":"cd mocks && npm run mocks:ci","test:unit":"npm run mocks:install && start-server-and-test mocks:ci tcp:3200 test","lint-staged":"lint-staged","mocks:install":"cd mocks && npm i"},"_npmUser":{"name":"javierbrea","email":"javier.brea@gmail.com"},"repository":{"url":"git+https://github.com/mocks-server/admin-api-client.git","type":"git"},"_npmVersion":"6.14.8","description":"Client of @mocks-server/plugin-admin-api","directories":{},"lint-staged":{"*.js":"eslint","mocks/*.js":"eslint","src/**/*.js":"eslint","test/**/*.js":"eslint","mocks/mocks/*.js":"eslint"},"_nodeVersion":"12.20.0","dependencies":{"cross-fetch":"3.0.6","@mocks-server/admin-api-paths":"1.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"26.6.1","husky":"4.3.0","sinon":"9.2.0","eslint":"7.12.1","rollup":"2.32.1","prettier":"2.1.2","babel-jest":"26.6.1","lint-staged":"10.5.0","babel-eslint":"10.1.0","babel-polyfill":"6.26.0","@babel/preset-env":"7.12.1","eslint-plugin-react":"7.21.5","@rollup/plugin-babel":"5.2.1","rollup-plugin-terser":"7.0.2","start-server-and-test":"1.11.5","eslint-config-prettier":"6.15.0","eslint-plugin-prettier":"3.1.4","@rollup/plugin-commonjs":"15.1.0","@rollup/plugin-node-resolve":"9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/admin-api-client_2.1.0_1608980609598_0.009826888453517979","host":"s3://npm-registry-packages"},"deprecated":"This package has been discontinued and is no longer maintained. It will not receive bug fixes or security updates."},"3.0.0-beta.1":{"name":"@mocks-server/admin-api-client","version":"3.0.0-beta.1","keywords":["mocks-server","plugin","administration","admin","api","rest","client"],"author":{"name":"Javier Brea"},"license":"MIT","_id":"@mocks-server/admin-api-client@3.0.0-beta.1","maintainers":[{"name":"javierbrea","email":"javier.brea@gmail.com"}],"homepage":"https://www.mocks-server.org","bugs":{"url":"https://github.com/mocks-server/admin-api-client/issues"},"dist":{"shasum":"693898ee33f3201e38aa0e44f34b7b92194111e8","tarball":"https://registry.npmjs.org/@mocks-server/admin-api-client/-/admin-api-client-3.0.0-beta.1.tgz","fileCount":7,"integrity":"sha512-rmdwsxoxdrvia9eOJeql6KPncBlNwCSGd3PJsJcK60vSbkTOCwYOqs1e4nlOnuzgDJrMVKK3hDcjM8R7crch+w==","signatures":[{"sig":"MEUCIQDhDLhKUA0S/WhUB0h7q7AAKzoKJYRB8UQrvBH9BpYpbAIgB91DvS842DqJfMyigKDQa0+ir1JsMBNtdc/My5coeU0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37422,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgKrWKCRA9TVsSAnZWagAATrAP/iMDFWQGYwjbF1ef7aKQ\np00bPluDIgR9vPX7kS+cRelYJZJRiQ9F4llmx0L5aacRoqnaM89Q14lQYD8V\nAa17HwUI0nAMOk4/HOlZhOZsQ2fq1pLAekkOM2UEpv0xCaw13cetor/hjA3a\nz85sKuAvSm72omEwDZ/QbLGNU4pGQ3KeJsn1tFXnL6sRqmhmeCLgpcZNUwux\nlPcn58uUg6Kzk2Hwp/bb+FswFZ/xpj5lu+/zCfxBQIblCZ6m5P0SgFKBRLzn\n5iYnr4QdjFBNSTL+ZyFC4cRgcNQFHmRGisowyIGALHetx2+0tXkxJueHAfYI\nymR+9XSd7DqVrx1biC2NEwEdADHDiZ0dBkJ/Lz/kabN13XQhv115mJMO3iA9\nt2VghCpItNpXP7IgNamrK+eIbgtHQVGQun/WdgFUELZOnsjF8hzgG3wIVMei\nOncyzx7aQzOuF7zJ5ADaLZhxVoRLd5+0XOaxQ+eyvBKC1eTd/JrvQIxrzTMN\nyYfzb24n9BuK2gJRXOi/m+vdEQWygn+BBBoahPcarcjcvB9N0FylCn9Aal6w\nViWdi3S3wdNTB5A2k6DBQ4qVpJatzEX+LDiPjUVYBnAojeLRSkjnJx8mwVco\nu1Cy79Wt2YDH1turCNkSH7S6vjkh9ChxTcIJFN3++lKSCCQ2+K0Q+4twCYwL\nTiue\r\n=aGKR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.umd.js","husky":{"hooks":{"pre-commit":"npm run lint-staged"}},"module":"dist/index.esm.js","readme":"[![Build status][build-image]][build-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Quality Gate][quality-gate-image]][quality-gate-url]\n\n[![NPM dependencies][npm-dependencies-image]][npm-dependencies-url] [![Renovate](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com) [![Last commit][last-commit-image]][last-commit-url] [![Last release][release-image]][release-url] \n\n[![NPM downloads][npm-downloads-image]][npm-downloads-url] [![License][license-image]][license-url]\n\n\n# Mocks-server administration api client\n\nThis package contains methods for administrating Mocks Server _(using the [Admin API plugin](https://github.com/mocks-server/plugin-admin-api) under the hood)_.\n\nRequests to the Mocks Server API are made using [`cross-fetch`](https://www.npmjs.com/package/cross-fetch), which makes this package compatible with browsers and nodejs environments, but, if you are going to build a browser application, you'll probably prefer to use the [`@mocks-server/admin-api-client-data-provider` package](https://www.npmjs.com/package/@mocks-server/admin-api-client-data-provider), which uses [Data Provider](https://www.data-provider.org), and works well with Redux, React, etc.\n\n## Install\n\n```bash\nnpm install --save @mocks-server/admin-api-client\n```\n\nThe UMD build is also available on unpkg:\n\n```html\n<script src=\"https://unpkg.com/@mocks-server/admin-api-paths/dist/index.umd.js\"></script>\n<script src=\"https://unpkg.com/@mocks-server/admin-api-client/dist/index.umd.js\"></script>\n```\n\n> The umd distribution is bundled with the `cross-env` dependency, but requires the `@mocks-server/admin-api-paths` dependency to be added separately.\n\n## Usage\n\nAll methods described in the [Api](#api) (except the `config` method) return Promises when executed:\n\n```js\nimport { readAbout, readSettings, updateSettings } from \"@mocks-server/admin-api-client\";\n\nconst example = async () => {\n  const { version } = await readAbout();\n  console.log(`Current Admin API plugin version is ${version}`);\n\n  const currentSettings = await readSettings();\n  console.log(\"Current Mocks Server settings are\", currentSettings);\n\n  await updateSettings({\n    mock: \"user-super-admin\",\n    delay: 1000\n  });\n  console.log(\"Mock and delay changed\");\n};\n\nexample();\n```\n\n## Api\n\n* `readAbout()` - Returns info about the Admin API plugin, such as current version.\n* `readSettings()` - Returns current Mocks Server settings.\n* `updateSettings(settingsObject)` - Updates Mocks Server settings. A settings object has to be provided. Read the [Mocks Server configuration docs](https://www.mocks-server.org/docs/configuration-options) for further info.\n* `readAlerts()` - Returns array of current alerts.\n* `readAlert(alertId)` - Returns an specific alert.\n* `readMocks()` - Returns available mocks.\n* `readMock(id)` - Returns data of a specific mock.\n* `readRoutes()` - Returns available routes.\n* `readRoute(id)` - Returns data of a specific route.\n* `readRoutesVariants()` - Returns available routes variants.\n* `readRouteVariant(id)` - Returns data of a specific route variant.\n* `readMockCustomRoutesVariants()` - Returns current routes variants manually added to current mock.\n* `addMockCustomRouteVariant(id)` - Add a route variant to current mock.\n* `restoreMockRoutesVariants()` - Restore current mock original routes variants.\n\n##### Legacy methods\n\n* `readBehaviors()` - Returns collection of available behaviors.\n* `readBehavior(behaviorName)` - Returns an specific behavior.\n* `readFixtures()` - Returns collection of available fixtures.\n* `readFixture(fixtureId)` - Returns an specific fixture.\n\n## Configuration\n\nBy default, the client is configured to request to `http://localhost:3100/admin`, based in the [default options of Mocks Server](https://www.mocks-server.org/docs/configuration-options)\n\nYou can change both the base url of Mocks Server, and the base api path of the Admin API plugin using the `config` method:\n\n```js\nimport { config } from \"@mocks-server/admin-api-client\";\n\nconfig({\n  apiPath: \"/foo-admin\",\n  baseUrl: \"http://my-mocks-server:3000\"\n});\n```\n\n## Contributing\n\nContributors are welcome.\nPlease read the [contributing guidelines](.github/CONTRIBUTING.md) and [code of conduct](.github/CODE_OF_CONDUCT.md).\n\n[plugin-admin-api-url]: https://github.com/mocks-server/plugin-admin-api\n\n[coveralls-image]: https://coveralls.io/repos/github/mocks-server/admin-api-client/badge.svg\n[coveralls-url]: https://coveralls.io/github/mocks-server/admin-api-client\n[build-image]: https://github.com/mocks-server/admin-api-client/workflows/build/badge.svg?branch=master\n[build-url]: https://github.com/mocks-server/admin-api-client/actions?query=workflow%3Abuild+branch%3Amaster\n[last-commit-image]: https://img.shields.io/github/last-commit/mocks-server/admin-api-client.svg\n[last-commit-url]: https://github.com/mocks-server/admin-api-client/commits\n[license-image]: https://img.shields.io/npm/l/@mocks-server/admin-api-client.svg\n[license-url]: https://github.com/mocks-server/admin-api-client/blob/master/LICENSE\n[npm-downloads-image]: https://img.shields.io/npm/dm/@mocks-server/admin-api-client.svg\n[npm-downloads-url]: https://www.npmjs.com/package/@mocks-server/admin-api-client\n[npm-dependencies-image]: https://img.shields.io/david/mocks-server/admin-api-client.svg\n[npm-dependencies-url]: https://david-dm.org/mocks-server/admin-api-client\n[quality-gate-image]: https://sonarcloud.io/api/project_badges/measure?project=mocks-server-admin-api-client&metric=alert_status\n[quality-gate-url]: https://sonarcloud.io/dashboard?id=mocks-server-admin-api-client\n[release-image]: https://img.shields.io/github/release-date/mocks-server/admin-api-client.svg\n[release-url]: https://github.com/mocks-server/admin-api-client/releases\n","engines":{"node":"12.x || 14.x || 15.x"},"gitHead":"e11de7bff83b1c35c7085fc27d6513fbc7634cb3","scripts":{"lint":"eslint *.js test src mocks/*.js mocks/mocks/*.js","test":"jest","build":"rollup --config","mocks:ci":"cd mocks && npm run mocks:ci","test:unit":"npm run mocks:install && start-server-and-test mocks:ci tcp:3200 test","lint-staged":"lint-staged","mocks:install":"cd mocks && npm i"},"_npmUser":{"name":"javierbrea","email":"javier.brea@gmail.com"},"repository":{"url":"git+https://github.com/mocks-server/admin-api-client.git","type":"git"},"_npmVersion":"6.14.10","description":"Client of @mocks-server/plugin-admin-api","directories":{},"lint-staged":{"*.js":"eslint","mocks/*.js":"eslint","src/**/*.js":"eslint","test/**/*.js":"eslint","mocks/mocks/*.js":"eslint"},"_nodeVersion":"12.20.1","dependencies":{"cross-fetch":"3.0.6","@mocks-server/admin-api-paths":"2.0.0-beta.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"26.6.1","husky":"4.3.8","sinon":"9.2.0","eslint":"7.19.0","rollup":"2.32.1","prettier":"2.2.1","babel-jest":"26.6.1","lint-staged":"10.5.4","babel-eslint":"10.1.0","babel-polyfill":"6.26.0","@babel/preset-env":"7.12.11","eslint-plugin-react":"7.22.0","@rollup/plugin-babel":"5.2.3","rollup-plugin-terser":"7.0.2","start-server-and-test":"1.11.5","eslint-config-prettier":"6.15.0","eslint-plugin-prettier":"3.3.1","@rollup/plugin-commonjs":"15.1.0","@rollup/plugin-node-resolve":"9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/admin-api-client_3.0.0-beta.1_1613411721320_0.9360958882944626","host":"s3://npm-registry-packages"},"deprecated":"This package has been discontinued and is no longer maintained. It will not receive bug fixes or security updates."},"3.0.0-beta.2":{"name":"@mocks-server/admin-api-client","version":"3.0.0-beta.2","keywords":["mocks-server","plugin","administration","admin","api","rest","client"],"author":{"name":"Javier Brea"},"license":"MIT","_id":"@mocks-server/admin-api-client@3.0.0-beta.2","maintainers":[{"name":"javierbrea","email":"javier.brea@gmail.com"}],"homepage":"https://www.mocks-server.org","bugs":{"url":"https://github.com/mocks-server/admin-api-client/issues"},"dist":{"shasum":"90c3b69480177710c3c96cae38cd6309c0602d85","tarball":"https://registry.npmjs.org/@mocks-server/admin-api-client/-/admin-api-client-3.0.0-beta.2.tgz","fileCount":7,"integrity":"sha512-wfdeW/3k+WPjKJTY+WCcOHFYOVBqOkHqMxSaBYgT2/YkVePEh0WGFCVQzfF/ifQzbuJqKRL9OI9zT6cv+ODY6A==","signatures":[{"sig":"MEYCIQDMyXl7kho5zHhhNdsrl0PdMrDhRDH0QBoKCw0ZnaFUBAIhAJE3yyOvZkbMoAtpE6ZiMWkaIf4sLGxsem5GgMBRJUQE","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37769,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLBrfCRA9TVsSAnZWagAA+j8P/RiKSgJ9tO9X0aL9tIe1\nzzxLLpPuwZX+KMWDFB8BjKoNbJKa7t27I3U7wRbRkMcv0r85FksPppBj8mnm\nACg49MZ2PsmqWZ3EnSQUlBZoclxa1QJuzJnWqKPfOl5VhMCYghUICnDic9Iz\nbHEodDEO1SzYBqKVV2L9fvqWfe3IxJ3cFmSlUlu/iI5w5ky4/0GK1RPqmp/1\nRnCxdpWoG4gMJchAADqSEF/qjMlWUlrRggD+bg5RewtpzFR04lFAYrO/zrNZ\nidX/SfGVKzmJ3k9nSnm0zcqRdepby/nn3WJy99OMhNMZJn9xH8+YvY0/8Q19\n6eAq/stgXx2S0NeTJDZQeYUy1D6rdeydIdUWyGBF3EhWr80UQnxkU90BqlWa\n4AwYdaFYoz8vkEVDDrxB3iSIZmtXGOhDVSl6AQw+ZddMzWrYR9Z1UIENgHhe\n6GyTKo3Hfw1rYAx1KXpntjTAdHz9cPgLJCoY2Xe2ovPQSjG+YsOgpfFus55P\ntaF7xcOz7z+YWet7XPw8efk9H3D6fjyuaZ/WBKcKWxo7r0LhmGoOx88C0SYp\n8ZZ+Gzx2BCZu0YkrWeCujdty0Fg7mblzZb8jxSXi7H8hhopM9BycJYLQvQ5d\n3AtwqY+LLy7Ejah4Zpg9t+p9bae8Thg2qoUsLMZAbwFfggNFkx9kp3OCec1j\n8RZu\r\n=1fSR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.umd.js","husky":{"hooks":{"pre-commit":"npm run lint-staged"}},"module":"dist/index.esm.js","readme":"[![Build status][build-image]][build-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Quality Gate][quality-gate-image]][quality-gate-url]\n\n[![NPM dependencies][npm-dependencies-image]][npm-dependencies-url] [![Renovate](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com) [![Last commit][last-commit-image]][last-commit-url] [![Last release][release-image]][release-url] \n\n[![NPM downloads][npm-downloads-image]][npm-downloads-url] [![License][license-image]][license-url]\n\n\n# Mocks-server administration api client\n\nThis package contains methods for administrating Mocks Server _(using the [Admin API plugin](https://github.com/mocks-server/plugin-admin-api) under the hood)_.\n\nRequests to the Mocks Server API are made using [`cross-fetch`](https://www.npmjs.com/package/cross-fetch), which makes this package compatible with browsers and nodejs environments, but, if you are going to build a browser application, you'll probably prefer to use the [`@mocks-server/admin-api-client-data-provider` package](https://www.npmjs.com/package/@mocks-server/admin-api-client-data-provider), which uses [Data Provider](https://www.data-provider.org), and works well with Redux, React, etc.\n\n## Install\n\n```bash\nnpm install --save @mocks-server/admin-api-client\n```\n\nThe UMD build is also available on unpkg:\n\n```html\n<script src=\"https://unpkg.com/@mocks-server/admin-api-paths/dist/index.umd.js\"></script>\n<script src=\"https://unpkg.com/@mocks-server/admin-api-client/dist/index.umd.js\"></script>\n```\n\n> The umd distribution is bundled with the `cross-env` dependency, but requires the `@mocks-server/admin-api-paths` dependency to be added separately.\n\n## Usage\n\nAll methods described in the [Api](#api) (except the `config` method) return Promises when executed:\n\n```js\nimport { readAbout, readSettings, updateSettings } from \"@mocks-server/admin-api-client\";\n\nconst example = async () => {\n  const { version } = await readAbout();\n  console.log(`Current Admin API plugin version is ${version}`);\n\n  const currentSettings = await readSettings();\n  console.log(\"Current Mocks Server settings are\", currentSettings);\n\n  await updateSettings({\n    mock: \"user-super-admin\",\n    delay: 1000\n  });\n  console.log(\"Mock and delay changed\");\n};\n\nexample();\n```\n\n## Api\n\n* `readAbout()` - Returns info about the Admin API plugin, such as current version.\n* `readSettings()` - Returns current Mocks Server settings.\n* `updateSettings(settingsObject)` - Updates Mocks Server settings. A settings object has to be provided. Read the [Mocks Server configuration docs](https://www.mocks-server.org/docs/configuration-options) for further info.\n* `readAlerts()` - Returns array of current alerts.\n* `readAlert(alertId)` - Returns an specific alert.\n* `readMocks()` - Returns available mocks.\n* `readMock(id)` - Returns data of a specific mock.\n* `readRoutes()` - Returns available routes.\n* `readRoute(id)` - Returns data of a specific route.\n* `readRoutesVariants()` - Returns available routes variants.\n* `readRouteVariant(id)` - Returns data of a specific route variant.\n* `readCustomRoutesVariants()` - Returns current routes variants manually added to current mock.\n* `useRouteVariant(id)` - Sets a specific route variant to be used by current mock.\n* `restoreRoutesVariants()` - Restore routes variants to those defined in current mock.\n\n##### Legacy methods\n\n* `readBehaviors()` - Returns collection of available behaviors.\n* `readBehavior(behaviorName)` - Returns an specific behavior.\n* `readFixtures()` - Returns collection of available fixtures.\n* `readFixture(fixtureId)` - Returns an specific fixture.\n\n## Configuration\n\nBy default, the client is configured to request to `http://localhost:3100/admin`, based in the [default options of Mocks Server](https://www.mocks-server.org/docs/configuration-options)\n\nYou can change both the base url of Mocks Server, and the path of the [Admin API plugin][plugin-admin-api-url] using the `config` method:\n\n```js\nimport { config } from \"@mocks-server/admin-api-client\";\n\nconfig({\n  adminApiPath: \"/foo-admin\",\n  baseUrl: \"http://my-mocks-server:3000\"\n});\n```\n\n## Contributing\n\nContributors are welcome.\nPlease read the [contributing guidelines](.github/CONTRIBUTING.md) and [code of conduct](.github/CODE_OF_CONDUCT.md).\n\n[plugin-admin-api-url]: https://github.com/mocks-server/plugin-admin-api\n\n[coveralls-image]: https://coveralls.io/repos/github/mocks-server/admin-api-client/badge.svg\n[coveralls-url]: https://coveralls.io/github/mocks-server/admin-api-client\n[build-image]: https://github.com/mocks-server/admin-api-client/workflows/build/badge.svg?branch=master\n[build-url]: https://github.com/mocks-server/admin-api-client/actions?query=workflow%3Abuild+branch%3Amaster\n[last-commit-image]: https://img.shields.io/github/last-commit/mocks-server/admin-api-client.svg\n[last-commit-url]: https://github.com/mocks-server/admin-api-client/commits\n[license-image]: https://img.shields.io/npm/l/@mocks-server/admin-api-client.svg\n[license-url]: https://github.com/mocks-server/admin-api-client/blob/master/LICENSE\n[npm-downloads-image]: https://img.shields.io/npm/dm/@mocks-server/admin-api-client.svg\n[npm-downloads-url]: https://www.npmjs.com/package/@mocks-server/admin-api-client\n[npm-dependencies-image]: https://img.shields.io/david/mocks-server/admin-api-client.svg\n[npm-dependencies-url]: https://david-dm.org/mocks-server/admin-api-client\n[quality-gate-image]: https://sonarcloud.io/api/project_badges/measure?project=mocks-server-admin-api-client&metric=alert_status\n[quality-gate-url]: https://sonarcloud.io/dashboard?id=mocks-server-admin-api-client\n[release-image]: https://img.shields.io/github/release-date/mocks-server/admin-api-client.svg\n[release-url]: https://github.com/mocks-server/admin-api-client/releases\n","engines":{"node":"12.x || 14.x || 15.x"},"gitHead":"8e7698e524904c0abc51098d59c07d18ab766737","scripts":{"lint":"eslint *.js test src mocks/*.js mocks/mocks/*.js","test":"jest","build":"rollup --config","mocks:ci":"cd mocks && npm run mocks:ci","test:unit":"npm run mocks:install && start-server-and-test mocks:ci tcp:3200 test","lint-staged":"lint-staged","mocks:install":"cd mocks && npm i"},"_npmUser":{"name":"javierbrea","email":"javier.brea@gmail.com"},"repository":{"url":"git+https://github.com/mocks-server/admin-api-client.git","type":"git"},"_npmVersion":"6.14.10","description":"Client of @mocks-server/plugin-admin-api","directories":{},"lint-staged":{"*.js":"eslint","mocks/*.js":"eslint","src/**/*.js":"eslint","test/**/*.js":"eslint","mocks/mocks/*.js":"eslint"},"_nodeVersion":"12.20.1","dependencies":{"cross-fetch":"3.0.6","@mocks-server/admin-api-paths":"2.0.0-beta.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"26.6.1","husky":"4.3.8","sinon":"9.2.0","eslint":"7.19.0","rollup":"2.32.1","prettier":"2.2.1","babel-jest":"26.6.1","lint-staged":"10.5.4","babel-eslint":"10.1.0","babel-polyfill":"6.26.0","@babel/preset-env":"7.12.11","eslint-plugin-react":"7.22.0","@rollup/plugin-babel":"5.2.3","rollup-plugin-terser":"7.0.2","start-server-and-test":"1.11.5","eslint-config-prettier":"6.15.0","eslint-plugin-prettier":"3.3.1","@rollup/plugin-commonjs":"15.1.0","@rollup/plugin-node-resolve":"9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/admin-api-client_3.0.0-beta.2_1613503199085_0.4644113761600954","host":"s3://npm-registry-packages"},"deprecated":"This package has been discontinued and is no longer maintained. It will not receive bug fixes or security updates."},"3.0.0":{"name":"@mocks-server/admin-api-client","version":"3.0.0","keywords":["mocks-server","plugin","administration","admin","api","rest","client"],"author":{"name":"Javier Brea"},"license":"MIT","_id":"@mocks-server/admin-api-client@3.0.0","maintainers":[{"name":"javierbrea","email":"javier.brea@gmail.com"}],"homepage":"https://www.mocks-server.org","bugs":{"url":"https://github.com/mocks-server/admin-api-client/issues"},"dist":{"shasum":"d87c59d293cf10f1c72d55bdd608d7bc802e2f89","tarball":"https://registry.npmjs.org/@mocks-server/admin-api-client/-/admin-api-client-3.0.0.tgz","fileCount":7,"integrity":"sha512-rg0Zhw/vGkBGXgzg++Mcx0l7rN6faQwT05iwA8EEc2mZmy5U/jcSU/HGDRme7+J11dsgHRgqWg7XA+xtIoNEaQ==","signatures":[{"sig":"MEQCIFstqwMJvzuoTjJqGIS6m5s1Ugja/93AXVj13N2N2FW/AiApu6xAbQXfZ5z7rial+2kBdLR/rZaWz9a5pKHbYMqotA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38477,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLWVVCRA9TVsSAnZWagAAX/UP/1lIewt93ADRBO677qJl\n9GhwPqOnipy5WB+MzFwf3ia4ornb+W1CbSAxCOFA+rQep3YTIozIZ6Uuy44Q\n5tZ6/27xSeuLqUki7eNjzeGjvgJmFD4zj2ajzEvsMO3C2U0FvRlFv7JZl+Om\nwuXosGMKhakxG5Fq4S3qjMdXHeqYqXNchYkHwNWzc7QPjJGQCTLgfdTHhTrn\nl503oSyWbAXoTyFhjtK+JN5CSJtmfom/MkJi0eoO7KRbnUQp8hbc9jqWHBh7\nGeuzneie4oAbpigCLPmIrODc0tHExOexaIge3dmScSBk1RGN4q0yKGfxSKGW\nnwoN8r9YhDe+YhD6cOkShcB+ExseFrgUkNJST7YoK1r3CGxxmQE5yWGZARGD\n7p1G/HG9PL4HA9rHGjnFD8wIZ9Y1fcxH07U1pFZPV+4tK/y8km9y2W/X453c\nqGPafKdBtBgIETt2fWUH7Q1mSZy66psviybST6zWuyrEW7YNV8EPq1v+R4UH\njnW+E5889SFSIUJIQifsu/e3jGppEmSTt9jCcX2zzsUenay7HcJi7nZftDku\nQL0fhn+aKo83YtTtUs/+xVK7bHzsgrDN07n39JigHqJYU8f2GOTWnETtKUUT\nbytbQny3NkIZNPQrGMB3SUitTS3vwX4yg9coE7VmEEQL8lajdcPH2RWWMvWr\nF0/V\r\n=JXKG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.umd.js","husky":{"hooks":{"pre-commit":"npm run lint-staged"}},"module":"dist/index.esm.js","engines":{"node":"12.x || 14.x || 15.x"},"gitHead":"e4f347332dacbc5df1ccaf52e9c7ed374d013f01","scripts":{"lint":"eslint *.js test src mocks/*.js mocks/mocks/*.js","test":"jest","build":"rollup --config","mocks:ci":"cd mocks && npm run mocks:ci","test:unit":"npm run mocks:install && start-server-and-test mocks:ci tcp:3200 test","lint-staged":"lint-staged","mocks:install":"cd mocks && npm i"},"_npmUser":{"name":"javierbrea","email":"javier.brea@gmail.com"},"repository":{"url":"git+https://github.com/mocks-server/admin-api-client.git","type":"git"},"_npmVersion":"6.14.10","description":"Client of @mocks-server/plugin-admin-api","directories":{},"lint-staged":{"*.js":"eslint","mocks/*.js":"eslint","src/**/*.js":"eslint","test/**/*.js":"eslint","mocks/mocks/*.js":"eslint"},"_nodeVersion":"12.20.1","dependencies":{"cross-fetch":"3.0.6","@mocks-server/admin-api-paths":"2.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"26.6.3","husky":"4.3.8","sinon":"9.2.4","eslint":"7.20.0","rollup":"2.39.0","prettier":"2.2.1","babel-jest":"26.6.3","lint-staged":"10.5.4","babel-eslint":"10.1.0","babel-polyfill":"6.26.0","@babel/preset-env":"7.12.16","eslint-plugin-react":"7.22.0","@rollup/plugin-babel":"5.2.3","rollup-plugin-terser":"7.0.2","start-server-and-test":"1.12.0","eslint-config-prettier":"6.15.0","eslint-plugin-prettier":"3.3.1","@rollup/plugin-commonjs":"16.0.0","@rollup/plugin-node-resolve":"9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/admin-api-client_3.0.0_1613587796702_0.40927304959713884","host":"s3://npm-registry-packages"},"deprecated":"This package has been discontinued and is no longer maintained. It will not receive bug fixes or security updates."},"3.1.0":{"name":"@mocks-server/admin-api-client","version":"3.1.0","keywords":["mocks-server","plugin","administration","admin","api","rest","client"],"author":{"name":"Javier Brea"},"license":"MIT","_id":"@mocks-server/admin-api-client@3.1.0","maintainers":[{"name":"javierbrea","email":"javier.brea@gmail.com"}],"homepage":"https://www.mocks-server.org","bugs":{"url":"https://github.com/mocks-server/admin-api-client/issues"},"dist":{"shasum":"a6712be064d2c0c0431ea63ab71b4a3bc1ccf5ec","tarball":"https://registry.npmjs.org/@mocks-server/admin-api-client/-/admin-api-client-3.1.0.tgz","fileCount":7,"integrity":"sha512-99S+CZlN3J6tkAlvYItXDF1S/6i1LfNAetsDaZtU/R+L2oiYE1VwwrAch95TyBSjJrlweX2TMKXyr4TBjbxi8Q==","signatures":[{"sig":"MEQCIAFbWvFLROPuezAmtoj0KXctfgf02tr7/v5vURvkahQcAiA8ygy01gon6rfYgrl7Rk7RMaK+ckHpdVQxJGwc4/ZWsA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgq4DBCRA9TVsSAnZWagAAFZAP/i1KkfqAx1QXaBiX/NvY\nnP0x3fQrlcChTNDCj5gmzmP8uhi8DiymHvnbqAdFK7X53tfub+gNuLkz1bV8\nNa/6GCdQegSILjNe4sM4i1eP1K67T8E65D+E68RQGUwMRPgKWUD2RGl2cCRF\nWNjOJ1uStRaosAFXUNTXMLFFvmJPlFuU744IGCvfGwIoF9AiWiDEfuD1OE+o\nd3k8DLj8nHs2T5Hjbca4/jh8Bmx2/JHCV0/V5y8+HZiI5/Qe0QTHC/FIWY/D\nR2EbuM6ms0licHzZ2BLTKVePoMso56/ZIzeR9r+u5p7IC0Qf8Sr+hrKPF+Rw\nxCUBrwjT6SLD4fXHG+mhQDPdLr7VmuXjZni4GZyk7vG21ph5wEnqPYoqAyEw\nAa3PB2dc3yyUDXnCIKL7lcJLltutozufTQxCBJxcUjzpQDElYJe6lZKiOojY\nd6ZqO3uVZ7DYnwS5GeWV4285t8aIKjx5dkbq/Allt+aLQTcfQ7N/ya9zpwsi\nDOQuYknhlJAZ8oA8JL1Z4ZwMBaGwD5IAnKGZ1WjY3Qmo4HQ7uXLl822rD5qi\nRO45E3OrD7zaYeaFSDv6l3ld7/pzgI2UtkjXmwZRArGDxEs/hieHTdlohtB7\nQRgJuqgC6OzV0tpJvJYR43qaCCO5ePcWdjCJgIpoVHEssMsJgpe8vLD9Rj5C\n+6GU\r\n=fOwS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.umd.js","module":"dist/index.esm.js","engines":{"node":"12.x || 14.x || 15.x || 16.x"},"gitHead":"24d6c811ad5aa7e8fafa549edbb53bd8f9d9837e","scripts":{"lint":"eslint *.js test src mocks/*.js mocks/mocks/*.js","test":"jest","build":"rollup --config","prepare":"is-ci || husky install","mocks:ci":"cd mocks && npm run mocks:ci","test:unit":"npm run mocks:install && start-server-and-test mocks:ci tcp:3200 test","lint-staged":"lint-staged","mocks:install":"cd mocks && npm i"},"_npmUser":{"name":"javierbrea","email":"javier.brea@gmail.com"},"repository":{"url":"git+https://github.com/mocks-server/admin-api-client.git","type":"git"},"_npmVersion":"6.14.13","description":"Client of @mocks-server/plugin-admin-api","directories":{},"lint-staged":{"*.js":"eslint","mocks/*.js":"eslint","src/**/*.js":"eslint","test/**/*.js":"eslint","mocks/mocks/*.js":"eslint"},"_nodeVersion":"14.17.0","dependencies":{"cross-fetch":"3.1.4","@mocks-server/admin-api-paths":"2.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"26.6.3","husky":"6.0.0","is-ci":"3.0.0","sinon":"10.0.0","eslint":"7.27.0","rollup":"2.49.0","prettier":"2.3.0","babel-jest":"26.6.3","lint-staged":"11.0.0","babel-eslint":"10.1.0","babel-polyfill":"6.26.0","@babel/preset-env":"7.14.2","eslint-plugin-react":"7.23.2","@rollup/plugin-babel":"5.3.0","rollup-plugin-terser":"7.0.2","start-server-and-test":"1.12.2","eslint-config-prettier":"8.3.0","eslint-plugin-prettier":"3.4.0","@rollup/plugin-commonjs":"19.0.0","@rollup/plugin-node-resolve":"13.0.0"},"_npmOperationalInternal":{"tmp":"tmp/admin-api-client_3.1.0_1621852352550_0.05240029669615165","host":"s3://npm-registry-packages"},"deprecated":"This package has been discontinued and is no longer maintained. It will not receive bug fixes or security updates."},"4.0.0":{"name":"@mocks-server/admin-api-client","version":"4.0.0","keywords":["mocks-server","plugin","administration","admin","api","rest","client"],"author":{"name":"Javier Brea"},"license":"MIT","_id":"@mocks-server/admin-api-client@4.0.0","maintainers":[{"name":"javierbrea","email":"javier.brea@gmail.com"}],"homepage":"https://www.mocks-server.org","bugs":{"url":"https://github.com/mocks-server/admin-api-client/issues"},"dist":{"shasum":"efe2259e8fac12e065a175e4d8ec6d775fb4803a","tarball":"https://registry.npmjs.org/@mocks-server/admin-api-client/-/admin-api-client-4.0.0.tgz","fileCount":6,"integrity":"sha512-whzqOVm9qqNDAz5Erfmx3FrSUbk+JRm9IjTtXHuJw+QQHf+Vvki6BodF28/JlHOjGwiqkzjEHEBvcYBmdVOrkA==","signatures":[{"sig":"MEUCIDfWEfF+LiBeFxOSTICQLMQHXoL4daP9PHIFUqbg+1rQAiEArd8zQnPSIZzvLlp4rqHonV2Vv6b4i1mopsGbLiaE8nI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35291,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhrJP7CRA9TVsSAnZWagAAXmUP/3xDXBaXtkDOoUjDHhTu\nR1gg0o4rc/z+uzrsGKlDhyp42xRTgEUgI+UYdoVUV4I49vJiudEgrrjI2ahY\nz6zOpURSXLvR+3kwH0vDzISKrC8iCBYgYCP8BD5y2pJd/vG6Xhr7ecrKE3oy\nJ6B92dWjcsDFaMrKtrRrp3Av/mNfO/j/PaOSMPI9mMmtb0C3KcAyzXTcIjOK\nqFHHOoLThXeK3xW0/zAeF8hK3g/vHPo5+jk86NnOHLhCca1ad6bbGncb9jF7\nmgXQYDQ1VXHTKQS+PBCkl2dlzlBlN7xhb4LpbUmDhsUFsRapPax/9IxXl1An\n8jByLW+DIyMdCKLbWsjexa4WUn0nNx/ubn5oanyRCwOOGLYQS+MiTTObbCuc\nFHbVaMNpYSH8gLC0oTxgkNo+4WbqRmG8fNkS1RDstXlSqhg2KtlkMKsrb1lU\nHskTGzTluajD6PczPrkmyG6mVKaoiHCq0adnxlW3slkjaDjHAZWAJoAgLrWx\nkjlIIgvaNkGwk8r9WrxZsl+YIFMSiNGop6mF1i/J0EvrOp2GXlZUoPr6jAqy\nH33ySZFpVjI8hvYtHS+1Wjn+bydSyXvXy9R3nY85trKC3HztQc/znOilDukS\nAvjlIzMtPuGR677/HDuJYUVO/WeiSMlKQrSjzT+8+PftKXD2GFYmzif452K7\n/EGc\r\n=bIZH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.umd.js","module":"dist/index.esm.js","engines":{"node":">=12.0.0"},"gitHead":"2ca052a473fc56730c476ef42ccc5dd5b3fa5ed9","scripts":{"lint":"eslint *.js test src mocks/*.js mocks/mocks/*.js","test":"jest","build":"rollup --config","prepare":"is-ci || husky install","mocks:ci":"cd mocks && npm run mocks:ci","test:unit":"npm run mocks:install && start-server-and-test mocks:ci tcp:127.0.0.1:3200 test","lint-staged":"lint-staged","mocks:install":"cd mocks && npm i"},"_npmUser":{"name":"javierbrea","email":"javier.brea@gmail.com"},"repository":{"url":"git+https://github.com/mocks-server/admin-api-client.git","type":"git"},"_npmVersion":"8.1.0","description":"Client of @mocks-server/plugin-admin-api","directories":{},"lint-staged":{"*.js":"eslint","mocks/*.js":"eslint","src/**/*.js":"eslint","test/**/*.js":"eslint","mocks/mocks/*.js":"eslint"},"_nodeVersion":"16.13.0","dependencies":{"cross-fetch":"3.1.4","@mocks-server/admin-api-paths":"2.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"27.4.3","husky":"7.0.4","is-ci":"3.0.1","sinon":"12.0.1","eslint":"8.4.0","rollup":"2.60.2","prettier":"2.5.1","babel-jest":"27.4.2","lint-staged":"12.1.2","babel-eslint":"10.1.0","babel-polyfill":"6.26.0","@babel/preset-env":"7.16.4","eslint-plugin-react":"7.27.1","@rollup/plugin-babel":"5.3.0","rollup-plugin-terser":"7.0.2","start-server-and-test":"1.14.0","eslint-config-prettier":"8.3.0","eslint-plugin-prettier":"4.0.0","@rollup/plugin-commonjs":"21.0.1","@rollup/plugin-node-resolve":"13.0.6"},"_npmOperationalInternal":{"tmp":"tmp/admin-api-client_4.0.0_1638700027130_0.43131759167212635","host":"s3://npm-registry-packages"},"deprecated":"This package has been discontinued and is no longer maintained. It will not receive bug fixes or security updates."},"4.0.1":{"name":"@mocks-server/admin-api-client","version":"4.0.1","keywords":["mocks-server","plugin","administration","admin","api","rest","client"],"author":"Javier Brea","license":"MIT","_id":"@mocks-server/admin-api-client@4.0.1","maintainers":[{"name":"javierbrea","email":"javier.brea@gmail.com"}],"homepage":"https://www.mocks-server.org","dist":{"shasum":"1c36a19d4ab2015bf720aae3f12ee1f7df6783e7","tarball":"https://registry.npmjs.org/@mocks-server/admin-api-client/-/admin-api-client-4.0.1.tgz","fileCount":6,"integrity":"sha512-i3VvPFRdddW70NqZ+8Kiugk3uj1ihQE6w/r5lM/gE1QO7gWOFQmdG8hxArPmj7RPA6wLwxLyZUoqL30vbgNf+Q==","signatures":[{"sig":"MEYCIQDjVL5CdsQja5kgyeiPdOafg3NEQZYiczu4C8tM6XnTHAIhAII58ZKPXz3t9M5+mzmU+x+AcfOgo7RkJo91wepi5JfB","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39269,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQY1fACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpiFxAAlGjnICPYM/l46xNbYlzTCKX2zu3cObA4jg9omxUVby1ghXlA\r\nt19tofXlRipJ4PmL12X0mo5RcVlV5ki1ZdqGO3WFwyZfdAB810hfbQktP/Iw\r\nktaXEJJ0ZgNsyHPtUEmj0fDCVOVhPCXrHA2C2iql9kxUfhYcrSDPw/OFf12m\r\ngIG/kx7c07AhQrCpwDjdpVcHvynsn9WZdy+L2lsLE8LHujA4qLqAfwKgMW22\r\nexGywPVm+/6kzrcwjfbMmleMUDADah5PnwGqCNA/I9aRVtAqhe7vTXo3cqxm\r\nWQEhkh7dc+47+HqqtG+Y8n/vHQbVd3MRX/QFUVaqAIErgTlkcGGCfxVTPo5p\r\nfXUzuw9lINO+d8qbJKEp5AP4yWLYJ23VNgpkPC3TEHNV8jrKiZ6WMh0wmv/q\r\nU72UdMYQcS5nmf/4Q13G37WMLKvbZnH2n7o4FGsppj8775nKHVIZZWvpgupc\r\n+0SixTfCK2zMHcgi1GWEa6rbDEC0dwKOlaFqdeprT1y3REMsEZeWC0O+KAsV\r\nnygTbwNE70jqps60vIpw9cFUVE1pZ65XxuRF/r/CnUGqUetcWhxUsSwGhKAR\r\naV5Go+mtMC6dFur9/ZPvMhf5YZw0DUMeSxGQPsG6mZzAWMlPlySxGD2ZR59H\r\ndLRaK5Ys2gYxJgn5MkNOSI3HRAVBDtbMtes=\r\n=1mPI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.umd.js","_from":"file:mocks-server-admin-api-client-4.0.1.tgz","module":"dist/index.esm.js","engines":{"node":">=12.0.0"},"scripts":{"test":"jest","build":"rollup --config","mocks:ci":"pnpm -w run nx start admin-api-client-unit-mocks","test:unit":"start-server-and-test mocks:ci tcp:127.0.0.1:3200 test"},"_npmUser":{"name":"javierbrea","email":"javier.brea@gmail.com"},"_resolved":"/home/runner/work/main/main/packages/admin-api-client/mocks-server-admin-api-client-4.0.1.tgz","_integrity":"sha512-i3VvPFRdddW70NqZ+8Kiugk3uj1ihQE6w/r5lM/gE1QO7gWOFQmdG8hxArPmj7RPA6wLwxLyZUoqL30vbgNf+Q==","repository":"https://github.com/mocks-server/main","_npmVersion":"8.3.1","description":"Client of @mocks-server/plugin-admin-api","directories":{},"_nodeVersion":"16.14.0","dependencies":{"cross-fetch":"3.1.5","@mocks-server/admin-api-paths":"2.2.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/admin-api-client_4.0.1_1648463199621_0.8580288357978076","host":"s3://npm-registry-packages"},"deprecated":"This package has been discontinued and is no longer maintained. It will not receive bug fixes or security updates."},"5.0.0":{"name":"@mocks-server/admin-api-client","version":"5.0.0","keywords":["mocks-server","plugin","administration","admin","api","rest","client"],"author":{"name":"Javier Brea"},"license":"MIT","_id":"@mocks-server/admin-api-client@5.0.0","maintainers":[{"name":"javierbrea","email":"javier.brea@gmail.com"}],"homepage":"https://www.mocks-server.org","bugs":{"url":"https://github.com/mocks-server/main/issues"},"dist":{"shasum":"657469809f4cc8abffcbd2584d848e015811a7b7","tarball":"https://registry.npmjs.org/@mocks-server/admin-api-client/-/admin-api-client-5.0.0.tgz","fileCount":6,"integrity":"sha512-8CcJm9wf+f4XA1BSz8ysyoZPvuBH5KugLCZnt27SK3sLyJwWwVfKAVlONa499V9SGF1BDcEEXyZehwK5FeWmFA==","signatures":[{"sig":"MEYCIQCV1ogF+sq4yuEaJTQ5oZo7uzxM9X1M8DGjBBxL5NcNfQIhALh+YKaQai/O6xnDfIYuYf4VXYHBaunL2q1kkyQ6h5Ik","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37039,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJii2bcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpjaBAAlmsR8HIjKxokOLPRIk9bSSX7f4n8F3d9zavJQ2olZBIJVk4Z\r\nFaDdElgRwPutmHa8JCwsUb67pkrcxzEQFS5WJRveelLEQQzwUhj1WZkYM5wo\r\n+vM+Zn9Gs5kOQLC5j2mVG9b02cKMIctroYh8b2l1NbvKzwTqCHhsjSzg83iG\r\npz/PAeEMT7O7z+/EEx+/N/ljg0SAvB85izONT2qY4dJlJfzoNFvHkEyyXVpP\r\nveZ4VmfUXExAQ9LeUTR1NuqBt18p7rmIoEftoi+ElkNtOm+f5X8s1pbefEbE\r\n+r14H35mPtVbS3wi/DvtNjtMjLh2dKtDT50T+4kVn8uxKwazjT1hx7mAx5tn\r\nf2H+03IuUPSK0ECgziWpcxM12QM2Yab7OLV89j18mM5Jf8mx4W8LLy5uvN9X\r\nEuYDUjwSOTpbRSw3o6tfmE4J/fFYkaRn3ehlx09fgY1DvHbQbJ9QVPpdQTKj\r\n6eVDv7Ym3M68N4hMGp2Zt+fRU3jcDMOk0jlWNnWm/PMgIWw8r/jmr1r+GBC4\r\nRDVpekZjCTKnn/rxnYeXZoW4jIUsl2Z7y6/auzsXdWeGyRUD9lhgbYWciA4m\r\nTfq7V3O3+nVZXeOqnickeI0Opnt9OdWqJ3Xn5fAn/o9d6QOVEBFDe7bCRpAk\r\njyvHTf7mI1XHa7xfYSD+hRG8ecVLNg7HP5I=\r\n=3hPg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.cjs.js","_from":"file:mocks-server-admin-api-client-5.0.0.tgz","module":"dist/index.esm.js","engines":{"node":">=14.0.0"},"scripts":{"test":"jest","build":"rollup --config","mocks:ci":"pnpm -w run nx start admin-api-client-unit-mocks","test:unit":"start-server-and-test mocks:ci tcp:127.0.0.1:3200 test"},"_npmUser":{"name":"javierbrea","email":"javier.brea@gmail.com"},"_resolved":"/tmp/0804bf2d3ce9568a1f332130e87bb7ab/mocks-server-admin-api-client-5.0.0.tgz","_integrity":"sha512-8CcJm9wf+f4XA1BSz8ysyoZPvuBH5KugLCZnt27SK3sLyJwWwVfKAVlONa499V9SGF1BDcEEXyZehwK5FeWmFA==","repository":{"url":"git+https://github.com/mocks-server/main.git","type":"git","directory":"packages/admin-api-client"},"_npmVersion":"8.5.5","description":"Client of @mocks-server/plugin-admin-api","directories":{},"_nodeVersion":"16.15.0","dependencies":{"cross-fetch":"3.1.5","@mocks-server/admin-api-paths":"3.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/admin-api-client_5.0.0_1653303004741_0.7749697125177406","host":"s3://npm-registry-packages"},"deprecated":"This package has been discontinued and is no longer maintained. It will not receive bug fixes or security updates."},"5.0.1":{"name":"@mocks-server/admin-api-client","version":"5.0.1","keywords":["mocks-server","plugin","administration","admin","api","rest","client"],"author":{"name":"Javier Brea"},"license":"MIT","_id":"@mocks-server/admin-api-client@5.0.1","maintainers":[{"name":"javierbrea","email":"javier.brea@gmail.com"}],"homepage":"https://www.mocks-server.org","bugs":{"url":"https://github.com/mocks-server/main/issues"},"dist":{"shasum":"270357922dc14d673cd07964d13ead5a6c580b75","tarball":"https://registry.npmjs.org/@mocks-server/admin-api-client/-/admin-api-client-5.0.1.tgz","fileCount":6,"integrity":"sha512-pDqLVbQnjCPWn7E++3B8mLyUeu01nDjIvFk0CvkmjSXrv3n89+E7dojhzcAvgEKms+PXsVBYdmQ/eGc90pBoNg==","signatures":[{"sig":"MEQCIFCqiIbVHfmDzIIuxxu8kZxaLs0YjohVHsnI6fP2s1RcAiBahkaht44utpt08PmqWbiWbJ+2hToPwV+mN94fHQNhTg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37039,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJimgBqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmog7BAAjQvEf7J+prsiY+d8eaGwuob7Zh/kuIbih7DlNWkLb1oaGTId\r\nE55lwjH1NZb8lMx3gnN7uuQhVWZLKGJ1foMPmx5+IX1103IUNypLoxqGf3ks\r\nUEvydTKeP70bqtxQwgABQS0bUkq1uZJTVwr37op/B3ucMVl4LcoJHhGQFt3i\r\nXKipb5MD5bnj5JmjY1c9JaDizxaJuzy1CSQ7cM53zEc9u6Ztji0OIsBWeRP+\r\nILF+TNW4x1dXnHeJgnfNDe197t8wmtw2sXS/858hQQmGuNU/HBfD+3l2swud\r\nQ1O0/sXXfMXK3ZRtIQIGi//6CHDqGmsxWrhbUCe3H0RP2dn92MPwfDesZqtk\r\nzYxjyZqNDEcvns5xao+jKu8nAYJKoy+0VwU+ivZZxYaWtXk4Z3doNZCEhpqc\r\n27ezw6zMputBaUI6FmeRQcDL6lEXql/lpN3ZeJWdlYVfDK7o3VYkhJoZP/55\r\nbE36LYZEdJpAsoo5R1Qt1J4jYCrcgIQUhY8B5pnQisFNa9V3zpr6csQRYC51\r\nwWb0xWgwotHh/deH8qRhmdKRv3mW8YilQkz4cNSNIqoL1c6Vt0Mas4NC2IGf\r\nwzM5i/Vk98D+RRkkIz5f6gTGV7xJz2JI8gvZ9R+ImXzDeYgyMCN6ad8WJM1u\r\nHnyr1asCv5+iabSNaLT/y/Skmb/o4bGEBQs=\r\n=9hbF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.cjs.js","_from":"file:mocks-server-admin-api-client-5.0.1.tgz","module":"dist/index.esm.js","engines":{"node":">=14.0.0"},"scripts":{"test":"jest","build":"rollup --config","mocks:ci":"pnpm -w run nx start admin-api-client-unit-mocks","test:unit":"start-server-and-test mocks:ci tcp:127.0.0.1:3200 test"},"_npmUser":{"name":"javierbrea","email":"javier.brea@gmail.com"},"_resolved":"/tmp/ef8ad487f9ab35ba04402631d0705c94/mocks-server-admin-api-client-5.0.1.tgz","_integrity":"sha512-pDqLVbQnjCPWn7E++3B8mLyUeu01nDjIvFk0CvkmjSXrv3n89+E7dojhzcAvgEKms+PXsVBYdmQ/eGc90pBoNg==","repository":{"url":"git+https://github.com/mocks-server/main.git","type":"git","directory":"packages/admin-api-client"},"_npmVersion":"8.5.5","description":"Client of @mocks-server/plugin-admin-api","directories":{},"_nodeVersion":"16.15.0","dependencies":{"cross-fetch":"3.1.5","@mocks-server/admin-api-paths":"3.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/admin-api-client_5.0.1_1654259817889_0.8053134428662321","host":"s3://npm-registry-packages"},"deprecated":"This package has been discontinued and is no longer maintained. It will not receive bug fixes or security updates."},"5.0.2":{"name":"@mocks-server/admin-api-client","version":"5.0.2","keywords":["mocks-server","plugin","administration","admin","api","rest","client"],"author":{"name":"Javier Brea"},"license":"MIT","_id":"@mocks-server/admin-api-client@5.0.2","maintainers":[{"name":"javierbrea","email":"javier.brea@gmail.com"}],"homepage":"https://www.mocks-server.org","bugs":{"url":"https://github.com/mocks-server/main/issues"},"dist":{"shasum":"c1370fa6eb8ec416f6f20ddd6907897ed4aca8e2","tarball":"https://registry.npmjs.org/@mocks-server/admin-api-client/-/admin-api-client-5.0.2.tgz","fileCount":6,"integrity":"sha512-NnEU9+Z2VvuHMD/Tl/Ob4ZLeNlsS/CN0mJaowdkodok7iZMmoIP+lko7YiottgUSKlSXzpVJ7qsXJLVF1pToOA==","signatures":[{"sig":"MEYCIQCfvKMeAHNRTe75WtZuGOYgKUM+cwFKkcEH+L9bZLDCcgIhAMdblmmtmDY09zFdBSiE5UB+A70kETqtSK+H7Wk1Dg/R","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37099,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixB64ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpFfg//dlBpqLjU+81MBwL8RjWXAoKG+GOpM1DReKsLoDevXv3bZ7s7\r\nmiBp87wDV9IENbmqbT3IUb2InRaQigkVfRE8FdFj13aBwadX8e+6881vqO8o\r\nRt4wDR+VKv3mpVASqTYb9lN/cnMWed4lx07ku0tyRIrUmknDyBse0alVykP2\r\nT1nA1SBNdYi65/cnT2ZhI1QVwA4WRlg3JmW8aKoBrjATD3xXKizjBw5lwbLU\r\nWD+DLymhIOQl/9kJrGaa8z+CQFR/QComyGgidJyG/gPRsgbjOK0hj3usdCB+\r\nCg40AS0oQSZFD+Ov3564SzWziH78J+TIdATp1bHFJH8RSwq2+iyKq0cLgP5E\r\n8rMZyoBFSDmlKbSeVc/U4lCQEQ7WVpU1o0HI/otn6XZKHTo7wj0HNFLmd6Xr\r\njIe6DgUQLDgMw36qXHkvW2K9owrG9NEi0B5Quf9PYSdRcGUTyc7KErqtQxaJ\r\nPdZEz1rr2dh58secfWBYsnIxB4oxxAmAfDNybVLj4A255oRLACWnQ1Uwt1tD\r\nfQxFnMMzOC203yUdCPEe5rGPcSYkvErmXiVUOXSKqzOKh+lmN61WzbIXRwpE\r\nKjovw1oWKTDVUGJjM+NOgF6Oe39edcO5rYEz+shui4UjEltEIIEE9TujC3ba\r\nY7xF7bPyKO5mL+tR3XpptfIZw8mACU8Ny2M=\r\n=ekBT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.cjs.js","_from":"file:mocks-server-admin-api-client-5.0.2.tgz","module":"dist/index.esm.js","engines":{"node":">=14.0.0"},"scripts":{"test":"jest","build":"rollup --config","mocks:ci":"pnpm -w run nx start admin-api-client-unit-mocks","test:unit":"start-server-and-test mocks:ci tcp:127.0.0.1:3200 test"},"_npmUser":{"name":"javierbrea","email":"javier.brea@gmail.com"},"_resolved":"/tmp/0522e21a9052377729e30e2f0fedcffe/mocks-server-admin-api-client-5.0.2.tgz","_integrity":"sha512-NnEU9+Z2VvuHMD/Tl/Ob4ZLeNlsS/CN0mJaowdkodok7iZMmoIP+lko7YiottgUSKlSXzpVJ7qsXJLVF1pToOA==","repository":{"url":"git+https://github.com/mocks-server/main.git","type":"git","directory":"packages/admin-api-client"},"_npmVersion":"8.11.0","description":"Client of @mocks-server/plugin-admin-api","directories":{},"_nodeVersion":"16.15.1","dependencies":{"cross-fetch":"3.1.5","@mocks-server/admin-api-paths":"3.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/admin-api-client_5.0.2_1657020088190_0.20274325489714107","host":"s3://npm-registry-packages"},"deprecated":"This package has been discontinued and is no longer maintained. It will not receive bug fixes or security updates."},"6.0.0":{"name":"@mocks-server/admin-api-client","version":"6.0.0","keywords":["mocks-server","plugin","administration","admin","api","rest","client"],"author":{"name":"Javier Brea"},"license":"MIT","_id":"@mocks-server/admin-api-client@6.0.0","maintainers":[{"name":"javierbrea","email":"javier.brea@gmail.com"}],"homepage":"https://www.mocks-server.org","bugs":{"url":"https://github.com/mocks-server/main/issues"},"dist":{"shasum":"96f4e593c5866f2b63fe81135a7e49631218b9d4","tarball":"https://registry.npmjs.org/@mocks-server/admin-api-client/-/admin-api-client-6.0.0.tgz","fileCount":6,"integrity":"sha512-aseT22GmSwXtsSNvYQ+3xGt1c5/LUfMOPG90tDix6easAlIjPfPWSIBkm/SbU/Vp31pkpzulc7pCy9LZnHLrCQ==","signatures":[{"sig":"MEQCIAnVSm1uPWovmNtIAJoWZINJD2heCGOC9QO3ZVwPrgyzAiBShJNHzoOMCu+1ZQOCQv7nytoRgJpl7PQqp455HYXJNA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37778,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi2m/qACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoCOxAAo7NPI4h8GsnB1Dw5iMRBPZtE936CYdDBe1uZ5y2p5kpRlkgQ\r\n0756NA8KqipAWK6xBesdav5EG4bZrzWgKXqzR1q5+h28CDLbkQ/qiAtjHLGs\r\nr9Zf4gVfeKwKsRiO/UYNfzp1eixQkxS2NKuXVfEgn0KpalJs8vUrxUX/F2xw\r\nxw2tHLbJk8srCbSuglg6fr6wpNZjohHC982Fnnv5xNlJa1CyRxRn0uvptOYw\r\nnUnjGBojazfnAIDHdW3EPZ+aS7dlEa5+e6QMTNSrwOkjBFxSbIIr8qj8ggNi\r\nnijcZKIYpaFEjkGp7Ft16gnoQA7v1Bx3ZsjTjrKOJ5J6OK24bmwfKprOX6nA\r\nrXBIkzmzOM4UV913byHE8XynYQFZvc3mg5ORrQ6DCheglTr45v5opsrSrzKU\r\nRRHSduWj3b1Xt4GJtIV4M7omTgVueONXCzY/3Ss6BzCiKOp2mDrANjsfQPdd\r\ncJF7MBYfzTqQ6ARD0wvtyPspWnIB7t+9AHIp4bE/EZz9EvuN48Vg/HZppUA3\r\nVN6DcBAq8t/Dld0WMsQAaOTt3BZ5S+nS0Vz+XgUfNpNhmmCWlGG8F1S85vg+\r\nuoLteGC7Vrrt4s9n5FwvTzCYtriQROGvcNL4cYcxqieNSGIfzBdClxOhfGys\r\n0XzxPM9x+q+3vXHd9tAxCiSXebzzhoX6CJU=\r\n=uOOG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.cjs.js","_from":"file:mocks-server-admin-api-client-6.0.0.tgz","module":"dist/index.esm.js","engines":{"node":">=14.0.0"},"scripts":{"test":"jest","build":"rollup --config","mocks:ci":"pnpm -w run nx start admin-api-client-unit-mocks","test:unit":"start-server-and-test mocks:ci tcp:127.0.0.1:3200 test"},"_npmUser":{"name":"javierbrea","email":"javier.brea@gmail.com"},"_resolved":"/tmp/ddc7ed76f846d65d0528f98b1012966a/mocks-server-admin-api-client-6.0.0.tgz","_integrity":"sha512-aseT22GmSwXtsSNvYQ+3xGt1c5/LUfMOPG90tDix6easAlIjPfPWSIBkm/SbU/Vp31pkpzulc7pCy9LZnHLrCQ==","repository":{"url":"git+https://github.com/mocks-server/main.git","type":"git","directory":"packages/admin-api-client"},"_npmVersion":"8.11.0","description":"Client of @mocks-server/plugin-admin-api","directories":{},"_nodeVersion":"16.16.0","dependencies":{"cross-fetch":"3.1.5","@mocks-server/admin-api-paths":"4.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/admin-api-client_6.0.0_1658482666585_0.3438969010815083","host":"s3://npm-registry-packages"},"deprecated":"This package has been discontinued and is no longer maintained. It will not receive bug fixes or security updates."},"6.1.0":{"name":"@mocks-server/admin-api-client","version":"6.1.0","keywords":["mocks-server","plugin","administration","admin","api","rest","client"],"author":{"name":"Javier Brea"},"license":"MIT","_id":"@mocks-server/admin-api-client@6.1.0","maintainers":[{"name":"javierbrea","email":"javier.brea@gmail.com"}],"homepage":"https://www.mocks-server.org","bugs":{"url":"https://github.com/mocks-server/main/issues"},"dist":{"shasum":"e03bbf35c5e31a078e2794e896a7a4c795a3eb79","tarball":"https://registry.npmjs.org/@mocks-server/admin-api-client/-/admin-api-client-6.1.0.tgz","fileCount":14,"integrity":"sha512-QNv1VS7gQJSLabXzTCQPELxnPMpAgYqknqlw41CiVLYeXApWcTOpPWZYJMuXJR9tmC8AhiqdAKP9o7VvqXaPjw==","signatures":[{"sig":"MEYCIQColsV2yqIu2r8vXnyhPdl9Mie6MG0q+E9Nh27Atb6qiAIhAONlenJoPAJTkbesCv8iQhZPDT1vsa8ggIw6GsMiiVQt","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":61041,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6550ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpk2w//W01qseILE5MwdsRhsFNNKGEO+qfLoKkxutkEXTInziWkmWls\r\nbDhyDFU5h7BoZPJT6rkq6hfKExdv3XoJ3u15A+suie41rKGAOT4ovHuTdo3U\r\nfLusMaMAabEO+xMUueW+ln8PdIohEPNNpkagEhs1FGhnoKCEvy6257mUBFCJ\r\nmdvsoaiRA7kiAOEqjajKIanhjNMxXHnqweWk8nx4zgRKkCapiBW7sURRrTZQ\r\nZQ0IRUsPMY6p2mNkp6/KK34IL6iN8dqPQ9cB1goO2TaAN802jLaHE+sW23HN\r\n8B32DPjIzI8KpSB4yTkNLAMfWzsMORuQKV4K6avt8m0FRYaPWPLSeT4deCpM\r\nfD2uYmu6oojOy+xwnHt92k3K057YcfWTXnRjm9FQlyf1oPjj5QO3A7yPVXu+\r\nVA6nETPJcRu+Le27e/EIcNm0/p7frEX8bd+IlyJ7S/loH1cQ5Op9/Cd4OBDD\r\n9/zmKeinR0HTutWeMSsh3iqYqObWWlw5reePrzWZzvpjx0mz0/XfecDaPytG\r\n60BnoBJpZypfya4czuTRCB7530FAHhsZZlFnv6dBCz1uOO6FBNTY1dlvg5H9\r\nXpGd4Jkyru6vuz4iB8206Dakz8kGw9ddtPrAasDLBXnZPeTUck3fAGOPblbB\r\nIClSB+T9cJjcr40WzaaCM8QlLcgX7UsKZGg=\r\n=Xfgl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.cjs.js","_from":"file:mocks-server-admin-api-client-6.1.0.tgz","types":"dist-tsc/index.d.ts","module":"dist/index.esm.js","engines":{"node":">=14.0.0"},"scripts":{"test":"jest --runInBand","build":"tsc && rollup --config","mocks:ci":"pnpm -w run nx start admin-api-client-unit-mocks","test:unit":"start-server-and-test mocks:ci tcp:127.0.0.1:3200 test"},"_npmUser":{"name":"javierbrea","email":"javier.brea@gmail.com"},"_resolved":"/tmp/f112eeee455be746faf5fe0180081fb2/mocks-server-admin-api-client-6.1.0.tgz","_integrity":"sha512-QNv1VS7gQJSLabXzTCQPELxnPMpAgYqknqlw41CiVLYeXApWcTOpPWZYJMuXJR9tmC8AhiqdAKP9o7VvqXaPjw==","repository":{"url":"git+https://github.com/mocks-server/main.git","type":"git","directory":"packages/admin-api-client"},"_npmVersion":"8.11.0","description":"Client of @mocks-server/plugin-admin-api","directories":{},"_nodeVersion":"16.16.0","dependencies":{"cross-fetch":"3.1.5","@mocks-server/admin-api-paths":"4.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/admin-api-client_6.1.0_1659608692037_0.8969598609188689","host":"s3://npm-registry-packages"},"deprecated":"This package has been discontinued and is no longer maintained. It will not receive bug fixes or security updates."},"6.2.0":{"name":"@mocks-server/admin-api-client","version":"6.2.0","keywords":["mocks-server","plugin","administration","admin","api","rest","client"],"author":{"name":"Javier Brea"},"license":"MIT","_id":"@mocks-server/admin-api-client@6.2.0","maintainers":[{"name":"javierbrea","email":"javier.brea@gmail.com"}],"homepage":"https://www.mocks-server.org","bugs":{"url":"https://github.com/mocks-server/main/issues"},"dist":{"shasum":"cda91caa0b23c6e8812a816394574d845d247af2","tarball":"https://registry.npmjs.org/@mocks-server/admin-api-client/-/admin-api-client-6.2.0.tgz","fileCount":14,"integrity":"sha512-rEiriZU6pd2A8ud+L7R/lSnmpFoOHEU4Sue8EnusdZty0zt0SWWVYcuP9xOeDCGtlEAU6uGKygrzsF05ZIBMsQ==","signatures":[{"sig":"MEUCIC6RGZ96Mq6ilU3P8wNqUXA4W8XPUwyVCFJZD47m+do5AiEA7pnNErE2QNspWwqRK+O5m0sBZALj2C/3oFDctx4LiMk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":66281,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9SD8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrVkg/+PWNa4S7VZtSj7UqsQs3BCmWQp4c7YkzonU12VypC28jRodDk\r\na3HvKJ6lqEn7PsQ0+ag9lNVbsnnPNcGmhxZ7MEqx3aPZhlRnINlgBxzNx2qU\r\ne2PH209EXFnkrRdV/yI3l0Ms2y24Fllua6iizRHh0j1U+HSYNPHJH5IOnvp9\r\niDT8i8GARkPzoGwKWIBtL5hwuOuyfubQV1uG5pu/dr7PS+qp+TcEcZ1lcjWh\r\nN8505fA16mu6xQjuKaaRigFqaNYXW+DEe19ee9Fw+XVTS7Xdr6EB9LD3MnRD\r\niE8nAHgzhks1fnelxaWmawnLJiPTSSSx1Zogwc3Pc7ZlEP8Nf2D3sLaffNce\r\nioVv29Yhqx3dTu4pjA/n8ZZnzxAKmi1cRl2QRyqGrSUQU0zR+EF2Slnx92ja\r\n3fcdRLUBTOWh1MpDznsoIvkDx34lwR5aktOZmgeSFiojhwWHM0ZKFpF7pDs5\r\nNiUweSYXY90Tn44Qn2mrtkWhfTrXATlh2SdZgOh9DARhMo1RFp01xKag6oR8\r\nKyfgUTC4KAqmoGdeXZuAnDdm7HzVq2gYVK63FV8aJXXQC+Y4weSSIw7jZFrt\r\nMR3o18WofE/BjJe7fTgyIr7/gaiTWBh+gM8JBGg6WEm/fWC6oHYzvNScueO6\r\naUpt/YqhhDnGJDzeh28e7uc2dw+w+Zg+uag=\r\n=EfPC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.cjs.js","_from":"file:mocks-server-admin-api-client-6.2.0.tgz","types":"dist-tsc/index.d.ts","module":"dist/index.esm.js","engines":{"node":">=14.0.0"},"scripts":{"test":"jest --runInBand","build":"tsc && rollup --config","mocks:ci":"pnpm -w run nx start admin-api-client-unit-mocks","test:unit":"start-server-and-test mocks:ci tcp:127.0.0.1:3110 test"},"_npmUser":{"name":"javierbrea","email":"javier.brea@gmail.com"},"_resolved":"/tmp/fa5461153aa699ab0d818ce9234fe27a/mocks-server-admin-api-client-6.2.0.tgz","_integrity":"sha512-rEiriZU6pd2A8ud+L7R/lSnmpFoOHEU4Sue8EnusdZty0zt0SWWVYcuP9xOeDCGtlEAU6uGKygrzsF05ZIBMsQ==","repository":{"url":"git+https://github.com/mocks-server/main.git","type":"git","directory":"packages/admin-api-client"},"_npmVersion":"8.11.0","description":"Client of @mocks-server/plugin-admin-api","directories":{},"_nodeVersion":"16.16.0","dependencies":{"cross-fetch":"3.1.5","@mocks-server/admin-api-paths":"4.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/admin-api-client_6.2.0_1660231932024_0.42691409462752783","host":"s3://npm-registry-packages"},"deprecated":"This package has been discontinued and is no longer maintained. It will not receive bug fixes or security updates."},"7.0.0":{"name":"@mocks-server/admin-api-client","version":"7.0.0","keywords":["mocks-server","plugin","administration","admin","api","rest","client"],"author":{"name":"Javier Brea"},"license":"MIT","_id":"@mocks-server/admin-api-client@7.0.0","maintainers":[{"name":"javierbrea","email":"javier.brea@gmail.com"}],"homepage":"https://www.mocks-server.org","bugs":{"url":"https://github.com/mocks-server/main/issues"},"dist":{"shasum":"81b7d0a7e422f7d71062945e0ced2622b539b154","tarball":"https://registry.npmjs.org/@mocks-server/admin-api-client/-/admin-api-client-7.0.0.tgz","fileCount":14,"integrity":"sha512-upJnRkSCntDrXmlGB4w0xsoVtHLo8Rz5+hqqn/r3C/UWT1qVBooW8bCNPjKLaXh7TAkzynXKCQROVsYdaOholQ==","signatures":[{"sig":"MEYCIQCiKFbPqEsz0AYaTFru+nD3F8Do83jNFKzdfQNtAOf7VgIhANcQrTF9ovK/4CR0Zh/6EZLcWs85ZkIzArJeO1CQI1Q4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":59184,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjIVvqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrCEBAAmTpowPdLmHhavJZqT/+RR7oNBja4YaGh9XzFjabk+/XbxFmE\r\nO+1BiqumRr4m1oPq2xdIeIMiP3OlL0nIG9+D+1/RERdJGobQ0h2DjFWC8NTs\r\ntkmrazZ6cV7fxSZ1oqhRArLZSPK5tR39bgd1/mqVdqtCdCG/bxA0nb0uIljS\r\nP90q+V0T1LBvezipB4t7YMaBDW2xt4rNrDS3JOrQZhJxlB2u+FK3xaXuWg9F\r\nU3uYsvhNS9WMH/7emKX/46f+LR7eNWtYNbNRa+9T6mLYPowMJNbzL52tdZJJ\r\nYej2WCplzO63LBKC9aCfWLF4MV0cii5Ua747a9KFZ3d0o970uw9zjOaMyjuP\r\nOh/dJOQ3x+hslZ2bMFJehFFN2myMfAse8o8wvAJl1zLtVdAXdyY85V1pM8vb\r\nlB2e3IRcKnl15REqyYTajWpByBNtqSc4EbuXB4htlRpsyF9/pUnbvgbJ53QB\r\nK+gzXqWHFiw3ysnO4SKVV1FCW2CpGqJq+UYhFXExyBB+ylPbuEJa1o4N3hRX\r\nWRc6dA2tEJmR/jj9jL2eoSeOgPBGUTn3zCnEQcFVD3ubFi48PhqxgrJ/kUMe\r\niSJpSozV5qpfOypcu9+lqNopUHXiZNDrEZ6I0I/kEQK0FJ0edcQ69STwW1fM\r\n3yv4Ibi38Exo4A0mxL3Q5gs0Ee/67/oLIjo=\r\n=ZehW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.cjs.js","_from":"file:mocks-server-admin-api-client-7.0.0.tgz","types":"dist-tsc/index.d.ts","module":"dist/index.esm.js","engines":{"node":">=14.0.0"},"scripts":{"test":"jest --runInBand","build":"tsc && rollup --config","mocks:ci":"pnpm -w run nx start admin-api-client-unit-mocks","test:unit":"start-server-and-test mocks:ci tcp:127.0.0.1:3110 test"},"_npmUser":{"name":"javierbrea","email":"javier.brea@gmail.com"},"_resolved":"/tmp/8298dda4ba6f47ddee60f8097fcf4ddd/mocks-server-admin-api-client-7.0.0.tgz","_integrity":"sha512-upJnRkSCntDrXmlGB4w0xsoVtHLo8Rz5+hqqn/r3C/UWT1qVBooW8bCNPjKLaXh7TAkzynXKCQROVsYdaOholQ==","repository":{"url":"git+https://github.com/mocks-server/main.git","type":"git","directory":"packages/admin-api-client"},"_npmVersion":"8.15.0","description":"Client of @mocks-server/plugin-admin-api","directories":{},"_nodeVersion":"16.17.0","dependencies":{"cross-fetch":"3.1.5","@mocks-server/admin-api-paths":"5.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/admin-api-client_7.0.0_1663130602443_0.25348264936203346","host":"s3://npm-registry-packages"},"deprecated":"This package has been discontinued and is no longer maintained. It will not receive bug fixes or security updates."},"8.0.0-beta.1":{"name":"@mocks-server/admin-api-client","version":"8.0.0-beta.1","keywords":["mocks-server","plugin","administration","admin","api","rest","client"],"author":{"name":"Javier Brea"},"license":"MIT","_id":"@mocks-server/admin-api-client@8.0.0-beta.1","maintainers":[{"name":"javierbrea","email":"javier.brea@gmail.com"}],"homepage":"https://www.mocks-server.org","bugs":{"url":"https://github.com/mocks-server/main/issues"},"dist":{"shasum":"f2eead3b1820ccb1173eb862dcbbbc5bd7fdbc63","tarball":"https://registry.npmjs.org/@mocks-server/admin-api-client/-/admin-api-client-8.0.0-beta.1.tgz","fileCount":20,"integrity":"sha512-VnCLuQxI+5PPRTSO0qcoLE8EK/X+ohzAG61Gb7DXmCRRFus0P0WkmRHN/xN5wZxWzQHDzRXlMj6pvBb93NGv0Q==","signatures":[{"sig":"MEUCIA7CWsbP2qaf+noDn0cg8g55HjKNzT8tzquK1voZJFSaAiEA94YtthRivLpKAs7Xjf0Wvz3qvjViGBoZS1UoikgPVFQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":69624},"main":"dist/index.cjs.js","_from":"file:mocks-server-admin-api-client-8.0.0-beta.1.tgz","types":"dist-tsc/index.d.ts","module":"dist/index.esm.js","readme":"<p align=\"center\"><a href=\"https://mocks-server.org\" target=\"_blank\" rel=\"noopener noreferrer\"><img width=\"120\" src=\"https://www.mocks-server.org/img/logo_120.png\" alt=\"Mocks Server logo\"></a></p>\n\n<p align=\"center\">\n  <a href=\"https://github.com/mocks-server/main/actions?query=workflow%3Abuild+branch%3Amaster\"><img src=\"https://github.com/mocks-server/main/workflows/build/badge.svg?branch=master\" alt=\"Build Status\"></a>\n  <a href=\"https://codecov.io/gh/mocks-server/main\"><img src=\"https://codecov.io/gh/mocks-server/main/branch/master/graph/badge.svg?token=2S8ZR55AJV\" alt=\"Coverage\"></a>\n  <a href=\"https://sonarcloud.io/project/overview?id=mocks-server_main_admin-api-client\"><img src=\"https://sonarcloud.io/api/project_badges/measure?project=mocks-server_main_admin-api-client&metric=alert_status\" alt=\"Quality Gate\"></a>\n  <a href=\"https://www.npmjs.com/package/@mocks-server/admin-api-client\"><img src=\"https://img.shields.io/npm/dm/@mocks-server/admin-api-client.svg\" alt=\"Downloads\"></a>\n  <a href=\"https://renovatebot.com\"><img src=\"https://img.shields.io/badge/renovate-enabled-brightgreen.svg\" alt=\"Renovate\"></a>\n  <a href=\"https://github.com/mocks-server/main/blob/master/packages/admin-api-client/LICENSE\"><img src=\"https://img.shields.io/npm/l/@mocks-server/admin-api-client.svg\" alt=\"License\"></a>\n</p>\n\n---\n\n# Mocks-server administration api client\n\nThis package provides an API client for administrating Mocks Server through HTTP requests to the [Admin API plugin][plugin-admin-api-url].\n\nRequests to the Mocks Server administration API are made using [`cross-fetch`](https://www.npmjs.com/package/cross-fetch), which makes this package compatible with browsers and Node.js environments, but, if you are going to build a browser application, you'll probably prefer to use the [`@mocks-server/admin-api-client-data-provider` package](https://www.npmjs.com/package/@mocks-server/admin-api-client-data-provider), which uses [Data Provider](https://www.data-provider.org), and works well with Redux, React, etc.\n\n## Installation\n\n```bash\nnpm install --save @mocks-server/admin-api-client\n```\n\nThe UMD build is also available on unpkg. When UMD package is loaded, it creates a `mocksServerAdminApiClient` global object containing all methods and classes.\n\n```html\n<script src=\"https://unpkg.com/@mocks-server/admin-api-paths/dist/index.umd.js\"></script>\n<script src=\"https://unpkg.com/@mocks-server/admin-api-client/dist/index.umd.js\"></script>\n```\n\n> NOTE: The umd distribution is bundled with the `cross-fetch` dependency, but it requires the `@mocks-server/admin-api-paths` dependency to be added separately.\n\n## Usage\n\nImport and create a new `AdminApiClient` class. All methods described in the [Api](#api) return Promises when executed (except the `configClient` method):\n\n```js\nimport { AdminApiClient } from \"@mocks-server/admin-api-client\";\n\nconst example = async () => {\n  const adminApiClient = new AdminApiClient();\n\n  const { version } = await adminApiClient.readAbout();\n  console.log(`Current Admin API plugin version is ${versions.adminApi}`);\n\n  const currentConfig = await adminApiClient.readConfig();\n  console.log(\"Current Mocks Server config is\", JSON.stringify(currentConfig));\n\n  await adminApiClient.updateConfig({\n    mock: {\n      collections: {\n        selected: \"user-super-admin\"\n      },\n      routes: {\n        delay: 1000\n      },\n    },\n  });\n  console.log(\"Collection and delay changed\");\n};\n\nexample();\n```\n\n## Api\n\n### new AdminApiClient()\n\nReturns an instance containing next methods:\n\n* `readAbout()` - Returns info about the Admin API plugin, such as current version.\n* `readConfig()` - Returns current configuration.\n* `updateConfig(configObject)` - Updates Mocks Server configuration. A configuration object has to be provided. Read the [Mocks Server configuration docs](https://www.mocks-server.org/docs/configuration/options) for further info.\n* `readAlerts()` - Returns array of current alerts.\n* `readAlert(alertId)` - Returns an specific alert.\n* `readCollections()` - Returns available collections.\n* `readCollection(id)` - Returns a collection by ID.\n* `readRoutes()` - Returns available routes.\n* `readRoute(id)` - Returns a route by ID.\n* `readVariants()` - Returns available route variants.\n* `readVariant(id)` - Returns a route variant by ID.\n* `readCustomRouteVariants()` - Returns current custom route variants of the current collection.\n* `useRouteVariant(id)` - Sets a custom route variant to be used by current collection.\n* `restoreRouteVariants()` - Restore route variants to those defined in current collection.\n* `configClient(clientConfig)` - Changes the client configuration.\n  * `clientConfig` _`<Object>`_ - It should be an object containing any of next properties:\n    * `port` - _`<Number>`_ - Changes the client port. Default is `3110`.\n    * `host` - _`<String>`_ - Changes the client host. Default is `127.0.0.1`.\n    * `https` - _`<Boolean>`_ - If `true`, changes the client protocol to \"https\". Default is `false`.\n    * `agent` - _`<http.Agent | https.Agent>`_ - A custom agent can be provided. This is useful in Node.js environments in order to make able to request to https APIs with self-signed certificates ([see example below](#requesting-to-apis-with-https-enabled-and-self-signed-certificate)).\n\n## Configuration\n\nBy default, clients are configured to request to `http://127.0.0.1:3110/api`, based in the [default options of Mocks Server Plugin Admin API](https://www.mocks-server.org/docs/configuration/options)\n\nYou can change the host, port and protocol of the administration API using the `configClient` method:\n\n```js\nimport { AdminApiClient } from \"@mocks-server/admin-api-client\";\n\nconst apiClient = new AdminApiClient();\napiClient.configClient({\n  host: \"localhost\",\n  port: 3500,\n  https: true,\n});\n```\n\n### Requesting to APIs with https enabled and self-signed certificate\n\nWhen the administration API is started with https enabled using a self-signed certificate, and the client is used in Node.js, a custom agent can be provided in order to avoid unauthorized rejections:\n\n```js\nimport https from \"https\";\nimport { AdminApiClient } from \"@mocks-server/admin-api-client\";\n\nconst httpsAgent = new https.Agent({\n  rejectUnauthorized: false,\n});\n\nconst apiClient = new AdminApiClient();\napiClient.configClient({\n  host: \"localhost\",\n  port: 3500,\n  https: true,\n  agent: httpsAgent\n});\n```\n\n## Contributing\n\nContributors are welcome.\nPlease read the [contributing guidelines](.github/CONTRIBUTING.md) and [code of conduct](.github/CODE_OF_CONDUCT.md).\n\n[plugin-admin-api-url]: https://github.com/mocks-server/main/blob/master/packages/admin-api-client\n","engines":{"node":">=14.0.0"},"scripts":{"test":"jest --runInBand","build":"tsc && rollup --config","mocks:ci":"pnpm -w run nx start admin-api-client-unit-mocks","test:unit":"start-server-and-test mocks:ci tcp:127.0.0.1:3110 test"},"_npmUser":{"name":"javierbrea","email":"javier.brea@gmail.com"},"_resolved":"/tmp/dfeac0c4a4cdf88ba5ccd8a9459b1f7b/mocks-server-admin-api-client-8.0.0-beta.1.tgz","_integrity":"sha512-VnCLuQxI+5PPRTSO0qcoLE8EK/X+ohzAG61Gb7DXmCRRFus0P0WkmRHN/xN5wZxWzQHDzRXlMj6pvBb93NGv0Q==","repository":{"url":"git+https://github.com/mocks-server/main.git","type":"git","directory":"packages/admin-api-client"},"_npmVersion":"8.19.4","description":"Client of @mocks-server/plugin-admin-api","directories":{},"_nodeVersion":"16.20.0","dependencies":{"cross-fetch":"3.1.5","@mocks-server/config":"2.0.0-beta.1","@mocks-server/admin-api-paths":"5.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/admin-api-client_8.0.0-beta.1_1684861240715_0.8996026336324308","host":"s3://npm-registry-packages"},"deprecated":"This package has been discontinued and is no longer maintained. It will not receive bug fixes or security updates."},"7.0.1":{"name":"@mocks-server/admin-api-client","version":"7.0.1","keywords":["mocks-server","plugin","administration","admin","api","rest","client"],"author":{"name":"Javier Brea"},"license":"MIT","_id":"@mocks-server/admin-api-client@7.0.1","maintainers":[{"name":"javierbrea","email":"javier.brea@gmail.com"}],"homepage":"https://www.mocks-server.org","bugs":{"url":"https://github.com/mocks-server/main/issues"},"dist":{"shasum":"9b53405f36d8977e8bd42ee0917cffda146d1b9e","tarball":"https://registry.npmjs.org/@mocks-server/admin-api-client/-/admin-api-client-7.0.1.tgz","fileCount":14,"integrity":"sha512-UFM5xWM3WRCJJYO4tsolxy+tfhEMJRA92rkW3gFnum4pQ6cyzhhUmwNGBBP645cWNUUcRzyQxsqVJh7BdTDk5Q==","signatures":[{"sig":"MEUCIEvTMpGVMo3m4jR+yIvc9Acp0Lq26cQ/CdZipaQ2aqDDAiEAucegNUh9G8JJ3XspXHl7LJMFkN0keai1MZGQ8csSFZM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":59184},"main":"dist/index.cjs.js","_from":"file:mocks-server-admin-api-client-7.0.1.tgz","types":"dist-tsc/index.d.ts","module":"dist/index.esm.js","engines":{"node":">=14.0.0"},"scripts":{"test":"jest --runInBand","build":"tsc && rollup --config","mocks:ci":"pnpm -w run nx start admin-api-client-unit-mocks","test:unit":"start-server-and-test mocks:ci tcp:127.0.0.1:3110 test"},"_npmUser":{"name":"javierbrea","email":"javier.brea@gmail.com"},"_resolved":"/tmp/91fd5588612917b2bcbd0f9eb3db54ac/mocks-server-admin-api-client-7.0.1.tgz","_integrity":"sha512-UFM5xWM3WRCJJYO4tsolxy+tfhEMJRA92rkW3gFnum4pQ6cyzhhUmwNGBBP645cWNUUcRzyQxsqVJh7BdTDk5Q==","repository":{"url":"git+https://github.com/mocks-server/main.git","type":"git","directory":"packages/admin-api-client"},"_npmVersion":"8.19.4","description":"Client of @mocks-server/plugin-admin-api","directories":{},"_nodeVersion":"16.20.0","dependencies":{"cross-fetch":"3.1.6","@mocks-server/admin-api-paths":"5.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/admin-api-client_7.0.1_1685342256773_0.5684934441798786","host":"s3://npm-registry-packages"},"deprecated":"This package has been discontinued and is no longer maintained. It will not receive bug fixes or security updates."},"8.0.0-beta.2":{"name":"@mocks-server/admin-api-client","version":"8.0.0-beta.2","keywords":["mocks-server","plugin","administration","admin","api","rest","client"],"author":{"name":"Javier Brea"},"license":"MIT","_id":"@mocks-server/admin-api-client@8.0.0-beta.2","maintainers":[{"name":"javierbrea","email":"javier.brea@gmail.com"}],"homepage":"https://www.mocks-server.org","bugs":{"url":"https://github.com/mocks-server/main/issues"},"dist":{"shasum":"a36a1488c2ccc4699abf70e9a836de566fbfbbc2","tarball":"https://registry.npmjs.org/@mocks-server/admin-api-client/-/admin-api-client-8.0.0-beta.2.tgz","fileCount":20,"integrity":"sha512-n7rFjiT4a+zDd1D5SRZAILF42h+WdMyZJTmYP6ev6XMyiAB65j968IR3NkAqO696pMSa/92hxelpdXIYcSstkw==","signatures":[{"sig":"MEYCIQC+YGMU1K521n3RgCsLv8eMODpzlhynWpwNW2aSMspFDgIhAPrgsbl9SMupg4dsxrQBefcjFWyAwAOjxsmg/uB9UTwJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":69646},"main":"dist/index.cjs.js","_from":"file:mocks-server-admin-api-client-8.0.0-beta.2.tgz","types":"dist-tsc/index.d.ts","module":"dist/index.esm.js","readme":"<p align=\"center\"><a href=\"https://mocks-server.org\" target=\"_blank\" rel=\"noopener noreferrer\"><img width=\"120\" src=\"https://www.mocks-server.org/img/logo_120.png\" alt=\"Mocks Server logo\"></a></p>\n\n<p align=\"center\">\n  <a href=\"https://github.com/mocks-server/main/actions?query=workflow%3Abuild+branch%3Amaster\"><img src=\"https://github.com/mocks-server/main/workflows/build/badge.svg?branch=master\" alt=\"Build Status\"></a>\n  <a href=\"https://codecov.io/gh/mocks-server/main\"><img src=\"https://codecov.io/gh/mocks-server/main/branch/master/graph/badge.svg?token=2S8ZR55AJV\" alt=\"Coverage\"></a>\n  <a href=\"https://sonarcloud.io/project/overview?id=mocks-server_main_admin-api-client\"><img src=\"https://sonarcloud.io/api/project_badges/measure?project=mocks-server_main_admin-api-client&metric=alert_status\" alt=\"Quality Gate\"></a>\n  <a href=\"https://www.npmjs.com/package/@mocks-server/admin-api-client\"><img src=\"https://img.shields.io/npm/dm/@mocks-server/admin-api-client.svg\" alt=\"Downloads\"></a>\n  <a href=\"https://renovatebot.com\"><img src=\"https://img.shields.io/badge/renovate-enabled-brightgreen.svg\" alt=\"Renovate\"></a>\n  <a href=\"https://github.com/mocks-server/main/blob/master/packages/admin-api-client/LICENSE\"><img src=\"https://img.shields.io/npm/l/@mocks-server/admin-api-client.svg\" alt=\"License\"></a>\n</p>\n\n---\n\n# Mocks-server administration api client\n\nThis package provides an API client for administrating Mocks Server through HTTP requests to the [Admin API plugin][plugin-admin-api-url].\n\nRequests to the Mocks Server administration API are made using [`cross-fetch`](https://www.npmjs.com/package/cross-fetch), which makes this package compatible with browsers and Node.js environments, but, if you are going to build a browser application, you'll probably prefer to use the [`@mocks-server/admin-api-client-data-provider` package](https://www.npmjs.com/package/@mocks-server/admin-api-client-data-provider), which uses [Data Provider](https://www.data-provider.org), and works well with Redux, React, etc.\n\n## Installation\n\n```bash\nnpm install --save @mocks-server/admin-api-client\n```\n\nThe UMD build is also available on unpkg. When UMD package is loaded, it creates a `mocksServerAdminApiClient` global object containing all methods and classes.\n\n```html\n<script src=\"https://unpkg.com/@mocks-server/admin-api-paths/dist/index.umd.js\"></script>\n<script src=\"https://unpkg.com/@mocks-server/admin-api-client/dist/index.umd.js\"></script>\n```\n\n> NOTE: The umd distribution is bundled with the `cross-fetch` dependency, but it requires the `@mocks-server/admin-api-paths` dependency to be added separately.\n\n## Usage\n\nImport and create a new `AdminApiClient` class. All methods described in the [Api](#api) return Promises when executed (except the `configClient` method):\n\n```js\nimport { AdminApiClient } from \"@mocks-server/admin-api-client\";\n\nconst example = async () => {\n  const adminApiClient = new AdminApiClient();\n\n  const { version } = await adminApiClient.readAbout();\n  console.log(`Current Admin API plugin version is ${versions.adminApi}`);\n\n  const currentConfig = await adminApiClient.readConfig();\n  console.log(\"Current Mocks Server config is\", JSON.stringify(currentConfig));\n\n  await adminApiClient.updateConfig({\n    mock: {\n      collections: {\n        selected: \"user-super-admin\"\n      },\n      routes: {\n        delay: 1000\n      },\n    },\n  });\n  console.log(\"Collection and delay changed\");\n};\n\nexample();\n```\n\n## Api\n\n### new AdminApiClient()\n\nReturns an instance containing next methods:\n\n* `readAbout()` - Returns info about the Admin API plugin, such as current version.\n* `readConfig()` - Returns current configuration.\n* `updateConfig(configObject)` - Updates Mocks Server configuration. A configuration object has to be provided. Read the [Mocks Server configuration docs](https://www.mocks-server.org/docs/configuration/options) for further info.\n* `readAlerts()` - Returns array of current alerts.\n* `readAlert(alertId)` - Returns an specific alert.\n* `readCollections()` - Returns available collections.\n* `readCollection(id)` - Returns a collection by ID.\n* `readRoutes()` - Returns available routes.\n* `readRoute(id)` - Returns a route by ID.\n* `readVariants()` - Returns available route variants.\n* `readVariant(id)` - Returns a route variant by ID.\n* `readCustomRouteVariants()` - Returns current custom route variants of the current collection.\n* `useRouteVariant(id)` - Sets a custom route variant to be used by current collection.\n* `restoreRouteVariants()` - Restore route variants to those defined in current collection.\n* `configClient(clientConfig)` - Changes the client configuration.\n  * `clientConfig` _`<Object>`_ - It should be an object containing any of next properties:\n    * `port` - _`<Number>`_ - Changes the client port. Default is `3110`.\n    * `host` - _`<String>`_ - Changes the client host. Default is `127.0.0.1`.\n    * `https` - _`<Boolean>`_ - If `true`, changes the client protocol to \"https\". Default is `false`.\n    * `agent` - _`<http.Agent | https.Agent>`_ - A custom agent can be provided. This is useful in Node.js environments in order to make able to request to https APIs with self-signed certificates ([see example below](#requesting-to-apis-with-https-enabled-and-self-signed-certificate)).\n\n## Configuration\n\nBy default, clients are configured to request to `http://127.0.0.1:3110/api`, based in the [default options of Mocks Server Plugin Admin API](https://www.mocks-server.org/docs/configuration/options)\n\nYou can change the host, port and protocol of the administration API using the `configClient` method:\n\n```js\nimport { AdminApiClient } from \"@mocks-server/admin-api-client\";\n\nconst apiClient = new AdminApiClient();\napiClient.configClient({\n  host: \"localhost\",\n  port: 3500,\n  https: true,\n});\n```\n\n### Requesting to APIs with https enabled and self-signed certificate\n\nWhen the administration API is started with https enabled using a self-signed certificate, and the client is used in Node.js, a custom agent can be provided in order to avoid unauthorized rejections:\n\n```js\nimport https from \"https\";\nimport { AdminApiClient } from \"@mocks-server/admin-api-client\";\n\nconst httpsAgent = new https.Agent({\n  rejectUnauthorized: false,\n});\n\nconst apiClient = new AdminApiClient();\napiClient.configClient({\n  host: \"localhost\",\n  port: 3500,\n  https: true,\n  agent: httpsAgent\n});\n```\n\n## Contributing\n\nContributors are welcome.\nPlease read the [contributing guidelines](.github/CONTRIBUTING.md) and [code of conduct](.github/CODE_OF_CONDUCT.md).\n\n[plugin-admin-api-url]: https://github.com/mocks-server/main/blob/master/packages/admin-api-client\n","engines":{"node":">=14.0.0"},"scripts":{"test":"jest --runInBand","build":"tsc && rollup --config","mocks:ci":"pnpm -w run nx start admin-api-client-unit-mocks","test:unit":"start-server-and-test mocks:ci tcp:127.0.0.1:3110 test"},"_npmUser":{"name":"javierbrea","email":"javier.brea@gmail.com"},"_resolved":"/tmp/6d7ff04d845ad141bb47338a1abf2d77/mocks-server-admin-api-client-8.0.0-beta.2.tgz","_integrity":"sha512-n7rFjiT4a+zDd1D5SRZAILF42h+WdMyZJTmYP6ev6XMyiAB65j968IR3NkAqO696pMSa/92hxelpdXIYcSstkw==","repository":{"url":"git+https://github.com/mocks-server/main.git","type":"git","directory":"packages/admin-api-client"},"_npmVersion":"8.19.4","description":"Client of @mocks-server/plugin-admin-api","directories":{},"_nodeVersion":"16.20.0","dependencies":{"cross-fetch":"3.1.5","@mocks-server/core":"5.0.0-beta.3","@mocks-server/config":"2.0.0-beta.3","@mocks-server/admin-api-paths":"5.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/admin-api-client_8.0.0-beta.2_1686066544986_0.9164216008259669","host":"s3://npm-registry-packages"},"deprecated":"This package has been discontinued and is no longer maintained. It will not receive bug fixes or security updates."}},"time":{"created":"2019-12-25T17:23:23.384Z","modified":"2026-07-17T09:39:43.954Z","1.0.0":"2019-12-25T17:23:23.706Z","1.0.1":"2020-01-12T09:05:21.666Z","1.0.2":"2020-01-12T18:05:35.279Z","2.0.0":"2020-03-01T10:48:08.345Z","2.0.1":"2020-03-22T10:00:14.184Z","2.0.2":"2020-04-10T08:15:16.072Z","2.0.3":"2020-06-14T11:04:19.146Z","2.0.4":"2020-10-28T17:23:59.214Z","2.0.5":"2020-12-21T10:42:48.264Z","2.1.0":"2020-12-26T11:03:29.820Z","3.0.0-beta.1":"2021-02-15T17:55:21.486Z","3.0.0-beta.2":"2021-02-16T19:19:59.238Z","3.0.0":"2021-02-17T18:49:56.845Z","3.1.0":"2021-05-24T10:32:32.687Z","4.0.0":"2021-12-05T10:27:07.240Z","4.0.1":"2022-03-28T10:26:39.781Z","5.0.0":"2022-05-23T10:50:04.918Z","5.0.1":"2022-06-03T12:36:58.154Z","5.0.2":"2022-07-05T11:21:28.375Z","6.0.0":"2022-07-22T09:37:46.792Z","6.1.0":"2022-08-04T10:24:52.265Z","6.2.0":"2022-08-11T15:32:12.200Z","7.0.0":"2022-09-14T04:43:22.629Z","8.0.0-beta.1":"2023-05-23T17:00:40.911Z","7.0.1":"2023-05-29T06:37:36.886Z","8.0.0-beta.2":"2023-06-06T15:49:05.256Z"},"bugs":{"url":"https://github.com/mocks-server/main/issues"},"author":{"name":"Javier Brea"},"license":"MIT","homepage":"https://www.mocks-server.org","keywords":["mocks-server","plugin","administration","admin","api","rest","client"],"repository":{"url":"git+https://github.com/mocks-server/main.git","type":"git","directory":"packages/admin-api-client"},"description":"Client of @mocks-server/plugin-admin-api","maintainers":[{"name":"javierbrea","email":"javier.brea@gmail.com"}],"readme":"","readmeFilename":""}