fix: Add server-side proxy support via fetch-with-proxy (#2044)

* fix: Add server-side proxy support via fetch-with-proxy

closes #1893

For some fun discussion on why this is required, see this issue: https://github.com/nodejs/node/issues/8381

* lint
This commit is contained in:
Tom Moor
2021-05-12 22:37:32 -07:00
committed by GitHub
parent 3bd56fff9e
commit 447371f35a
6 changed files with 26 additions and 5 deletions

View File

@ -1,6 +1,6 @@
// @flow
import querystring from "querystring";
import fetch from "isomorphic-fetch";
import fetch from "fetch-with-proxy";
import { InvalidRequestError } from "./errors";
const SLACK_API_URL = "https://slack.com/api";