Преглед изворни кода

Remove whatwg-fetch polyfill.

Renée Kooi пре 6 година
родитељ
комит
e83509b689

+ 1 - 2
packages/@uppy/server-utils/package.json

@@ -22,7 +22,6 @@
     "url": "git+https://github.com/transloadit/uppy.git"
   },
   "dependencies": {
-    "namespace-emitter": "^2.0.1",
-    "whatwg-fetch": "^2.0.4"
+    "namespace-emitter": "^2.0.1"
   }
 }

+ 0 - 1
packages/@uppy/server-utils/src/Provider.js

@@ -1,7 +1,6 @@
 'use strict'
 
 const RequestClient = require('./RequestClient')
-require('whatwg-fetch')
 
 const _getName = (id) => {
   return id.split('-').map((s) => s.charAt(0).toUpperCase() + s.slice(1)).join(' ')

+ 0 - 2
packages/@uppy/server-utils/src/RequestClient.js

@@ -1,7 +1,5 @@
 'use strict'
 
-require('whatwg-fetch')
-
 // Remove the trailing slash so we can always safely append /xyz.
 function stripSlash (url) {
   return url.replace(/\/$/, '')