Jelajahi Sumber

Fix typos and add env vars to .env.example (#4624)

* Add OneDrive env vars to .env.example

* Fix typos in comments
Dominik Schmidt 1 tahun lalu
induk
melakukan
d7775d12a3

+ 3 - 0
.env.example

@@ -51,6 +51,9 @@ COMPANION_ZOOM_SECRET=***
 COMPANION_UNSPLASH_KEY=***
 COMPANION_UNSPLASH_SECRET=***
 
+COMPANION_ONEDRIVE_KEY=***
+COMPANION_ONEDRIVE_SECRET=****
+
 # Development environment
 # =======================
 

+ 1 - 1
packages/@uppy/companion/src/server/controllers/url.js

@@ -36,7 +36,7 @@ const downloadURL = async (url, blockLocalIPs, traceId) => {
 }
 
 /**
- * Fteches the size and content type of a URL
+ * Fetches the size and content type of a URL
  *
  * @param {object} req expressJS request object
  * @param {object} res expressJS response object

+ 1 - 1
packages/@uppy/companion/src/server/provider/credentials.js

@@ -27,7 +27,7 @@ async function fetchKeys (url, providerName, credentialRequestParams) {
 }
 
 /**
- * Fetches for a providers OAuth credentials. If the config for thtat provider allows fetching
+ * Fetches for a providers OAuth credentials. If the config for that provider allows fetching
  * of the credentials via http, and the `credentialRequestParams` argument is provided, the oauth
  * credentials will be fetched via http. Otherwise, the credentials provided via companion options
  * will be used instead.