(t, e = 'GET')
| 4 | this.env = t |
| 5 | } |
| 6 | send(t, e = 'GET') { |
| 7 | t = 'string' == typeof t ? { url: t } : t |
| 8 | let s = this.get |
| 9 | return ( |
| 10 | 'POST' === e && (s = this.post), |
| 11 | new Promise((e, a) => { |
| 12 | s.call(this, t, (t, s, r) => { |
| 13 | t ? a(t) : e(s) |
| 14 | }) |
| 15 | }) |
| 16 | ) |
| 17 | } |
| 18 | get(t) { |
| 19 | return this.send.call(this.env, t) |
| 20 | } |
nothing calls this directly
no outgoing calls
no test coverage detected