{"_id":"@apicase/adapter-xhr","_rev":"12-a8afab39ff795ad615e92f8ef3baeaf8","name":"@apicase/adapter-xhr","dist-tags":{"latest":"0.7.1"},"versions":{"0.2.0":{"name":"@apicase/adapter-xhr","version":"0.2.0","description":"XHR adapter for apicase-core","main":"index.js","repository":{"type":"git","url":"https://github.com/apicase/adapter-xhr"},"author":{"name":"Anton Kosykh"},"license":"MIT","scripts":{"lint":"eslint --fix index.js"},"dependencies":{"path-to-regexp":"^2.1.0"},"devDependencies":{"eslint":"^4.11.0","eslint-config-standard":"^10.2.1","eslint-plugin-import":"^2.8.0","eslint-plugin-node":"^5.2.1","eslint-plugin-promise":"^3.6.0","eslint-plugin-standard":"^3.0.1"},"licenseText":"MIT License\n\nCopyright (c) 2017 Apicase\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@apicase/adapter-xhr@0.2.0","dist":{"shasum":"ae58f8f777b8cc05560474d44db086ec07258357","tarball":"https://registry.npmjs.org/@apicase/adapter-xhr/-/adapter-xhr-0.2.0.tgz","fileCount":6,"unpackedSize":6071,"integrity":"sha512-D/WqPxMJskow7xNOaCXbAIryIOTSRHOrMUkLhDyZmjQRJLlrRXE3yzV485ldB22qvv8BHgmi5hRVyNCG7+bE5g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAJulhWiKXjF9V+TMQylrB/Z6vTzsfHRgKIIYRqoAqRFAiBYEgEWfXO4Ywn/6C5tXr9OCVJ5xfuE/CMmGOKRTDlhPA=="}]},"maintainers":[{"name":"kelin2025","email":"vasya-petruha@yandex.ru"}],"_npmUser":{"name":"kelin2025","email":"vasya-petruha@yandex.ru"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adapter-xhr_0.2.0_1519080143738_0.5822414776198144"},"_hasShrinkwrap":false},"0.2.1":{"name":"@apicase/adapter-xhr","version":"0.2.1","description":"XHR adapter for apicase-core","main":"index.js","repository":{"type":"git","url":"https://github.com/apicase/adapter-xhr"},"author":{"name":"Anton Kosykh"},"license":"MIT","scripts":{"lint":"eslint --fix index.js"},"dependencies":{"path-to-regexp":"^2.1.0"},"devDependencies":{"eslint":"^4.11.0","eslint-config-standard":"^10.2.1","eslint-plugin-import":"^2.8.0","eslint-plugin-node":"^5.2.1","eslint-plugin-promise":"^3.6.0","eslint-plugin-standard":"^3.0.1"},"licenseText":"MIT License\n\nCopyright (c) 2017 Apicase\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@apicase/adapter-xhr@0.2.1","dist":{"shasum":"28fcdf737f5089cd39319b192d47cc3045f0b2ba","tarball":"https://registry.npmjs.org/@apicase/adapter-xhr/-/adapter-xhr-0.2.1.tgz","fileCount":6,"unpackedSize":6080,"integrity":"sha512-o56E4x98HbJHJ6Rt6Rj99cv+scvTIQqUgVwZXC1idf10nrNd0UiTOsJTaglItIwnlX5huQVHcti3kJfBmBKlxg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA1QBUXCtdYRrcZWJh8/gJ8dfwPa7WiThPltel4/NasrAiEAmxmyhvP/EXKxTNZNPdarJ6e1dspGBiSIJltAfhQwYa4="}]},"maintainers":[{"name":"kelin2025","email":"vasya-petruha@yandex.ru"}],"_npmUser":{"name":"kelin2025","email":"vasya-petruha@yandex.ru"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adapter-xhr_0.2.1_1519473284669_0.10388568639953766"},"_hasShrinkwrap":false},"0.3.0":{"name":"@apicase/adapter-xhr","version":"0.3.0","description":"XHR adapter for apicase-core","main":"index.cjs.js","module":"index.js","repository":{"type":"git","url":"https://github.com/apicase/adapter-xhr"},"author":{"name":"Anton Kosykh"},"license":"MIT","scripts":{"lint":"eslint --fix index.js","build":"rollup index.js --o index.cjs.js -f cjs","prepublish":"npm run lint && npm run build"},"dependencies":{"path-to-regexp":"^2.1.0"},"devDependencies":{"eslint":"^4.11.0","eslint-config-standard":"^10.2.1","eslint-plugin-import":"^2.8.0","eslint-plugin-node":"^5.2.1","eslint-plugin-promise":"^3.6.0","eslint-plugin-standard":"^3.0.1","rollup":"^0.56.5"},"licenseText":"MIT License\n\nCopyright (c) 2017 Apicase\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@apicase/adapter-xhr@0.3.0","dist":{"shasum":"a1fcbb32efc04710f359a9d2bdb2061d5be65145","tarball":"https://registry.npmjs.org/@apicase/adapter-xhr/-/adapter-xhr-0.3.0.tgz","fileCount":7,"unpackedSize":8203,"integrity":"sha512-2MYaKfkN5rARrrFU6bLQo1Z4fUsOjFbJWkiIbn50anHkY8ptagm9m2VbZWhNmKTqijPOnz2yWjWYJCsM25X0Mg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEdq/j0IQDis5bjZAII5QLSB6MAQXVltGiBJGprlcAgqAiB+x+UKx3a44O5d3qWrLOUuCgH6f+nZklRHzz9DpTr/Og=="}]},"maintainers":[{"name":"kelin2025","email":"vasya-petruha@yandex.ru"}],"_npmUser":{"name":"kelin2025","email":"vasya-petruha@yandex.ru"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adapter-xhr_0.3.0_1520808898121_0.8738674612923727"},"_hasShrinkwrap":false},"0.4.0":{"name":"@apicase/adapter-xhr","version":"0.4.0","description":"XHR adapter for apicase-core","main":"index.cjs.js","module":"index.js","repository":{"type":"git","url":"https://github.com/apicase/adapter-xhr"},"author":{"name":"Anton Kosykh"},"license":"MIT","scripts":{"lint":"eslint --fix index.js","build":"rollup index.js --o index.cjs.js -f cjs","prepublish":"npm run lint && npm run build"},"dependencies":{"path-to-regexp":"^2.1.0"},"devDependencies":{"eslint":"^4.11.0","eslint-config-standard":"^10.2.1","eslint-plugin-import":"^2.8.0","eslint-plugin-node":"^5.2.1","eslint-plugin-promise":"^3.6.0","eslint-plugin-standard":"^3.0.1","rollup":"^0.56.5"},"licenseText":"MIT License\n\nCopyright (c) 2017 Apicase\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@apicase/adapter-xhr@0.4.0","dist":{"shasum":"f1f476e2aa089b05381b45be998cc68fd48ab68b","tarball":"https://registry.npmjs.org/@apicase/adapter-xhr/-/adapter-xhr-0.4.0.tgz","fileCount":7,"unpackedSize":8259,"integrity":"sha512-qFDmPGWNdftNewFPscMh7WM71cNtMdcDtKwG3wNOBeNDm9TCvPrb3aEDri/Id2utJmdojHH1TVOSjlYyP90vPQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICN/GNwVXVMsT2SWHhn36N59I+CrbuQxjrs93d2eYnVdAiEAyx8EXUQwJUnUnUwfuhiKh3PFO4gePnsWO+W4rDS2xI8="}]},"maintainers":[{"name":"kelin2025","email":"vasya-petruha@yandex.ru"}],"_npmUser":{"name":"kelin2025","email":"vasya-petruha@yandex.ru"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adapter-xhr_0.4.0_1522071195744_0.2509814731403641"},"_hasShrinkwrap":false},"0.5.0":{"name":"@apicase/adapter-xhr","version":"0.5.0","description":"XHR adapter for apicase-core","main":"index.cjs.js","module":"index.js","repository":{"type":"git","url":"https://github.com/apicase/adapter-xhr"},"author":{"name":"Anton Kosykh"},"license":"MIT","scripts":{"lint":"eslint --fix index.js","build":"rollup index.js --o index.cjs.js -f cjs","prepublish":"npm run lint && npm run build"},"dependencies":{"path-to-regexp":"^2.1.0"},"devDependencies":{"eslint":"^4.11.0","eslint-config-standard":"^10.2.1","eslint-plugin-import":"^2.8.0","eslint-plugin-node":"^5.2.1","eslint-plugin-promise":"^3.6.0","eslint-plugin-standard":"^3.0.1","rollup":"^0.56.5"},"licenseText":"MIT License\n\nCopyright (c) 2017 Apicase\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@apicase/adapter-xhr@0.5.0","dist":{"shasum":"f6ca88bdf537a5e663d9e1773a7afa49fae3de07","tarball":"https://registry.npmjs.org/@apicase/adapter-xhr/-/adapter-xhr-0.5.0.tgz","fileCount":7,"unpackedSize":8584,"integrity":"sha512-oa634PNs/nuetOe5olLjEU5RParMP7doMzBz/rH7svPoZj2pB5R/+mPHyznmvgVSdkHnj2r/6N6yCWf2TOWyuA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBCAUZjz/BwCf7ab7AzvPQB/g1SIJSc14EKnAILv7qDWAiEAnvIoxfsVr5z/1wTVfEvhblBs9Fj1ixlojGClCZA8dhk="}]},"maintainers":[{"name":"kelin2025","email":"vasya-petruha@yandex.ru"}],"_npmUser":{"name":"kelin2025","email":"vasya-petruha@yandex.ru"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adapter-xhr_0.5.0_1522444224810_0.9000212105387335"},"_hasShrinkwrap":false},"0.6.0":{"name":"@apicase/adapter-xhr","version":"0.6.0","description":"XHR adapter for apicase-core","main":"index.cjs.js","module":"index.js","repository":{"type":"git","url":"https://github.com/apicase/adapter-xhr"},"author":{"name":"Anton Kosykh"},"license":"MIT","scripts":{"lint":"eslint --fix index.js","build":"rollup index.js --o index.cjs.js -f cjs","prepublish":"npm run lint && npm run build"},"dependencies":{"path-to-regexp":"^2.1.0"},"devDependencies":{"eslint":"^4.11.0","eslint-config-standard":"^10.2.1","eslint-plugin-import":"^2.8.0","eslint-plugin-node":"^5.2.1","eslint-plugin-promise":"^3.6.0","eslint-plugin-standard":"^3.0.1","rollup":"^0.56.5"},"licenseText":"MIT License\n\nCopyright (c) 2017 Apicase\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@apicase/adapter-xhr@0.6.0","dist":{"shasum":"794d87702b3694bbadec99808e96e904680ca9a5","tarball":"https://registry.npmjs.org/@apicase/adapter-xhr/-/adapter-xhr-0.6.0.tgz","fileCount":7,"unpackedSize":9320,"integrity":"sha512-q1Zw4aWl9DEV9KK1MHSDpHY9fUVeuGgEi7WeC8Iu7F+p4tSlbDPKysw45MTlmr/2J9SPeC3/boXU4Fdv2ge+hQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMRQaoozyVS2Eqrsrr+ILjTNhH8AuYTO9V54sNsBCOTgIgDLh7aqairJ6M8ydeIp7E7Dt/kT1u6w/lDXByLM1QOzw="}]},"maintainers":[{"name":"kelin2025","email":"vasya-petruha@yandex.ru"}],"_npmUser":{"name":"kelin2025","email":"vasya-petruha@yandex.ru"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adapter-xhr_0.6.0_1523023374120_0.8623631192166994"},"_hasShrinkwrap":false},"0.6.1":{"name":"@apicase/adapter-xhr","version":"0.6.1","description":"XHR adapter for apicase-core","main":"index.cjs.js","module":"index.js","repository":{"type":"git","url":"https://github.com/apicase/adapter-xhr"},"author":{"name":"Anton Kosykh"},"license":"MIT","config":{"ghooks":{"pre-commit":"npm run lint"}},"scripts":{"lint":"eslint --fix index.js","build":"rollup index.js --o index.cjs.js -f cjs","prepublish":"npm run lint && npm run build"},"dependencies":{"ghooks":"^2.0.2","path-to-regexp":"^2.1.0"},"devDependencies":{"eslint":"^4.11.0","eslint-config-standard":"^10.2.1","eslint-plugin-import":"^2.8.0","eslint-plugin-node":"^5.2.1","eslint-plugin-promise":"^3.6.0","eslint-plugin-standard":"^3.0.1","rollup":"^0.56.5"},"licenseText":"MIT License\n\nCopyright (c) 2017 Apicase\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@apicase/adapter-xhr@0.6.1","dist":{"shasum":"93b2d60923e899a24198418ec9d23a3f4d67d40e","tarball":"https://registry.npmjs.org/@apicase/adapter-xhr/-/adapter-xhr-0.6.1.tgz","fileCount":7,"unpackedSize":9573,"integrity":"sha512-RBGahv98Ul1WtDv1hb2by4gwbeLanJpXVER4rTI5MpqrIRyVsfylzWYofFG21Y3abnnlFF5Ro3JEoS7Y4fEWxw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHHjhBImQp/rF3yQXoAeho2rU3i0jcjApMLYySreb6mVAiAL4A+8PHb3Gbj+9rZRXHTCsAJEPkL01O+LhS+Sgnhrow=="}]},"maintainers":[{"name":"kelin2025","email":"vasya-petruha@yandex.ru"}],"_npmUser":{"name":"kelin2025","email":"vasya-petruha@yandex.ru"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adapter-xhr_0.6.1_1532000597916_0.9465351998634859"},"_hasShrinkwrap":false},"0.7.0":{"name":"@apicase/adapter-xhr","version":"0.7.0","description":"XHR adapter for apicase-core","main":"index.cjs.js","module":"index.js","repository":{"type":"git","url":"https://github.com/apicase/adapter-xhr"},"author":{"name":"Anton Kosykh"},"license":"MIT","config":{"ghooks":{"pre-commit":"npm run lint"}},"scripts":{"lint":"eslint --fix index.js","build":"rollup index.js --o index.cjs.js -f cjs","prepublish":"npm run lint && npm run build"},"dependencies":{"ghooks":"^2.0.2","path-to-regexp":"^2.1.0"},"devDependencies":{"eslint":"^4.11.0","eslint-config-standard":"^10.2.1","eslint-plugin-import":"^2.8.0","eslint-plugin-node":"^5.2.1","eslint-plugin-promise":"^3.6.0","eslint-plugin-standard":"^3.0.1","rollup":"^0.56.5"},"licenseText":"MIT License\n\nCopyright (c) 2017 Apicase\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@apicase/adapter-xhr@0.7.0","dist":{"shasum":"b3217fc6497d012e63275e7ddcd435a89dee090b","tarball":"https://registry.npmjs.org/@apicase/adapter-xhr/-/adapter-xhr-0.7.0.tgz","integrity":"sha512-eZyZdCeRQYFQbYQ91KEY5qPCAkliFPu0RdSXHM/BOE4/EL3vn0IVwSAPrprmKPn24WoYUOXcb+M6k0gNPDS9Ww==","fileCount":7,"unpackedSize":9350,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbbF7eCRA9TVsSAnZWagAApM4P/RdVNlzwBZrj3X3IA+hJ\n9lHFZkwffAjHCmjGUMKTlr/STlhxx5hvW8P7aJWIME2u8/LP0ZhmOQxWcu4Y\nxo9DbeACtmsuS1RcP6SO8KF5+mXFJuSvierzoLZyai8zgyjGaOjPR9oukZVJ\nxKAL8XCahsLiRqQYD+zjJv1Gqd1X8QQo+AkHy1j1YSpU9u7TrEWbCxxt4Awj\noRq9qziU8aHKQFntGpQdazSVgXOsDCjkmo/ANNlgWHnVRXStH7eADt1MHaW3\ndTmu1X85Yw45KbYnuC1ZcH53bzaH91bY014qMzFD7eHPLJ/7Ylc4m+r9d7hW\nHdZLOCqWa4oiP0xpo/xS+qBcOvbZ1W4E6nBlsDX/u/hHlhHACsOVAlQK149k\nl7UjupJQk+oqkLTonquKWWrQoqLi3cfNrQR8auySNkVbnxhp/6D0PBqHruGV\n9Ut0iNvXuq7SPL7uRJN9nkhAmR7E9ENv//lfUTrHBXmZdY+Gi7ZVdoy/lJZw\nE0dRhDhMxEIa0rhbSCE7x1ip2xAyFzkbpELXSgsRnHiny6pQSBxunYa8VThX\nUAKlDYuVoMQNvp4J4EocZx/jnqkNR9i5WoZ5Y8zA6mu5lLGzBbrqpVUzgVcQ\ny+IAvrqAH1OVlu39RDlE5uuDyn+bA9lNMLEQZdkIIj8wJiawDJFr2XguSA/w\n4uFY\r\n=L3KA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGLAoCPVcyZWMb1MfGrSQ8jN9myi1u2oBPyVYEe2souRAiBo8e9zkCebX38lrOwQI+wjvCmCuOtbyMB2fehxn6QIHQ=="}]},"maintainers":[{"name":"kelin2025","email":"vasya-petruha@yandex.ru"}],"_npmUser":{"name":"kelin2025","email":"vasya-petruha@yandex.ru"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adapter-xhr_0.7.0_1533828830426_0.22732395878818035"},"_hasShrinkwrap":false},"0.7.1":{"name":"@apicase/adapter-xhr","version":"0.7.1","description":"XHR adapter for apicase-core","main":"index.cjs.js","module":"index.js","repository":{"type":"git","url":"git+https://github.com/apicase/adapter-xhr.git"},"author":{"name":"Anton Kosykh"},"license":"MIT","config":{"ghooks":{"pre-commit":"npm run lint"}},"scripts":{"lint":"eslint --fix index.js","build":"rollup index.js --o index.cjs.js -f cjs","prepublish":"npm run lint && npm run build"},"dependencies":{"path-to-regexp":"^2.1.0"},"devDependencies":{"eslint":"^4.11.0","eslint-config-standard":"^10.2.1","eslint-plugin-import":"^2.8.0","eslint-plugin-node":"^5.2.1","eslint-plugin-promise":"^3.6.0","eslint-plugin-standard":"^3.0.1","ghooks":"^2.0.2","rollup":"^0.56.5"},"gitHead":"e35746423779c571e7109a5b8c59a9e157036224","bugs":{"url":"https://github.com/apicase/adapter-xhr/issues"},"homepage":"https://github.com/apicase/adapter-xhr#readme","_id":"@apicase/adapter-xhr@0.7.1","_nodeVersion":"10.15.3","_npmVersion":"6.8.0","dist":{"integrity":"sha512-oxgoO5X+KPw5saRAMbZf1xznavZ1hGaj1h1ofk4VBlURle89F8fKm7Q4gLWViSpCunm/kQ1/sPb3ahzEyTqXqQ==","shasum":"583648976cbb66ed8460e53ecd807277b1c9e53f","tarball":"https://registry.npmjs.org/@apicase/adapter-xhr/-/adapter-xhr-0.7.1.tgz","fileCount":6,"unpackedSize":9713,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc235yCRA9TVsSAnZWagAAJNkP/1U6aEEjojJ0tbIzV2/O\nr46NGWVFcH0TSpTAZuVI0geqclyZUMXoIRs4Apr7qljYiOpkkb0rlI3pGg+q\nHo2hykUUeU5aP9cbIx10gbmhgmgjIigr7K7noHmCF/eH59hr6pL9TUz2+4/j\nuZLprPOQOmrgPmp0dp0uocy5DDRpsxi1MJbty2RNfyJ2wnM5sDmVN9K5wGyY\n/7twSThVXVM+Q6nkEiF0fAIEJ2zQhBvTYJ29bwNzQwdRa2cK6JcJ+h6MdG6N\nmMSzZUEAU5cfx6znTWPqqJe3u9YQpTxXknHx8CZmlwEkmSbNxFziu9ayZc4b\n6ABTZw3EQkandXY1/BxuxjVwOPau4P4BMUju8lt908HEkyVi6w8+8CzlpxV4\n6BAFQIotrmkedQeL0o2a2Ze3HEy92JeB0T6d3j9/IGAtdBFJCRzhmaHVxq7C\nWol4ljjiEo8ghf6QYW9XmcbNnf6fY/C58s89qAOWXEp3Zr5r+aZXIbrWniCp\nMiMHlcVzIfa7X5tlEbkiUwkYjChe31E3oCoX8Th6dAxv0JIrfPOnMBqf7P5P\nyulFOKxZYlnZsEKkWvx4lauKqSBg09+5YERONTfKU1WycdIodSD6yMka0D3p\n1cGeHJxe3dUocOBMyXlcN4HzYH+hYItJNmXNGVtqyTTx778Z2uOo34cCXF9w\n1mEx\r\n=UwlI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQdpFhd9AWPdgtyqMrKy6xas6PgPRv1PBNqIQpfimY9AIgC+EvYZ0hnf2wQQp3Gm+HL8d2JqQMlntBOjkgc8R82h8="}]},"maintainers":[{"name":"kelin2025","email":"vasya-petruha@yandex.ru"}],"_npmUser":{"name":"kelin2025","email":"vasya-petruha@yandex.ru"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adapter-xhr_0.7.1_1557888625874_0.945564220126083"},"_hasShrinkwrap":false}},"time":{"created":"2018-02-19T22:42:23.654Z","0.2.0":"2018-02-19T22:42:23.907Z","modified":"2022-06-12T14:43:39.131Z","0.2.1":"2018-02-24T11:54:44.724Z","0.3.0":"2018-03-11T22:54:58.186Z","0.4.0":"2018-03-26T13:33:15.813Z","0.5.0":"2018-03-30T21:10:24.990Z","0.6.0":"2018-04-06T14:02:54.199Z","0.6.1":"2018-07-19T11:43:17.986Z","0.7.0":"2018-08-09T15:33:50.528Z","0.7.1":"2019-05-15T02:50:25.995Z"},"maintainers":[{"name":"kelin2025","email":"vasya-petruha@yandex.ru"}],"description":"XHR adapter for apicase-core","repository":{"type":"git","url":"git+https://github.com/apicase/adapter-xhr.git"},"author":{"name":"Anton Kosykh"},"license":"MIT","readme":"# @apicase/adapter-xhr\r\n\r\nXHR adapter for [@apicase/core](https://github.com/apicase/core)\r\n\r\n## Installation\r\n\r\n1. Install via NPM\r\n\r\n```\r\nnpm install @apicase/adapter-xhr\r\n```\r\n\r\n2. Import it\r\n\r\n```javascript\r\nimport { apicase } from '@apicase/core'\r\nimport xhr from '@apicase/adapter-xhr'\r\n\r\nconst xhrAPI = apicase(xhr)\r\n```\r\n\r\nWe use [**node-fetch**](https://www.npmjs.com/package/node-fetch) as polyfill for Node.js\r\n\r\n## Basic usage\r\n```javascript\r\nconst req = await xhrAPI({\r\n  url: '/api/posts',\r\n  method: 'GET',\r\n  headers: { token: 'my_secret_token' },\r\n  query: { userId: 1 }\r\n})\r\n\r\nif (req.success) { \r\n  console.log(req.result)\r\n} else {\r\n  console.error(req.result)\r\n}\r\n```\r\n\r\nIt will call:\r\n```javascript\r\nvar xhr = new XMLHttpRequest()\r\nxhr.open('GET', '/api/posts?userId=1', true)\r\nxhr.onload = function onload (e) {\r\n  // See validators\r\n  if (isSuccess(e.target, e)) {\r\n    console.log(e)\r\n  } else {\r\n    console.error(e)\r\n  }\r\n}\r\nxhr.setRequestHeader('token', 'my_secret_token')\r\nxhr.send(null)\r\n```\r\n\r\n## Advanced\r\n\r\n### Url params\r\nFetch adapter also has [path-to-regexp](https://github.com/pillarjs/path-to-regexp) to pass urls params smarter. Params are stored in **params** property\r\n```javascript\r\nxhrAPI({\r\n  url: '/api/posts/:id',\r\n  params: { id: 1 }\r\n})\r\n// => GET /api/posts/1\r\n```\r\n\r\n### Dynamic headers\r\nIf you want to create dynamic headers object so you can pass **headers** property as function that returns headers object\r\n```javascript\r\nxhrAPI({\r\n  url: '/api/posts',\r\n  method: 'POST',\r\n  headers: () => ({\r\n    token: localStorage.getItem('token')\r\n  })\r\n})\r\n```\r\nIt will be called every time you make a request so if token will be removed, header won't be sent too.\r\n\r\n### Validator function\r\nI've added possibility to customizate resolve/reject apicase requests with **validator** callback.  \r\nIt accepts xhr target and onload event\r\n```javascript\r\nxhrAPI({\r\n  url: '/api/posts',\r\n  validateStatus: (status) => \r\n    status >= 200 && status <= 299\r\n})\r\n```\r\nDefault validator function is here:\r\n```javascript\r\nfunction defaultValidator (status) {\r\n  return status >= 200 && status < 300\r\n}\r\n```\r\n\r\n## Author\r\n[Anton Kosykh](https://github.com/Kelin2025)\r\n\r\n## License\r\nMIT\r\n","readmeFilename":"README.md","homepage":"https://github.com/apicase/adapter-xhr#readme","bugs":{"url":"https://github.com/apicase/adapter-xhr/issues"}}