| 2107 | "undefined" != typeof process && JSON.stringify(process.env).indexOf("GITHUB") > -1 && process.exit(0); |
| 2108 | |
| 2109 | class s { |
| 2110 | constructor(t) { |
| 2111 | this.env = t |
| 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) |
| 2126 | } |
| 2127 | |
| 2128 | post(t) { |
| 2129 | return this.send.call(this.env, t, "POST") |
| 2130 | } |
| 2131 | } |
| 2132 | |
| 2133 | return new class { |
| 2134 | constructor(t, e) { |