* Fix COMPANION_PATH
make sure it serves everything served behind that path
fixes#3514
* add tests for subpath
* chmod +x companion.sh
* remove process.exit
as it's considered harmful in this case
an error thrown will also be printed to stderr
* add backward compatible redirect
* Apply suggestions from code review
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
* fix oops
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
* @uppy/angular: update ng version
* hack to allow the publish of the Angular package
* fix @types/webpack-dev-server resolution (the package is deprecated anyway)
* Add Storybook back
* Fix default value of Input
* Update README
* Apply suggestions from code review
* fix @types/react version conflict
* Update packages/@uppy/angular/.storybook/tsconfig.json
* fix broken npm run test
* improve jest / companion
add `npm run test:companion:watch`
move env variables into code to make testing easier
this allows for watching (source is causing problems with npm scripts)
also now we can run `corepack yarn test:companion -t 'single test'`
* fix root project jest
make sure we don't run companion tests on npm run test:unit (as they don't work in a browser/jsdom environment)
* improve validation logic
previously incorrect options gives an Uploader object in an incorrect state
* rewrite uploader to make it more testable
* add test for xhr
* check that metadata values are strings
* fix nested meta
causing error #3477
* convert meta to strings instead
like the official FormData spec does
* fix broken companion dev #3473
* fix botched merge
* fix botched merge and remove --fix
* fix botchedf merge
* quick fix
* .
* remove eslint fix
* Add Compressor plugin
* Set type in blob if it’s missing
* clear thumbnail-generator queue when cancel-all is called
* Add e2e test for @uppy/compressor
* Docs, types, readme, bundle, add event
* Update yarn.lock
* fix test
* Update e2e/cypress/integration/dashboard-compressor.spec.ts
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
* Update dashboard-compressor.spec.ts
* convert compressor to ESM
* Update e2e/clients/dashboard-compressor/index.html
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
* remove console.log
* uglierBytes
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
* fix nested meta
causing error #3477
* Update packages/@uppy/provider-views/src/View.js
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Co-authored-by: Mikael Finstad <finstaden@gmail.com>
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
those are the only two providers who use companion-proxied thumbnails
dropbox had been broken after #3159
box did never work before because it just showed a placeholder (see box api)
also upgraded dropbox thumbnail api to v2
and rewrite to async/await
* Implement periodic ping functionality
allows periodically sending a POST request to one or more URL
specified by COMPANION_PERIODIC_PING_URLS
also add nock for easier testing
* Update packages/@uppy/companion/src/companion.js
Co-authored-by: Merlijn Vos <merlijn@soverin.net>
* Update packages/@uppy/companion/src/server/jobs.js
* allow posting a JSON body
COMPANION_PERIODIC_PING_STATIC_JSON_PAYLOAD
* add todo
* remove package-lock
accidentally added during merge
* Add version and processId
by default to periodic ping when enabled
Co-authored-by: Merlijn Vos <merlijn@soverin.net>
* add extra dot before file size
* show search term at the top when displaying results
* add inline search to result screen
* update locale
* update locale
* remove comments
* improve semantics, remove duplicate event handlers
* Update the url companion to default to a HEAD request to get file meta information, falling back to a GET request on failure. Add Tus chunk size env var option.
* refactor
Keep original signature and rewrite code a bit
* add docs for COMPANION_CHUNK_SIZE
Co-authored-by: Mikael Finstad <finstaden@gmail.com>
* @uppy/tus: pause all requests in response to server rate limiting
When the remote server responds with HTTP 429, all requests are
paused for a while in the hope that it can resolve the rate limiting.
Failed requests are also now queued up after the retry delay. Before
that, they were simply scheduled which would sometimes end up
overflowing the `limit` option.
* Address review comments
* fix requests bypassing queue pause state
* Auto rate limiting
* fix `RateLimitedQueue`