UNPKG

super-axios

Version:

一款基于axios二次封装的断线重连,防抖提交,节流请求,自动取消等功能,是一个很强大的库~

1 lines 20.9 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("super-axios",[],t):"object"==typeof exports?exports["super-axios"]=t():e["super-axios"]=t()}(self,()=>{return n={669:(e,t,r)=>{e.exports=r(609)},448:(e,t,r)=>{"use strict";var f=r(867),l=r(26),p=r(372),d=r(327),h=r(97),m=r(109),g=r(985),x=r(61);e.exports=function(c){return new Promise(function(t,r){var e,n=c.data,o=c.headers,s=c.responseType,i=(f.isFormData(n)&&delete o["Content-Type"],new XMLHttpRequest),a=(c.auth&&(a=c.auth.username||"",e=c.auth.password?unescape(encodeURIComponent(c.auth.password)):"",o.Authorization="Basic "+btoa(a+":"+e)),h(c.baseURL,c.url));function u(){var e;i&&(e="getAllResponseHeaders"in i?m(i.getAllResponseHeaders()):null,e={data:s&&"text"!==s&&"json"!==s?i.response:i.responseText,status:i.status,statusText:i.statusText,headers:e,config:c,request:i},l(t,r,e),i=null)}i.open(c.method.toUpperCase(),d(a,c.params,c.paramsSerializer),!0),i.timeout=c.timeout,"onloadend"in i?i.onloadend=u:i.onreadystatechange=function(){i&&4===i.readyState&&(0!==i.status||i.responseURL&&0===i.responseURL.indexOf("file:"))&&setTimeout(u)},i.onabort=function(){i&&(r(x("Request aborted",c,"ECONNABORTED",i)),i=null)},i.onerror=function(){r(x("Network Error",c,null,i)),i=null},i.ontimeout=function(){var e="timeout of "+c.timeout+"ms exceeded";c.timeoutErrorMessage&&(e=c.timeoutErrorMessage),r(x(e,c,c.transitional&&c.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",i)),i=null},f.isStandardBrowserEnv()&&(e=(c.withCredentials||g(a))&&c.xsrfCookieName?p.read(c.xsrfCookieName):void 0)&&(o[c.xsrfHeaderName]=e),"setRequestHeader"in i&&f.forEach(o,function(e,t){void 0===n&&"content-type"===t.toLowerCase()?delete o[t]:i.setRequestHeader(t,e)}),f.isUndefined(c.withCredentials)||(i.withCredentials=!!c.withCredentials),s&&"json"!==s&&(i.responseType=c.responseType),"function"==typeof c.onDownloadProgress&&i.addEventListener("progress",c.onDownloadProgress),"function"==typeof c.onUploadProgress&&i.upload&&i.upload.addEventListener("progress",c.onUploadProgress),c.cancelToken&&c.cancelToken.promise.then(function(e){i&&(i.abort(),r(e),i=null)}),n=n||null,i.send(n)})}},609:(e,t,r)=>{"use strict";var n=r(867),o=r(849),s=r(321),i=r(185);function a(e){var e=new s(e),t=o(s.prototype.request,e);return n.extend(t,s.prototype,e),n.extend(t,e),t}var u=a(r(655));u.Axios=s,u.create=function(e){return a(i(u.defaults,e))},u.Cancel=r(263),u.CancelToken=r(972),u.isCancel=r(502),u.all=function(e){return Promise.all(e)},u.spread=r(713),u.isAxiosError=r(268),e.exports=u,e.exports.default=u},263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},972:(e,t,r)=>{"use strict";var n=r(263);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});var t,r=this;e(function(e){r.reason||(r.reason=new n(e),t(r.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o(function(e){t=e}),cancel:t}},e.exports=o},502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,r)=>{"use strict";var n=r(867),o=r(327),s=r(782),f=r(572),l=r(185),p=r(875),d=p.validators;function i(e){this.defaults=e,this.interceptors={request:new s,response:new s}}i.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=l(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e,r=t.transitional,n=(void 0!==r&&p.assertOptions(r,{silentJSONParsing:d.transitional(d.boolean,"1.0.0"),forcedJSONParsing:d.transitional(d.boolean,"1.0.0"),clarifyTimeoutError:d.transitional(d.boolean,"1.0.0")},!1),[]),o=!0,s=(this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}),[]);if(this.interceptors.response.forEach(function(e){s.push(e.fulfilled,e.rejected)}),o){for(var i=t;n.length;){var a=n.shift(),u=n.shift();try{i=a(i)}catch(e){u(e);break}}try{e=f(i)}catch(e){return Promise.reject(e)}for(;s.length;)e=e.then(s.shift(),s.shift())}else{var c=[f,void 0];for(Array.prototype.unshift.apply(c,n),c=c.concat(s),e=Promise.resolve(t);c.length;)e=e.then(c.shift(),c.shift())}return e},i.prototype.getUri=function(e){return e=l(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],function(r){i.prototype[r]=function(e,t){return this.request(l(t||{},{method:r,url:e,data:(t||{}).data}))}}),n.forEach(["post","put","patch"],function(n){i.prototype[n]=function(e,t,r){return this.request(l(r||{},{method:n,url:e,data:t}))}}),e.exports=i},782:(e,t,r)=>{"use strict";var n=r(867);function o(){this.handlers=[]}o.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(t){n.forEach(this.handlers,function(e){null!==e&&t(e)})},e.exports=o},97:(e,t,r)=>{"use strict";var n=r(793),o=r(303);e.exports=function(e,t){return e&&!n(t)?o(e,t):t}},61:(e,t,r)=>{"use strict";var s=r(481);e.exports=function(e,t,r,n,o){e=new Error(e);return s(e,t,r,n,o)}},572:(e,t,r)=>{"use strict";var n=r(867),o=r(527),s=r(502),i=r(655);function a(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(t){return a(t),t.headers=t.headers||{},t.data=o.call(t,t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||i.adapter)(t).then(function(e){return a(t),e.data=o.call(t,e.data,e.headers,t.transformResponse),e},function(e){return s(e)||(a(t),e&&e.response&&(e.response.data=o.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},481:e=>{"use strict";e.exports=function(e,t,r,n,o){return e.config=t,r&&(e.code=r),e.request=n,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},185:(e,t,r)=>{"use strict";var f=r(867);e.exports=function(t,r){r=r||{};var n={},e=["url","method","data"],o=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],i=["validateStatus"];function a(e,t){return f.isPlainObject(e)&&f.isPlainObject(t)?f.merge(e,t):f.isPlainObject(t)?f.merge({},t):f.isArray(t)?t.slice():t}function u(e){f.isUndefined(r[e])?f.isUndefined(t[e])||(n[e]=a(void 0,t[e])):n[e]=a(t[e],r[e])}f.forEach(e,function(e){f.isUndefined(r[e])||(n[e]=a(void 0,r[e]))}),f.forEach(o,u),f.forEach(s,function(e){f.isUndefined(r[e])?f.isUndefined(t[e])||(n[e]=a(void 0,t[e])):n[e]=a(void 0,r[e])}),f.forEach(i,function(e){e in r?n[e]=a(t[e],r[e]):e in t&&(n[e]=a(void 0,t[e]))});var c=e.concat(o).concat(s).concat(i),e=Object.keys(t).concat(Object.keys(r)).filter(function(e){return-1===c.indexOf(e)});return f.forEach(e,u),n}},26:(e,t,r)=>{"use strict";var o=r(61);e.exports=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(o("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},527:(e,t,r)=>{"use strict";var o=r(867),s=r(655);e.exports=function(t,r,e){var n=this||s;return o.forEach(e,function(e){t=e.call(n,t,r)}),t}},655:(e,t,r)=>{"use strict";var o=r(867),s=r(16),n=r(481),i={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:u="undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)?r(448):u,transformRequest:[function(e,t){if(s(t,"Accept"),s(t,"Content-Type"),!(o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e))){if(o.isArrayBufferView(e))return e.buffer;if(o.isURLSearchParams(e))return a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();if(o.isObject(e)||t&&"application/json"===t["Content-Type"]){a(t,"application/json");var t=e,r=void 0,n=void 0;if(o.isString(t))try{return(r||JSON.parse)(t),o.trim(t)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(t)}}return e}],transformResponse:[function(e){var t=this.transitional,r=t&&t.silentJSONParsing,t=t&&t.forcedJSONParsing,r=!r&&"json"===this.responseType;if(r||t&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw n(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return 200<=e&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],function(e){c.headers[e]={}}),o.forEach(["post","put","patch"],function(e){c.headers[e]=o.merge(i)}),e.exports=c},849:e=>{"use strict";e.exports=function(r,n){return function(){for(var e=new Array(arguments.length),t=0;t<e.length;t++)e[t]=arguments[t];return r.apply(n,e)}}},327:(e,t,r)=>{"use strict";var o=r(867);function s(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){var n;return t&&(r=r?r(t):o.isURLSearchParams(t)?t.toString():(n=[],o.forEach(t,function(e,t){null!=e&&(o.isArray(e)?t+="[]":e=[e],o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),n.push(s(t)+"="+s(e))}))}),n.join("&")))&&(-1!==(t=e.indexOf("#"))&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r),e}},303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},372:(e,t,r)=>{"use strict";var a=r(867);e.exports=a.isStandardBrowserEnv()?{write:function(e,t,r,n,o,s){var i=[];i.push(e+"="+encodeURIComponent(t)),a.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),a.isString(n)&&i.push("path="+n),a.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){e=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},268:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},985:(e,t,r)=>{"use strict";var n,o,s,i=r(867);function a(e){return o&&(s.setAttribute("href",e),e=s.href),s.setAttribute("href",e),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:"/"===s.pathname.charAt(0)?s.pathname:"/"+s.pathname}}e.exports=i.isStandardBrowserEnv()?(o=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a"),n=a(window.location.href),function(e){e=i.isString(e)?a(e):e;return e.protocol===n.protocol&&e.host===n.host}):function(){return!0}},16:(e,t,r)=>{"use strict";var o=r(867);e.exports=function(r,n){o.forEach(r,function(e,t){t!==n&&t.toUpperCase()===n.toUpperCase()&&(r[n]=e,delete r[t])})}},109:(e,t,r)=>{"use strict";var o=r(867),s=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,n={};return e&&o.forEach(e.split("\n"),function(e){r=e.indexOf(":"),t=o.trim(e.substr(0,r)).toLowerCase(),r=o.trim(e.substr(r+1)),!t||n[t]&&0<=s.indexOf(t)||(n[t]="set-cookie"===t?(n[t]||[]).concat([r]):n[t]?n[t]+", "+r:r)}),n}},713:e=>{"use strict";e.exports=function(t){return function(e){return t.apply(null,e)}}},875:(e,t,r)=>{"use strict";var a=r(593),n={},u=(["object","boolean","number","function","string","symbol"].forEach(function(t,r){n[t]=function(e){return typeof e===t||"a"+(r<1?"n ":" ")+t}}),{}),s=a.version.split(".");function c(e,t){for(var r=t?t.split("."):s,n=e.split("."),o=0;o<3;o++){if(r[o]>n[o])return!0;if(r[o]<n[o])return!1}return!1}n.transitional=function(n,o,r){var s=o&&c(o);function i(e,t){return"[Axios v"+a.version+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(e,t,r){if(!1===n)throw new Error(i(t," has been removed in "+o));return s&&!u[t]&&(u[t]=!0,console.warn(i(t," has been deprecated since v"+o+" and will be removed in the near future"))),!n||n(e,t,r)}},e.exports={isOlderVersion:c,assertOptions:function(e,t,r){if("object"!=typeof e)throw new TypeError("options must be an object");for(var n=Object.keys(e),o=n.length;0<o--;){var s=n[o],i=t[s];if(i){var a=e[s],i=void 0===a||i(a,s,e);if(!0!==i)throw new TypeError("option "+s+" must be "+i)}else if(!0!==r)throw Error("Unknown option "+s)}},validators:n}},867:(e,t,r)=>{"use strict";var o=r(849),n=Object.prototype.toString;function s(e){return"[object Array]"===n.call(e)}function i(e){return void 0===e}function a(e){return null!==e&&"object"==typeof e}function u(e){return"[object Object]"===n.call(e)&&(null===(e=Object.getPrototypeOf(e))||e===Object.prototype)}function c(e){return"[object Function]"===n.call(e)}function f(e,t){if(null!=e)if(s(e="object"!=typeof e?[e]:e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:s,isArrayBuffer:function(e){return"[object ArrayBuffer]"===n.call(e)},isBuffer:function(e){return null!==e&&!i(e)&&null!==e.constructor&&!i(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:a,isPlainObject:u,isUndefined:i,isDate:function(e){return"[object Date]"===n.call(e)},isFile:function(e){return"[object File]"===n.call(e)},isBlob:function(e){return"[object Blob]"===n.call(e)},isFunction:c,isStream:function(e){return a(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:f,merge:function r(){var n={};function e(e,t){u(n[t])&&u(e)?n[t]=r(n[t],e):u(e)?n[t]=r({},e):s(e)?n[t]=e.slice():n[t]=e}for(var t=0,o=arguments.length;t<o;t++)f(arguments[t],e);return n},extend:function(r,e,n){return f(e,function(e,t){r[t]=n&&"function"==typeof e?o(e,n):e}),r},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return e=65279===e.charCodeAt(0)?e.slice(1):e}}},519:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SuperAxios=void 0;const o=n(r(669)),s=o.default.CancelToken;t.SuperAxios=class{constructor(e){this.queue=new Map,this.maxReconnectTimes=5,this.delayTime=300,this.axiosInstance=o.default.create(e);var{maxReconnectTimes:e=5,delayTime:t=300,reconnectTime:r=1500}=e;this.maxReconnectTimes=e,this.delayTime=t,this.reconnectTime=r}reconnect(e){return e.reconnectTimes<this.maxReconnectTimes?(this.queue.delete(this.getHashCode(e)),e.reconnectTimes++,new Promise(e=>{setTimeout(()=>{e()},this.reconnectTime)}).then(()=>this.dispatch(e))):Promise.reject("已经尽力了,但是网络还是不给力")}dispatch(e){switch(e.reconnectTimes||(e.reconnectTimes=0),e.type){case"block":return this.block(e);case"delay":return this.delay(e);case"kill":return this.cancel(e);default:return e.reconnect&&this.queue.set(this.getHashCode(e),e),this.axiosInstance(e)}}block(e){var t=this.getHashCode(e);return this.checkRequestExists(t)?Promise.reject("在第一次未响应返回前不可重复请求该接口"+e.url):(this.queue.set(t,e),this.resolve(e))}resolve(e){const n=this,o=n.getHashCode(e);return new Promise((t,r)=>{this.axiosInstance(e).then(e=>{n.queue.delete(o),t(e)}).catch(e=>{n.queue.delete(o),r(e)})})}checkRequestExists(e){return this.queue.has(e)}cancel(t){var e,r,n=this.getHashCode(t);return this.checkRequestExists(n)&&(null!=(r=null==(e=this.queue.get(n))?void 0:e.cancelHandle)&&r.call(e,"取消上一次相同请求"),this.queue.delete(n)),this.queue.set(n,t),t.cancelToken=new s(function(e){t.cancelHandle=e}),this.resolve(t)}delay(t){return this.Timer&&clearTimeout(this.Timer),new Promise(e=>{this.Timer=setTimeout(()=>{e()},t.delayTime||this.delayTime)}).then(()=>this.axiosInstance(t))}getHashCode(e){var t,r,{url:e,method:n}=e,o=JSON.stringify({url:e,method:n}),s=0;if(0!==o.length)for(t=0,r=o.length;t<r;t++)s=(s<<5)-s+o.charCodeAt(t),s|=0;return s}getRequestConfig(e){return this.queue.get(this.getHashCode(e))}}},593:e=>{"use strict";e.exports=JSON.parse('{"_from":"axios@^0.21.1","_id":"axios@0.21.4","_inBundle":false,"_integrity":"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==","_location":"/axios","_phantomChildren":{},"_requested":{"type":"range","registry":true,"raw":"axios@^0.21.1","name":"axios","escapedName":"axios","rawSpec":"^0.21.1","saveSpec":null,"fetchSpec":"^0.21.1"},"_requiredBy":["/"],"_resolved":"https://registry.npmmirror.com/axios/-/axios-0.21.4.tgz","_shasum":"c67b90dc0568e5c1cf2b0b858c43ba28e2eda575","_spec":"axios@^0.21.1","_where":"/Users/anguodong/Desktop/super-axios","author":{"name":"Matt Zabriskie"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"bugs":{"url":"https://github.com/axios/axios/issues"},"bundleDependencies":false,"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"dependencies":{"follow-redirects":"^1.14.0"},"deprecated":false,"description":"Promise based HTTP client for the browser and node.js","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"homepage":"https://axios-http.com","jsdelivr":"dist/axios.min.js","keywords":["xhr","http","ajax","promise","node"],"license":"MIT","main":"index.js","name":"axios","repository":{"type":"git","url":"git+https://github.com/axios/axios.git"},"scripts":{"build":"NODE_ENV=production grunt build","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","examples":"node ./examples/server.js","fix":"eslint --fix lib/**/*.js","postversion":"git push && git push --tags","preversion":"npm test","start":"node ./sandbox/server.js","test":"grunt test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},"typings":"./index.d.ts","unpkg":"dist/axios.min.js","version":"0.21.4"}')}},o={},function e(t){var r=o[t];return void 0===r&&(r=o[t]={exports:{}},n[t].call(r.exports,r,r.exports,e)),r.exports}(519);var n,o});