MCPcopy Create free account
hub / github.com/Semporia/Scripts / send

Method send

jd_superMarket.js:2114–2122  ·  view source on GitHub ↗
(t, e = "GET")

Source from the content-addressed store, hash-verified

2112 }
2113
2114 send(t, e = "GET") {
2115 t = "string" == typeof t ? {url: t} : t;
2116 let s = this.get;
2117 return "POST" === e && (s = this.post), new Promise((e, i) => {
2118 s.call(this, t, (t, s, r) => {
2119 t ? i(t) : e(s)
2120 })
2121 })
2122 }
2123
2124 get(t) {
2125 return this.send.call(this.env, t)

Callers

nothing calls this directly

Calls 2

iFunction · 0.70
eFunction · 0.70

Tested by

no test coverage detected