Commit graph

5 commits

Author SHA1 Message Date
Kevin van Zonneveld
e99a17f1fe
companion: port to TypeScript (#6179)
Supersedes #6178.

This branch keeps the exact same final content as #6178, but splits
history for reviewability:

1. `chore(companion): rename source and test files from .js to .ts`
(pure `git mv`, no content changes)
2. `feat(companion): port Companion to TypeScript` (actual
content/type/schema/build updates)

Validation note:
- Final tree is byte-for-byte identical to `ts-companion`
(`7b5b16a298690b0492de4cc4fab744f998b45570`).

---------

Co-authored-by: Mikael Finstad <finstaden@gmail.com>
2026-05-04 20:50:43 +08:00
Antoine du Hamel
a47090c2c6
meta: fix yarn build:clean
The command was mistakenly removing files inside `node_modules` folder
2024-01-22 15:55:22 +01:00
Antoine du Hamel
06371a9d1a
meta: fix yarn build:clean (#4866) 2024-01-16 17:11:51 +01:00
Mikael Finstad
5cfb9fe7a5
fix unpslash author meta, sanitize metadata to strings and improve companion tests (#3478)
* 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
2022-02-17 17:43:44 +00:00
Ifedapo Olarewaju
9a841f693a refactor: rename service-dog -> companion 2018-07-22 18:53:57 +01:00
Renamed from packages/@uppy/service-dog/.gitignore (Browse further)