Commit Graph

12 Commits

Author SHA1 Message Date
Fabian-Lars c52978d7ca chore: Update eslint to v9 with flat config (#1412)
* chore: Update eslint to v9 with flat config

* disable eslint for that whole example file. v1 not worth it imo

* update ts-eslint

* lock versions

* ci: update pnpm
2024-06-03 13:02:49 +02:00
Jesper L. Nielsen 4a5ab18a22 fix(upload): return type on is now a string (#976)
* fix(upload): return type on POST is now string

A POST to a webserver can not always be expected to be a JSON response.

Success is now determined by the HTTP return code.

Upon success the body content is returned as a string.

* feat: add content-length on POST

Not all embedded devices are acceptable to receiving unspecified amounts
of data. Appending the content-length up front helps this devices
succeed.

* fix: return values unified

The return values was not used.

On POST the HTTP error code is returned as an enum.

* fix: upload, return value as string

* Update plugins/upload/src/lib.rs

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>

* Update plugins/upload/src/lib.rs

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>

* fix: added covector changelog file

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-04-15 15:16:07 +02:00
Fabian-Lars cf00900298 fix(upload): Prevent duplicate progress reports when using Promise.all (#908)
* fix(upload): Prevent duplicate progress reports when using Promise.all

* fmt
2024-01-17 16:45:26 +01:00
renovate[bot] 0d0ed7b907 chore(deps): update dependency prettier to v3 (#467)
* chore(deps): update dependency prettier to v3

* fmt

* semver override

* update example deps

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: FabianLars <fabianlars@fabianlars.de>
2023-07-06 11:47:41 +02:00
Fabian-Lars eb55671f27 fix(upload): Don't bail on unknown file length on download, fixes #297 (#330)
* fix(upload): Don't bail on unknown file length on download, fixes #297

* typo
2023-04-24 18:38:18 +02:00
Fabian-Lars 8f0d662ea9 fix(upload): download function invokes wrong command 2023-02-23 13:30:32 +01:00
Fabian-Lars c348eb31ea feat(upload): Add function to download files (#89) 2023-02-15 13:06:43 +01:00
Jonas Kruckenberg 4cced94332 chore: move package.json to plugin root 2023-01-05 17:06:00 +01:00
Jonas Kruckenberg 2ed0742b86 remove dist dirs from git 2023-01-05 13:48:04 +01:00
Jonas Kruckenberg 063a3cfd54 enable type declarations 2022-12-18 17:05:10 +01:00
Jonas Kruckenberg 56eabd8b4f update package json 2022-12-14 19:10:46 +01:00
Jonas Kruckenberg eb3495fb72 copy plugin sources 2022-12-14 18:43:39 +01:00