(executor)
| 74103 | } |
| 74104 | Axios.prototype[method] = generateHTTPMethod(); |
| 74105 | Axios.prototype[method + "Form"] = generateHTTPMethod(true); |
| 74106 | }); |
| 74107 | var Axios_default = Axios; |
| 74108 | |
| 74109 | // node_modules/axios/lib/cancel/CancelToken.js |
| 74110 | var CancelToken = class _CancelToken { |
| 74111 | constructor(executor) { |
| 74112 | if (typeof executor !== "function") { |
| 74113 | throw new TypeError("executor must be a function."); |
| 74114 | } |
| 74115 | let resolvePromise; |
| 74116 | this.promise = new Promise(function promiseExecutor(resolve) { |
| 74117 | resolvePromise = resolve; |
| 74118 | }); |
| 74119 | const token = this; |
| 74120 | this.promise.then((cancel) => { |
| 74121 | if (!token._listeners) return; |
| 74122 | let i3 = token._listeners.length; |
| 74123 | while (i3-- > 0) { |
| 74124 | token._listeners[i3](cancel); |
| 74125 | } |
| 74126 | token._listeners = null; |
| 74127 | }); |
| 74128 | this.promise.then = (onfulfilled) => { |
| 74129 | let _resolve; |
| 74130 | const promise = new Promise((resolve) => { |
| 74131 | token.subscribe(resolve); |
| 74132 | _resolve = resolve; |
| 74133 | }).then(onfulfilled); |
| 74134 | promise.cancel = function reject() { |
| 74135 | token.unsubscribe(_resolve); |
| 74136 | }; |
| 74137 | return promise; |
| 74138 | }; |
| 74139 | executor(function cancel(message, config8, request3) { |
| 74140 | if (token.reason) { |
| 74141 | return; |
| 74142 | } |
| 74143 | token.reason = new CanceledError_default(message, config8, request3); |
nothing calls this directly
no test coverage detected