MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / resolveAdapter

Method resolveAdapter

daily/ydyp.js:3277–3286  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

3275 }
3276 }
3277 resolveAdapter(e) {
3278 const t = d(e.adapter);
3279 if (t) return t;
3280 const r = e.adapters || this.defaults.adapters || [];
3281 for (let e = 0; e < r.length; e += 1) {
3282 const t = d(r[e]);
3283 if (t) return t
3284 }
3285 return "function" == typeof e.fetch ? e.fetch : "function" == typeof this.defaults.fetch ? this.defaults.fetch : null
3286 }
3287 dispatchRequest(t) {
3288 const r = this.resolveAdapter(t);
3289 if (!r) return Promise.reject(new e("No available adapter", "ERR_NOT_SUPPORT", t));

Callers 1

dispatchRequestMethod · 0.95

Calls 1

dFunction · 0.70

Tested by

no test coverage detected