{"versions":{"0.0.6":{"name":"axios-extra","version":"0.0.6","description":"Extend \"Axios\"; add concurrency limits, retry, etc.","main":"index.js","scripts":{"test":"ava --verbose test/axios*.js","test-cov":"nyc --reporter=lcov npm test"},"repository":{"type":"git","url":"git+https://github.com/cnwhy/axios-extra.git"},"keywords":["axios","retry","concurrent","queue"],"author":{"name":"cnwhy"},"license":"MIT","bugs":{"url":"https://github.com/cnwhy/axios-extra/issues"},"homepage":"https://github.com/cnwhy/axios-extra#readme","dependencies":{"axios":"^0.x","promise-queue-plus":"^1.2.2"},"devDependencies":{"ava":"^1.2.0","nyc":"^13.1.0"},"gitHead":"2d42d7033d2c75a2eb1fdcd6602a820ac6858b23","_id":"axios-extra@0.0.6","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"shasum":"a6bddd4c2bc865c6a86a846fd1e57006b5bf55e6","size":3902,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/axios-extra/-/axios-extra-0.0.6.tgz","integrity":"sha512-q/lYOZVFbf4pf/JLpWJqGP/qWxaKV0q/z9bD/tv9UVoVtkMx6bSPoXwR0g5F7MHlM0h4bIC322xud3GwJblZDw=="},"_npmUser":{"name":"anonymous","email":"w.why@163.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"w.why@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/axios-extra_0.0.6_1617012441207_0.4567632975650666"},"_hasShrinkwrap":false,"publish_time":1617012441325,"_cnpm_publish_time":1617012441325,"_cnpmcore_publish_time":"2021-12-17T03:33:30.708Z","contributors":[]},"0.0.5":{"name":"axios-extra","version":"0.0.5","description":"Extend \"Axios\"; add concurrency limits, retry, etc.","main":"index.js","scripts":{"test":"ava --verbose test/axios*.js","test-cov":"nyc --reporter=lcov npm test"},"repository":{"type":"git","url":"git+https://github.com/cnwhy/axios-extra.git"},"keywords":["axios","retry","concurrent","queue"],"author":{"name":"cnwhy"},"license":"MIT","bugs":{"url":"https://github.com/cnwhy/axios-extra/issues"},"homepage":"https://github.com/cnwhy/axios-extra#readme","dependencies":{"axios":"^0.18.0","promise-queue-plus":"^1.2.2"},"devDependencies":{"ava":"^1.2.0","nyc":"^13.1.0"},"gitHead":"53fbd622be425687582ab75cf10e5d8445d936f0","_id":"axios-extra@0.0.5","_npmVersion":"6.5.0","_nodeVersion":"8.12.0","_npmUser":{"name":"anonymous","email":"w.why@163.com"},"dist":{"shasum":"e95139de5d59e355e7618420c5ada855714738b4","size":3862,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/axios-extra/-/axios-extra-0.0.5.tgz","integrity":"sha512-cCH0ba/AuCKFurYfQtYf91Ex2cv5kpOq+vTrxzj2LrmiznJ71a0cYKUu9Pvll/gmRv0XSty8fcoYJ71dN8Mr9A=="},"maintainers":[{"name":"anonymous","email":"w.why@163.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/axios-extra_0.0.5_1548822340868_0.9586118009941524"},"_hasShrinkwrap":false,"publish_time":1548822340986,"_cnpm_publish_time":1548822340986,"_cnpmcore_publish_time":"2021-12-17T03:33:30.930Z","contributors":[]},"0.0.4":{"name":"axios-extra","version":"0.0.4","description":"Extend \"Axios\"; add concurrency limits, retry, etc.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/cnwhy/axios-extra.git"},"keywords":["axios","retry","concurrent","queue"],"author":{"name":"cnwhy"},"license":"MIT","bugs":{"url":"https://github.com/cnwhy/axios-extra/issues"},"homepage":"https://github.com/cnwhy/axios-extra#readme","dependencies":{"axios":"^0.18.0","promise-queue-plus":"^1.2.1"},"gitHead":"01caa36b036d0d782ff3157c017e42c749c35f54","_id":"axios-extra@0.0.4","_npmVersion":"6.5.0","_nodeVersion":"8.12.0","_npmUser":{"name":"anonymous","email":"w.why@163.com"},"dist":{"shasum":"bbfcd07b34383c8934767c6b019ea12893db88f1","size":3701,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/axios-extra/-/axios-extra-0.0.4.tgz","integrity":"sha512-dIw2C51uDE6hoBd4gk9PxLEYamXRuVvpJ52zKhcFiGXJUCBbyT4LHE6UtG++lEEZRjv3q+bsCcevM6BAE7b2UQ=="},"maintainers":[{"name":"anonymous","email":"w.why@163.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/axios-extra_0.0.4_1548232295563_0.13528000453481392"},"_hasShrinkwrap":false,"publish_time":1548232295664,"_cnpm_publish_time":1548232295664,"_cnpmcore_publish_time":"2021-12-17T03:33:31.135Z","contributors":[]},"0.0.3":{"name":"axios-extra","version":"0.0.3","description":"Extend \"Axios\"; add concurrency limits, retry, etc.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/cnwhy/axios-extra.git"},"keywords":["axios","retry","concurrent","queue"],"author":{"name":"cnwhy"},"license":"MIT","bugs":{"url":"https://github.com/cnwhy/axios-extra/issues"},"homepage":"https://github.com/cnwhy/axios-extra#readme","dependencies":{"axios":"^0.18.0","promise-queue-plus":"^1.2.1"},"gitHead":"4d8ba6b234d7ca76d60489ff56007f409007b5ee","_id":"axios-extra@0.0.3","_npmVersion":"6.5.0","_nodeVersion":"8.12.0","_npmUser":{"name":"anonymous","email":"w.why@163.com"},"dist":{"shasum":"4106aaf8ae1d3e7c1d7973fb723c4a2d9b384218","size":3499,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/axios-extra/-/axios-extra-0.0.3.tgz","integrity":"sha512-cf55Zsq4vfLDp0CcRjEdmCH0KYk24YbcqCr9rxc9DGlmWZ0liC0ZUhoUbngl33VlV9mqUR+nJkXD1D05etnvHg=="},"maintainers":[{"name":"anonymous","email":"w.why@163.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/axios-extra_0.0.3_1548223982654_0.9616598750011756"},"_hasShrinkwrap":false,"publish_time":1548223982807,"_cnpm_publish_time":1548223982807,"_cnpmcore_publish_time":"2021-12-17T03:33:31.625Z","contributors":[]},"0.0.2":{"name":"axios-extra","version":"0.0.2","description":"Extend \"Axios\"; add concurrency limits, retry, etc.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/cnwhy/axios-extra.git"},"keywords":["axios","retry","concurrent","queue"],"author":{"name":"cnwhy"},"license":"MIT","bugs":{"url":"https://github.com/cnwhy/axios-extra/issues"},"homepage":"https://github.com/cnwhy/axios-extra#readme","dependencies":{"axios":"^0.18.0","promise-queue-plus":"^1.2.1"},"gitHead":"1ee7fb01e29b22b24aa24966db99954df4bafdc1","_id":"axios-extra@0.0.2","_npmVersion":"6.5.0","_nodeVersion":"8.12.0","_npmUser":{"name":"anonymous","email":"w.why@163.com"},"dist":{"shasum":"0fe55fd0430c72763e8acf049becca223a70d5f4","size":3411,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/axios-extra/-/axios-extra-0.0.2.tgz","integrity":"sha512-bUqQst6SOu/D88PGcvhAl6RHldNmofQ1TqdAVc8FkyF5Eq7yit70hnO1aUbpA87oVjL2Yl8iW4jPSbbKfrJo1w=="},"maintainers":[{"name":"anonymous","email":"w.why@163.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/axios-extra_0.0.2_1547464857633_0.6621299377736285"},"_hasShrinkwrap":false,"publish_time":1547464857753,"_cnpm_publish_time":1547464857753,"_cnpmcore_publish_time":"2021-12-17T03:33:31.827Z","contributors":[]},"0.0.1":{"name":"axios-extra","version":"0.0.1","description":"Extend \"Axios\"; add concurrency limits, retry, etc.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/cnwhy/axios-extra.git"},"keywords":["axios","retry","concurrent","queue"],"author":{"name":"cnwhy"},"license":"MIT","bugs":{"url":"https://github.com/cnwhy/axios-extra/issues"},"homepage":"https://github.com/cnwhy/axios-extra#readme","dependencies":{"axios":"^0.18.0","promise-queue-plus":"^1.1.0"},"gitHead":"89f798da5d867eb4174b1d9a34edf6ecd055fdbc","_id":"axios-extra@0.0.1","_npmVersion":"6.5.0","_nodeVersion":"8.12.0","_npmUser":{"name":"anonymous","email":"w.why@163.com"},"dist":{"shasum":"160b0e9a9a44963db19c17ad9f80de21d57c8d56","size":3240,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/axios-extra/-/axios-extra-0.0.1.tgz","integrity":"sha512-oE3vv7gb6Mfz1lkDFbJKSSy7HZKBnOohIsDK+NWQFK3drQkAJblr7/Q86OSAgu5h5nU0+ATGhHY5r+6NW7excA=="},"maintainers":[{"name":"anonymous","email":"w.why@163.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/axios-extra_0.0.1_1547109523796_0.9995361449847118"},"_hasShrinkwrap":false,"publish_time":1547109523987,"_cnpm_publish_time":1547109523987,"_cnpmcore_publish_time":"2021-12-17T03:33:32.042Z","contributors":[]},"0.0.7":{"name":"axios-extra","version":"0.0.7","description":"Extend \"Axios\"; add concurrency limits, retry, etc.","main":"index.js","scripts":{"test":"ava --verbose test/axios*.js","test-cov":"nyc --reporter=lcov npm test"},"repository":{"type":"git","url":"git+https://github.com/cnwhy/axios-extra.git"},"keywords":["axios","retry","concurrent","queue"],"author":{"name":"cnwhy"},"license":"MIT","bugs":{"url":"https://github.com/cnwhy/axios-extra/issues"},"homepage":"https://github.com/cnwhy/axios-extra#readme","dependencies":{"promise-queue-plus":"^1.2.2"},"peerDependencies":{"axios":"*"},"devDependencies":{"axios":"*","ava":"^1.4.1","nyc":"^15.1.0"},"gitHead":"693d914022e1ce86065366ae798e3c53d59dae26","_id":"axios-extra@0.0.7","_nodeVersion":"14.21.3","_npmVersion":"6.14.18","dist":{"integrity":"sha512-Mx7ab+4BUscPqbcnepiW78lbCSQ4YY5jwesxhN5RsAlT07Guyef0uTpTTROtdKhspiy6lts3nUdWy7HKSd6tvQ==","shasum":"9cc67fd4287937b3dffdf3f725ffd10249b9ccba","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/axios-extra/-/axios-extra-0.0.7.tgz","fileCount":11,"unpackedSize":11028,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFk4CCH4qvS3UvI7SN5bBH6GSs66ONd+OGlDAn1RkoBGAiAepk904FlXejtlGUd0vPKRlx4XES1sTOWu2Rc+Wn/j/w=="}]},"_npmUser":{"name":"anonymous","email":"w.why@163.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"w.why@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/axios-extra_0.0.7_1692696444641_0.34802170225792883"},"_hasShrinkwrap":false,"contributors":[]},"0.0.8":{"name":"axios-extra","version":"0.0.8","description":"Extend \"Axios\"; add concurrency limits, retry, etc.","main":"index.js","scripts":{"test":"ava --verbose test/axios*.js","test-cov":"nyc --reporter=lcov npm test"},"repository":{"type":"git","url":"git+https://github.com/cnwhy/axios-extra.git"},"keywords":["axios","retry","concurrent","queue"],"author":{"name":"cnwhy"},"license":"MIT","bugs":{"url":"https://github.com/cnwhy/axios-extra/issues"},"homepage":"https://github.com/cnwhy/axios-extra#readme","dependencies":{"promise-queue-plus":"^1.2.2"},"peerDependencies":{"axios":"*"},"devDependencies":{"axios":"*","ava":"^1.4.1","nyc":"^15.1.0"},"gitHead":"50d3edb8052534fc70b112cf736c7175e0832da1","_id":"axios-extra@0.0.8","_nodeVersion":"12.22.12","_npmVersion":"6.14.16","dist":{"integrity":"sha512-dSPeuwTx2Pyvy2gAfOVRh1HHpvIVKbJ34yvq1nXBQUk7AAYwFROapFLN4wyWeQflJHR/VC3S13SgBB8IzAB3ZQ==","shasum":"267982c30d8bafec2717c8034f2b30266b45eefc","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/axios-extra/-/axios-extra-0.0.8.tgz","fileCount":11,"unpackedSize":12656,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA/60qay5aH8GqCzYkzEs51MtNCSJkQiP7uCpdZoQQLbAiBMF97/5Xgk45QwwM0N+m5MOde9LmGiKpSzgXDGHq50Og=="}]},"_npmUser":{"name":"anonymous","email":"w.why@163.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"w.why@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/axios-extra_0.0.8_1697018683270_0.2160842651367243"},"_hasShrinkwrap":false,"contributors":[]}},"dist-tags":{"latest":"0.0.8"},"name":"axios-extra","time":{"created":"2022-01-27T06:52:27.287Z","modified":"2023-10-11T10:06:18.110Z","0.0.6":"2021-03-29T10:07:21.325Z","0.0.5":"2019-01-30T04:25:40.986Z","0.0.4":"2019-01-23T08:31:35.664Z","0.0.3":"2019-01-23T06:13:02.807Z","0.0.2":"2019-01-14T11:20:57.753Z","0.0.1":"2019-01-10T08:38:43.987Z","0.0.7":"2023-08-22T09:27:24.831Z","0.0.8":"2023-10-11T10:04:43.445Z"},"readme":"# axios-extra\r\n\r\n[![Coverage Status](https://coveralls.io/repos/github/cnwhy/axios-extra/badge.svg?branch=master)](https://coveralls.io/github/cnwhy/axios-extra?branch=master) [![github test](https://github.com/cnwhy/axios-extra/workflows/test/badge.svg?branch=master)](https://github.com/cnwhy/axios-extra/actions/workflows/test.yml)\r\n\r\n通过 ES6 的`Proxy`对像, 让 [axios](https://github.com/axios/axios) 集成 [promise-queue-plus](https://github.com/cnwhy/promise-queue-plus), 使 `axios` 支持 **最大并发** 及 **出错重试** 的功能.\r\n\r\n> 未添加任何 API, 你完全可以像使用 `axios` 那样使用 `axios-extra`;\r\n> 由于使用了`Proxy`,请注意兼性.\r\n\r\n## API\r\n\r\n### axios.create(config)\r\n\r\n现在可以通过设置 `maxConcurrent` 和 `queueOptions` 属性, 设置最大并发及重试次数.\r\n\r\n```js\r\n// axios 并发为10, 自动重试为0\r\nconst axios = require('axios-extra'); //默认最大并发 10, 重试 0;\r\n\r\n// 创建一个 并发为1, 自动重试为3的 axios;\r\nlet axios1 = axios.create({\r\n\tmaxConcurrent:1, //并发为1\r\n\tqueueOptions: {\r\n\t\tretry:3, //请求失败时,最多会重试3次\r\n\t\tretryIsJump: true //是否立即重试, 否则将在请求队列尾部插入重试请求\r\n\t}\r\n});\r\n\r\nlet {stop, start, clear} = axios1.requestQueue; // 暴露内部的队列对像，可以使用 stop start clear 等 API;\r\n```\r\n\r\n> 更多 `queueOptions` 配制可参看[这里](https://github.com/cnwhy/promise-queue-plus#queuepushpromisefun-args-options)\r\n\r\n### axios(config) 及 get|post|request|delete|head|options|put|patch\r\n\r\n`config`参数可以为某一次的请求设置 `queueOptions`;\r\n\r\n```js\r\naxios.get('https://www.google.com',{\r\n\tqueueOptions : {\r\n\t\tretry: 5\r\n\t}\r\n});\r\n```\r\n\r\n### `create(axios,maxConcurrent,queueOptions)` 扩展现有 `axios`\r\n\r\n扩展项目中现有 `axios`,保证 `axios` 版本.\r\n\r\n```js\r\nconst aec = require('axios-extra/create');\r\nconst axios = aec(requeir('axios'), 5, { retry: 5 });\r\n```","users":{}}