Adding a fetch polyfill (#15968)

* Adding a `fetch` polyfill

* "globally" shimming the whatwg-fetch
This commit is contained in:
Brandon Kobel 2018-01-10 14:26:02 -05:00 committed by GitHub
parent 97df0b64d8
commit 1cfabfb317
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View file

@ -155,15 +155,15 @@
"mkdirp": "0.5.1",
"moment": "2.13.0",
"moment-timezone": "0.5.4",
"ngreact": "0.5.1",
"mustache": "2.3.0",
"ngreact": "0.5.1",
"no-ui-slider": "1.2.0",
"node-fetch": "1.3.2",
"pegjs": "0.9.0",
"pivotal-ui": "11.0.0",
"postcss-loader": "2.0.6",
"prop-types": "15.5.8",
"proxy-from-env": "1.0.0",
"pivotal-ui": "11.0.0",
"querystring-browser": "1.0.4",
"raw-loader": "0.5.1",
"react": "16.0.0",
@ -210,6 +210,7 @@
"vision": "4.1.0",
"webpack": "3.6.0",
"webpack-merge": "4.1.0",
"whatwg-fetch": "^2.0.3",
"wreck": "12.4.0",
"yauzl": "2.7.0"
},

View file

@ -3,6 +3,7 @@ import angular from 'angular';
import { metadata } from 'ui/metadata';
import 'babel-polyfill';
import 'whatwg-fetch';
import 'ui/timefilter';
import 'ui/notify';
import 'ui/private';

View file

@ -11675,7 +11675,7 @@ whatwg-encoding@^1.0.1:
dependencies:
iconv-lite "0.4.19"
whatwg-fetch@>=0.10.0:
whatwg-fetch@>=0.10.0, whatwg-fetch@^2.0.3:
version "2.0.3"
resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.3.tgz#9c84ec2dcf68187ff00bc64e1274b442176e1c84"