@ahoo-wang/fetcher 2.5.2 → 2.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,2 +1,2 @@
1
- (function(s,h){typeof exports=="object"&&typeof module<"u"?h(exports):typeof define=="function"&&define.amd?define(["exports"],h):(s=typeof globalThis<"u"?globalThis:s||self,h(s.Fetcher={}))})(this,(function(s){"use strict";function h(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function H(t,e){return h(e)?e:e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}var G=(t=>(t[t.UriTemplate=0]="UriTemplate",t[t.Express=1]="Express",t))(G||{});function B(t){return t===1?j:V}function F(t,e,r){return r?t.replace(e,(n,o)=>{const i=r[o];if(i===void 0)throw new Error(`Missing required path parameter: ${o}`);return encodeURIComponent(i)}):t}function q(t,e){const r=[];let n;for(;(n=e.exec(t))!==null;)r.push(n[1]);return r}const d=class d{extractPathParams(e){return q(e,d.PATH_PARAM_REGEX)}resolve(e,r){return F(e,d.PATH_PARAM_REGEX,r)}};d.PATH_PARAM_REGEX=/{([^}]+)}/g;let f=d;const V=new f,m=class m{extractPathParams(e){return q(e,m.PATH_PARAM_REGEX)}resolve(e,r){return F(e,m.PATH_PARAM_REGEX,r)}};m.PATH_PARAM_REGEX=/:([^/]+)/g;let A=m;const j=new A;class ${constructor(e,r){this.baseURL=e,this.urlTemplateResolver=B(r)}build(e,r){const n=r?.path,o=r?.query,i=H(this.baseURL,e);let c=this.urlTemplateResolver.resolve(i,n);if(o){const a=new URLSearchParams(o).toString();a&&(c+="?"+a)}return c}resolveRequestUrl(e){return this.build(e.url,e.urlParams)}}class E extends Error{constructor(e,r){const n=e||r?.message||"An error occurred in the fetcher";super(n),this.cause=r,this.name="FetcherError",r?.stack&&(this.stack=r.stack),Object.setPrototypeOf(this,E.prototype)}}class _ extends E{constructor(e){const r=e.method||"GET",n=`Request timeout of ${e.timeout}ms exceeded for ${r} ${e.url}`;super(n),this.name="FetchTimeoutError",this.request=e,Object.setPrototypeOf(this,_.prototype)}}function X(t,e){return typeof t<"u"?t:e}async function J(t){const e=t.url,r=t.timeout,n=t;if(t.signal)return fetch(e,n);if(!r)return t.abortController&&(n.signal=t.abortController.signal),fetch(e,n);const o=t.abortController??new AbortController;t.abortController=o,n.signal=o.signal;let i=null;const c=new Promise((a,M)=>{i=setTimeout(()=>{i&&clearTimeout(i);const le=new _(t);o.abort(le),M(le)},r)});try{return await Promise.race([fetch(e,n),c])}finally{i&&clearTimeout(i)}}const k="UrlResolveInterceptor",b=Number.MIN_SAFE_INTEGER+1e3;class Q{constructor(){this.name=k,this.order=b}intercept(e){const r=e.request;r.url=e.fetcher.urlBuilder.resolveRequestUrl(r)}}var u=(t=>(t.GET="GET",t.POST="POST",t.PUT="PUT",t.DELETE="DELETE",t.PATCH="PATCH",t.HEAD="HEAD",t.OPTIONS="OPTIONS",t.TRACE="TRACE",t))(u||{});const l="Content-Type",S=class S{};S.APPLICATION_JSON="application/json",S.TEXT_EVENT_STREAM="text/event-stream";let R=S;const Y="RequestBodyInterceptor",z=b+1e3;class K{constructor(){this.name=Y,this.order=z}isSupportedComplexBodyType(e){return e instanceof ArrayBuffer||ArrayBuffer.isView(e)||e instanceof ReadableStream}isAutoAppendContentType(e){return e instanceof Blob||e instanceof File||e instanceof FormData||e instanceof URLSearchParams}intercept(e){const r=e.request;if(r.body===void 0||r.body===null||typeof r.body!="object")return;const n=e.ensureRequestHeaders();if(this.isAutoAppendContentType(r.body)){n[l]&&delete n[l];return}this.isSupportedComplexBodyType(r.body)||(e.request.body=JSON.stringify(r.body),n[l]||(n[l]=R.APPLICATION_JSON))}}const W="FetchInterceptor",Z=Number.MAX_SAFE_INTEGER-1e3;class x{constructor(){this.name=W,this.order=Z}async intercept(e){e.response=await J(e.request)}}function P(t,e){return e?t.filter(e).sort((r,n)=>r.order-n.order):[...t].sort((r,n)=>r.order-n.order)}class p{constructor(e=[]){this.sortedInterceptors=[],this.sortedInterceptors=P(e)}get name(){return this.constructor.name}get order(){return Number.MIN_SAFE_INTEGER}get interceptors(){return[...this.sortedInterceptors]}use(e){return this.sortedInterceptors.some(r=>r.name===e.name)?!1:(this.sortedInterceptors=P([...this.sortedInterceptors,e]),!0)}eject(e){const r=this.sortedInterceptors;return this.sortedInterceptors=P(r,n=>n.name!==e),r.length!==this.sortedInterceptors.length}clear(){this.sortedInterceptors=[]}async intercept(e){for(const r of this.sortedInterceptors)await r.intercept(e)}}class O extends E{constructor(e){super(`Request failed with status code ${e.response?.status} for ${e.request.url}`),this.exchange=e,this.name="HttpStatusValidationError",Object.setPrototypeOf(this,O.prototype)}}const Re=t=>t>=200&&t<300,ee="ValidateStatusInterceptor",te=Number.MAX_SAFE_INTEGER-1e3;class re{constructor(e=Re){this.validateStatus=e}get name(){return ee}get order(){return te}intercept(e){if(!e.response)return;const r=e.response.status;if(!this.validateStatus(r))throw new O(e)}}class T extends E{constructor(e,r){const n=r||e.error?.message||e.response?.statusText||`Request to ${e.request.url} failed during exchange`;super(n,e.error),this.exchange=e,this.name="ExchangeError",Object.setPrototypeOf(this,T.prototype)}}class se{constructor(){this.request=new p([new Q,new K,new x]),this.response=new p([new re]),this.error=new p}async exchange(e){try{return await this.request.intercept(e),await this.response.intercept(e),e}catch(r){if(e.error=r,await this.error.intercept(e),!e.hasError())return e;throw new T(e)}}}const ne=t=>t,oe=t=>t.requiredResponse,ie=t=>t.requiredResponse.json(),ue=t=>t.requiredResponse.text(),g={Exchange:ne,Response:oe,Json:ie,Text:ue};function C(t,e){if(!(t===void 0&&e===void 0))return e===void 0?t:t===void 0?e:{...t,...e}}function ce(t,e){if(e??=new Map,!t)return e;if(t instanceof Map){for(const[r,n]of t)e.set(r,n);return e}for(const[r,n]of Object.entries(t))e.set(r,n);return e}class ae{constructor(e){this.fetcher=e.fetcher,this.request=e.request,this.resultExtractor=e.resultExtractor??g.Exchange,this.attributes=ce(e.attributes),this._response=e.response,this.error=e.error}ensureRequestHeaders(){return this.request.headers||(this.request.headers={}),this.request.headers}ensureRequestUrlParams(){return this.request.urlParams||(this.request.urlParams={path:{},query:{}}),this.request.urlParams.path||(this.request.urlParams.path={}),this.request.urlParams.query||(this.request.urlParams.query={}),this.request.urlParams}hasError(){return!!this.error}set response(e){this._response=e,this.cachedExtractedResult=void 0}get response(){return this._response}hasResponse(){return!!this.response}get requiredResponse(){if(!this.response)throw new T(this,`Request to ${this.request.url} failed with no response`);return this.response}extractResult(){return this.cachedExtractedResult!==void 0?this.cachedExtractedResult:(this.cachedExtractedResult=this.resultExtractor(this),this.cachedExtractedResult)}}function Te(t,e){if(Object.keys(t).length===0)return e;if(Object.keys(e).length===0)return t;const r={path:C(t.urlParams?.path,e.urlParams?.path),query:C(t.urlParams?.query,e.urlParams?.query)},n={...t.headers,...e.headers},o=e.method??t.method,i=e.body??t.body,c=e.timeout??t.timeout,a=e.signal??t.signal,M=e.abortController??t.abortController;return{...t,...e,method:o,urlParams:r,headers:n,body:i,timeout:c,signal:a,abortController:M}}function I(t,e){return e&&e.resultExtractor&&e.attributes?e:{resultExtractor:e?.resultExtractor??t?.resultExtractor??D.resultExtractor,attributes:e?.attributes??t?.attributes}}const U={[l]:R.APPLICATION_JSON},w={baseURL:"",headers:U},D={resultExtractor:g.Exchange},L={resultExtractor:g.Response};class v{constructor(e=w){this.headers=U,this.urlBuilder=new $(e.baseURL,e.urlTemplateStyle),this.headers=e.headers??U,this.timeout=e.timeout,this.interceptors=e.interceptors??new se}async exchange(e,r){const n={...this.headers,...e.headers},o={...e,headers:n,timeout:X(e.timeout,this.timeout)},{resultExtractor:i,attributes:c}=I(D,r),a=new ae({fetcher:this,request:o,resultExtractor:i,attributes:c});return this.interceptors.exchange(a)}async request(e,r){return(await this.exchange(e,r)).extractResult()}async fetch(e,r={},n){const o={...r,url:e};return this.request(o,I(L,n))}async methodFetch(e,r,n={},o){const i={...n,url:r,method:e};return this.request(i,I(L,o))}async get(e,r={},n){return this.methodFetch(u.GET,e,r,n)}async put(e,r={},n){return this.methodFetch(u.PUT,e,r,n)}async post(e,r={},n){return this.methodFetch(u.POST,e,r,n)}async patch(e,r={},n){return this.methodFetch(u.PATCH,e,r,n)}async delete(e,r={},n){return this.methodFetch(u.DELETE,e,r,n)}async head(e,r={},n){return this.methodFetch(u.HEAD,e,r,n)}async options(e,r={},n){return this.methodFetch(u.OPTIONS,e,r,n)}async trace(e,r={},n){return this.methodFetch(u.TRACE,e,r,n)}}const y="default";class he{constructor(){this.registrar=new Map}register(e,r){this.registrar.set(e,r)}unregister(e){return this.registrar.delete(e)}get(e){return this.registrar.get(e)}requiredGet(e){const r=this.get(e);if(!r)throw new Error(`Fetcher ${e} not found`);return r}get default(){return this.requiredGet(y)}set default(e){this.register(y,e)}get fetchers(){return new Map(this.registrar)}}const N=new he;function de(t,e){return t?t instanceof v?t:N.requiredGet(t):e??N.default}class Ee extends v{constructor(e,r=w){super(r),this.name=e,N.register(e,this)}}const me=new Ee(y);s.CONTENT_TYPE_HEADER=l,s.ContentTypeValues=R,s.DEFAULT_FETCHER_NAME=y,s.DEFAULT_FETCH_OPTIONS=L,s.DEFAULT_OPTIONS=w,s.DEFAULT_REQUEST_OPTIONS=D,s.ExchangeError=T,s.ExchangeResultExtractor=ne,s.ExpressUrlTemplateResolver=A,s.FETCH_INTERCEPTOR_NAME=W,s.FETCH_INTERCEPTOR_ORDER=Z,s.FetchExchange=ae,s.FetchInterceptor=x,s.FetchTimeoutError=_,s.Fetcher=v,s.FetcherError=E,s.FetcherRegistrar=he,s.HttpMethod=u,s.HttpStatusValidationError=O,s.InterceptorManager=se,s.InterceptorRegistry=p,s.JsonResultExtractor=ie,s.NamedFetcher=Ee,s.REQUEST_BODY_INTERCEPTOR_NAME=Y,s.REQUEST_BODY_INTERCEPTOR_ORDER=z,s.RequestBodyInterceptor=K,s.ResponseResultExtractor=oe,s.ResultExtractors=g,s.TextResultExtractor=ue,s.URL_RESOLVE_INTERCEPTOR_NAME=k,s.URL_RESOLVE_INTERCEPTOR_ORDER=b,s.UriTemplateResolver=f,s.UrlBuilder=$,s.UrlResolveInterceptor=Q,s.UrlTemplateStyle=G,s.VALIDATE_STATUS_INTERCEPTOR_NAME=ee,s.VALIDATE_STATUS_INTERCEPTOR_ORDER=te,s.ValidateStatusInterceptor=re,s.combineURLs=H,s.expressUrlTemplateResolver=j,s.fetcher=me,s.fetcherRegistrar=N,s.getFetcher=de,s.getUrlTemplateResolver=B,s.isAbsoluteURL=h,s.mergeRecordToMap=ce,s.mergeRecords=C,s.mergeRequest=Te,s.mergeRequestOptions=I,s.resolveTimeout=X,s.timeoutFetch=J,s.toSorted=P,s.uriTemplateResolver=V,s.urlTemplateRegexExtract=q,s.urlTemplateRegexResolve=F,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(s,h){typeof exports=="object"&&typeof module<"u"?h(exports):typeof define=="function"&&define.amd?define(["exports"],h):(s=typeof globalThis<"u"?globalThis:s||self,h(s.Fetcher={}))})(this,(function(s){"use strict";function h(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function B(t,e){return h(e)?e:e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}var H=(t=>(t[t.UriTemplate=0]="UriTemplate",t[t.Express=1]="Express",t))(H||{});function G(t){return t===1?j:V}function b(t,e,r){return r?t.replace(e,(n,o)=>{const u=r[o];if(u===void 0)throw new Error(`Missing required path parameter: ${o}`);return encodeURIComponent(u)}):t}function F(t,e){const r=[];let n;for(;(n=e.exec(t))!==null;)r.push(n[1]);return r}const d=class d{extractPathParams(e){return F(e,d.PATH_PARAM_REGEX)}resolve(e,r){return b(e,d.PATH_PARAM_REGEX,r)}};d.PATH_PARAM_REGEX=/{([^}]+)}/g;let f=d;const V=new f,m=class m{extractPathParams(e){return F(e,m.PATH_PARAM_REGEX)}resolve(e,r){return b(e,m.PATH_PARAM_REGEX,r)}};m.PATH_PARAM_REGEX=/:([^/]+)/g;let A=m;const j=new A;class ${constructor(e,r){this.baseURL=e,this.urlTemplateResolver=G(r)}build(e,r){const n=r?.path,o=r?.query,u=B(this.baseURL,e);let c=this.urlTemplateResolver.resolve(u,n);if(o){const a=new URLSearchParams(o).toString();a&&(c+="?"+a)}return c}resolveRequestUrl(e){return this.build(e.url,e.urlParams)}}class l extends Error{constructor(e,r){const n=e||r?.message||"An error occurred in the fetcher";super(n),this.cause=r,this.name="FetcherError",r?.stack&&(this.stack=r.stack),Object.setPrototypeOf(this,l.prototype)}}class _ extends l{constructor(e){const r=e.method||"GET",n=`Request timeout of ${e.timeout}ms exceeded for ${r} ${e.url}`;super(n),this.name="FetchTimeoutError",this.request=e,Object.setPrototypeOf(this,_.prototype)}}function X(t,e){return typeof t<"u"?t:e}async function J(t){const e=t.url,r=t.timeout,n=t;if(t.signal)return fetch(e,n);if(!r)return t.abortController&&(n.signal=t.abortController.signal),fetch(e,n);const o=t.abortController??new AbortController;t.abortController=o,n.signal=o.signal;let u=null;const c=new Promise((a,M)=>{u=setTimeout(()=>{u&&clearTimeout(u);const de=new _(t);o.abort(de),M(de)},r)});try{return await Promise.race([fetch(e,n),c])}finally{u&&clearTimeout(u)}}const k="UrlResolveInterceptor",q=Number.MIN_SAFE_INTEGER+1e3;class Q{constructor(){this.name=k,this.order=q}intercept(e){const r=e.request;r.url=e.fetcher.urlBuilder.resolveRequestUrl(r)}}var i=(t=>(t.GET="GET",t.POST="POST",t.PUT="PUT",t.DELETE="DELETE",t.PATCH="PATCH",t.HEAD="HEAD",t.OPTIONS="OPTIONS",t.TRACE="TRACE",t))(i||{});const E="Content-Type",S=class S{};S.APPLICATION_JSON="application/json",S.TEXT_EVENT_STREAM="text/event-stream";let R=S;const Y="RequestBodyInterceptor",z=q+1e3;class x{constructor(){this.name=Y,this.order=z}isSupportedComplexBodyType(e){return e instanceof ArrayBuffer||ArrayBuffer.isView(e)||e instanceof ReadableStream}isAutoAppendContentType(e){return e instanceof Blob||e instanceof File||e instanceof FormData||e instanceof URLSearchParams}intercept(e){const r=e.request;if(r.body===void 0||r.body===null||typeof r.body!="object")return;const n=e.ensureRequestHeaders();if(this.isAutoAppendContentType(r.body)){n[E]&&delete n[E];return}this.isSupportedComplexBodyType(r.body)||(e.request.body=JSON.stringify(r.body),n[E]||(n[E]=R.APPLICATION_JSON))}}const K="FetchInterceptor",W=Number.MAX_SAFE_INTEGER-1e3;class Z{constructor(){this.name=K,this.order=W}async intercept(e){e.response=await J(e.request)}}function P(t,e){return e?t.filter(e).sort((r,n)=>r.order-n.order):[...t].sort((r,n)=>r.order-n.order)}class p{constructor(e=[]){this.sortedInterceptors=[],this.sortedInterceptors=P(e)}get name(){return this.constructor.name}get order(){return Number.MIN_SAFE_INTEGER}get interceptors(){return[...this.sortedInterceptors]}use(e){return this.sortedInterceptors.some(r=>r.name===e.name)?!1:(this.sortedInterceptors=P([...this.sortedInterceptors,e]),!0)}eject(e){const r=this.sortedInterceptors;return this.sortedInterceptors=P(r,n=>n.name!==e),r.length!==this.sortedInterceptors.length}clear(){this.sortedInterceptors=[]}async intercept(e){for(const r of this.sortedInterceptors)await r.intercept(e)}}class O extends l{constructor(e){super(`Request failed with status code ${e.response?.status} for ${e.request.url}`),this.exchange=e,this.name="HttpStatusValidationError",Object.setPrototypeOf(this,O.prototype)}}const me=t=>t>=200&&t<300,ee="ValidateStatusInterceptor",te=Number.MAX_SAFE_INTEGER-1e3;class re{constructor(e=me){this.validateStatus=e}get name(){return ee}get order(){return te}intercept(e){if(!e.response)return;const r=e.response.status;if(!this.validateStatus(r))throw new O(e)}}class T extends l{constructor(e,r){const n=r||e.error?.message||e.response?.statusText||`Request to ${e.request.url} failed during exchange`;super(n,e.error),this.exchange=e,this.name="ExchangeError",Object.setPrototypeOf(this,T.prototype)}}class se{constructor(){this.request=new p([new Q,new x,new Z]),this.response=new p([new re]),this.error=new p}async exchange(e){try{return await this.request.intercept(e),await this.response.intercept(e),e}catch(r){if(e.error=r,await this.error.intercept(e),!e.hasError())return e;throw new T(e)}}}const ne=t=>t,oe=t=>t.requiredResponse,ue=t=>t.requiredResponse.json(),ie=t=>t.requiredResponse.text(),ce=t=>t.requiredResponse.blob(),ae=t=>t.requiredResponse.arrayBuffer(),he=t=>t.requiredResponse.bytes(),g={Exchange:ne,Response:oe,Json:ue,Text:ie,Blob:ce,ArrayBuffer:ae,Bytes:he};function C(t,e){if(!(t===void 0&&e===void 0))return e===void 0?t:t===void 0?e:{...t,...e}}function le(t,e){if(e??=new Map,!t)return e;if(t instanceof Map){for(const[r,n]of t)e.set(r,n);return e}for(const[r,n]of Object.entries(t))e.set(r,n);return e}class Ee{constructor(e){this.fetcher=e.fetcher,this.request=e.request,this.resultExtractor=e.resultExtractor??g.Exchange,this.attributes=le(e.attributes),this._response=e.response,this.error=e.error}ensureRequestHeaders(){return this.request.headers||(this.request.headers={}),this.request.headers}ensureRequestUrlParams(){return this.request.urlParams||(this.request.urlParams={path:{},query:{}}),this.request.urlParams.path||(this.request.urlParams.path={}),this.request.urlParams.query||(this.request.urlParams.query={}),this.request.urlParams}hasError(){return!!this.error}set response(e){this._response=e,this.cachedExtractedResult=void 0}get response(){return this._response}hasResponse(){return!!this.response}get requiredResponse(){if(!this.response)throw new T(this,`Request to ${this.request.url} failed with no response`);return this.response}extractResult(){return this.cachedExtractedResult!==void 0?this.cachedExtractedResult:(this.cachedExtractedResult=this.resultExtractor(this),this.cachedExtractedResult)}}function fe(t,e){if(Object.keys(t).length===0)return e;if(Object.keys(e).length===0)return t;const r={path:C(t.urlParams?.path,e.urlParams?.path),query:C(t.urlParams?.query,e.urlParams?.query)},n={...t.headers,...e.headers},o=e.method??t.method,u=e.body??t.body,c=e.timeout??t.timeout,a=e.signal??t.signal,M=e.abortController??t.abortController;return{...t,...e,method:o,urlParams:r,headers:n,body:u,timeout:c,signal:a,abortController:M}}function y(t,e){return e&&e.resultExtractor&&e.attributes?e:{resultExtractor:e?.resultExtractor??t?.resultExtractor??D.resultExtractor,attributes:e?.attributes??t?.attributes}}const U={[E]:R.APPLICATION_JSON},w={baseURL:"",headers:U},D={resultExtractor:g.Exchange},L={resultExtractor:g.Response};class v{constructor(e=w){this.headers=U,this.urlBuilder=new $(e.baseURL,e.urlTemplateStyle),this.headers=e.headers??U,this.timeout=e.timeout,this.interceptors=e.interceptors??new se}async exchange(e,r){const n={...this.headers,...e.headers},o={...e,headers:n,timeout:X(e.timeout,this.timeout)},{resultExtractor:u,attributes:c}=y(D,r),a=new Ee({fetcher:this,request:o,resultExtractor:u,attributes:c});return this.interceptors.exchange(a)}async request(e,r){return(await this.exchange(e,r)).extractResult()}async fetch(e,r={},n){const o={...r,url:e};return this.request(o,y(L,n))}async methodFetch(e,r,n={},o){const u={...n,url:r,method:e};return this.request(u,y(L,o))}async get(e,r={},n){return this.methodFetch(i.GET,e,r,n)}async put(e,r={},n){return this.methodFetch(i.PUT,e,r,n)}async post(e,r={},n){return this.methodFetch(i.POST,e,r,n)}async patch(e,r={},n){return this.methodFetch(i.PATCH,e,r,n)}async delete(e,r={},n){return this.methodFetch(i.DELETE,e,r,n)}async head(e,r={},n){return this.methodFetch(i.HEAD,e,r,n)}async options(e,r={},n){return this.methodFetch(i.OPTIONS,e,r,n)}async trace(e,r={},n){return this.methodFetch(i.TRACE,e,r,n)}}const I="default";class Re{constructor(){this.registrar=new Map}register(e,r){this.registrar.set(e,r)}unregister(e){return this.registrar.delete(e)}get(e){return this.registrar.get(e)}requiredGet(e){const r=this.get(e);if(!r)throw new Error(`Fetcher ${e} not found`);return r}get default(){return this.requiredGet(I)}set default(e){this.register(I,e)}get fetchers(){return new Map(this.registrar)}}const N=new Re;function Ae(t,e){return t?t instanceof v?t:N.requiredGet(t):e??N.default}class Te extends v{constructor(e,r=w){super(r),this.name=e,N.register(e,this)}}const _e=new Te(I);s.ArrayBufferResultExtractor=ae,s.BlobResultExtractor=ce,s.BytesResultExtractor=he,s.CONTENT_TYPE_HEADER=E,s.ContentTypeValues=R,s.DEFAULT_FETCHER_NAME=I,s.DEFAULT_FETCH_OPTIONS=L,s.DEFAULT_OPTIONS=w,s.DEFAULT_REQUEST_OPTIONS=D,s.ExchangeError=T,s.ExchangeResultExtractor=ne,s.ExpressUrlTemplateResolver=A,s.FETCH_INTERCEPTOR_NAME=K,s.FETCH_INTERCEPTOR_ORDER=W,s.FetchExchange=Ee,s.FetchInterceptor=Z,s.FetchTimeoutError=_,s.Fetcher=v,s.FetcherError=l,s.FetcherRegistrar=Re,s.HttpMethod=i,s.HttpStatusValidationError=O,s.InterceptorManager=se,s.InterceptorRegistry=p,s.JsonResultExtractor=ue,s.NamedFetcher=Te,s.REQUEST_BODY_INTERCEPTOR_NAME=Y,s.REQUEST_BODY_INTERCEPTOR_ORDER=z,s.RequestBodyInterceptor=x,s.ResponseResultExtractor=oe,s.ResultExtractors=g,s.TextResultExtractor=ie,s.URL_RESOLVE_INTERCEPTOR_NAME=k,s.URL_RESOLVE_INTERCEPTOR_ORDER=q,s.UriTemplateResolver=f,s.UrlBuilder=$,s.UrlResolveInterceptor=Q,s.UrlTemplateStyle=H,s.VALIDATE_STATUS_INTERCEPTOR_NAME=ee,s.VALIDATE_STATUS_INTERCEPTOR_ORDER=te,s.ValidateStatusInterceptor=re,s.combineURLs=B,s.expressUrlTemplateResolver=j,s.fetcher=_e,s.fetcherRegistrar=N,s.getFetcher=Ae,s.getUrlTemplateResolver=G,s.isAbsoluteURL=h,s.mergeRecordToMap=le,s.mergeRecords=C,s.mergeRequest=fe,s.mergeRequestOptions=y,s.resolveTimeout=X,s.timeoutFetch=J,s.toSorted=P,s.uriTemplateResolver=V,s.urlTemplateRegexExtract=F,s.urlTemplateRegexResolve=b,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})}));
2
2
  //# sourceMappingURL=index.umd.js.map