| 819 | "undefined" != typeof process && JSON.stringify(process.env).indexOf("GITHUB") > -1 && process.exit(0); |
| 820 | |
| 821 | class s { |
| 822 | constructor(t) { |
| 823 | this.env = t |
| 824 | } |
| 825 | |
| 826 | send(t, e = "GET") { |
| 827 | t = "string" == typeof t ? {url: t} : t; |
| 828 | let s = this.get; |
| 829 | return "POST" === e && (s = this.post), new Promise((e, i) => { |
| 830 | s.call(this, t, (t, s, r) => { |
| 831 | t ? i(t) : e(s) |
| 832 | }) |
| 833 | }) |
| 834 | } |
| 835 | |
| 836 | get(t) { |
| 837 | return this.send.call(this.env, t) |
| 838 | } |
| 839 | |
| 840 | post(t) { |
| 841 | return this.send.call(this.env, t, "POST") |
| 842 | } |
| 843 | } |
| 844 | |
| 845 | return new class { |
| 846 | constructor(t, e) { |